/* =============================================================
   The Iva and Shiv Foundation — Nizi Bhandari
   Design system + shared styles
   ============================================================= */

:root {
  /* Palette — warmth (hope/smiles) + growth (education) */
  --teal-900: #0f3d3a;
  --teal-700: #16615b;
  --teal-500: #1f8a80;
  --gold-500: #e0a528;
  --gold-400: #f2bd4d;
  --cream:    #fbf7ef;
  --cream-2:  #f4ecdd;
  --ink:      #20231f;
  --ink-soft: #4b524a;
  --line:     #e7dfce;
  --white:    #ffffff;

  --maxw: 1140px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(15, 61, 58, .08);
  --shadow:    0 12px 30px -12px rgba(15, 61, 58, .28);
  --ease: cubic-bezier(.22, .61, .36, 1);

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--teal-700); text-decoration-color: var(--gold-400); text-underline-offset: 3px; }
a:hover { color: var(--teal-900); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  color: var(--teal-900);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tint { background: var(--cream-2); }
.section--dark { background: var(--teal-900); color: #e9f2f0; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold-500);
  margin: 0 0 .8rem;
}
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  text-decoration: none;
}
.btn--primary { background: var(--gold-500); color: var(--teal-900); }
.btn--primary:hover { background: var(--gold-400); color: var(--teal-900); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: var(--white); transform: translateY(-2px); }
.btn--outline { border-color: var(--teal-500); color: var(--teal-700); background: transparent; }
.btn--outline:hover { background: var(--teal-700); color: var(--white); transform: translateY(-2px); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 239, .88);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 14px 22px; max-width: var(--maxw); margin-inline: auto; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 600; font-size: 1.18rem; color: var(--teal-900); text-decoration: none; }
.brand .mark { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, var(--teal-700), var(--gold-500)); display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; flex: none; box-shadow: 0 5px 14px -4px rgba(15,61,58,.5); transform: rotate(-5deg); transition: transform .25s var(--ease); }
.brand:hover .mark { transform: rotate(0) scale(1.05); }
.nav-links { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--teal-700); }
.nav-links a[aria-current="page"] { border-bottom: 2px solid var(--gold-500); padding-bottom: 2px; }
.nav-cta { margin-left: .4rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--teal-900); margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(160deg, var(--teal-900), var(--teal-700) 70%); color: #eaf3f1; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 15%, rgba(242,189,77,.18), transparent 45%); pointer-events: none; }
.hero .container { position: relative; padding-block: clamp(64px, 11vw, 132px); }
.hero h1 { color: var(--white); max-width: 16ch; }
.hero .lead { color: #d3e4e0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.hero-tag { display: inline-block; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-400); font-weight: 700; margin-bottom: 1rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.5rem; }
.stat { text-align: center; }
.stat .num { font-family: var(--font-head); font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--gold-500); line-height: 1; }
.stat .label { color: var(--ink-soft); font-size: .98rem; margin-top: .4rem; }
.section--dark .stat .label { color: #bcd2ce; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.6rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--cream-2); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 1rem; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--ink-soft); margin-bottom: 0; font-size: .98rem; }

/* ---------- Split / media ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.media-box { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--cream-2); aspect-ratio: 4/3; }
.media-box img { width: 100%; height: 100%; object-fit: cover; }
.placeholder { width:100%; height:100%; display:grid; place-items:center; color: var(--teal-700); background: repeating-linear-gradient(45deg, var(--cream-2), var(--cream-2) 14px, #efe6d4 14px, #efe6d4 28px); font-size:.9rem; text-align:center; padding:1rem; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.gallery-grid figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; background: var(--cream-2); box-shadow: var(--shadow-sm); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.gallery-grid figure:hover img { transform: scale(1.05); }

/* ---------- Quote ---------- */
.quote { max-width: 760px; margin-inline: auto; text-align: center; }
.quote blockquote { font-family: var(--font-head); font-size: clamp(1.4rem, 3vw, 2rem); color: var(--white); line-height: 1.35; margin: 0 0 1rem; }
.quote cite { color: var(--gold-400); font-style: normal; font-weight: 600; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content:""; position:absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 1.8rem 2.6rem; }
.timeline li::before { content:""; position:absolute; left: 4px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--gold-500); border: 3px solid var(--cream); }
.timeline .date { font-weight: 700; color: var(--teal-700); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1.1rem; max-width: 560px; }
label { font-weight: 600; font-size: .95rem; display: block; margin-bottom: .35rem; color: var(--teal-900); }
input, textarea { width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: var(--white); }
input:focus, textarea:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(31,138,128,.15); }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-900); color: #c6d8d4; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: var(--white); font-family: var(--font-body); font-size: 1rem; letter-spacing: .04em; margin-bottom: .9rem; }
.site-footer a { color: #c6d8d4; text-decoration: none; }
.site-footer a:hover { color: var(--gold-400); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.4rem; padding-top: 1.4rem; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; }

.center { text-align: center; }
.mt-2 { margin-top: 2rem; } .mb-0 { margin-bottom: 0; }
.muted { color: var(--ink-soft); }

/* ---------- Social icons in nav ---------- */
.nav-social { display: flex; gap: .4rem; align-items: center; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--cream-2); color: var(--teal-800, #154e48); transition: background .2s, transform .2s; }
.icon-btn:hover { background: var(--gold-400); transform: translateY(-2px); }
.icon-btn svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Hero with portrait ---------- */
.hero--split .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-name { font-size: clamp(2.6rem, 7vw, 5rem); margin-bottom: .2em; }
.hero-roles { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.4rem; padding: 0; list-style: none; }
.hero-roles li { font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-900); background: var(--gold-400); padding: .4rem .8rem; border-radius: 999px; }
.portrait-frame { position: relative; aspect-ratio: 4/5; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); border: 6px solid rgba(255,255,255,.14); background: var(--teal-700); }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait-frame .placeholder { color: #cfe2de; background: repeating-linear-gradient(45deg, #15514b, #15514b 16px, #17564f 16px, #17564f 32px); }

/* ---------- Pillars ---------- */
.pillar { text-align: left; }
.pillar .ico { width: 56px; height: 56px; font-size: 1.7rem; border-radius: 14px; background: linear-gradient(150deg, var(--gold-400), var(--gold-500)); color: var(--teal-900); }
.pillar h3 { font-size: 1.4rem; }

/* ---------- Event list (extensible) ---------- */
.event-list { display: grid; gap: 1.6rem; }
.event-card { display: grid; grid-template-columns: 220px 1fr; gap: 1.6rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.event-card .thumb { background: var(--cream-2); min-height: 180px; }
.event-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.event-card .body { padding: 1.4rem 1.6rem 1.4rem 0; }
.event-card .date { color: var(--gold-500); font-weight: 700; font-size: .85rem; letter-spacing: .04em; }
.event-card h3 { margin: .2rem 0 .5rem; }
.event-card p { color: var(--ink-soft); font-size: .97rem; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; color: var(--teal-700); background: var(--cream-2); padding: .25rem .6rem; border-radius: 6px; margin-right: .4rem; }
@media (max-width: 640px) { .event-card { grid-template-columns: 1fr; } .event-card .body { padding: 0 1.4rem 1.4rem; } .event-card .thumb { aspect-ratio: 16/9; } }

/* ---------- Story cards (Nizi's World) — clean vertical cards ---------- */
.world-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.world-card { display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; transition: transform .28s var(--ease), box-shadow .28s var(--ease); }
.world-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.world-card .ph { aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream-2); }
.world-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.world-card:hover .ph img { transform: scale(1.06); }
.world-card .wc-body { padding: 1.15rem 1.3rem 1.4rem; }
.world-card .wc-tag { font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--gold-500); }
.world-card h3 { margin: .3rem 0 .45rem; font-size: 1.2rem; }
.world-card p { margin: 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.55; }

