/* ============================================
   GLOBAL STYLES - Shared Across All Pages
   ============================================ */

:root {
  --navy: #221f20;
  --navy-mid: #132240;
  --navy-light: #1E3460;
  --teal: #0dd7c8;
  --teal-dim: #009983;
  --teal-pale: #E0FBF5;
  --blue: #0e3dab;
  --blue-light: #E8F4FF;
  --amber: #F6AD55;
  --white: #FFFFFF;
  --off-white: #F7F9FC;
  --gray-100: #EDF2F7;
  --gray-200: #E2E8F0;
  --gray-400: #A0AEC0;
  --gray-600: #4A5568;
  --gray-800: #1A202C;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 4px 24px rgba(10,22,40,0.08);
  --shadow-elevated: 0 8px 40px rgba(10,22,40,0.14);
  --transition-speed: 0.3s;
}

*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

html { 
  scroll-behavior: smooth; 
}

body { 
  font-family: var(--font-body); 
  background: var(--white); 
  color: var(--gray-800); 
  line-height: 1.6; 
  font-size: 16px; 
  -webkit-font-smoothing: antialiased; 
}

/* ============================================
   NAVIGATION
   ============================================ */

nav { 
  position: fixed; 
  top: 0; 
  left: 0; 
  right: 0; 
  z-index: 100; 
  background: var(--white); 
  backdrop-filter: blur(12px); 
  border-bottom: 1px solid rgba(255,255,255,0.07); 
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.nav-inner { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 2rem; 
  height: 100px; 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 2rem; 
}

.logo img {
  width: 164px;
  height: auto;
  display: block;
}

/* ============================================
   DESKTOP NAVIGATION
   ============================================ */

.nav-links { 
  display: flex; 
  align-items: center; 
  gap: 0; 
  list-style: none; 
}

.nav-links a { 
  color: var(--navy); 
  text-decoration: none; 
  font-size: 16px; 
  font-weight: 600; 
  padding: 6px 14px; 
  border-radius: 6px; 
  transition: all var(--transition-speed); 
  white-space: nowrap; 
  cursor: pointer;
}

.nav-links a:hover { 
  color: var(--teal); 
  background: rgba(13, 215, 200, 0.06); 
}

.nav-links a.active { 
  color: var(--teal); 
}

.nav-links .dropdown { 
  position: relative; 
}

.nav-links .dropdown > a::after { 
  content: ' ▾'; 
  font-size: 11px; 
  opacity: 0.6; 
  transition: transform var(--transition-speed);
}

.nav-links .dropdown:hover > a::after { 
  transform: rotate(-180deg);
}

.nav-links .dropdown:hover .dropdown-menu { 
  display: block; 
  animation: slideDown var(--transition-speed) ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-menu { 
  display: none; 
  position: absolute; 
  top: calc(100% + 8px); 
  left: 0; 
  background: var(--navy); 
  border: 1px solid rgba(255,255,255,0.1); 
  border-radius: var(--radius); 
  padding: 8px; 
  min-width: 220px; 
  box-shadow: var(--shadow-elevated); 
}

.dropdown-menu a { 
  display: block; 
  padding: 12px 16px; 
  border-radius: 6px; 
  font-size: 14px; 
  color: rgba(255,255,255,0.75); 
  text-decoration: none;
  transition: all var(--transition-speed);
}

.dropdown-menu a:hover { 
  color: var(--white); 
  background: rgba(255,255,255,0.12); 
}

.nav-cta { 
  background: var(--teal) !important; 
  color: var(--navy) !important; 
  font-weight: 600 !important; 
  padding: 10px 20px !important; 
  border-radius: 8px !important; 
  transition: all var(--transition-speed) !important;
}

.nav-cta:hover { 
  background: var(--teal-dim) !important;
  box-shadow: 0 4px 12px rgba(13, 215, 200, 0.25);
}

/* ============================================
   MOBILE NAVIGATION - HAMBURGER MENU
   ============================================ */

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  gap: 5px;
  z-index: 101;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition-speed);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 98;
  opacity: 0;
  transition: opacity var(--transition-speed);
  visibility: hidden;
  pointer-events: none;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Mobile menu panel */
.mobile-menu-panel {
  position: fixed;
  top: 100px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 99;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform var(--transition-speed);
  padding: 2rem 0;
  visibility: hidden;
}

.mobile-menu-panel.active {
  transform: translateX(0);
  visibility: visible;
}

.mobile-menu-panel .nav-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.mobile-menu-panel .nav-links li {
  display: block;
  width: 100%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  list-style: none;
}

.mobile-menu-panel .nav-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 2rem;
  border-radius: 0;
  width: 100%;
  font-size: 16px;
}

