/* =========================================================
   Inuka For Community — Shared Design System
   Brand palette derived from logo
   ========================================================= */

:root {
  /* Brand (from logo) */
  --c-navy:        #1a3a8e;
  --c-navy-deep:   #0d2554;
  --c-navy-soft:   #eef2fb;
  --c-green:       #7cb342;
  --c-green-dark:  #5a8e2a;
  --c-green-soft:  #f0f7e6;
  --c-red:         #e53935;
  --c-red-dark:    #b71c1c;
  --c-red-soft:    #fdeaea;
  --c-gold:        #d4a637;

  /* Neutrals */
  --c-ink:         #0f172a;
  --c-ink-soft:    #1e293b;
  --c-muted:       #64748b;
  --c-line:        #e2e8f0;
  --c-bg:          #ffffff;
  --c-cream:       #faf7f2;
  --c-sand:        #f5efe6;

  /* Semantic */
  --c-accent:        var(--c-red);
  --c-accent-dark:   var(--c-red-dark);
  --c-accent-soft:   var(--c-red-soft);
  --c-primary:       var(--c-navy);
  --c-primary-dark:  var(--c-navy-deep);
  --c-primary-soft:  var(--c-navy-soft);

  /* Project-specific theme colours (used by project pages) */
  --c-leaf:        #2f6b4f;
  --c-leaf-dark:   #1f4d38;
  --c-leaf-soft:   #e8f0ec;
  --c-sport:       #1d4ed8;
  --c-sport-dark:  #1e3a8a;
  --c-sport-soft:  #e0e7ff;
  --c-pitch:       #65a30d;
  --c-pitch-soft:  #ecfccb;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px -8px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 24px 48px -16px rgba(15, 23, 42, 0.18);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --t-fast: 180ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-base: 320ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 600ms cubic-bezier(0.16, 1, 0.3, 1);

  --container: 1200px;
}

/* =========================================================
   Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px; line-height: 1.6;
  color: var(--c-ink); background: var(--c-bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

.h-display { font-family: 'Fraunces', Georgia, serif; font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 880px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-accent);
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--c-gold); }
.eyebrow--leaf { color: var(--c-leaf); }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  border-radius: var(--radius-pill);
  transition: all var(--t-base);
  white-space: nowrap; cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--c-accent); color: #fff; }
.btn-primary:hover { background: var(--c-accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-navy { background: var(--c-navy); color: #fff; }
.btn-navy:hover { background: var(--c-navy-deep); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { color: var(--c-ink); border-color: var(--c-line); background: #fff; }
.btn-ghost:hover { border-color: var(--c-ink); background: var(--c-ink); color: #fff; }
.btn-leaf { background: var(--c-leaf); color: #fff; }
.btn-leaf:hover { background: var(--c-leaf-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-sport { background: var(--c-sport); color: #fff; }
.btn-sport:hover { background: var(--c-sport-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,0.3); }
.btn-outline-light:hover { background: #fff; color: var(--c-ink); border-color: #fff; }
.btn .arrow { transition: transform var(--t-base); }
.btn:hover .arrow { transform: translateX(4px); }

/* =========================================================
   Top bar
   ========================================================= */
.topbar { background: var(--c-navy-deep); color: rgba(255,255,255,0.75); font-size: 13px; padding: 10px 0; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar-left { display: flex; gap: 24px; align-items: center; }
.topbar-left span { display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }

/* =========================================================
   Header & Logo
   ========================================================= */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: 80px; }

.logo { display: flex; align-items: center; gap: 12px; transition: opacity var(--t-fast); }
.logo:hover { opacity: 0.85; }
.logo-mark { width: 48px; height: 48px; flex-shrink: 0; display: grid; place-items: center; }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text .wordmark {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600; font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--c-navy-deep);
}
.logo-text .tagline {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c-muted);
  margin-top: 4px;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px; font-size: 14px; font-weight: 500;
  color: var(--c-ink-soft); border-radius: var(--radius-sm);
  transition: color var(--t-fast);
}
.nav a:hover { color: var(--c-accent); }
.nav a.active { color: var(--c-accent); }
.nav .has-sub { position: relative; }
.nav .has-sub > a::after { content: '▾'; font-size: 10px; margin-left: 4px; opacity: 0.6; }
.nav .sub { position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-md); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all var(--t-base); box-shadow: var(--shadow-md); }
.nav .has-sub:hover .sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav .sub a { display: block; padding: 10px 12px; font-size: 14px; }
.header-cta { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--c-line); align-items: center; justify-content: center; }
.menu-toggle span { display: block; width: 18px; height: 1.5px; background: var(--c-ink); position: relative; }
.menu-toggle span::before, .menu-toggle span::after { content: ''; position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--c-ink); }
.menu-toggle span::before { top: -6px; } .menu-toggle span::after { top: 6px; }

