/* ============================================================
   KARWAAN FOUNDATION — DESIGN TOKENS

   Palette
   --ink:      #16150F  deep warm black, near-black text/bg
   --paper:    #F6F2E9  warm paper background
   --sand:     #EAE3D2  card / raised surface
   --sand-2:   #DDD3BA  border / hairline on paper
   --gold:     #A6702E  warm ochre — primary accent (movement, CTA)
   --forest:   #3E4A38  deep olive-green — secondary accent (growth)
   --ink-soft: #4A4842  muted body text on paper

   Type
   Display: 'Fraunces' — editorial serif, used for large statements
   Body/UI: 'Public Sans' — clean grotesque, used for everything else
   ============================================================ */

:root {
  --ink: #16150F;
  --ink-soft: #4A4842;
  --paper: #F6F2E9;
  --sand: #EAE3D2;
  --sand-2: #DDD3BA;
  --gold: #A6702E;
  --gold-dark: #7E5322;
  --forest: #3E4A38;
  --cream: #FBF9F4;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1220px;
  --gutter: clamp(24px, 5vw, 72px);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; background: none; border: none; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ============================================================
   SHARED LAYOUT / TYPE UTILITIES
   ============================================================ */
.section { padding: clamp(88px, 12vw, 156px) 0; }
.section__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.kicker {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold-dark);
  margin: 0 0 20px;
  padding-left: 22px;
  position: relative;
}
.kicker::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 1px;
  background: var(--gold-dark);
  transform: translateY(-50%);
}
.kicker--light { color: rgba(246,242,233,0.75); }
.kicker--light::before { background: rgba(246,242,233,0.6); }

.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: 14ch;
}

.statement {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  max-width: 20ch;
}
.statement--md { font-size: clamp(26px, 3.2vw, 38px); max-width: 18ch; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 3px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}
.btn--primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--sand-2);
}
.btn--ghost:hover { border-color: var(--ink); }
.btn--lg { padding: 18px 38px; font-size: 16px; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px var(--gutter);
  transition: background 0.3s var(--ease), padding 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(246, 242, 233, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 14px var(--gutter);
  border-bottom-color: var(--sand-2);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav__logo {
  height: 52px;
  width: 52px;
  object-fit: contain;
}
.nav__brand-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.nav__links {
  display: flex;
  gap: 34px;
  margin: 0 auto;
}
.nav__links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.25s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

.nav__cta {
  flex-shrink: 0;
  padding: 10px 20px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.25s, color 0.25s;
}
.nav__cta:hover { background: var(--ink); color: var(--paper); }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.nav__toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu panel */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px var(--gutter);
  transform: translateY(-100%);
  transition: transform 0.45s var(--ease);
  visibility: hidden;
}
.mobile-menu.is-open {
  transform: translateY(0);
  visibility: visible;
}
.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mobile-menu__links a {
  font-family: var(--font-display);
  font-size: clamp(32px, 9vw, 44px);
  padding: 12px 0;
  border-bottom: 1px solid var(--sand-2);
  color: var(--ink);
}
.mobile-menu__cta {
  margin-top: 36px;
  align-self: flex-start;
  padding: 16px 30px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 3px;
  font-weight: 600;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px var(--gutter) 100px;
  overflow: hidden;
  isolation: isolate;
}
.hero__texture {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 82% 12%, rgba(166,112,46,0.10), transparent 45%),
    radial-gradient(circle at 8% 85%, rgba(62,74,56,0.08), transparent 45%);
}
.hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}
.hero__eyebrow-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.hero__line {
  width: 46px;
  height: 1px;
  background: var(--gold-dark);
  display: inline-block;
}
.hero__eyebrow {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-dark);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(64px, 12vw, 148px);
  line-height: 0.94;
  letter-spacing: -0.02em;
  margin-bottom: 56px;
}
.hero__title-line { display: block; }
.hero__title-line--accent { color: var(--gold-dark); font-style: italic; }

.hero__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  border-top: 1px solid var(--sand-2);
  padding-top: 40px;
}
.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.4;
  font-style: italic;
  color: var(--ink-soft);
}
.hero__copy p {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 28px;
}
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__mark {
  position: absolute;
  right: clamp(-60px, 3vw, 50px);
  bottom: clamp(-60px, 2vw, -10px);
  width: clamp(240px, 30vw, 460px);
  opacity: 0.9;
  z-index: -1;
  pointer-events: none;
}
.hero__mark-img {
  width: 100%;
  filter: opacity(0.07);
}

.scroll-cue {
  position: absolute;
  left: var(--gutter);
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}
.scroll-cue__line {
  width: 1px;
  height: 34px;
  background: var(--sand-2);
  position: relative;
  overflow: hidden;
}
.scroll-cue__line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gold);
  animation: scrollcue 2.2s ease-in-out infinite;
}
@keyframes scrollcue {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}
.about__head { position: sticky; top: 120px; align-self: start; }
.about__body p {
  color: var(--ink-soft);
  font-size: 17.5px;
  max-width: 56ch;
  margin-bottom: 24px;
}
.about__body p:last-child { margin-bottom: 0; }

/* ============================================================
   MISSION (dark, high-contrast statement block)
   ============================================================ */
.mission {
  background: var(--ink);
  color: var(--cream);
  text-align: left;
}
.mission__statement {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 15ch;
  margin-bottom: 40px;
}
.mission__body {
  font-size: 18px;
  color: rgba(246,242,233,0.72);
  max-width: 54ch;
  line-height: 1.7;
}

/* ============================================================
   VISION
   ============================================================ */
.vision__grid {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 48px;
  align-items: start;
  border-top: 1px solid var(--sand-2);
  padding-top: 48px;
}
.vision__content p {
  color: var(--ink-soft);
  font-size: 17.5px;
  max-width: 58ch;
  margin-top: 26px;
}