.mobile-menu-panel .nav-links a:hover {
  background: var(--off-white);
}

.mobile-menu-panel .dropdown > a::after {
  content: '▾';
  font-size: 12px;
  transition: transform var(--transition-speed);
}

.mobile-menu-panel .dropdown.active > a::after {
  transform: rotate(-180deg);
}

/* Mobile dropdown menu */
.mobile-menu-panel .dropdown-menu {
  position: static;
  background: var(--off-white);
  border: none;
  border-radius: 0;
  padding: 0;
  min-width: auto;
  box-shadow: none;
  animation: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-speed), padding var(--transition-speed);
}

.mobile-menu-panel .dropdown.active .dropdown-menu {
  max-height: 500px;
  padding: 8px 2rem;
}

.mobile-menu-panel .dropdown-menu a {
  display: block;
  padding: 12px 16px;
  color: var(--navy);
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
  width: 100%;
}

.mobile-menu-panel .dropdown-menu a:hover {
  background: rgba(13, 215, 200, 0.1);
  color: var(--teal);
}

/* ============================================
   FOOTER
   ============================================ */

footer { 
  background: var(--navy); 
  border-top: 1px solid rgba(255,255,255,0.06); 
}

.footer-inner { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 3rem 2rem 2rem; 
}

.footer-top { 
  display: grid; 
  grid-template-columns: 2fr 1fr 1fr 1fr; 
  gap: 3rem; 
  margin-bottom: 2.5rem; 
}

.footer-brand p { 
  font-size: 13.5px; 
  color: rgba(255,255,255,0.45); 
  line-height: 1.65; 
  margin-top: 1rem; 
  max-width: 280px; 
}

.footer-col h4 { 
  font-size: 12px; 
  font-weight: 600; 
  letter-spacing: 0.8px; 
  text-transform: uppercase; 
  color: rgba(255,255,255,0.4); 
  margin-bottom: 1rem; 
}

.footer-col a { 
  display: block; 
  font-size: 13.5px; 
  color: rgba(255,255,255,0.55); 
  text-decoration: none; 
  margin-bottom: 0.6rem; 
  transition: color var(--transition-speed); 
}

.footer-col a:hover { 
  color: var(--teal); 
}

.footer-bottom { 
  border-top: 1px solid rgba(255,255,255,0.06); 
  padding-top: 1.5rem; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  flex-wrap: wrap; 
  gap: 1rem; 
}

.footer-bottom p { 
  font-size: 12.5px; 
  color: rgba(255,255,255,0.3); 
}

.footer-legal { 
  display: flex; 
  gap: 1.5rem; 
}

.footer-legal a { 
  font-size: 12.5px; 
  color: rgba(255,255,255,0.3); 
  text-decoration: none; 
  transition: color var(--transition-speed);
}

.footer-legal a:hover { 
  color: rgba(255,255,255,0.6); 
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .nav-inner {
    padding: 0 1rem;
    height: 80px;
  }

  .logo img {
    width: 140px;
  }

  /* Hide desktop nav, show mobile toggle */
  .nav-links {
    display: none;
  }

  /* Show mobile menu nav-links */
  .mobile-menu-panel .nav-links {
    display: flex;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  /* Adjust body for fixed nav */
  body.menu-open {
    overflow: hidden;
  }

  /* Footer adjustments */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-legal {
    flex-direction: column;
    gap: 0.5rem;
  }

  section {
    padding: 5rem 1rem;
  }
}

@media (max-width: 600px) {
  .nav-inner {
    height: 70px;
  }

  .logo img {
    width: 120px;
  }

  .mobile-menu-panel {
    top: 70px;
  }

  .nav-cta {
    padding: 8px 16px !important;
    font-size: 14px !important;
  }

  section {
    padding: 3rem 1rem;
  }

  .footer-inner {
    padding: 2rem 1rem 1rem;
  }
}

/* Prevent layout shift on scrollbar appearance */
@media (max-width: 768px) {
  html {
    overflow-y: scroll;
  }
}

/* Smooth transitions for all elements */
* {
  --transition-speed: 0.3s;
}