@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

:root {
  --navy: #0a1628;
  --navy-mid: #112240;
  --blue: #0056b3;
  --blue-bright: #0070e0;
  --aqua: #00b4d8;
  --aqua-light: #48cae4;
  --aqua-glow: rgba(0, 180, 216, 0.15);
  --white: #ffffff;
  --off-white: #f0f4f8;
  --light-blue: #e8f4fd;
  --text-body: #2d3748;
  --text-muted: #718096;
  --gold: #f6ad55;
  --gold-bright: #fbbf24;
  --shadow: 0 4px 24px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-body);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Baloo 2', cursive;
  line-height: 1.15;
}

/* ─── NAV ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9000;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.scrolled {
  background: rgba(10, 22, 40, 0.96);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 30px rgba(0,0,0,0.3);
}

.nav-logo img {
  height: 52px;
  width: auto;
  transition: var(--transition);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--aqua);
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--aqua); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--aqua) !important;
  color: var(--navy) !important;
  padding: 12px 28px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  transition: var(--transition) !important;
  box-shadow: 0 0 20px rgba(0,180,216,0.4) !important;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--aqua-light) !important;
  box-shadow: 0 0 35px rgba(0,180,216,0.6) !important;
  transform: translateY(-2px) !important;
}

.nav-cta::after { display: none !important; }

/* Hide mobile-only nav item on desktop */
.nav-mobile-footer { display: none !important; }

/* ─── DROPDOWN NAV ────────────────────────────────────── */
.nav-item { position: relative; }

