/* ═══════════════════════════════════════════
   Sēkwel Design System
   Palette: Deep charcoal + warm cream + amber gold
   Tone: Grounded, empowering, hopeful
   ═══════════════════════════════════════════ */

/* --- Type Scale --- */
:root {
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* --- Spacing --- */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* --- Radius --- */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* --- Transitions --- */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* --- Content widths --- */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* --- Fonts --- */
  --font-display: 'Zodiak', 'Georgia', serif;
  --font-body: 'Work Sans', 'Helvetica Neue', sans-serif;
}

/* ═══════════════════════════════════════════
   Light Mode (default)
   ═══════════════════════════════════════════ */
:root, [data-theme="light"] {
  --color-bg:             #faf8f5;
  --color-surface:        #ffffff;
  --color-surface-2:      #f5f2ed;
  --color-surface-offset: #efe9e0;
  --color-divider:        #e0d8cc;
  --color-border:         #d4c9b8;

  --color-text:           #1a1814;
  --color-text-muted:     #6b6256;
  --color-text-faint:     #a39888;
  --color-text-inverse:   #faf8f5;

  --color-primary:        #c8820a;
  --color-primary-hover:  #a66a05;
  --color-primary-active: #8a5704;
  --color-primary-highlight: #f5e6c8;

  --color-dark:           #1a1814;
  --color-dark-surface:   #2a2620;

  --shadow-sm: 0 1px 2px rgba(26, 24, 20, 0.06);
  --shadow-md: 0 4px 12px rgba(26, 24, 20, 0.08);
  --shadow-lg: 0 12px 32px rgba(26, 24, 20, 0.12);
}

/* ═══════════════════════════════════════════
   Dark Mode
   ═══════════════════════════════════════════ */
[data-theme="dark"] {
  --color-bg:             #121110;
  --color-surface:        #1a1814;
  --color-surface-2:      #22201b;
  --color-surface-offset: #2a2620;
  --color-divider:        #3a3530;
  --color-border:         #4a443c;

  --color-text:           #e8e2d8;
  --color-text-muted:     #9a9080;
  --color-text-faint:     #6a6258;
  --color-text-inverse:   #1a1814;

  --color-primary:        #daa24a;
  --color-primary-hover:  #c8920a;
  --color-primary-active: #b88208;
  --color-primary-highlight: #3a3020;

  --color-dark:           #e8e2d8;
  --color-dark-surface:   #1a1814;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:             #121110;
    --color-surface:        #1a1814;
    --color-surface-2:      #22201b;
    --color-surface-offset: #2a2620;
    --color-divider:        #3a3530;
    --color-border:         #4a443c;
    --color-text:           #e8e2d8;
    --color-text-muted:     #9a9080;
    --color-text-faint:     #6a6258;
    --color-text-inverse:   #1a1814;
    --color-primary:        #daa24a;
    --color-primary-hover:  #c8920a;
    --color-primary-active: #b88208;
    --color-primary-highlight: #3a3020;
    --color-dark:           #e8e2d8;
    --color-dark-surface:   #1a1814;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
  }
}

/* ═══════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════ */
.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--narrow {
  max-width: var(--content-default);
}

/* ═══════════════════════════════════════════
   HEADER / NAV
   ═══════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: var(--space-5) 0;
  background: linear-gradient(to bottom, rgba(18, 17, 16, 0.7) 0%, rgba(18, 17, 16, 0) 100%);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.header--scrolled {
  background: color-mix(in oklab, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: #f0ece4;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.header--scrolled .header__logo {
  color: var(--color-text);
}

.header__logo span {
  font-weight: 300;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.header__link {
  font-size: var(--text-sm);
  color: rgba(240, 236, 228, 0.85);
  text-decoration: none;
  font-weight: 450;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.header__link:hover {
  color: #fff;
}

.header--scrolled .header__link {
  color: var(--color-text-muted);
}

.header--scrolled .header__link:hover {
  color: var(--color-text);
}

.header__cta {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-inverse);
  background: var(--color-primary);
  padding: var(--space-2) var(--space-6);
  border-radius: var(--radius-full);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.header__cta:hover {
  background: var(--color-primary-hover);
}

.theme-toggle {
  color: rgba(240, 236, 228, 0.85);
  padding: var(--space-2);
  display: flex;
  align-items: center;
}

.theme-toggle:hover {
  color: #fff;
}

.header--scrolled .theme-toggle {
  color: var(--color-text-muted);
}

.header--scrolled .theme-toggle:hover {
  color: var(--color-text);
}

/* Mobile nav */
.mobile-toggle {
  display: none;
  color: var(--color-text);
  padding: var(--space-2);
}

@media (max-width: 768px) {
  .mobile-toggle { display: flex; align-items: center; }
  .header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: var(--space-6);
    gap: var(--space-4);
    border-bottom: 1px solid var(--color-divider);
  }
  .header__nav.is-open { display: flex; }
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  will-change: transform;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(18, 17, 16, 0.88) 0%,
    rgba(18, 17, 16, 0.7) 50%,
    rgba(18, 17, 16, 0.3) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding-top: var(--space-32);
  padding-bottom: var(--space-16);
}

