:root {
  --navy: #0F4C81;
  --emerald: #00B894;
  --accent: #35D0BA;
  --text: #2B2B35;
  --bg: #FFFFFF;
  --section-bg: #F7F9FC;
  --font-heading: 'Gilroy', 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-button: 'Gilroy', 'Montserrat', sans-serif;
  --font-caption: 'Montserrat', sans-serif;
  --radius: 12px;
}

/* Hide theme's default header — replaced by custom navbar */
header.wp-block-template-part,
.wp-site-blocks > header,
.site-header,
#masthead {
  display: none !important;
}

* { box-sizing: border-box; }

/* ===== GLOBAL NAVBAR MASTER CONTAINER ===== */
.site-navbar {
  font-family: var(--font-body);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 1px 12px rgba(15, 76, 129, 0.06);
  width: 100%;
}

.navbar-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 24px;
  position: relative;
}

.navbar-logo { 
  display: flex; 
  align-items: center; 
  flex-shrink: 0; 
  z-index: 10001;
}
.logo-img { height: 54px; width: auto; display: block; }

.navbar-nav { 
  flex: 1; 
  display: flex; 
  justify-content: center; 
}
.nav-list { 
  display: flex; 
  align-items: center; 
  gap: 32px; 
  list-style: none; 
  margin: 0; 
  padding: 0; 
}

.nav-item { position: relative; }

.nav-link {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--text);
  text-decoration: none;
  display: inline-block;
  padding: 10px 0;
  position: relative;
  white-space: nowrap;
  transition: color .2s ease;
}

/* Teal underline animation on desktop hover */
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; 
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .25s ease;
}
.nav-link:hover { color: var(--navy); }
.nav-link:hover::after,
.nav-item.is-active .nav-link::after { width: 100%; }
.nav-item.is-active .nav-link { color: var(--navy); }

/* Unified Global Buttons Architecture */
.btn {
  font-family: var(--font-button);
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius);
  padding: 12px 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: all .25s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--emerald), var(--navy)); color: #fff; }
.btn-primary:hover { background: var(--navy); transform: translateY(-1px); }
.btn-secondary { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-secondary:hover { background: var(--navy); color: #fff; }

.navbar-cta { z-index: 10001; }
.navbar-mobile-cta-wrap { display: none; }

/* Desktop Navigation Toggle Controls */
.navbar-toggle { 
  display: none; 
  background: none; 
  border: none; 
  color: var(--navy); 
  cursor: pointer; 
  padding: 8px; 
  z-index: 10001;
}
.navbar-toggle .icon-close { display: none; }
.navbar-toggle.is-open .icon-menu { display: none; }
.navbar-toggle.is-open .icon-close { display: block; }

/* ===== DESKTOP DROP PANEL ARCHITECTURE ===== */
.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -8px);
  min-width: 500px;
  background: var(--navy);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(15,76,129,0.25);
  padding: 24px 28px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  margin-top: 10px;
}

.nav-item.has-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.dropdown-inner { display: flex; gap: 40px; }
.dropdown-col { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.dropdown-link {
  font-family: var(--font-body);
  font-size: 14.5px;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease;
  font-weight: 500;
}
.dropdown-link:hover { color: var(--accent); padding-left: 2px; }

/* ===== COMPREHENSIVE RESPONSIVE DESIGN INTERFACE OVERRIDES ===== */
@media (max-width: 1024px) {
  .navbar-cta { display: none !important; }
  .navbar-toggle { display: block !important; }
  
  /* Mobile Canvas Drawer Framework */
  .navbar-nav {
    position: fixed !important;
    top: 82px !important; 
    left: 0 !important; 
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: calc(100vh - 82px) !important;
    background: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10000 !important;
    padding: 20px 24px 40px !important;
    overflow-y: auto !important;
  }
  
  .navbar-nav.is-open { 
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }
  
  .nav-list { 
    flex-direction: column !important; 
    align-items: flex-start !important; 
    width: 100% !important; 
    gap: 0 !important; 
  }
  
  .nav-item { 
    width: 100% !important; 
    border-bottom: 1px solid #f1f5f9 !important; 
    position: relative !important;
  }
  
  .nav-link { 
    padding: 16px 0 !important; 
    width: 100% !important; 
    font-size: 15px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
  .nav-link::after { display: none !important; }
  
  /* Dynamic Accordion Interaction Triggers */
  .nav-item.has-dropdown > .nav-link::after {
    content: '+' !important;
    font-family: monospace !important;
    font-size: 18px !important;
    color: var(--navy) !important;
    display: inline-block !important;
    transition: transform 0.2s !important;
  }
  .nav-item.has-dropdown.is-open > .nav-link::after {
    transform: rotate(45deg) !important;
    content: '✕' !important;
    font-size: 14px !important;
  }

  /* HARD RESET: Strips out desktop absolute boundaries */
  .dropdown-panel {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    width: 100% !important;
    min-width: 100% !important;
    margin-top: 0 !important;
    border-radius: 0 !important;
    padding: 0 0 16px 16px !important;
    display: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  
  /* Displays panel inline natively within flow stream */
  .nav-item.has-dropdown.is-open .dropdown-panel { 
    display: block !important; 
  }
  
  .dropdown-inner { 
    flex-direction: column !important; 
    gap: 12px !important; 
  }
  .dropdown-col { gap: 12px !important; }
  .dropdown-link { 
    color: var(--text) !important; 
    padding: 6px 0 !important;
    font-size: 14px !important;
    white-space: normal !important;
  }
  .dropdown-link:hover { color: var(--navy) !important; }

  /* Mobile Content Pushes */
  .navbar-mobile-cta-wrap {
    display: block !important;
    width: 100% !important;
    padding: 30px 0 10px !important;
    margin-top: auto !important; 
  }
  .navbar-cta-mobile {
    width: 100% !important;
    justify-content: center !important;
    padding: 14px !important;
  }
}