@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@600;700;800&display=swap');

/* === Color system (mirrors graphics/index.css) === */
:root {
  --color-primary: #4f46e5;
  --color-primary-hover: #4338ca;
  --color-primary-light: #6366f1;
  --color-primary-tint: #eef2ff;

  --color-secondary: #0d9488;
  --color-secondary-hover: #0f766e;
  --color-secondary-light: #14b8a6;

  --color-accent: #f59e0b;
  --color-accent-hover: #d97706;

  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-border: #cbd5e1;

  --color-text-light: #e2e8f0;
  --color-text-light-muted: #94a3b8;

  --color-bg-white: #ffffff;
  --color-bg-dark: #0f172a;
  --color-bg-dark-alt: #1e293b;
  --color-bg-darkest: #0b1120;

  --nav-height: 78px;
}

/* === Global Resets & Base === */
html { scroll-behavior: smooth; }

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

body {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  padding: 0 20px 40px;
  background: var(--color-bg-dark);
  color: var(--color-text-light);
}

h1, h2, h3,
.brand, .footer-brand,
.section-title, .faq-heading {
  font-family: 'Space Grotesk', sans-serif;
}

html, body { overflow-x: hidden; }
body.has-topbar { padding-top: 40px; }

.logo { max-width: 200px; margin: 0 auto 40px; display: block; }
.container { max-width: 1200px; margin: 0 auto; }
.header { display: contents; }

h1 { font-size: 3rem; font-weight: 800; color: var(--color-text-light); }
.subtitle {
  font-size: 1.25rem; color: var(--color-text-light-muted); margin-top: -30px; margin-bottom: 40px;
  text-align: left; font-weight: 400;
}

.star-icon {
  width: 80px; height: 80px; background: var(--color-primary);
  border-radius: 15px; display: flex; align-items: center; justify-content: center;
  font-size: 40px; color: #fff; flex-shrink: 0;
}

@media (max-width: 768px){
  h1 { font-size: 2.5rem; }
  .star-icon { width: 60px; height: 60px; font-size: 30px; }
}

/* === Navbar (dark, non-sticky, full-width look with scrollbar-safe bleed) === */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent;
  border-bottom: none;
  padding: 20px 20px;
}
.nav-inner { max-width: 1600px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-left, .nav-right { display: flex; align-items: center; gap: 22px; }

/* brand */
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-weight: 700; font-size: 1.625rem; color: var(--color-text-light);
}
.brand-logo { width: 100px; height: 32px; object-fit: contain; border-radius: 8px; display: inline-block; vertical-align: middle; }

/* links */
.nav-links { list-style: none; display: flex; gap: 18px; }
.nav-links a { text-decoration: none; color: var(--color-text-light); font-weight: 700; padding: 8px 6px; border-radius: 8px; transition: background-color .2s ease, color .2s ease; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.08); }

