/* ============================================================
   1. HEADER SHELL (Natural Spacing & Air)
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  
  /* Increased to 100px for a premium, spacious feel */
  height: 100px; 
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  z-index: 9999;
  
  /* Flex Centering: This creates the vertical 'cushion' automatically */
  display: flex;
  align-items: center; 
}

/* Nav Row - Constrains width and adds side gutters */
.nav {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px; 
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ============================================================
   2. LOGO (Anti-Warp & Centering)
   ============================================================ */
.logo-wrap {
  display: flex;
  align-items: center;
  /* Extra vertical padding for logo safety */
  padding: 10px 0; 
}

.logo-wrap img {
  height: 36px; /* Slightly larger for clarity in a big header */
  width: auto;   /* Prevents warping */
  display: block;
  object-fit: contain;
}

/* ============================================================
   3. DESKTOP NAVIGATION
   ============================================================ */
.desktop-menu {
  display: flex;
  gap: 8px;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.desktop-menu > li > a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  transition: var(--mvo-transition);
  display: block;
}

.desktop-menu > li > a:hover:not(.cta-link) {
  background: var(--bg-main);
  color: var(--accent);
}

/* The CTA Contact Button - Airy & Balanced */
.cta-link {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 14px 28px !important;
  border-radius: var(--radius-md);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  margin-left: 12px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  transition: all 0.2s ease;
}

.cta-link:hover {
  background: var(--text) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   4. INTELLIGENT DROPDOWNS (Spaced for 100px Header)
   ============================================================ */
.has-dropdown { position: relative; }

.has-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 25px; /* Larger invisible bridge for the taller header */
}

.dropdown {
  position: absolute;
  top: calc(100% + 15px); 
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
  box-shadow: var(--shadow-lg);
  z-index: 10;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  padding: 12px 24px;
  display: block;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.dropdown li a:hover {
  background: var(--bg-main);
  color: var(--accent);
}
/* ============================================================
   5. MOBILE NAVIGATION (Refined Specialist Overlay)
   ============================================================ */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  gap: 6px;
  z-index: 10001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%; 
  width: 100%;
  height: 100vh;
  background: #fff;
  /* Top padding is now dynamic based on your 80px header height */
  padding: 120px 32px 40px; 
  display: flex;
  flex-direction: column;
  transition: right 0.5s cubic-bezier(0.8, 0, 0.2, 1);
  z-index: 10000;
}

.mobile-menu.open {
  right: 0;
}

/* REFINED TEXT: Scaling back from 32px to a crisp 20px */
.mobile-menu a {
  text-decoration: none;
  color: var(--text);
  font-size: 20px; 
  font-weight: 600;
  font-family: var(--font-body); /* Using Poppins for a cleaner clinical look */
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.mobile-menu a:hover {
  color: var(--accent);
}

/* CONTACT BUTTON: Professional & Tidy */
.mobile-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 20px !important;
  border-radius: var(--radius-md);
  text-align: center;
  margin-top: auto; /* Stays at the bottom */
  font-size: 16px !important;
  font-weight: 700 !important;
  border-bottom: none !important;
  font-family: var(--font-body) !important;
}

@media (max-width: 900px) {
  .desktop-menu { display: none; }
  .menu-toggle { display: flex; }
  .site-header { height: 70px; } 
}