/* ============================================================
   IMPACT AREAS
   ============================================================ */
.impact__intro {
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 52ch;
  margin-top: 22px;
}
.impact__list {
  max-width: var(--container);
  margin: 64px auto 0;
  padding: 0 var(--gutter);
  border-top: 1px solid var(--sand-2);
}
.impact__item {
  display: grid;
  grid-template-columns: 90px 1fr 1.4fr;
  gap: 32px;
  align-items: baseline;
  padding: 34px 0;
  border-bottom: 1px solid var(--sand-2);
  transition: padding-left 0.3s var(--ease);
}
.impact__item:hover { padding-left: 10px; }
.impact__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--gold-dark);
}
.impact__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.01em;
}
.impact__desc {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 48ch;
}

/* ============================================================
   MOVEMENT ("The Karwaan") — cinematic dark section
   ============================================================ */
.movement {
  background: var(--forest);
  color: var(--cream);
  padding: clamp(100px, 14vw, 180px) var(--gutter);
  position: relative;
  overflow: hidden;
}
.movement__inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.movement__pre {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(246,242,233,0.68);
  margin-bottom: 14px;
}
.movement__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(36px, 5.4vw, 60px);
  margin-bottom: 34px;
}
.movement__body {
  font-size: 18px;
  line-height: 1.75;
  color: rgba(246,242,233,0.78);
  max-width: 58ch;
  margin: 0 auto;
}
.movement__word {
  font-family: var(--font-display);
  font-size: clamp(90px, 20vw, 260px);
  line-height: 1;
  color: rgba(246,242,233,0.06);
  font-weight: 600;
  margin-top: clamp(20px, 4vw, 40px);
  user-select: none;
}

/* ============================================================
   TEAM
   ============================================================ */
.team__grid {
  max-width: var(--container);
  margin: 60px auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--sand-2);
  border: 1px solid var(--sand-2);
}
.team__card {
  background: var(--paper);
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.team__portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--sand);
  border: 1px solid var(--sand-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
}
.team__initial {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 42px;
  color: var(--gold-dark);
  opacity: 0.6;
}
.team__name {
  font-family: var(--font-display);
  font-size: 23px;
  margin-bottom: 4px;
}
.team__role {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.team__social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-dark);
  padding-top: 14px;
  margin-top: auto;
  border-top: 1px solid var(--sand-2);
  width: 100%;
}
.icon-ig { width: 17px; height: 17px; fill: currentColor; flex-shrink: 0; }

/* ============================================================
   VOLUNTEER CTA (bold moment)
   ============================================================ */
.volunteer-cta {
  background: var(--gold-dark);
  color: var(--cream);
  padding: clamp(90px, 12vw, 140px) var(--gutter);
  text-align: center;
}
.volunteer-cta__inner { max-width: 720px; margin: 0 auto; }
.volunteer-cta__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 56px);
  margin-bottom: 22px;
}
.volunteer-cta__body {
  font-size: 18px;
  color: rgba(251,249,244,0.85);
  margin-bottom: 38px;
}
.volunteer-cta .btn--primary {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}
.volunteer-cta .btn--primary:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

/* ============================================================
   VOLUNTEER FORM
   ============================================================ */
.volunteer__intro {
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 48ch;
  margin-top: 20px;
}
.volunteer__form-wrap {
  max-width: 760px;
  margin: 56px auto 0;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.volunteer__form-frame {
  width: 100%;
  background: var(--cream);
  border: 1px solid var(--sand-2);
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 24px 60px -30px rgba(22,21,15,0.25);
}
.volunteer__form-frame iframe {
  width: 100%;
  height: 900px;
  border: none;
  border-radius: 5px;
  display: block;
}

/* ============================================================
   LAUNCH
   ============================================================ */
.launch {
  padding: clamp(90px, 12vw, 150px) var(--gutter);
  text-align: center;
  border-top: 1px solid var(--sand-2);
  border-bottom: 1px solid var(--sand-2);
}
.launch__pre {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-dark);
  margin-bottom: 18px;
}
.launch__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 68px);
  margin-bottom: 16px;
}
.launch__date {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  color: var(--ink-soft);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--sand); }
.contact__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.contact__links {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.contact__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--sand-2);
  transition: gap 0.25s var(--ease);
}
.contact__link:hover { gap: 20px; }
.contact__link-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}
.contact__link-handle {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--gold-dark);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 72px var(--gutter) 28px;
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(246,242,233,0.14);
}
.footer__name {
  font-family: var(--font-display);
  font-size: 26px;
  margin-bottom: 10px;
}
.footer__tagline {
  font-size: 14.5px;
  color: rgba(246,242,233,0.6);
  font-style: italic;
  font-family: var(--font-display);
}
.footer__cols {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 220px;
}
.footer__col-title {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(246,242,233,0.5);
  margin-bottom: 16px;
}
.footer__col p, .footer__col a {
  display: block;
  font-size: 14.5px;
  color: rgba(246,242,233,0.82);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--gold); }
.footer__bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 24px;
}
.footer__bottom p {
  font-size: 13px;
  color: rgba(246,242,233,0.45);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }

  .hero__row { grid-template-columns: 1fr; gap: 32px; }
  .about__grid { grid-template-columns: 1fr; gap: 32px; }
  .about__head { position: static; }
  .vision__grid { grid-template-columns: 1fr; }
  .impact__item { grid-template-columns: 50px 1fr; }
  .impact__desc { grid-column: 2 / -1; margin-top: 8px; }
  .team__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 600px) {
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 120px; }
  .hero__title { margin-bottom: 40px; }
  .volunteer__form-frame iframe { height: 760px; }
}
