/* ==========================================================================
   WEO — Women Empowerment Organization
   Design tokens + components. No framework; plain CSS.
   ========================================================================== */

:root {
  /* Brand — green taken from the WEO logo, warm accent for calls to action */
  --green-900: #0f3322;
  --green-800: #154530;
  --green-700: #1b5a3e;
  --green-600: #23704e;
  --green-100: #e3efe7;
  --green-50:  #f1f7f3;
  --accent:    #d98a2b;   /* marigold */
  --accent-700:#b46d17;
  --accent-50: #fbf1e3;
  --rose:      #b8476a;   /* used sparingly for protection/GBV tags */

  --ink:       #1c2420;
  --ink-2:     #4a5650;
  --ink-3:     #74807a;
  --line:      #e3e1da;
  --paper:     #fbfaf6;
  --card:      #ffffff;

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

  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 1px 2px rgba(16, 40, 28, .06), 0 8px 24px rgba(16, 40, 28, .07);
  --shadow-lg: 0 2px 4px rgba(16, 40, 28, .06), 0 18px 48px rgba(16, 40, 28, .12);
  --wrap:      1180px;
  --gutter:    clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;   /* long emails/URLs wrap instead of widening the page */
}
html, body { overflow-x: clip; } /* safety net: nothing can cause sideways scroll on phones */
img, svg, video, iframe { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--green-700); text-underline-offset: 3px; }
a:hover { color: var(--green-900); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--green-900);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--green-900); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--tint { background: var(--green-50); }
.section--dark { background: var(--green-900); color: #dfeae3; }
.section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-700);
  margin-bottom: .8em;
}
.section--dark .eyebrow { color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 999px;
  font: 600 .95rem/1 var(--font-body); text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-700); color: #fff; }
.btn--ghost { border-color: currentColor; color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--green-900); border-color: #fff; }
.btn--outline { border-color: var(--green-700); color: var(--green-700); }
.btn--outline:hover { background: var(--green-700); color: #fff; }
.btn svg { width: 1.1em; height: 1.1em; }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--green-900); color: #c9d8cf; font-size: .82rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #e6efe9; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar span { display: inline-flex; gap: 6px; align-items: center; }
.topbar svg { width: 14px; height: 14px; opacity: .8; }
.topbar .addr { display: none; }
@media (min-width: 900px) { .topbar .addr { display: inline-flex; } }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 246, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.brand span { font: 600 .82rem/1.2 var(--font-body); color: var(--ink-2); max-width: 150px; display: none; }
@media (min-width: 560px) { .brand span { display: block; } }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 12px; border-radius: 8px; text-decoration: none;
  color: var(--ink); font-weight: 500; font-size: .95rem;
}
.nav a:hover { background: var(--green-100); color: var(--green-900); }
.nav a[aria-current="page"] { color: var(--green-700); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav .btn { margin-left: 10px; padding: .65em 1.2em; }
.nav .btn:hover { background: var(--accent-700); }
.nav a { white-space: nowrap; }
/* Small laptops: tighten the menu so all 8 items fit on one line */
@media (min-width: 981px) and (max-width: 1180px) {
  .nav { gap: 0; }
  .nav a { padding: 8px 9px; font-size: .92rem; }
  .nav .btn { margin-left: 6px; }
  .brand span { display: none; }
}

.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--green-900);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    padding: 8px var(--gutter) 20px; max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px); overflow: auto; overscroll-behavior: contain;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  /* dim the page behind the open menu; tapping it closes the menu */
  body.nav-open { overflow: hidden; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; z-index: 40; background: rgba(15, 51, 34, .35); }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); padding-left: 12px; }
  .nav .btn { margin: 16px 0 0; justify-content: center; border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--green-900); }