/* =========================================================
   Breadcrumb
   ========================================================= */
.breadcrumb { padding: 16px 0; background: var(--c-cream); border-bottom: 1px solid var(--c-line); font-size: 13px; color: var(--c-muted); }
.breadcrumb ol { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li:not(:last-child)::after { content: '/'; opacity: 0.4; }
.breadcrumb a { color: var(--c-ink); }
.breadcrumb a:hover { color: var(--c-accent); }
.breadcrumb [aria-current="page"] { color: var(--c-muted); }

/* =========================================================
   Section primitives
   ========================================================= */
.section { padding: 100px 0; }
.section--cream { background: var(--c-cream); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 56px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(2rem, 3.5vw, 3rem); max-width: 720px; margin-top: 14px; }
.section-head h2 em { font-style: italic; color: var(--c-accent); }
.section-head p { max-width: 380px; color: var(--c-muted); font-size: 15px; }

.prose p { color: var(--c-muted); font-size: 17px; line-height: 1.75; margin-bottom: 20px; max-width: 720px; }
.prose p strong { color: var(--c-ink); }
.prose h3 { font-family: 'Fraunces', serif; font-size: 24px; font-weight: 500; margin: 40px 0 16px; letter-spacing: -0.01em; }
.prose h2 { font-family: 'Fraunces', serif; font-size: 32px; font-weight: 500; margin: 56px 0 24px; letter-spacing: -0.01em; }
.prose h2::before { content: ''; display: block; width: 40px; height: 2px; background: var(--c-leaf); margin-bottom: 24px; }

/* =========================================================
   Filters
   ========================================================= */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-pill {
  padding: 8px 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--c-line);
  font-size: 13px; font-weight: 500;
  color: var(--c-ink-soft);
  transition: all var(--t-fast);
  background: #fff;
  cursor: pointer;
}
.filter-pill:hover { border-color: var(--c-ink); }
.filter-pill.active { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }

/* =========================================================
   Team grid
   ========================================================= */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card {
  position: relative; background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--t-base);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.team-photo { aspect-ratio: 4/5; background: var(--c-sand); position: relative; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow), filter var(--t-slow); filter: grayscale(0.2) contrast(1.05); }
.team-card:hover .team-photo img { transform: scale(1.05); filter: grayscale(0) contrast(1.05); }
.team-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(15, 23, 42, 0.4)); opacity: 0; transition: opacity var(--t-base); }
.team-card:hover .team-photo::after { opacity: 1; }
.team-social { position: absolute; bottom: 16px; left: 16px; right: 16px; display: flex; gap: 8px; z-index: 2; opacity: 0; transform: translateY(8px); transition: all var(--t-base); }
.team-card:hover .team-social { opacity: 1; transform: translateY(0); }
.team-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.95); display: grid; place-items: center; color: var(--c-ink); transition: all var(--t-fast); }
.team-social a:hover { background: var(--c-accent); color: #fff; }
.team-social svg { width: 14px; height: 14px; }
.team-info { padding: 24px; }
.team-info h3 { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 6px; }
.team-role { font-size: 13px; font-weight: 600; color: var(--c-accent); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 12px; }
.team-bio { font-size: 14px; color: var(--c-muted); line-height: 1.55; }
.team-card--lead { grid-column: span 2; grid-row: span 2; }
.team-card--lead .team-photo { aspect-ratio: 4/3; }
.team-card--lead .team-info { padding: 32px; }
.team-card--lead .team-info h3 { font-size: 28px; }
.team-card--lead .team-info .team-role { font-size: 14px; }
.team-card--lead .team-bio { font-size: 15px; max-width: 540px; }

/* =========================================================
   Values list (for Team page values section)
   ========================================================= */
.value-item {
  display: grid; grid-template-columns: 80px 1fr auto;
  gap: 32px; align-items: start;
  padding: 28px 0;
  border-top: 1px solid var(--c-line);
  transition: all var(--t-base);
}
.value-item:last-child { border-bottom: 1px solid var(--c-line); }
.value-num { font-family: 'Fraunces', serif; font-size: 32px; font-weight: 500; color: var(--c-accent); letter-spacing: -0.02em; }
.value-body h3 { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 500; margin-bottom: 8px; letter-spacing: -0.01em; }
.value-body p { color: var(--c-muted); font-size: 15px; line-height: 1.6; max-width: 640px; }
.value-arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--c-line); display: grid; place-items: center; color: var(--c-muted); transition: all var(--t-base); align-self: center; }
.value-item:hover .value-arrow { background: var(--c-ink); color: #fff; border-color: var(--c-ink); transform: rotate(-45deg); }
.value-item:hover { padding-left: 8px; }

/* =========================================================
   About split (used on Team + Home pages)
   ========================================================= */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: center; }
