/* shared.css — styles for all partial-injected components (nav, notif, CTA, footer).
   Linked by inner-page templates. index.html keeps its own inline CSS.
   Edits here propagate to all pages that link this file.             */

/* ════════════════════════════════════════════════════════════════
   NOTIFICATION BAR
════════════════════════════════════════════════════════════════ */
#notif-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10002;
  background: linear-gradient(90deg, #112d3d 0%, #1a4157 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 5px 52px;
  font-family: 'DM Sans', sans-serif;
  border-bottom: 0px solid rgba(255, 255, 255, 0.07);
}
#notif-bar.notif-hidden { display: none !important; }
.notif-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
.notif-text {
  font-size: 14px;
  color: rgba(255,255,255,0.78);
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.notif-cta {
  font-size: 14px;
  font-weight: 400;
  color: #4ecad9;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}
.notif-cta:hover { color: #80e8f6; }
.notif-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.45);
  display: flex;
  align-items: center;
  padding: 5px;
  border-radius: 4px;
  line-height: 0;
  transition: color 0.15s;
}
.notif-close:hover { color: rgba(255,255,255,0.9); }

/* ════════════════════════════════════════════════════════════════
   NAV BAND — solid white band for inner pages (nav-mode-solid).
   No z-index here — avoids trapping the fixed fullscreen-menu.
════════════════════════════════════════════════════════════════ */
body.nav-mode-solid #nav-placeholder {
  position: relative;
  height: 120px;
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  margin-top: 34px;
  transition: margin-top 0.2s ease;
}
body.nav-mode-solid #nav-placeholder.notif-hidden-nav {
  margin-top: 38px;
}

/* ════════════════════════════════════════════════════════════════
   SITE HEADER — base layout (shared by both modes)
════════════════════════════════════════════════════════════════ */
.site-header {
  position: absolute;
  left: 0; right: 0;
  z-index: 10001;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4vw;
  gap: 16px;
}

/* Transparent mode: float over hero, shift down when notif is showing */
body.nav-mode-transparent .site-header {
  top: 38px;
  background: transparent;
  transition: top 0.2s ease;
}
body.nav-mode-transparent .site-header.notif-open { top: 68px; }

/* Solid mode: fill the nav band flush */
body.nav-mode-solid .site-header {
  top: 0;
  bottom: 0;
  height: auto;
  background: #ffffff;
}

/* ── Logo ──────────────────────────────────────────────────────── */
.logo-link { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo-light,
.logo-dark  { height: 54px; width: auto; display: block; }

/* Transparent: white logo visible, dark hidden */
body.nav-mode-transparent .logo-light { display: block; }
body.nav-mode-transparent .logo-dark  { display: none; }

/* Solid: dark logo visible, white hidden */
body.nav-mode-solid .logo-light { display: none; }
body.nav-mode-solid .logo-dark  { display: block; }

/* ── Desktop nav links (solid mode only) ───────────────────────── */
.nav-links { display: none; }

body.nav-mode-solid .nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  justify-content: right;
}
.nav-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: #1a2e4a;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.nav-link:hover { color: #025988; }

/* ── Right-side control group ──────────────────────────────────── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

/* ── Login link ────────────────────────────────────────────────── */
.login-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 100px;
  transition: background 0.2s ease;
  letter-spacing: 0.02rem;
  white-space: nowrap;
}
.login-link svg { width: 22px; height: 22px; flex-shrink: 0; }