.hero__slides { position: absolute; inset: 0; }
.hero__slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.4s ease; transform: scale(1.04);
}
.hero__slides img.is-active { opacity: 1; animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10, 36, 24, .92) 0%, rgba(10, 36, 24, .72) 45%, rgba(10, 36, 24, .25) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-top: clamp(80px, 13vw, 160px); padding-bottom: clamp(80px, 12vw, 150px); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 500; }
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #dbe7df; max-width: 54ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__dots { position: absolute; z-index: 2; bottom: 24px; right: var(--gutter); display: flex; gap: 8px; }
/* dots stay 10px visually, but each has a 32px invisible tap area */
.hero__dots { gap: 0; }
.hero__dots button { width: 30px; height: 32px; border: 0; background: none; cursor: pointer; padding: 0; display: grid; place-items: center; }
.hero__dots button::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.45); transition: width .2s; }
.hero__dots button[aria-current="true"] { width: 42px; }
.hero__dots button[aria-current="true"]::before { background: var(--accent); width: 26px; border-radius: 6px; }

/* Inner page hero */
.page-hero { background: var(--green-900); color: #dbe7df; position: relative; overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.page-hero .wrap { position: relative; padding-top: clamp(56px, 9vw, 104px); padding-bottom: clamp(48px, 7vw, 80px); }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { max-width: 60ch; font-size: 1.12rem; margin: 0; }
.crumbs { font-size: .85rem; margin-bottom: 14px; color: #a9c1b3; }
.crumbs a { color: #d6e4db; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--card); padding: 28px 24px; }
.stat__num { font: 600 clamp(2rem, 4vw, 2.8rem)/1 var(--font-head); color: var(--green-700); }
.stat { min-width: 0; }
@media (max-width: 400px) {
  .stat { padding: 22px 16px; }
  .stat__num { font-size: 1.75rem; }
  .stat__label { font-size: .88rem; }
}
.stat__label { margin-top: 10px; color: var(--ink-2); font-size: .95rem; line-height: 1.4; }
.stats--overlap { margin-top: -56px; position: relative; z-index: 3; }

.minis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 24px 0; }
.mini { background: var(--green-50); border-radius: var(--radius-sm); padding: 16px 18px; border-left: 3px solid var(--accent); }
.mini b { display: block; font: 600 1.6rem/1.1 var(--font-head); color: var(--green-800); }
.mini span:not(.mini__icon) { font-size: .88rem; color: var(--ink-2); line-height: 1.35; display: block; margin-top: 4px; }
/* Stat icons — same 24px line set as the rest of the site */
.mini__icon, .stat__icon { display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--accent-50); color: var(--accent-700); }
.mini__icon { width: 38px; height: 38px; margin: 0 0 12px; }
.mini__icon svg, .stat__icon svg { display: block; flex: none; }
.mini__icon svg { width: 21px; height: 21px; }
.stat__icon { width: 44px; height: 44px; margin-bottom: 14px; background: var(--green-50); color: var(--green-700); }
.stat__icon svg { width: 24px; height: 24px; }

/* ---------- Grid + cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid--2, .grid--3 { grid-template-columns: repeat(2, 1fr); } .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s;
}
a.card { text-decoration: none; color: inherit; }
a.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--green-100); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
a.card:hover .card__img img { transform: scale(1.05); }
.card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card__body p { color: var(--ink-2); font-size: .98rem; }
.card__meta { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-700); font-weight: 600; margin-bottom: 8px; }
.card__more { margin-top: auto; font-weight: 600; color: var(--green-700); display: inline-flex; align-items: center; gap: 6px; }

/* Program tiles */
.program {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.program:hover { border-color: var(--green-600); box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.program__icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--green-100); color: var(--green-700); }
.program__icon svg { width: 28px; height: 28px; }
.program h3 { margin: 6px 0 0; font-size: 1.15rem; }
.program p { margin: 0; color: var(--ink-2); font-size: .94rem; line-height: 1.5; }

/* ---------- Split / feature ---------- */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } .split--wide-text { grid-template-columns: 1.2fr 1fr; } }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split__media .badge {
  position: absolute; left: -12px; bottom: -18px; background: var(--accent); color: #fff;
  padding: 16px 20px; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); font-weight: 600; line-height: 1.25;
}
.split__media .badge b { display: block; font: 600 2rem/1 var(--font-head); }
@media (max-width: 600px) { .split__media .badge { left: 12px; } }

