/* ──────────────────────────────────────────────
   LUNOVA — Apple-inspired Non-Profit Website
   ────────────────────────────────────────────── */

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

:root {
  --bg: #ffffff;
  --surface: #f5f5f7;
  --surface-2: #e8e8ed;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --accent: #5f97e1;
  --accent-hover: #4a82cc;
  --white: #ffffff;
  --nav-h: 56px;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.14);
  --transition: 0.4s cubic-bezier(0.4,0,0.2,1);
  --transition-fast: 0.2s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; cursor: pointer; font-family: inherit; }

/* ── SCROLLBAR ─────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 3px; }

/* ── NAV ───────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(255,255,255,0.82);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

#navbar.scrolled {
  box-shadow: 0 1px 12px rgba(0,0,0,0.1);
}

.nav-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-placeholder {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon {
  color: #a8d8ea;
  font-size: 16px;
  line-height: 1;
}

.logo-wordmark {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-link.active { color: var(--text); background: var(--surface); }

/* ── PAGES ─────────────────────────────────── */
.page {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  padding-top: var(--nav-h);
}

.page.active {
  display: block;
}

.page.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── HERO ──────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: calc(var(--nav-h) * -1);
  padding-top: var(--nav-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero.loaded .hero-img { transform: scale(1); }

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.45) 50%,
    rgba(0,0,0,0.1) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  width: 100%;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -2px;
  color: #fff;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── PAGE HERO (short version) ─────────────── */
.page-hero {
  position: relative;
  height: 50vh;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 64px;
  overflow: hidden;
  margin-top: calc(var(--nav-h) * -1);
  padding-top: var(--nav-h);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  width: 100%;
}

.page-hero-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -1.5px;
  color: #fff;
  line-height: 1.05;
  margin-top: 8px;
}

/* ── BUTTONS ───────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(37,99,235,0.35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  color: #fff;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.35);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.28);
  transform: scale(1.03);
}

.btn-ghost-dark {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background: transparent;
  color: #fff;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 600;
  border: 1.5px solid rgba(255,255,255,0.5);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.btn-ghost-dark:hover {
  background: rgba(255,255,255,0.12);
  transform: scale(1.03);
}

/* ── SECTIONS ──────────────────────────────── */
.section {
  padding: 96px 0;
}

.alt-bg { background: var(--surface); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 48px;
}

.section-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 48px;
  text-align: center;
  line-height: 1.6;
}

/* ── MISSION STRIP ─────────────────────────── */
.mission-strip {
  background: var(--text);
  padding: 64px 0;
}

.mission-text {
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 400;
  font-style: italic;
  color: rgba(255,255,255,0.88);
  text-align: center;
  line-height: 1.5;
  letter-spacing: -0.3px;
}

/* ── CARDS ─────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card.clickable { cursor: pointer; }

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

.card.clickable:hover .card-overlay {
  opacity: 1;
}

.card-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.card-img-wrap img {
  transition: transform 0.6s ease;
}

.card.clickable:hover .card-img-wrap img {
  transform: scale(1.06);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.card-overlay span {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  padding: 8px 18px;
  border-radius: 980px;
  border: 1px solid rgba(255,255,255,0.35);
}

.card-body {
  padding: 24px;
}

.card-body h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.card-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── STATS ─────────────────────────────────── */
.stats-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat { padding: 24px; }

.stat-num {
  display: block;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ── CTA ───────────────────────────────────── */
.cta-section {
  padding: 100px 48px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 36px;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── TWO COLUMN ────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.col-text h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text);
}

.col-text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.col-text p em {
  color: var(--text);
  font-style: italic;
  font-weight: 500;
}

.col-img {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
}

.col-img img { transition: transform 0.6s ease; }
.col-img:hover img { transform: scale(1.04); }
.col-img:hover .card-overlay { opacity: 1; }