body.nav-mode-transparent .login-link { color: #ffffff; }
body.nav-mode-transparent .login-link:hover { background: rgba(255,255,255,0.12); }
body.nav-mode-solid .login-link { color: #1a2e4a; }
body.nav-mode-solid .login-link:hover { background: rgba(0,0,0,0.05); }

/* ── Separator between login and search ────────────────────────── */
.nav-sep {
  display: none;
  color: rgba(0,0,0,0.2);
  font-size: 18px;
  font-weight: 200;
  padding: 0 4px;
  line-height: 1;
  user-select: none;
}
body.nav-mode-solid .nav-sep { display: inline-block; }

/* ── Search button ─────────────────────────────────────────────── */
.nav-search-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color .15s ease, transform .15s ease;
}
.nav-search-btn:focus-visible { outline: 2px solid #1ED6C2; outline-offset: 2px; }
.nav-search-icon-close { display: none; }
#navSearchBtn.is-open .nav-search-icon-search { display: none; }
#navSearchBtn.is-open .nav-search-icon-close { display: block; }

body.nav-mode-transparent .nav-search-btn { color: #ffffff; }
body.nav-mode-transparent .nav-search-btn:hover { background: rgba(255,255,255,0.12); transform: scale(1.05); }
body.nav-mode-solid .nav-search-btn { color: #1a2e4a; }
body.nav-mode-solid .nav-search-btn:hover { background: rgba(0,0,0,0.05); transform: scale(1.05); }

/* ── "Begin My Session" CTA (solid mode only) ──────────────────── */
.nav-cta {
  display: none;
  align-items: center;
  background: linear-gradient(90deg, #01abff 0%, #1ED6C2 100%);
  color: #ffffff;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 22px;
  border-radius: 100px;
  white-space: nowrap;
  margin-left: 8px;
  box-shadow: 0 4px 16px rgba(1, 171, 255, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
body.nav-mode-solid .nav-cta { display: inline-flex; }

/* ── Burger button ─────────────────────────────────────────────── */
.burger-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  position: relative;
  flex-shrink: 0;
  z-index: 10001;
}
.burger-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.25s ease;
  transform-origin: center;
}
body.nav-mode-transparent .burger-bar { background: #ffffff; }
body.nav-mode-solid       .burger-bar { background: #1a2e4a; }
.burger-btn.is-open .burger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.is-open .burger-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger-btn.is-open .burger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .logo-light,
  .logo-dark { height: 44px; }
  body.nav-mode-solid #nav-placeholder.notif-hidden-nav { margin-top: 10px; }
  body.nav-mode-transparent .site-header { top: 10px; }
}

/* On desktop solid nav, burger is replaced by visible links — hide it */
@media (min-width: 769px) {
  body.nav-mode-solid .burger-btn { display: none; }
}
/* On mobile solid nav, hide links/CTA, show burger */
@media (max-width: 768px) {
  body.nav-mode-solid .nav-links { display: none !important; }
  body.nav-mode-solid .nav-cta   { display: none !important; }
  body.nav-mode-solid .nav-sep   { display: none !important; }
  body.nav-mode-solid .burger-btn { display: flex; }
}

/* ════════════════════════════════════════════════════════════════
   FULLSCREEN MENU
════════════════════════════════════════════════════════════════ */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: linear-gradient(135deg, rgba(2,24,80,0.97) 0%, rgba(30,214,194,0.95) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
}
.fullscreen-menu.is-open { opacity: 1; pointer-events: all; }
.fsm-body {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 10vw;
  position: relative;
}
.fsm-nav { position: relative; z-index: 2; }
.fsm-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 48px;
}
.fsm-link {
  display: block;
  font-family: 'Red Hat Display', sans-serif;
  font-size: clamp(28px, 3.2vw, 48px);
  font-weight: 500;
  color: white;
  text-decoration: none;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.45s ease, transform 0.45s ease, color 0.2s ease;
}
.fsm-link:hover { color: rgba(255,255,255,0.65); }
.fullscreen-menu.is-open .fsm-link { opacity: 1; transform: translateY(0); }
.fullscreen-menu.is-open .fsm-list li:nth-child(1) .fsm-link { transition-delay: 0.07s; }
.fullscreen-menu.is-open .fsm-list li:nth-child(2) .fsm-link { transition-delay: 0.12s; }
.fullscreen-menu.is-open .fsm-list li:nth-child(3) .fsm-link { transition-delay: 0.17s; }
.fullscreen-menu.is-open .fsm-list li:nth-child(4) .fsm-link { transition-delay: 0.22s; }
.fullscreen-menu.is-open .fsm-list li:nth-child(5) .fsm-link { transition-delay: 0.27s; }
.fsm-decoration {
  position: absolute;
  right: 40px;
  top: 80%;
  transform: translateY(-50%);
  opacity: 0.3;
  pointer-events: none;
  width: 44%;
  max-width: 280px;
}
.fsm-decoration svg { width: 100%; height: auto; }
@media (max-width: 600px) {
  .fsm-body { padding: 0 24px; }
  .fsm-decoration { display: none; }
  .fsm-list { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════════
   TOPICS DROPDOWN
════════════════════════════════════════════════════════════════ */
.topics-dropdown { position: fixed; inset: 0; z-index: 9000; pointer-events: none; }
.topics-dropdown[hidden] { display: none; }
.topics-dropdown-backdrop { display: none; }
.topics-dropdown-panel {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(160deg, #001735 0%, #0a3a4f 55%, #000102 100%);
  transform: translateY(-100%);
  transition: transform .4s cubic-bezier(0.32,0.72,0,1);
  pointer-events: auto;
  overflow-y: auto;
  padding: 32px clamp(20px,4vw,60px) 60px;
}
.topics-dropdown.is-open .topics-dropdown-panel { transform: translateY(0); }
.topics-dropdown-search-wrap { position: relative; max-width: 600px; margin: 40px auto 60px; }
.topics-dropdown-search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.5); pointer-events: none; }
.topics-dropdown-search { width: 100%; padding: 14px 18px 14px 46px; border: 2px solid rgba(255,255,255,0.2); border-radius: 999px; font-family: 'DM Sans', sans-serif; font-size: 16px; color: #ffffff; background: transparent; transition: border-color .15s ease; -webkit-appearance: none; appearance: none; }
.topics-dropdown-search::placeholder { color: rgba(255,255,255,0.4); }
.topics-dropdown-search:focus { outline: none; border-color: #1ED6C2; }
.topics-dropdown-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 28px; max-width: 1300px; margin: 0 auto; }
.topics-category { min-width: 0; }
.topics-category-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.topics-category-list a { display: block; padding: 10px 0; font-size: 15px; color: rgba(255,255,255,0.85); text-decoration: underline; transition: color .12s ease, transform .12s ease; line-height: 0.4; letter-spacing: 0.02rem; font-weight: 300; text-align: left; }
h3.topics-category-name { font-size: 16px; border-bottom: 1px solid #1ed6c2; padding-bottom: 10px; }
.topics-category-list a:hover { color: #1ED6C2; transform: translateX(3px); }
.topics-category-list li { overflow: hidden; max-height: 60px; opacity: 1; transition: max-height 0.25s ease, opacity 0.2s ease; }
.topics-category-list li.is-hidden { max-height: 0; opacity: 0; pointer-events: none; }
.topics-dropdown-empty { text-align: center; color: rgba(255,255,255,0.5); font-size: 15px; padding: 40px 20px; margin: 0; }
body.topics-dropdown-open { overflow: hidden; }
@media (max-width: 700px) {
  .topics-dropdown-panel { padding: 24px 18px 40px; }
  .topics-dropdown-grid { grid-template-columns: 1fr; gap: 22px; }
}

/* ════════════════════════════════════════════════════════════════
   SOCIAL PROOF (CTA section)
════════════════════════════════════════════════════════════════ */
.cta-social-proof-wrap { display: flex; justify-content: center; padding: 20px 0 40px 0; }
.cta-social-proof-wrap .social-proof { margin: 0; opacity: 1; }
.social-proof { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 20px 0 40px; opacity: 1; }
.social-proof-avatars { display: flex; align-items: center; flex-shrink: 0; }
.social-avatar {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.15); margin-left: -5px;
  background: linear-gradient(135deg, #1ED6C2 0%, #01abff 100%);
  opacity: 0; transform: translateX(-8px) scale(0.85);
  animation: avatarFadeIn 0.85s cubic-bezier(0.22,1,0.36,1) forwards;
}
@keyframes avatarFadeIn { to { opacity: 1; transform: translateX(0) scale(1); } }
.social-avatar:first-child { margin-left: 0; }
.social-avatar:nth-child(1) { animation-delay: 0s; }
.social-avatar:nth-child(2) { animation-delay: 0.12s; background: linear-gradient(135deg,#01abff 0%,#025988 100%); }
.social-avatar:nth-child(3) { animation-delay: 0.24s; background: linear-gradient(135deg,#1ED6C2 0%,#025988 100%); }
.social-avatar:nth-child(4) { animation-delay: 0.36s; background: linear-gradient(135deg,#025988 0%,#1ED6C2 100%); }
.social-avatar:nth-child(5) { animation-delay: 0.48s; background: linear-gradient(135deg,#01abff 0%,#1ED6C2 100%); }
.social-avatar:nth-child(6) { animation-delay: 0.60s; background: linear-gradient(135deg,#1ED6C2 0%,#01abff 100%); }
.social-avatar:nth-child(7) { animation-delay: 0.72s; background: linear-gradient(135deg,#025988 0%,#01abff 100%); }
.social-proof-copy { margin: 0; color: #fff; font-weight: 500; font-size: 16px; font-family: 'DM Sans', sans-serif; letter-spacing: 0.01em; padding-top: 10px; }

/* ════════════════════════════════════════════════════════════════
   CTA SECTION
════════════════════════════════════════════════════════════════ */
.section-cta, .cta-section-partial {
  position: relative;
  background: #041c28;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.section-cta { justify-content: space-between; padding: 0; }
.cta-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.cta-glow-1 { width: 520px; height: 520px; background: #01abff; top: -10%; left: -8%; animation: ctaDrift1 18s ease-in-out infinite; }
.cta-glow-2 { width: 460px; height: 460px; background: #1ED6C2; bottom: 10%; right: -6%; animation: ctaDrift2 22s ease-in-out infinite; }
@keyframes ctaDrift1 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(60px,40px) scale(1.08)} }
@keyframes ctaDrift2 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-40px,-30px) scale(1.05)} }
.cta-inner {
  position: relative; z-index: 2; flex: 1 1 auto;
  display: flex; align-items: center; justify-content: center;
  padding: 80px 5vw;
}
.cta-content { width: 100%; max-width: 920px; text-align: center; }
.cta-eyebrow {
  display: inline-block; font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 14px;
  letter-spacing: 0.12em; text-transform: uppercase; color: #1ED6C2;
  margin: 0 0 22px; padding: 8px 18px;
  border: 1px solid rgba(30,214,194,0.35); border-radius: 100px;
  background: rgba(30,214,194,0.06);
}
.cta-headline {
  font-family: 'Red Hat Display', sans-serif; font-weight: 500; font-size: 56px;
  line-height: 1.05; letter-spacing: -0.02em; color: #ffffff; margin: 0 0 22px;
}
.cta-headline-accent {
  background: linear-gradient(90deg, #01abff 0%, #1ED6C2 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 600;
}
.cta-body { font-family: 'DM Sans', sans-serif; font-size: 19px; line-height: 1.55; color: rgba(255,255,255,0.78); margin: 0 auto 40px; max-width: 780px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center; margin-bottom: 36px; }
.cta-primary {
  display: inline-flex; align-items: center; gap: 14px; color: #ffffff;
  background: linear-gradient(90deg, #01abff 0%, #1ED6C2 100%);
  font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 17px;
  padding: 20px 32px; border-radius: 100px; text-decoration: none; white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 36px rgba(1,171,255,0.4);
}
.cta-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 48px rgba(1,171,255,0.5); }
.cta-primary svg { width: 20px; height: 20px; }
.cta-secondary {
  display: inline-flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.92);
  font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 16px;
  padding: 18px 26px; border: 1px solid rgba(255,255,255,0.25); border-radius: 100px;
  text-decoration: none; white-space: nowrap; transition: background 0.2s ease, border-color 0.2s ease;
}
.cta-secondary:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.5); }
.cta-reassure { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; font-family: 'DM Sans', sans-serif; font-size: 16px; color: rgba(255,255,255,0.6); }
.cta-reassure-item { display: inline-flex; align-items: center; gap: 8px; }
.cta-reassure-item svg { width: 22px; height: 22px; color: #1ED6C2; }

/* ════════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════════ */
.site-footer {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(255,255,255,0.1);
  background: #041c28;
  padding: 60px 5vw 30px;
}
.footer-grid {
  width: 100%; max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 2.5fr 1fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 60px;
}
.footer-brand-col .footer-logo { width: 220px; height: auto; margin-bottom: 16px; }
.footer-tagline { font-family: 'DM Sans', sans-serif; font-size: 15px; line-height: 1.55; color: rgba(255,255,255,0.6); margin: 0 0 30px; max-width: 390px; }
.footer-socials { display: flex; gap: 20px; align-items: center; }
.footer-social {
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s ease; text-decoration: none;
}
.footer-social:hover { color: #1ED6C2; }
.footer-social svg { width: 22px; height: 22px; }
.footer-col-title { font-family: 'Red Hat Display', sans-serif; font-weight: 600; font-size: 15px; letter-spacing: 0.04em; color: #ffffff; margin: 0 0 10px; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 6px !important; line-height: 1.4; }
.footer-list a { font-family: 'DM Sans', sans-serif; font-size: 15px; color: rgba(255,255,255,0.65); text-decoration: underline; transition: color 0.15s ease; line-height: 1.4; letter-spacing: 0.02rem; }
.footer-list a:hover { color: #ffffff; }
.footer-bottom { width: 100%; max-width: 1280px; margin: 0 auto; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.footer-copy { font-family: 'DM Sans', sans-serif; font-size: 14px; color: rgba(255,255,255,0.45); margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-legal a { font-family: 'DM Sans', sans-serif; font-size: 14px; color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.15s ease; }
.footer-legal a:hover { color: rgba(255,255,255,0.85); }

@media (max-width: 900px) {
  .cta-inner { padding: 60px 6vw 30px; }
  .cta-glow-1 { width: 360px; height: 360px; }
  .cta-glow-2 { width: 320px; height: 320px; }
  .cta-body { font-size: 16px; }
  .cta-actions { flex-direction: column; gap: 12px; }
  .cta-primary, .cta-secondary { width: 100%; justify-content: center; }
  .cta-reassure { gap: 16px 20px; font-size: 13px; }
  .site-footer { padding: 32px 6vw 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-brand-col { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-legal { gap: 18px; }
  .cta-social-proof-wrap { padding: 0; }
  .cta-headline { font-size: 38px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