/* Quote */
.quote { position: relative; }
.quote blockquote { margin: 0; font: 400 clamp(1.25rem, 2.4vw, 1.7rem)/1.45 var(--font-head); color: #fff; }
.quote blockquote::before { content: "\201C"; display: block; font-size: 4.5rem; line-height: .6; color: var(--accent); margin-bottom: 14px; }
.quote figcaption { margin-top: 22px; color: #b9cdc1; }
.quote figcaption b { color: #fff; display: block; font-size: 1.05rem; }

/* Partners */
/* flex so a short last row stays centred */
.partners { --cols: 3; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
@media (min-width: 560px) { .partners { --cols: 4; } }
@media (min-width: 800px) { .partners { --cols: 6; } }
@media (min-width: 1000px) { .partners { --cols: 8; } }
/* Partner groups: UN / Governments / NGOs, colour-coded like the WEO profile */
.partner-groups { display: grid; gap: 22px; }
.partner-group { --gc: var(--green-800); background: var(--green-50); border-radius: var(--radius); border-left: 5px solid var(--gc); padding: 20px clamp(14px, 3vw, 26px) 24px; }
.partner-group--gov { --gc: #e0662b; }
.partner-group--ngo { --gc: #23857f; }
.partner-group__title { margin: 0 0 16px; font: 700 .85rem/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--gc); }
.partner-group .partners li { border-color: transparent; box-shadow: 0 1px 2px rgba(15, 51, 34, .06); }
.partners li { flex: 0 0 calc((100% - (var(--cols) - 1) * 14px) / var(--cols)); list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); height: 84px; display: grid; place-items: center; padding: 12px; }
.partners li { transition: transform .25s, box-shadow .25s; }
.partners img { max-height: 54px; max-width: 100%; width: auto; object-fit: contain; }
.partners li:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.partners { padding: 0; margin: 0; }

/* CTA band */
.cta { background: linear-gradient(120deg, var(--green-800), var(--green-700)); color: #dfeae3; border-radius: var(--radius); padding: clamp(32px, 5vw, 56px); display: grid; gap: 24px; align-items: center; }
@media (min-width: 860px) { .cta { grid-template-columns: 1.6fr auto; } }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { margin: 0; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Prose / long-form ---------- */
.prose { max-width: 72ch; }
.prose p { color: var(--ink-2); }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; color: var(--ink-2); }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--accent); }

/* ---------- Programs page ---------- */
.subnav { position: sticky; top: 76px; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { white-space: nowrap; padding: 7px 14px; border-radius: 999px; font-size: .88rem; font-weight: 500; text-decoration: none; color: var(--ink-2); border: 1px solid var(--line); background: #fff; }
.subnav a:hover, .subnav a.is-active { background: var(--green-700); border-color: var(--green-700); color: #fff; }

.program-block { padding: 64px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 140px; }
.program-block:last-child { border-bottom: 0; }
.program-block__head { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.program-block__head h2 { margin: 0; }
.program-block .grid--3 { margin-top: 24px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 22px; }
.step h4 { font-family: var(--font-body); font-size: 1rem; color: var(--green-800); margin: 0 0 8px; display: flex; gap: 10px; align-items: baseline; }
.step h4 small { color: var(--accent-700); font-weight: 700; font-size: .8rem; }
.step ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); font-size: .93rem; line-height: 1.5; }
.step li { margin-bottom: 4px; }

/* ---------- Projects page ---------- */
.toolbar { display: grid; gap: 14px; margin-bottom: 28px; }
@media (min-width: 860px) { .toolbar { grid-template-columns: 1fr 260px; align-items: center; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 999px;
  padding: 7px 14px; font: 500 .88rem/1 var(--font-body); cursor: pointer; transition: .15s;
  min-height: 38px; display: inline-flex; align-items: center;
}
.chip:hover { border-color: var(--green-600); color: var(--green-800); }
.chip[aria-pressed="true"] { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.chip .n { opacity: .65; margin-left: 4px; font-variant-numeric: tabular-nums; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid #cfd3cc; border-radius: var(--radius-sm); padding: 11px 14px;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(35, 112, 78, .18); }
.textarea { min-height: 150px; resize: vertical; }
.search { position: relative; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-3); }
.search .input { padding-left: 40px; }
.result-count { color: var(--ink-3); font-size: .9rem; margin-bottom: 14px; }

.project {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px;
  display: flex; flex-direction: column; gap: 12px;
}
.project h3 { font-size: 1.12rem; line-height: 1.35; margin: 0; }
.project--media { overflow: hidden; }
.project__media { display: grid; gap: 3px; margin: -24px -26px 6px; aspect-ratio: 16 / 9; background: var(--green-100); grid-template-rows: minmax(0, 1fr); }
.project__media--2 { grid-template-columns: 1fr 1fr; }
.project__media--3 { grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); }
.project__media--3 a:first-child { grid-row: span 2; }
.project__media a { display: block; overflow: hidden; min-height: 0; position: relative; }
.project__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project__media a:hover img { transform: scale(1.04); }
.project__media { position: relative; }
.project__note { position: absolute; left: 10px; bottom: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(15, 51, 34, .72); color: #fff; font-size: .72rem; font-weight: 500; letter-spacing: .02em; pointer-events: none; }
.project__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .86rem; color: var(--ink-2); }
.project__meta span { display: inline-flex; gap: 6px; align-items: center; }
.project__meta svg { width: 15px; height: 15px; color: var(--green-600); flex: none; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .74rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--green-100); color: var(--green-800); }
.tag--protection { background: #f6e3ea; color: #8a2f4c; }
.tag--health { background: #e1edf6; color: #1f5279; }
.tag--education { background: var(--accent-50); color: #8a5310; }
.tag--emergency { background: #f4e6df; color: #8c3b1c; }
.tag--wash { background: #def0ef; color: #1b5e5b; }
.project p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.project details summary { cursor: pointer; font-weight: 600; color: var(--green-700); font-size: .92rem; list-style: none; display: inline-flex; gap: 6px; align-items: center; }
.project details summary::-webkit-details-marker { display: none; }
.project details summary::after { content: "+"; font-size: 1.1rem; line-height: 1; }
.project details[open] summary::after { content: "\2212"; }
.project details p { margin-top: 10px; }
.empty { text-align: center; padding: 48px 16px; color: var(--ink-3); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- Stories ---------- */
.story { padding: 64px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.story:last-child { border-bottom: 0; }
.story__head { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .story__head { grid-template-columns: 1fr 1.25fr; gap: 56px; } .story__aside { position: sticky; top: 100px; } }
.story__aside img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--shadow); }
.story__aside .thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.story__aside .thumbs img { aspect-ratio: 1; border-radius: var(--radius-sm); box-shadow: none; cursor: zoom-in; }
.story__loc { display: inline-flex; gap: 6px; align-items: center; color: var(--ink-3); font-size: .9rem; margin-bottom: 16px; }
.story__loc svg { width: 16px; height: 16px; color: var(--accent); }

/* ---------- Gallery ---------- */
.masonry { columns: 1; column-gap: 16px; }
@media (min-width: 560px) { .masonry { columns: 2; } }
@media (min-width: 960px) { .masonry { columns: 3; } }
.masonry button { display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 0; background: var(--green-100); border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; break-inside: avoid; }
.masonry img { width: 100%; height: auto; transition: transform .5s, opacity .3s; }
.masonry button:hover img { transform: scale(1.03); opacity: .92; }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(6, 20, 13, .94); display: none; align-items: center; justify-content: center; padding: 56px 16px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 100%; max-width: 100%; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lightbox button svg { width: 24px; height: 24px; }
.lightbox .lb-close { top: 14px; right: 14px; }
.lightbox .lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #b8c9be; font-size: .9rem; }

/* ---------- About ---------- */
.values { counter-reset: v; }
.value { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.value::before { counter-increment: v; content: "0" counter(v); font: 600 .85rem/1 var(--font-body); color: var(--accent-700); letter-spacing: .1em; display: block; margin-bottom: 14px; }
.value h3 { font-size: 1.2rem; }
.value p { color: var(--ink-2); margin: 0; font-size: .96rem; }
.objectives { counter-reset: o; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.objectives li { counter-increment: o; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; color: var(--ink-2); }
.objectives li::before { content: counter(o); width: 36px; height: 36px; border-radius: 50%; background: var(--green-700); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .95rem; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--green-100); }
.timeline li { position: relative; padding: 0 0 26px 26px; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--paper); }
.timeline b { display: block; font-family: var(--font-head); color: var(--green-800); font-size: 1.15rem; }
.timeline span { color: var(--ink-2); font-size: .96rem; }
/* Organogram (About page) — HTML tree, stacks on phones */
.org { --lc: var(--green-600); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 44px); }
.org ul { list-style: none; margin: 0; padding: 0; }
.org__node { padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--green-800); background: #fff; color: var(--ink); text-align: center; font-weight: 600; font-size: .88rem; line-height: 1.3; position: relative; z-index: 1; }
.org__node--board { background: var(--green-900); border-color: var(--green-900); color: #fff; min-width: 240px; }
.org__node--ceo { background: var(--green-700); border-color: var(--green-700); color: #fff; min-width: 240px; font-size: .95rem; }
.org__node--mgr { background: var(--green-800); border-color: var(--green-800); color: #fff; font-size: .95rem; }
.org__node--audit { background: var(--accent-50); border-color: var(--accent); color: var(--accent-700); }
.org__node--l3 { background: var(--green-50); border-color: var(--green-600); font-weight: 500; }
.org__node--l4 { background: var(--paper); border-color: var(--ink-3); font-weight: 500; }
.org__node--fill { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.org__down, .org__stem { display: block; width: 2px; height: 22px; margin: 0 auto; background: var(--lc); position: relative; }
.org__down::after, .org__chain li + li::after, .org__dept::after, .org__chain::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top: 6px solid var(--lc); border-bottom: 0;
}
.org__down::after { bottom: -2px; }
.org__top { display: grid; justify-items: center; }
.org__ceo-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; width: 100%; }
.org__ceo-row > .org__node--ceo { grid-column: 2; }
.org__audit { grid-column: 1; grid-row: 1; justify-self: end; display: flex; align-items: flex-start; }
.org__audit-box { display: grid; justify-items: center; gap: 4px; }
.org__audit-box small { color: var(--ink-3); font-size: .74rem; }
.org__dash { width: 44px; margin-top: 20px; border-top: 2px dashed var(--accent); }
.org__depts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; padding-top: 22px; }
.org__depts::before { content: ""; position: absolute; top: 0; left: calc((100% - 56px) / 6); right: calc((100% - 56px) / 6); border-top: 2px solid var(--lc); }
.org__dept { position: relative; }
.org__dept::before { content: ""; position: absolute; top: -22px; left: 50%; width: 2px; height: 22px; background: var(--lc); transform: translateX(-50%); }
.org__dept::after { top: -7px; }
.org__branches { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 14px; position: relative; padding-top: 20px; }
.org__branches::before { content: ""; position: absolute; top: 0; left: calc((100% - 14px) / 4); right: calc((100% - 14px) / 4); border-top: 2px solid var(--lc); }
.org__branches--1::before { display: none; }
.org__branches--1 { grid-auto-columns: minmax(0, 70%); justify-content: center; }
.org__chain { position: relative; }
.org__chain::before { content: ""; position: absolute; top: -20px; left: 50%; width: 2px; height: 20px; background: var(--lc); transform: translateX(-50%); }
.org__chain::after { top: -7px; }
.org__chain li { position: relative; }
.org__chain li + li { margin-top: 22px; }
.org__chain li + li::before { content: ""; position: absolute; top: -22px; left: 50%; width: 2px; height: 22px; background: var(--lc); transform: translateX(-50%); }
.org__chain li + li::after { top: -7px; }
/* Tablet & phone: departments become stacked cards */
@media (max-width: 860px) {
  .org__depts { grid-template-columns: 1fr; gap: 18px; padding-top: 0; }
  .org__depts::before, .org__dept::before, .org__dept::after { display: none; }
  .org__dept { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; }
  .org__top > .org__stem { display: none; }
  .org__top { margin-bottom: 22px; }
  .org__ceo-row { grid-template-columns: 1fr; justify-items: center; gap: 12px; }
  .org__ceo-row > .org__node--ceo { grid-column: 1; grid-row: 1; }
  .org__audit { grid-column: 1; grid-row: 2; justify-self: center; }
  .org__dash { display: none; }
}
@media (max-width: 420px) {
  .org { padding: 16px 12px; }
  .org__dept { padding: 14px 10px; }
  .org__branches { gap: 10px; }
  .org__branches::before { left: calc((100% - 10px) / 4); right: calc((100% - 10px) / 4); }
  .org__node { padding: 8px 6px; font-size: .8rem; }
  .org__node--mgr { font-size: .9rem; }
  .org__node--board, .org__node--ceo { min-width: 0; width: 100%; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.3fr; gap: 56px; } }
.contact-item { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 0; }
.contact-item .ic { width: 48px; height: 48px; border-radius: 12px; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; }
.contact-item .ic svg { width: 22px; height: 22px; }
.contact-item h3 { font-family: var(--font-body); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin: 2px 0 4px; }
.contact-item p, .contact-item a { margin: 0; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.contact-item > div { min-width: 0; }
.contact-item a { display: inline-block; padding: 8px 0; margin: -8px 0; overflow-wrap: anywhere; }
@media (max-width: 400px) { .contact-item { grid-template-columns: 40px 1fr; gap: 12px; } .contact-item .ic { width: 40px; height: 40px; } }
.contact-item a:hover { color: var(--green-700); text-decoration: underline; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); display: grid; gap: 18px; }
.form .row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form .row { grid-template-columns: 1fr 1fr; } }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); }
.form .check input { margin-top: 4px; accent-color: var(--green-700); width: 22px; height: 22px; flex: none; margin-top: 1px; }
.form .note { font-size: .85rem; color: var(--ink-3); margin: 0; }
.form-status { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--green-100); color: var(--green-900); font-weight: 500; display: none; }
.form-status.is-visible { display: block; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/10; margin-top: 24px; }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--green-900); color: #b9cdc1; padding: 72px 0 0; font-size: .95rem; }
.footer__grid { display: grid; gap: 40px; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; } }
.footer img.logo { height: 52px; width: auto; background: #fff; padding: 6px 10px; border-radius: 10px; margin-bottom: 18px; }
.footer h4 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: #d6e4db; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer address { font-style: normal; display: grid; gap: 10px; }
.footer__bottom { margin-top: 56px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; padding-bottom: 22px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .85rem; color: #8fa89a; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__slides img.is-active { animation: none; transform: none; }
  * { transition-duration: 0s !important; }
}

/* inline icons never stretch */
svg { flex: none; }
.card__more svg, .project details summary svg { width: 18px; height: 18px; }
.masonry img { min-height: 160px; object-fit: cover; }

/* Careers */
.jobs { display: grid; gap: 14px; }
.job { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.job h3 { margin: 0 0 6px; font-size: 1.2rem; }
.job p { margin: 8px 0 0; color: var(--ink-2); }
.job__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .86rem; color: var(--accent-700); font-weight: 600; }
.notice { display: flex; gap: 12px; align-items: flex-start; margin-top: 28px; padding: 16px 18px; background: var(--accent-50); border-radius: var(--radius-sm); color: var(--ink-2); max-width: 72ch; }
.notice svg { width: 22px; height: 22px; flex: none; color: var(--accent-700); margin-top: 1px; }
.notice b { color: var(--ink); }

/* ---- Social links ---- */
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; transition: background .2s, transform .2s; }
.social a:hover { background: var(--accent); color: #fff; transform: translateY(-2px); text-decoration: none; }
.social svg { width: 19px; height: 19px; }
.btn svg[fill="currentColor"] { width: 18px; height: 18px; }
.social-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.quote__li { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-left: 8px; border-radius: 6px; background: rgba(255,255,255,.12); color: #fff; vertical-align: middle; }
.quote__li:hover { background: var(--accent); color: #fff; }
.quote__li svg { width: 15px; height: 15px; }
.contact-item .ic svg[fill="currentColor"] { width: 22px; height: 22px; }

/* ---- Latest updates: Facebook + LinkedIn ---- */
.updates-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 40px; margin-bottom: 32px; }
.updates-head > div:first-child { max-width: 620px; }
.updates-head .lead { margin-bottom: 0; }
.updates-head .social-actions { margin-top: 0; }
.updates-grid { display: grid; gap: 24px; grid-template-columns: 1fr; max-width: 1040px; margin: 0 auto; }
@media (min-width: 860px) { .updates-grid { grid-template-columns: 1fr 1fr; } }
.feed-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.feed-card__head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.feed-card__head b { display: block; font-size: .95rem; color: var(--ink); line-height: 1.2; }
.feed-card__head small { color: var(--ink-3); font-size: .8rem; }
.feed-card__icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: #1877f2; flex: none; }
.feed-card--li .feed-card__icon { background: #0a66c2; }
.feed-card__icon svg { width: 20px; height: 20px; }
.feed-card__more { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; font-weight: 600; font-size: .92rem; text-decoration: none; border-top: 1px solid var(--line); margin-top: auto; }
.feed-card__more svg { width: 18px; height: 18px; }
.fb-feed { width: 100%; display: flex; justify-content: center; background: var(--green-50); }
.fb-feed iframe { display: block; border: 0; max-width: 100%; height: 480px; }
.li-feed { height: 480px; overflow-y: auto; overscroll-behavior: contain; background: #f3f2ef; display: grid; gap: 12px; padding: 12px; align-content: start; scrollbar-width: none; -ms-overflow-style: none; }
.li-feed::-webkit-scrollbar { display: none; } /* scrolls by wheel/touch like the Facebook feed, no visible bar */
.li-feed iframe { display: block; width: 100%; height: 960px; border: 0; border-radius: 8px; background: #fff; overflow: hidden; }
.li-feed--empty { display: grid; place-items: center; background: linear-gradient(160deg, #eef3f8, #fff); }
.li-empty { text-align: center; max-width: 320px; display: grid; justify-items: center; gap: 4px; padding: 20px; }
.li-empty__icon { width: 64px; height: 64px; border-radius: 16px; background: #0a66c2; color: #fff; display: grid; place-items: center; margin-bottom: 10px; }
.li-empty__icon svg { width: 34px; height: 34px; }
.li-empty b { font-size: 1.1rem; color: var(--ink); }
.li-empty > span:not(.li-empty__icon) { color: var(--ink-3); font-size: .88rem; }
main .li-empty p { color: var(--ink-2); margin: 12px 0 18px; font-size: .95rem; text-align: center; }
@media (max-width: 420px) { .fb-feed iframe, .li-feed { height: 440px; } }
/* ---- Justified paragraphs (client request) ---- */
main p { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.section-head--center p, .empty p, .hero p, .form-status, .note, .result-count { text-align: center; -webkit-hyphens: manual; hyphens: manual; }
.form-status, .note, .result-count { text-align: left; }

.step, .grid > * { min-width: 0; }
.step li a[href^="mailto:"], .contact-item a[href^="mailto:"] { overflow-wrap: anywhere; }

/* ---- CEO message with portrait ---- */
.ceo { display: grid; gap: 36px; align-items: center; }
@media (min-width: 860px) { .ceo { grid-template-columns: minmax(240px, 340px) 1fr; gap: 64px; } }
.ceo__photo { margin: 0 auto; width: 100%; max-width: 300px; text-align: center; }
@media (min-width: 860px) { .ceo__photo { max-width: none; } }
.ceo__frame { position: relative; padding: 0 12px 12px 0; }
.ceo__frame::before { content: ""; position: absolute; inset: 12px 0 0 12px; border: 2px solid var(--accent); border-radius: var(--radius); }
.ceo__frame img { position: relative; width: 100%; aspect-ratio: 520 / 599; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); background: #f6efef; }
.ceo__photo figcaption { margin-top: 18px; color: #b9cdc1; font-size: .95rem; }
.ceo__photo figcaption b { display: block; color: #fff; font: 600 1.25rem/1.3 var(--font-head); }
.ceo__text blockquote { margin-bottom: 22px; }
.ceo__text p { color: #cfdcd4; }