/* calls to action */
.btn-signup {
  text-decoration: none; font-weight: 700; padding: 10px 16px; border-radius: 8px;
  background-color: var(--color-primary); color: #fff; transition: opacity .15s ease, transform .15s ease, background-color .15s ease;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-signup:hover { opacity: .9; transform: translateY(-1px); background-color: var(--color-primary-hover); }

/* hamburger */
.hamburger { display: none; width: 42px; height: 42px; border: none; background: transparent; padding: 8px; border-radius: 8px; }
.hamburger .bar { display: block; height: 2px; margin: 6px 0; background: var(--color-text-light); width: 100%; border-radius: 2px; }

/* mobile drawer */
.drawer { display: none; border-top: 1px solid rgba(255,255,255,0.08); padding: 12px 20px 18px; }
.site-nav.open .drawer { display: block; }
.drawer-links { list-style: none; font-weight: 700; display: grid; gap: 6px; margin-bottom: 10px; }
.drawer-links a { display: block; padding: 10px 8px; border-radius: 8px; text-decoration: none; color: var(--color-text-light-muted); transition: background-color .2s ease, color .2s ease; }
.drawer-links a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.drawer-cta { width: max-content; }

@media (max-width: 768px){
  .nav-links { display: none; }
  .hamburger { display: inline-block; }
  .nav-right > .btn-signup { display: none; }
}

/* Bleed full-width sections safely */
.site-footer {
  width: auto;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}
.site-footer { margin-top: 60px; margin-bottom: -40px; }

/* === FAQ === */
.faq { --faq-accent: var(--color-accent); max-width: 900px; margin: calc(var(--nav-height) + 40px) auto 20px; }
.faq-heading { color: var(--faq-accent); display: inline-flex; align-items: center; gap: 10px; font-size: 3rem; font-weight: 800; letter-spacing: .5px; margin-bottom: 18px; }
.faq-heading .fi { line-height: 1; font-size: 1em; color: var(--faq-accent); }
.faq-list { background: transparent; }
.faq-item { padding: 18px 0 22px; border-top: 1px solid rgba(255,255,255,0.1); }
.faq-item:first-of-type { border-top: none; padding-top: 8px; }
.faq-q { border-left: 4px solid var(--faq-accent); padding-left: 12px; font-weight: 700; font-size: 1.25rem; color: var(--color-text-light); margin-bottom: 8px; }
.faq-a { color: var(--color-text-light-muted); line-height: 1.7; }
.inline-link { color: var(--color-primary-light); text-decoration: underline; text-underline-offset: 2px; }
.inline-link:hover { opacity: .9; }

/* === Footer (deepest, dark contrast section) === */
.site-footer { background: var(--color-bg-darkest); border-top: 1px solid rgba(255,255,255,0.06); box-shadow: 0 -8px 30px rgba(0,0,0,0.2); padding: 16px 20px; }
.site-footer.is-visible { display: block; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 16px 20px; display: flex; align-items: flex-start; gap: 36px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: #f8fafc; white-space: nowrap; text-decoration: none; }
.footer-logo { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; }
.footer-title { font-weight: 750; letter-spacing: .5px; }
.footer-columns { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 28px; }
.footer-col h4 { font-size: .95rem; font-weight: 700; color: #f8fafc; margin-bottom: 10px; }
.footer-col a { display: block; text-decoration: none; color: #94a3b8; margin: 8px 0; transition: color .2s ease; }
.footer-col a:hover { color: #f8fafc; }
.footer-note { color: #94a3b8; line-height: 1.5; }
.footer-socials { display: flex; gap: 14px; align-items: center; }
.footer-socials .fi { font-size: 22px; line-height: 1; color: #94a3b8; display: block; transition: color .2s ease; }
.footer-socials a:hover .fi { color: #fff; }

@media (max-width: 768px){
  .footer-inner { flex-direction: column; gap: 16px; }
  .footer-columns { grid-template-columns: 1fr 1fr; gap: 16px; }
}



/* === Unified section headers (icon above title) === */
.section-header { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.section-icon {
  width: 80px; height: 80px; border-radius: 15px; display: flex; align-items: center; justify-content: center;
  font-size: 40px; color: #fff; background: var(--color-primary);
}
.section-icon .fi { color: #fff; line-height: 1; }
.about-icon { background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-hover)); }
.officers-icon { background: var(--color-primary); }
.faq-icon { background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover)); }
.section-title { font-size: 3rem; font-weight: 800; color: var(--color-text-light); letter-spacing: .5px; }
.section-subtitle { font-size: 1.125rem; color: var(--color-text-light-muted); margin-top: -4px; margin-bottom: 28px; text-align: center; font-weight: 400; }

@media (max-width: 768px){
  .section-icon { width: 60px; height: 60px; font-size: 30px; }
  .section-title { font-size: 2.5rem; }
}

/* === Scroll-reveal transitions (replays every time an element crosses into view) === */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.16,.8,.3,1), transform .7s cubic-bezier(.16,.8,.3,1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Staggered cascade for grouped items */
.gallery-grid .reveal:nth-child(2), .reviews-grid .reveal:nth-child(2), .members-grid .reveal:nth-child(2) { transition-delay: .08s; }
.gallery-grid .reveal:nth-child(3), .reviews-grid .reveal:nth-child(3), .members-grid .reveal:nth-child(3) { transition-delay: .16s; }
.gallery-grid .reveal:nth-child(4), .reviews-grid .reveal:nth-child(4), .members-grid .reveal:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
