/* ─────────────────────────────────────────────────────────
   Light of Burma — Brand stylesheet
   Liberty in Myanmar, 501(c)(3) — EIN 88-2160162
   ───────────────────────────────────────────────────────── */

:root {
  /* Brand palette */
  --teal:           #1F4E5F;     /* Burmese Teal — primary */
  --teal-deep:      #143540;     /* Darker for hover/header */
  --teal-soft:      #2C6577;     /* Lighter for accents */
  --paper:          #F5F0E6;     /* Paper Cream — background */
  --paper-warm:     #EDE5D2;     /* Slightly deeper cream */
  --ink:            #2A2A28;     /* Charcoal — body text */
  --ink-soft:       #4A4943;     /* Secondary text */
  --stone:          #A39E92;     /* Stone — muted */
  --rule:           #C9C0AB;     /* Hairlines */
  --coral:          #C8553D;     /* Hakha Coral — CTA accent */
  --coral-deep:     #A6432F;     /* Coral hover */

  /* Layout */
  --max:            1240px;
  --reading:        680px;
  --gutter:         clamp(20px, 4vw, 64px);

  /* Typography */
  --font-display:   "Cormorant Garamond", "EB Garamond", "Times New Roman", serif;
  --font-body:      "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Motion */
  --ease:           cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── Reset & base ─── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--teal); color: var(--paper); }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 500; }
p { margin: 0; }

/* ─── Paper grain texture overlay ─── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.16  0 0 0 0 0.10  0 0 0 0 0.05  0 0 0 0.040 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.55;
  z-index: 1;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}

.reading {
  max-width: var(--reading);
}

/* ─── Typography ─── */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.02;
  color: var(--teal-deep);
}
.display em {
  font-style: italic;
  font-weight: 400;
  color: var(--coral);
}
.h1 { font-size: clamp(48px, 7vw, 96px); }
.h2 { font-size: clamp(36px, 5vw, 64px); line-height: 1.05; }
.h3 { font-size: clamp(26px, 3vw, 38px); line-height: 1.15; }
.h4 { font-size: clamp(20px, 2vw, 24px); font-weight: 600; line-height: 1.3; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--coral);
  display: inline-block;
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::before {
  background: var(--coral);
}

.lead {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.45;
  color: var(--ink-soft);
  letter-spacing: 0.005em;
}
.lead em {
  color: var(--teal);
  font-style: italic;
}

.caption {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--stone);
  font-style: italic;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  position: relative;
}
.btn-primary {
  background: var(--coral);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--coral-deep);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -10px rgba(200, 85, 61, 0.4);
}
.btn-secondary {
  background: transparent;
  color: var(--teal-deep);
  border: 1.5px solid var(--teal);
}
.btn-secondary:hover {
  background: var(--teal);
  color: var(--paper);
}
.btn-ghost {
  padding: 8px 0;
  color: var(--teal);
  border-bottom: 1px solid var(--coral);
}
.btn-ghost:hover {
  color: var(--coral);
}
.btn .arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}
.btn:hover .arrow { transform: translateX(4px); }

/* ─── Navigation ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 240, 230, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.nav.scrolled {
  border-color: var(--rule);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--teal-deep);
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo .brand-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.nav-logo em {
  font-style: italic;
  font-weight: 400;
  color: var(--coral);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--teal); }
.nav-links a.active { color: var(--teal); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--coral);
}
.nav-cta {
  background: var(--coral);
  color: var(--paper);
  padding: 11px 22px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease);
}
.nav-cta:hover {
  background: var(--coral-deep);
  color: var(--paper) !important;
}
.nav-cta::after { display: none !important; }
.nav-burger {
  display: none;
  width: 28px;
  height: 28px;
  position: relative;
}

.nav-mobile {
  display: none;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.hero-text { position: relative; z-index: 2; }
.hero-text .eyebrow { margin-bottom: 28px; }
.hero-headline { margin-bottom: 32px; }
.hero-lead { max-width: 640px; margin-bottom: 40px; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.hero-image {
  position: relative;
}
.hero-image img {
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
  box-shadow: 0 30px 80px -30px rgba(20, 53, 64, 0.35);
  aspect-ratio: 5 / 4;
}
.hero-image .credit {
  position: absolute;
  bottom: 12px;
  left: 16px;
  color: rgba(245, 240, 230, 0.85);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-image img { aspect-ratio: 4 / 3; }
}

/* ─── Sections ─── */
.section {
  padding: clamp(64px, 8vw, 120px) 0;
  position: relative;
}
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-dark {
  background: var(--teal-deep);
  color: var(--paper);
}
.section-dark .display { color: var(--paper); }
.section-dark .display em { color: var(--coral); }
.section-dark .lead { color: rgba(245, 240, 230, 0.85); }
.section-dark .eyebrow { color: rgba(245, 240, 230, 0.7); }
.section-dark .eyebrow::before { background: var(--coral); }
.section-dark .caption { color: rgba(245, 240, 230, 0.6); }

.section-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 56px;
  max-width: 880px;
}
.section-header .eyebrow { margin-bottom: 8px; }