.hero__tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-6);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.3s ease forwards;
}

[data-theme="dark"] .hero__tag,
:root:not([data-theme]) .hero__tag {
  color: var(--color-primary);
}

.hero__heading {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 500;
  color: #f0ece4;
  line-height: 1.08;
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s 0.5s ease forwards;
}

.hero__sub {
  font-size: var(--text-base);
  color: #c4bfb4;
  line-height: 1.7;
  margin-bottom: var(--space-10);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.7s ease forwards;
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.9s ease forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-full);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-primary-hover);
}

.btn--outline {
  border: 1.5px solid rgba(240, 236, 228, 0.35);
  color: #f0ece4;
}

.btn--outline:hover {
  border-color: rgba(240, 236, 228, 0.6);
  background: rgba(240, 236, 228, 0.08);
}

/* Non-hero outline button for light sections */
.btn--outline-dark {
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
}

.btn--outline-dark:hover {
  border-color: var(--color-text-muted);
  background: var(--color-surface-2);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════════
   STAT STRIP
   ═══════════════════════════════════════════ */
.stats {
  background: var(--color-surface-2);
  padding: var(--space-12) 0;
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  text-align: center;
}

.stats__number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stats__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 400;
}

@media (max-width: 640px) {
  .stats__grid { grid-template-columns: 1fr; gap: var(--space-6); }
}

/* ═══════════════════════════════════════════
   SECTION COMMON
   ═══════════════════════════════════════════ */
.section {
  padding: clamp(var(--space-16), 8vw, var(--space-32)) 0;
}

.section__tag {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.section__heading {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  letter-spacing: -0.01em;
}

.section__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 60ch;
}

/* ═══════════════════════════════════════════
   MISSION SECTION (two-column)
   ═══════════════════════════════════════════ */
.mission__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.mission__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}

.mission__image img {
  width: 100%;
  height: 130%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
}

.mission__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

@media (max-width: 768px) {
  .mission__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* ═══════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════ */
.how {
  background: var(--color-surface-2);
}

.how__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.how__card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.how__step-num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1;
}

.how__card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
}

.how__card-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .how__grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   FULL-BLEED IMAGE DIVIDER
   ═══════════════════════════════════════════ */
.divider-image {
  width: 100%;
  height: 420px;
  overflow: hidden;
  position: relative;
}

.divider-image img {
  width: 100%;
  height: 140%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
}

/* ═══════════════════════════════════════════
   WHO WE SERVE (icon cards)
   ═══════════════════════════════════════════ */
.serve__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.serve__card {
  display: flex;
  gap: var(--space-6);
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
}

.serve__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--color-primary-highlight);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.serve__card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.serve__card-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

@media (max-width: 640px) {
  .serve__grid { grid-template-columns: 1fr; }
  .serve__card { flex-direction: column; gap: var(--space-4); }
}

/* ═══════════════════════════════════════════
   VOLUNTEER CTA (dark)
   ═══════════════════════════════════════════ */
.cta-section {
  background: var(--color-dark);
  color: var(--color-text-inverse);
  padding: clamp(var(--space-16), 8vw, var(--space-32)) 0;
  text-align: center;
}

[data-theme="dark"] .cta-section {
  background: var(--color-surface-offset);
  color: var(--color-text);
}

.cta-section .section__tag {
  color: var(--color-primary);
}

[data-theme="dark"] .cta-section .section__tag {
  color: var(--color-primary);
}

.cta-section .section__heading {
  color: inherit;
  max-width: 18ch;
  margin-inline: auto;
}

.cta-section .section__desc {
  color: rgba(250, 248, 245, 0.7);
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: var(--space-10);
}

[data-theme="dark"] .cta-section .section__desc {
  color: var(--color-text-muted);
}

.cta-section .btn--primary {
  font-size: var(--text-sm);
  padding: var(--space-4) var(--space-10);
}

/* ═══════════════════════════════════════════
   TRUSTED BY
   ═══════════════════════════════════════════ */
.trust {
  padding: var(--space-12) 0;
  border-top: 1px solid var(--color-divider);
  text-align: center;
}

.trust__label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-6);
}

.trust__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-8);
}

.trust__logo {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--color-divider);
  padding: var(--space-12) 0 var(--space-8);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__logo {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
}

.footer__links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
}

.footer__links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--color-text);
}

.footer__copy {
  width: 100%;
  text-align: center;
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ═══════════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ═══════════════════════════════════════════
   PULLQUOTE
   ═══════════════════════════════════════════ */
.pullquote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  font-style: italic;
  color: var(--color-text);
  text-align: center;
  max-width: 36ch;
  margin: 0 auto;
  padding: clamp(var(--space-12), 6vw, var(--space-20)) var(--space-6);
  line-height: 1.4;
}

.pullquote__mark {
  color: var(--color-primary);
}