.about-visual { position: relative; aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; background: var(--c-sand); }
.about-visual img { width: 100%; height: 100%; object-fit: cover; }
.about-text h2 { font-size: clamp(2.25rem, 4vw, 3.5rem); margin-bottom: 24px; }
.about-text h2 em { color: var(--c-accent); font-style: italic; }
.about-text p { color: var(--c-muted); font-size: 17px; line-height: 1.7; margin-bottom: 32px; }
.about-meta { display: flex; gap: 40px; padding-top: 32px; border-top: 1px solid var(--c-line); margin-bottom: 36px; }
.about-meta-item { display: flex; flex-direction: column; }
.about-meta-item strong { font-family: 'Fraunces', serif; font-size: 32px; font-weight: 500; color: var(--c-ink); letter-spacing: -0.02em; }
.about-meta-item span { font-size: 13px; color: var(--c-muted); margin-top: 4px; }

/* =========================================================
   CTA
   ========================================================= */
.cta { padding: 100px 0; background: var(--c-cream); }
.cta-card {
  background: var(--c-navy-deep);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 72px;
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 48px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-card::before { content: ''; position: absolute; bottom: -80px; right: -80px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(229, 57, 53, 0.4), transparent 70%); pointer-events: none; }
.cta-card h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); margin-bottom: 16px; }
.cta-card h2 em { color: var(--c-gold); font-style: italic; }
.cta-card p { color: rgba(255, 255, 255, 0.7); font-size: 16px; max-width: 480px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; position: relative; }

/* =========================================================
   Footer
   ========================================================= */
.footer { background: var(--c-navy-deep); color: rgba(255, 255, 255, 0.7); padding: 80px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-brand p { margin-top: 20px; max-width: 320px; font-size: 14px; line-height: 1.6; }
.footer-social { display: flex; gap: 8px; margin-top: 24px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.15); display: grid; place-items: center; transition: all var(--t-fast); }
.footer-social a:hover { background: #fff; color: var(--c-navy-deep); border-color: #fff; transform: translateY(-2px); }
.footer-social svg { width: 14px; height: 14px; }
.footer h4 { color: #fff; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 20px; }
.footer ul { display: flex; flex-direction: column; gap: 12px; }
.footer ul a { font-size: 14px; transition: color var(--t-fast); }
.footer ul a:hover { color: #fff; }
.footer-bottom { padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, 0.1); display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 13px; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255, 255, 255, 0.7); }
.footer-bottom a:hover { color: #fff; }
/* .footer .logo-mark img { filter: brightness(0) invert(1); } */
.footer .logo-text .wordmark { color: #fff; }
.footer .logo-text .tagline { color: rgba(255,255,255,0.6); }

/* =========================================================
   Animations
   ========================================================= */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .header-cta .btn-ghost { display: none; }
  .topbar-left { gap: 14px; font-size: 12px; }
  .logo-text .wordmark { font-size: 17px; }
  .logo-text .tagline { display: none; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .team-card--lead { grid-column: span 3; grid-row: auto; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .cta-card { grid-template-columns: 1fr; padding: 48px 32px; gap: 40px; }
  .cta-actions { justify-content: flex-start; }
  .section { padding: 72px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 768px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .team-card--lead { grid-column: span 2; }
  .team-info { padding: 20px; }
  .team-card--lead .team-info { padding: 24px; }
  .team-card--lead .team-info h3 { font-size: 22px; }
  .value-item { grid-template-columns: 60px 1fr; gap: 16px; }
  .value-arrow { display: none; }
  .about-meta { flex-wrap: wrap; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-card--lead { grid-column: span 1; }
  .logo-text { display: none; }
}
