section {
  padding: 4% 8%;
}

.PageContainer {
  margin: 0px;
}

/* ===== NAV ===== */
.navOuter {
  display: flex;
  background: red;
  justify-content: center;
}

nav {
  position: fixed;
  top: 25px;
  width: 80%;
  border-radius: 45px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  top: 15px;
  width: 90%;
  border: 1px solid var(--themeColorRGBA05);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 1% 0px 1%;
  gap: 1rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled .nav-container {
  padding: 10px 1% 0px 1%;
}

/* ===== LOGO ===== */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  transition: all 0.35s ease;
}

.logo img {
  height: 65px;
  width: auto;
  margin-top: -8px;
  transition: all 0.35s ease;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

nav.scrolled .logo img {
  height: 60px;
  margin-top: -8px;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.1));
}

/* ===== DESKTOP LINKS ===== */
.nav-links {
  display: flex;
  gap: clamp(0.8em, 1.2vw, 2em);
  list-style: none;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-links a {
  color: var(--dark);
  text-decoration: none;
  font-size: 15px;
  white-space: nowrap;
  letter-spacing: 0.3px;
  position: relative;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled .nav-links a {
  color: var(--dark);
  text-shadow: none;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled .nav-links a::after {
  background: var(--secondary);
}

.nav-links a:hover { color: var(--dark); }
nav.scrolled .nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }

/* ===== CTA BUTTONS ===== */
.nav-container .navCTA {
  background: var(--primary);
  color: white !important;
  padding: 12px 36px;
  border-radius: 50px;
  border: 2px solid var(--primary);
  font-weight: 300 !important;
  font-size: clamp(12px, 1vw, 14px) !important;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

nav.scrolled .navCTA {
  background: var(--primary) !important;
  color: white !important;
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(232, 88, 10, 0.25);
}

.navCTA:hover {
  transform: translateY(-2px) scale(1.03) !important;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
}

nav.scrolled .navCTA:hover {
  box-shadow: 0 8px 24px rgba(232, 88, 10, 0.4) !important;
}

.navCTA::after { display: none !important; }

.nav-container .navOutlineCTA {
  background: transparent !important;
  color: var(--primary) !important;
  padding: 12px 36px;
  border-radius: 50px;
  border: 1px solid var(--primary);
  font-weight: 700 !important;
  font-size: clamp(12px, 1vw, 14px) !important;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

nav.scrolled .navOutlineCTA {
  background: white !important;
  color: var(--primary) !important;
  border-color: var(--primary);
  backdrop-filter: none;
}

.navOutlineCTA:hover {
  background: white !important;
  color: var(--primary) !important;
  border-color: white;
  border-radius: 10px;
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3) !important;
}

nav.scrolled .navOutlineCTA:hover {
  background: var(--primary) !important;
  color: white !important;
  box-shadow: 0 8px 24px rgba(232, 88, 10, 0.3) !important;
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: transparent;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

nav.scrolled .hamburger span {
  background: var(--dark);
  box-shadow: none;
}

.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== MOBILE MENU ===== */
.mobile-menu {
  display: none;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
   background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-menu.open {
  max-height: 600px;
  overflow-y: scroll;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.mobile-menu-inner {
  padding: 1em 5% 1.6em;
  display: flex;
  flex-direction: column;
  gap: 0.3em;
}

.mobile-menu a {
  color: var(--dark);
  text-decoration: none;
  font-size: 1em;
  font-weight: 600;
  padding: 0.5em 0.6em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu a::after {
  content: '→';
  font-size: 1.2em;
  color: rgba(0, 0, 0, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu a:hover {
  color: var(--primary);
  padding-left: 1.2em;
  background: rgba(232, 88, 10, 0.04);
}

.mobile-menu a:hover::after {
  color: var(--primary);
  transform: translateX(4px);
}

.mobile-menu a:last-of-type { border-bottom: none; }

.MobileBtnCTA-wrap {
  margin-top: 1.2em;
  display: flex;
  gap: 0.8em;
}

.MobileBtnCTA {
  display: block;
  text-align: center;
  background: var(--primary);
  color: var(--white) !important;
  padding: 1em !important;
  border-radius: 12px;
  font-weight: 700 !important;
  font-size: 1em !important;
  flex: 1;
  box-shadow: 0 4px 16px rgba(232, 88, 10, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.MobileBtnCTA::after { display: none !important; }


/* ══════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
══════════════════════════════════════════ */

/* ─── HIDE DESKTOP LINKS, SHOW HAMBURGER (≤900px) ─── */
@media (max-width: 900px) {
  nav {
    top: 12px;
    width: 92%;
    border-radius: 20px;
  }

  nav.scrolled {
    top: 8px;
    width: 95%;
    border-radius: 20px;
  }

  /* Hide desktop nav links */
  .nav-links {
    display: none;
  }

  /* Show hamburger */
  .hamburger {
    display: flex;
  }

  /* Show mobile menu block so max-height transition works */
  .mobile-menu {
    display: block;
    border-radius: 0 0 20px 20px;
  }

  .nav-container {
    padding: 8px 4% 8px 3%;
  }

  .logo img {
    height: 52px;
  }

  nav.scrolled .logo img {
    height: 48px;
  }
}

/* ─── TABLET (≤768px) ─── */
@media (max-width: 768px) {
  nav {
    top: 10px;
    width: 94%;
  }

  nav.scrolled {
    width: 96%;
  }

  .MobileBtnCTA-wrap {
    flex-direction: column;
  }
}

/* ─── MOBILE (≤540px) ─── */
@media (max-width: 540px) {
  nav {
    top: 0px;
    width: 100%;
    border-radius: 0px;
  }

  nav.scrolled {
    top: 0px;
    width: 100%;
    border-radius: 0px;
  }

  .nav-container {
    padding: 15px 2% 12px 2%;
  }
  nav.scrolled .nav-container {
  padding: 10px 1% 10px 1%;
}

  .logo img {
    height: 44px;
    margin-top: 5px;
  }

  nav.scrolled .logo img {
    height: 40px;
    margin-top: 5px;
  }

  .mobile-menu {
    border-radius: 0 0 16px 16px;
  }

  .mobile-menu a {
    font-size: 0.95em;
    padding: 0.6em 0.5em;
  }
}

/* ─── SMALL MOBILE (≤380px) ─── */
@media (max-width: 380px) {
  nav {
    width: 100%;
    border-radius: 0px;
  }

  .logo img { height: 38px; }

  .mobile-menu-inner {
    padding: 0.8em 4% 1.2em;
  }

  .MobileBtnCTA {
    font-size: 0.9em !important;
    padding: 0.85em !important;
  }
}