/* ── VALUES ────────────────────────────────── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.value-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.value-card:hover { transform: translateY(-4px); }

.value-icon {
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 16px;
}

.value-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}

.value-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── TEAM ──────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.team-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.team-card:hover .card-overlay { opacity: 1; }
.team-card:hover .team-img-wrap img { transform: scale(1.05); }

.team-img-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.team-img-wrap img { transition: transform 0.6s ease; }

.team-card h4 {
  font-size: 16px;
  font-weight: 600;
  padding: 16px 20px 4px;
}

.team-card p {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 0 20px 20px;
}

/* ── FEATURED PROJECT ──────────────────────── */
.featured-project {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.featured-project:hover { transform: translateY(-4px); box-shadow: 0 24px 64px rgba(0,0,0,0.18); }
.featured-project:hover .featured-img img { transform: scale(1.04); }

.featured-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.featured-img img { transition: transform 0.7s ease; }

.featured-badge {
  position: absolute;
  top: 20px; left: 20px;
  background: #22c55e;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 980px;
}

.featured-body {
  background: var(--bg);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
}

.featured-body h2 {
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.featured-body > p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--surface-2);
  border-bottom: 1px solid var(--surface-2);
}

.meta-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.meta-label {
  font-weight: 600;
  color: var(--text-secondary);
}

.status-dot {
  color: #22c55e;
  font-weight: 600;
}

.status-dot::before {
  content: '● ';
  font-size: 10px;
}

/* ── COMING SOON CARDS ─────────────────────── */
.coming-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.coming-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.coming-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.coming-img img { transition: transform 0.6s ease; }

.coming-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.coming-body { padding: 24px; }
.coming-body .tag { display: block; margin-bottom: 8px; }
.coming-body h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.coming-body p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ── FOOTER ────────────────────────────────── */
footer {
  background: var(--text);
  padding: 60px 0 40px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand .logo-wordmark {
  color: #fff;
  font-size: 20px;
}

.footer-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.5px;
}

.footer-nav {
  display: flex;
  gap: 24px;
  margin: 8px 0;
}

.footer-nav a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition-fast);
}

.footer-nav a:hover { color: rgba(255,255,255,0.9); }

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  margin-top: 16px;
}

/* ── SIDEBAR ───────────────────────────────── */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, background 0.35s ease;
}

.sidebar-overlay.open {
  opacity: 1;
  pointer-events: all;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
}

.sidebar {
  position: fixed;
  top: 0; right: 0;
  width: min(480px, 100vw);
  height: 100vh;
  background: var(--bg);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  box-shadow: -8px 0 48px rgba(0,0,0,0.15);
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-close {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 18px 28px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--surface-2);
  font-size: 18px;
  color: var(--text-secondary);
  cursor: pointer;
  justify-content: flex-end;
  transition: color var(--transition-fast);
  z-index: 1;
}

.sidebar-close:hover { color: var(--text); }

.sidebar-content {
  padding: 32px 36px 64px;
}

.sidebar-content .sb-img {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 28px;
}

.sidebar-content .sb-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.sidebar-content h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.sidebar-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}

.sidebar-content .sb-divider {
  height: 1px;
  background: var(--surface-2);
  margin: 24px 0;
}

.sidebar-content .sb-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-content .sb-meta-item {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.sidebar-content .sb-meta-label {
  font-weight: 600;
  color: var(--text-secondary);
}

/* ── SCROLL REVEAL ─────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger reveal children */
.cards-grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.cards-grid .reveal:nth-child(3) { transition-delay: 0.24s; }
.values-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.values-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.values-grid .reveal:nth-child(4) { transition-delay: 0.3s; }
.stats-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.stats-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.stats-grid .reveal:nth-child(4) { transition-delay: 0.3s; }
.team-grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.team-grid .reveal:nth-child(3) { transition-delay: 0.24s; }
.coming-grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.coming-grid .reveal:nth-child(3) { transition-delay: 0.24s; }

/* ── RESPONSIVE ────────────────────────────── */
@media (max-width: 900px) {
  .cards-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .featured-project { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .coming-grid { grid-template-columns: 1fr; }
  .container { padding: 0 24px; }
  .hero-content { padding: 0 24px; }
  .page-hero-content { padding: 0 24px; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .values-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 42px; }
  .section { padding: 64px 0; }
  .cta-section { padding: 72px 24px; }
}