/* ─── Programs / Cards ─── */
.programs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.program-card {
  display: flex;
  flex-direction: column;
  background: var(--paper-warm);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -28px rgba(20, 53, 64, 0.3);
}
.program-card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--stone);
}
.program-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.program-card:hover .program-card-image img {
  transform: scale(1.04);
}
.program-card-body {
  padding: 32px 28px;
}
.program-card-body .h4 {
  margin-bottom: 12px;
  color: var(--teal-deep);
}
.program-card-body p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

/* ─── Two-column ─── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.two-col-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* ─── Story / quote ─── */
.story {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.story .lead {
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.4;
  color: var(--paper);
  margin-bottom: 32px;
}
.story .attribution {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 240, 230, 0.7);
}

/* ─── Stats / facts row ─── */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 48px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.fact-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1;
  color: var(--teal-deep);
  letter-spacing: -0.02em;
}
.fact-num em {
  font-style: italic;
  color: var(--coral);
}
.fact-label {
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ─── Full-bleed image ─── */
.full-bleed {
  width: 100%;
  margin: 0;
  position: relative;
}
.full-bleed img {
  width: 100%;
  height: clamp(400px, 60vh, 720px);
  object-fit: cover;
}

/* ─── Place cards (where we work) ─── */
.places {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.place {
  background: var(--paper);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.place-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  color: var(--teal-deep);
  letter-spacing: -0.005em;
}
.place-region {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral);
  font-weight: 600;
}
.place-detail {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

/* ─── Donate options ─── */
.give-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.give-option {
  background: var(--paper-warm);
  padding: 32px;
  border-radius: 4px;
  border-left: 3px solid var(--coral);
}
.give-option h4 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--teal-deep);
  margin-bottom: 12px;
}
.give-option p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 16px;
}
.give-option strong {
  color: var(--ink);
  font-weight: 600;
}

/* ─── Footer ─── */
.footer {
  background: var(--teal-deep);
  color: rgba(245, 240, 230, 0.85);
  padding: 80px 0 32px;
  position: relative;
  z-index: 2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 64px;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  color: var(--paper);
  margin-bottom: 20px;
  letter-spacing: -0.005em;
}
.footer-brand em {
  font-style: italic;
  color: var(--coral);
}
.footer-tagline {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(245, 240, 230, 0.7);
  max-width: 320px;
}
.footer-col h5 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 240, 230, 0.55);
  margin-bottom: 20px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li {
  margin-bottom: 10px;
}
.footer-col a {
  font-size: 14px;
  color: rgba(245, 240, 230, 0.85);
  transition: color 0.2s var(--ease);
}
.footer-col a:hover {
  color: var(--coral);
}
.footer-bottom {
  border-top: 1px solid rgba(245, 240, 230, 0.12);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(245, 240, 230, 0.55);
}
.footer-bottom a:hover { color: var(--coral); }

/* ─── Page intro (for inner pages) ─── */
.page-intro {
  padding: clamp(80px, 10vw, 140px) 0 clamp(48px, 6vw, 80px);
  text-align: left;
  border-bottom: 1px solid var(--rule);
}
.page-intro .display { margin-bottom: 24px; }
.page-intro .lead { max-width: 720px; }

/* ─── Article (about page reading content) ─── */
.article {
  max-width: var(--reading);
}
.article h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 36px);
  color: var(--teal-deep);
  margin: 56px 0 20px;
  line-height: 1.2;
}
.article h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  color: var(--teal-deep);
  margin: 40px 0 16px;
}
.article p {
  margin-bottom: 18px;
  color: var(--ink);
  line-height: 1.7;
}
.article p + p { margin-top: 0; }
.article a {
  color: var(--teal);
  border-bottom: 1px solid var(--coral);
  transition: color 0.2s var(--ease);
}
.article a:hover {
  color: var(--coral);
}
.article ul {
  margin: 16px 0 24px;
  padding-left: 22px;
}
.article li {
  margin-bottom: 8px;
  color: var(--ink);
}
.article blockquote {
  border-left: 3px solid var(--coral);
  padding: 4px 0 4px 24px;
  margin: 32px 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  color: var(--teal-deep);
  line-height: 1.45;
}

/* ─── Reveal animation (progressive enhancement) ─── */
/* Reveals are visible by default. Only apply animation if JS adds .js to html. */
.reveal { opacity: 1; transform: none; }
html.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
html.js .reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ─── Mobile ─── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
  }
  .nav-burger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--teal-deep);
  }
  .nav-mobile {
    display: none;
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-top: 1px solid var(--rule);
    padding: 24px var(--gutter);
    z-index: 49;
  }
  .nav-mobile.open { display: block; }
  .nav-mobile a {
    display: block;
    padding: 14px 0;
    font-size: 18px;
    border-bottom: 1px solid var(--rule);
    color: var(--ink);
  }
  .nav-mobile a.cta {
    color: var(--coral);
    font-weight: 600;
  }
  .programs { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .places { grid-template-columns: 1fr; }
  .facts {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .give-options { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