/* ---------- Facebook / video embeds ---------- */
.fb-embed { display: flex; justify-content: center; }
.video-embed { position: relative; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }

/* ---------- Hero responsive ---------- */
@media (max-width: 860px) {
  .hero--split .container { grid-template-columns: 1fr; }
  .portrait-frame { max-width: 360px; margin-inline: auto; order: -1; }
  .nav-social { display: none; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding: 14px 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; font-size: .9rem; color: var(--ink-soft); }
.breadcrumbs li { display: flex; align-items: center; gap: .45rem; }
.breadcrumbs li::after { content: "›"; color: #c9bfa8; }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--teal-700); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--ink-soft); }

/* ---------- Journey timeline (animated) ---------- */
.journey { max-width: 820px; margin-inline: auto; position: relative; }
.journey::before { content: ""; position: absolute; left: 24px; top: 10px; bottom: 10px; width: 3px; background: linear-gradient(var(--gold-400), var(--teal-500)); border-radius: 3px; }
.milestone { position: relative; padding: 0 0 2.3rem 70px; opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.milestone.in { opacity: 1; transform: none; }
.milestone::before { content: attr(data-step); position: absolute; left: 5px; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--white); border: 3px solid var(--gold-500); display: grid; place-items: center; font-weight: 800; color: var(--teal-900); box-shadow: var(--shadow-sm); }
.milestone .yr { font-weight: 700; color: var(--gold-500); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.milestone h3 { margin: .2rem 0 .4rem; font-size: 1.3rem; }
.milestone p { color: var(--ink-soft); margin: 0; }
@media (max-width: 520px) { .journey::before { left: 18px; } .milestone { padding-left: 58px; } .milestone::before { width: 34px; height: 34px; left: 1px; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .milestone, .reveal { opacity: 1 !important; transform: none !important; } }

/* ---------- FAQ ---------- */
.faq { max-width: 840px; margin-inline: auto; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.05rem 1.3rem; margin-bottom: .9rem; box-shadow: var(--shadow-sm); transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { font-family: var(--font-head); font-size: 1.12rem; color: var(--teal-900); cursor: pointer; list-style: none; font-weight: 600; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-500); font-size: 1.5rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .85rem 0 0; color: var(--ink-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 8px 22px 18px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: .7rem 0; width: 100%; }
  .nav-cta { margin: .5rem 0 0; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Fun button motion — identical effect on EVERY button ---------- */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -130%; width: 55%; background: linear-gradient(120deg, transparent, rgba(255,255,255,.5), transparent); transform: skewX(-20deg); transition: left .55s var(--ease); pointer-events: none; }
.btn:hover::after { left: 160%; }
.btn--primary:hover, .btn--ghost:hover, .btn--outline:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 10px 24px -8px rgba(224,165,40,.55); }
.btn:active { transform: translateY(-1px) scale(.99); }
@media (prefers-reduced-motion: reduce) { .btn::after { display: none; } .btn--primary:hover, .btn--ghost:hover, .btn--outline:hover { transform: none; } }

/* (scroll-reveal removed — it could leave sections invisible/unclickable in some browsers) */
