/* ==== ASTRA FIXAR ==== */
header,
.site-header,
.ast-desktop-header,
.ast-mobile-header,
.ast-primary-header-bar,
.ast-above-header,
.ast-below-header,
.ast-masthead,
.ast-container > .ast-flex.main-header-container {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

.ast-container,
.site-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ==== RESET ==== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  scroll-behavior: smooth;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: none !important;
}

/* ===========================
   NAVIGATION BASE, NAMESPACE
   =========================== */
#navbar.navbar {
  position: fixed !important;
  top: 0;          /* ändra till 20px om du vill ha mer luft */
  left: 0;
  right: 0;
  z-index: 999999 !important;
  background: transparent;
  transition: all 0.3s ease;
}

#navbar.transparent { background: transparent; }

#navbar.white {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

#navbar.hidden { transform: translateY(-100%); }

#navbar .nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==== LOGO ==== */
#navbar .logo-section { display: flex; align-items: center; }

#navbar .logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

#navbar .logo-icon {
  width: 36px;
  height: 36px;
  background: #3e4883;
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

#navbar .logo-link:hover .logo-icon { transform: scale(1.1); }

#navbar .logo-text { display: flex; align-items: baseline; gap: 4px; }

#navbar .logo-main {
  font-size: 20px; font-weight: 700; color: #333; transition: color 0.3s ease;
}

#navbar .logo-sub { font-size: 20px; font-weight: 700; color: #3e4883; }

#navbar.transparent .logo-main { color: white; }

/* ==== NAV MENU ==== */
#navbar .nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 0;
}

#navbar .nav-item { position: relative; display: flex; align-items: center; }

#navbar .nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 15px;
  padding: 10px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  line-height: 1.2;
}

#navbar.transparent .nav-link { color: white; }

#navbar .nav-link:hover { background: rgba(62, 72, 131, 0.1); }

#navbar.transparent .nav-link:hover { background: rgba(255, 255, 255, 0.1); }

#navbar .dropdown-arrow { width: 16px; height: 16px; transition: transform 0.3s ease; }

#navbar .has-dropdown.active .dropdown-arrow { transform: rotate(180deg); }

/* ==== CTA SECTION ==== */
#navbar .nav-cta { display: flex; align-items: center; gap: 20px; }

#navbar .phone-number {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: #333;
  font-weight: 500; font-size: 14px; transition: color 0.3s ease;
}

#navbar.transparent .phone-number { color: white; }

#navbar .phone-number svg { width: 18px; height: 18px; }

#navbar .cta-button {
  background: #3e4883; color: white;
  padding: 12px 24px; border-radius: 50px;
  text-decoration: none; font-weight: 600; font-size: 14px;
  transition: all 0.3s ease;
}

#navbar .cta-button:hover {
  background: #2e3863;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(62, 72, 131, 0.3);
}

/* ===========================
   DROPDOWN, NAMESPACE BARA HÄR
   =========================== */
#dropdown-menu {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: white;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  opacity: 0; visibility: hidden;
  transform: translateY(-20px);
  transition: all 0.3s ease;
  z-index: 999;
  padding-top: 80px;
}

#dropdown-menu.active {
  opacity: 1; visibility: visible; transform: translateY(0);
}

#dropdown-menu .dropdown-container {
  max-width: 1200px; margin: 0 auto; padding: 40px 30px;
}

#dropdown-menu .dropdown-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
}

#dropdown-menu .dropdown-column {
  display: flex; flex-direction: column; gap: 16px;
}

#dropdown-menu .column-title {
  font-size: 14px; font-weight: 600; color: #666;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px;
}

#dropdown-menu .service-item {
  display: flex; align-items: flex-start; gap: 12px;
  text-decoration: none; padding: 12px; border-radius: 8px; transition: all 0.3s ease;
}

#dropdown-menu .service-item:hover { background: #f5f7fa; transform: translateX(5px); }

#dropdown-menu .service-icon { width: 24px; height: 24px; color: #3e4883; flex-shrink: 0; margin-top: 2px; }

#dropdown-menu .service-content h4 {
  font-size: 15px; font-weight: 600; color: #333; margin-bottom: 4px;
}

#dropdown-menu .service-content p {
  font-size: 13px; color: #666; line-height: 1.4;
}

/* ==== CTA COLUMN I DROPDOWN ==== */
#dropdown-menu .cta-column {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 30px; border-radius: 12px; color: white;
}

#dropdown-menu .dropdown-cta-box h3 { font-size: 20px; margin-bottom: 12px; }

#dropdown-menu .dropdown-cta-box p { font-size: 14px; opacity: 0.9; margin-bottom: 20px; line-height: 1.5; }

#dropdown-menu .dropdown-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px;
}

#dropdown-menu .stat { text-align: center; }

#dropdown-menu .stat-number { display: block; font-size: 24px; font-weight: 700; }

#dropdown-menu .stat-label { display: block; font-size: 12px; opacity: 0.8; }

#dropdown-menu .dropdown-cta-button {
  display: block; width: 100%; background: white; color: #3e4883;
  padding: 12px; text-align: center; text-decoration: none;
  border-radius: 50px; font-weight: 600; font-size: 14px; transition: all 0.3s ease; margin-bottom: 12px;
}

#dropdown-menu .dropdown-cta-button:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); }

#dropdown-menu .dropdown-phone {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; color: white; font-size: 14px; opacity: 0.9;
}

#dropdown-menu .dropdown-phone svg { width: 16px; height: 16px; }

/* ==== RESPONSIVE ==== */
@media (max-width: 968px) {
  #navbar .nav-container { padding: 15px 20px; }
  #navbar .nav-menu { display: none; }
  #dropdown-menu .dropdown-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ===========================
   VALFRI LUFT OVANFÖR HEADER
   =========================== */
/* Öka detta om du vill ha mer luft överst globalt */
html body #navbar.navbar { top: 0 !important; }
/* Exempel: byt till 20px om du vill ha samma som på din andra skärmdump */
/* html body #navbar.navbar { top: 20px !important; } */

/* === Vertikal position för navbar === */
html body #navbar.navbar {
  top: 35px !important;
}

/* === Justera position på dropdownmenyn === */
#dropdown-menu {
  top: 100px !important; /* samma som höjden på headern + mellanrummet */
}

/* ==== Mobilanpassning: Dölj custom navbar på små skärmar ==== */
@media (max-width: 1024px) {
  #navbar {
    display: none !important;
  }

  /* Återställ Astras header */
  header,
  .site-header,
  .ast-mobile-header {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
  }
}