.nav-item > a {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-arrow {
  display: inline-block;
  width: 8px; height: 8px;
  border-right: 1.5px solid rgba(255,255,255,0.6);
  border-bottom: 1.5px solid rgba(255,255,255,0.6);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.3s ease, border-color 0.3s;
  flex-shrink: 0;
  margin-bottom: 2px;
}

.nav-item:hover > a .nav-arrow {
  transform: rotate(-135deg) translateY(2px);
  border-color: var(--aqua);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  padding-top: 18px; /* invisible bridge — keeps hover active while mouse travels */
  background: transparent;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s;
}

.nav-dropdown-inner {
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 8px 0;
  min-width: 240px;
  list-style: none;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  position: relative;
}

.nav-dropdown-inner::before {
  content: '';
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 11px; height: 11px;
  background: rgba(10,22,40,0.97);
  border-left: 1px solid rgba(255,255,255,0.08);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.nav-dropdown li {
  list-style: none;
}

.nav-dropdown li a {
  display: block;
  padding: 10px 20px;
  color: rgba(255,255,255,0.72) !important;
  font-size: 0.87rem !important;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s, padding-left 0.2s;
}

.nav-dropdown li a::after { display: none !important; }

.nav-dropdown li a:hover {
  color: var(--aqua) !important;
  background: rgba(0,180,216,0.07);
  padding-left: 26px;
}

/* ─── PAGE TRANSITION OVERLAY ──────────────────────────── */
.page-transition-overlay {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
  pointer-events: none;
}
.page-transition-overlay.active { transform: translateY(0); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 25px; height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}

/* ─── FOOTER ─────────────────────────────────────────── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 60px 40px 30px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand img { height: 50px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.7; max-width: 280px; }

.footer-col h4 {
  font-family: 'Baloo 2', cursive;
  font-size: 1rem;
  color: var(--aqua);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}
.footer-col ul li a:hover { color: var(--aqua); }

.footer-contact p { 
  font-size: 0.9rem; 
  color: rgba(255,255,255,0.6); 
  margin-bottom: 8px; 
}
.footer-contact a { color: var(--aqua); text-decoration: none; }

.footer-bottom {
  max-width: 1200px;
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-built-by a {
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  transition: color 0.3s;
}

.footer-built-by a:hover {
  color: var(--aqua);
}

.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}
.footer-socials a:hover {
  background: var(--aqua);
  border-color: var(--aqua);
  color: var(--navy);
}

/* ─── SECTION DEFAULTS ───────────────────────────────── */
.section { padding: 100px 40px; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-tag {
  display: inline-block;
  background: var(--aqua-glow);
  border: 1px solid rgba(0,180,216,0.3);
  color: var(--aqua);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* ─── SCROLL REVEAL ──────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="scale"] { transform: scale(0.9); }

[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* ─── BTN ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 32px;
  border-radius: 50px;
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--aqua);
  color: var(--navy);
  box-shadow: 0 0 30px rgba(0,180,216,0.35);
}

.btn-primary:hover {
  background: var(--aqua-light);
  transform: translateY(-3px);
  box-shadow: 0 0 50px rgba(0,180,216,0.55);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  border-color: var(--aqua);
  color: var(--aqua);
  transform: translateY(-3px);
}

.btn-dark {
  background: var(--navy);
  color: white;
}

.btn-dark:hover {
  background: var(--navy-mid);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* ─── CARDS ──────────────────────────────────────────── */
.card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* ─── DIVIDER WAVE ────────────────────────────────────── */
.wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.wave-divider svg { display: block; }

/* ─── PHONE CTA BAR ──────────────────────────────────── */
.phone-bar {
  background: linear-gradient(135deg, var(--aqua), var(--blue-bright));
  text-align: center;
  padding: 20px 40px;
  color: white;
}

.phone-bar h3 {
  font-family: 'Baloo 2', cursive;
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.phone-bar .phones {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.phone-bar a {
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: opacity 0.3s;
}

.phone-bar a:hover { opacity: 0.8; }

/* ─── MOBILE ─────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Nav bar — fixed, always visible, always navy */
  .nav {
    padding: 0 20px;
    height: 64px;
    background: var(--navy) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.4);
    z-index: 9999; /* highest of everything */
    position: fixed;
    top: 0; left: 0; right: 0;
  }

  .nav.scrolled { background: var(--navy) !important; }

  .nav-logo img { height: 42px; }

  /* Hamburger — inside nav, inherits 9999 */
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    background: none;
    border: none;
    position: relative;
    z-index: 1; /* relative inside nav stacking context */
  }

  /* Lines — always white, become aqua X when open */
  .hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: white !important;
    transition: transform 0.35s ease, opacity 0.25s ease, background 0.25s ease;
  }

  .hamburger.open span { background: var(--aqua) !important; }
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* ── Full-screen menu — ABOVE nav bar so it covers everything ── */
  .nav-links {
    display: flex;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    /* Top padding = nav height so content starts below the nav bar */
    padding: 64px 0 40px;
    /* Slide in from the right */
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Sits BELOW the nav bar (9999) so the nav bar always shows on top */
    z-index: 9998;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.open { transform: translateX(0); }

  /* ── List items ── */
  .nav-links > li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 0;
  }

  .nav-links > li:last-child { border-bottom: none; }

  .nav-links > li > a,
  .nav-links > li.nav-item > a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255,255,255,0.92) !important;
    padding: 18px 24px;
    width: 100%;
    text-decoration: none;
    letter-spacing: 0.02em;
  }

  .nav-links a::after { display: none; }

  /* CTA button */
  .nav-cta {
    display: flex !important;
    width: calc(100% - 48px) !important;
    margin: 20px 24px 8px !important;
    padding: 16px 24px !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 1rem !important;
    border-radius: 14px !important;
    color: var(--navy) !important;
    background: var(--aqua) !important;
    box-shadow: 0 0 24px rgba(0,180,216,0.4) !important;
  }

  .nav-links li:has(.nav-cta) {
    border-bottom: none;
    padding: 0;
  }

  /* ── Commercial dropdown accordion ── */
  .nav-item { position: static; }

  .nav-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    padding-top: 0;
    display: none;
  }

  .nav-dropdown-inner {
    background: rgba(0,180,216,0.05);
    border: none;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-radius: 0;
    padding: 4px 0;
    min-width: unset;
    width: 100%;
    box-shadow: none;
    list-style: none;
  }

  .nav-dropdown-inner::before { display: none; }
  .nav-item.mob-open > a { color: var(--aqua) !important; }
  .nav-item.mob-open .nav-dropdown { display: block; }

  .nav-dropdown li {
    list-style: none;
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }
  .nav-dropdown li:last-child { border-bottom: none; }

  .nav-dropdown li a {
    display: block !important;
    padding: 13px 24px !important;
    font-size: 0.95rem !important;
    color: rgba(255,255,255,0.6) !important;
    text-align: center !important;
    width: 100%;
  }

  .nav-dropdown li a:hover {
    color: var(--aqua) !important;
    background: rgba(0,180,216,0.06);
    padding-left: 24px !important;
  }

  .nav-arrow {
    display: inline-block !important;
    margin-left: 4px;
    transition: transform 0.3s ease;
  }

  .nav-item.mob-open > a .nav-arrow {
    transform: rotate(-135deg) translateY(2px);
    border-color: var(--aqua);
  }

  /* Mobile footer contact row */
  .nav-mobile-footer {
    display: flex !important;
    gap: 20px;
    justify-content: center;
    border-bottom: none !important;
    padding: 16px 24px !important;
    flex-wrap: wrap;
  }

  .nav-mobile-footer a {
    color: rgba(255,255,255,0.38);
    font-size: 0.76rem;
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  /* ── General mobile spacing ── */
  .section { padding: 52px 20px; }
  .phone-bar { padding: 20px; }
  .phone-bar h3 { font-size: 1.05rem; }
  .phone-bar .phones { flex-direction: column; gap: 10px; }
  .phone-bar a { font-size: 1.15rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer { padding: 48px 20px 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 44px 16px; }
  .nav { padding: 0 16px; height: 60px; }
  .nav-logo img { height: 36px; }
  .phone-bar a { font-size: 1rem; }
  .nav-links { padding-top: 60px; }
}
