/* evergreenlove.id — Yayasan Agape Hijau Abadi
 *
 * Every colour, size and spacing value here is lifted verbatim from the
 * design prototypes in design/*.dc.html. Do not "tidy" them.
 *
 * Two deliberate rules:
 *   - No media queries. Responsiveness comes from grid auto-fit(minmax()).
 *   - No box-sizing reset. The prototypes rely on the default content-box;
 *     switching to border-box would change every padded container's width.
 */

/* --- tokens ------------------------------------------------------------- */
:root {
  --page: #FBF8F1;
  --ink: #1F2420;
  --ink-body: #2A312A;
  --ink-card: #3A423A;
  --ink-muted: #5A5546;
  --ink-label: #6E7A6E;
  --ink-meta: #7B6A4E;
  --green-deep: #12321F;
  --green: #1C4A33;
  --green-nav: #2C6244;
  --cream: #F6F2E7;
  --cream-alt: #F3EFE4;
  --cream-nav: #E8E2D2;
  --band: #F3EFE3;
  --border: #E2DACA;
  --border-table: #EFE9DA;
  --border-strong: #C9B996;
  --border-input: #D8D0BE;
  --earth: #A0703C;
  --note-bg: #FDF6E6;
  --note-ink: #8A6A2E;
  --footer-ink: #DCD8C9;
  --serif: 'Newsreader', serif;
  --sans: 'Source Sans 3', system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* --- base --------------------------------------------------------------- */
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green); }
a:hover { color: var(--earth); }
:focus-visible { outline: 2px solid var(--earth); outline-offset: 2px; }
figure { margin: 0; }
img { max-width: 100%; }
input, textarea { font-family: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  background: var(--cream);
  color: var(--green-deep);
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 0 0 4px 0;
}
.skip-link:focus { left: 0; color: var(--green-deep); }

/* --- layout frame ------------------------------------------------------- */
.page { min-height: 100vh; display: flex; flex-direction: column; }

/* 1080px column. Vertical padding is per-section: set --py, or --pt/--pb. */
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: var(--pt, var(--py, 0)) 24px var(--pb, var(--py, 0));
}

.grid { display: grid; gap: var(--gap, 20px); }
.auto { grid-template-columns: repeat(auto-fit, minmax(var(--min, 260px), 1fr)); }
.items-start { align-items: start; }
.content-start { align-content: start; }

.band {
  background: var(--band);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.band-top { background: var(--band); border-top: 1px solid var(--border); }

.head-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: end;
}
.divider-row {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

/* --- header ------------------------------------------------------------- */
.site-header { background: var(--green-deep); color: var(--cream-alt); }

.topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  border-bottom: 1px solid rgba(243, 239, 228, 0.18);
}
.topbar__site { letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; }
.topbar__right { display: flex; gap: 14px; align-items: center; }
.topbar__mail, .topbar__mail:hover { color: var(--cream-alt); text-decoration: none; }
.topbar__sep { opacity: 0.4; }

.lang { display: flex; gap: 8px; }
.lang__on { font-weight: 700; }
.lang__off { opacity: 0.45; }
.lang a, .lang a:hover { color: var(--cream-alt); }

.masthead {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  justify-content: space-between;
  align-items: center;
}
.brand, .brand:hover {
  display: flex;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  color: var(--cream-alt);
}
.brand__logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: var(--page);
  border-radius: 50%;
  padding: 3px;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-family: var(--serif); font-size: 22px; letter-spacing: 0.01em; }
.brand__sub {
  font-size: 13px;
  opacity: 0.7;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav { display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: 15px; }
.nav a, .nav a:hover {
  color: var(--cream-nav);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
}
.nav a.is-current, .nav a.is-current:hover {
  color: var(--page);
  background: var(--green-nav);
  font-weight: 600;
}

/* --- hero --------------------------------------------------------------- */
.hero {
  color: var(--cream);
  background-image:
    linear-gradient(rgba(11, 39, 26, 0.80), rgba(11, 39, 26, 0.88)),
    var(--hero);
  background-size: cover;
  background-position: center;
}

/* Hero photographs must be declared here, not passed in from the page.
 * A relative url() inside a custom property resolves against the stylesheet
 * that substitutes it, not the document — an inline --hero:url('assets/x.jpg')
 * is fetched as assets/css/assets/x.jpg and 404s. Paths below are relative to
 * this file, which also makes them correct for pages under /en/. */
.hero--index { --hero: url('../kelas-bersama.jpg'); }
.hero--about { --hero: url('../edu-center-kegiatan.jpg'); }
.hero--programs { --hero: url('../pendampingan-anak.jpg'); }
.hero--legal { --hero: url('../persiapan-obat.jpg'); }
.hero--gallery { --hero: url('../tim-relawan.jpg'); }
.hero--contact { --hero: url('../warga-menunggu.jpg'); }
/* Only inline links in hero prose. Buttons and chips set their own colour and
 * would otherwise lose to this rule on specificity — a cream-on-cream button. */
.hero p a, .hero p a:hover { color: var(--cream); }
.eyebrow-hero {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
}
.lead {
  margin: 0;
  font-size: 19px;
  line-height: 1.6;
  max-width: 62ch;
  opacity: 0.92;
  text-wrap: pretty;
}

/* --- typography --------------------------------------------------------- */
h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.12;
  max-width: 26ch;
}
.h1--home {
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 20ch;
}
.h1--full { max-width: none; }

h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.2;
  color: var(--green-deep);
}
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  color: var(--green-deep);
}
.h3--card { font-weight: 600; font-size: 21px; }

/* Section sub-label rendered as a heading (programs.html). */
.label-h {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-label);
}

.s21 { font-size: 21px; }
.s26 { font-size: 26px; }
.s28 { font-size: 28px; }
.s32 { font-size: 32px; }
.s34 { font-size: 34px; }

.p {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-body);
  text-wrap: pretty;
}
.p--tall { line-height: 1.75; }
.p--card { font-size: 16px; line-height: 1.6; color: var(--ink-card); }
.p--muted { margin: 0; font-size: 16px; line-height: 1.7; color: var(--ink-muted); }
.p--small { margin: 0; font-size: 15px; color: var(--ink-muted); }
/* Secondary line under a value — table sub-lines, contact sub-notes. */
.sub { font-size: 15px; color: var(--ink-muted); }
/* Sub-label inside a table row header (legal.html "Charity ID"). */
.sublabel { font-weight: 400; font-size: 14px; color: var(--ink-label); }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--earth);
  font-weight: 700;
}
.eyebrow--wide { letter-spacing: 0.12em; }
.label {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-label);
}
.meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-meta);
}
.mono { font-family: var(--mono); }
.regnum {
  font-family: var(--mono);
  font-size: 17px;
  color: var(--green-deep);
  font-weight: 600;
}
.regnum--lg { font-size: 18px; }

.arrow {
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  border-bottom: 2px solid var(--earth);
  padding-bottom: 2px;
  justify-self: start;
}
.arrow--sm { font-size: 16px; }

/* --- buttons ------------------------------------------------------------ */
.btn {
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  padding: 14px 22px;
}
.btn--cream, .btn--cream:hover { background: var(--cream); color: var(--green-deep); }
.btn--ghost, .btn--ghost:hover {
  border: 1px solid rgba(246, 242, 231, 0.5);
  color: var(--cream);
}
.btn--green, .btn--green:hover {
  background: var(--green);
  color: var(--cream);
  padding: 13px 20px;
}
.btn--block { font-size: 16px; padding: 14px 20px; text-align: center; }
.chip, .chip:hover {
  color: var(--cream);
  text-decoration: none;
  border: 1px solid rgba(246, 242, 231, 0.45);
  padding: 9px 15px;
  border-radius: 4px;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; font-size: 16px; }

/* --- cards -------------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: var(--pad, 0);
}
.card--clip { overflow: hidden; }
.card--strong { border-color: var(--border-strong); }
.card--top-green { border-top: 4px solid var(--green); }
.card--top-earth { border-top: 4px solid var(--earth); }
.card-link, .card-link:hover { text-decoration: none; color: inherit; }
.card-link:hover { border-color: var(--green); }

.ph { width: 100%; height: var(--h, 220px); object-fit: cover; display: block; }
.ph--framed { border-radius: 6px; border: 1px solid var(--border); }
.ph--doc { object-position: top; border-bottom: 1px solid var(--border); }

.figcap { padding: 16px 18px; display: grid; gap: 6px; }
.figcap__text { font-size: 16px; line-height: 1.55; color: var(--ink-body); }
.figcap--plain { font-size: 15px; line-height: 1.6; color: var(--ink-muted); }
.figcap--card { font-size: 15px; line-height: 1.5; color: var(--ink-card); }

/* --- notes: [[확인 필요]] placeholders ----------------------------------- */
.note {
  color: var(--note-ink);
  background: var(--note-bg);
  border-left: 3px solid var(--border-strong);
}
.note--block { margin: 0; font-size: 16px; line-height: 1.7; padding: 14px 16px; }
.note--inline { font-size: 16px; padding: 6px 8px; }
.note--card { font-size: 14px; padding: 8px 10px; }

/* --- tables ------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.dt {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  min-width: var(--minw, 560px);
}
.dt tbody tr { border-bottom: 1px solid var(--border-table); }
.dt tbody tr:last-child { border-bottom: 0; }
.dt th[scope='row'] {
  text-align: left;
  vertical-align: top;
  padding: 16px 20px;
  width: 38%;
  background: var(--page);
  font-weight: 600;
  color: var(--ink-card);
}
.dt td { padding: 16px 20px; }
.dt--tight th[scope='row'], .dt--tight td, .dt--tight thead th { padding: 14px 20px; }
.dt thead tr { background: var(--green-deep); color: var(--cream-alt); }
.dt thead th { text-align: left; padding: 14px 20px; font-weight: 600; }

/* --- about: visi / misi / nilai / timeline / struktur -------------------- */
.visi {
  margin: 0;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.55;
  color: var(--green);
  text-wrap: pretty;
}
.misi {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-body);
}
.value-term { font-family: var(--serif); font-size: 21px; color: var(--green); }

.tl-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.tl-row:last-child { border-bottom: 1px solid var(--border); }
.tl-date {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--earth);
  font-weight: 600;
}
.tl-text { font-size: 17px; line-height: 1.6; color: var(--ink-body); }

.person__name { font-size: 18px; font-weight: 600; color: var(--green-deep); }
.person__role { font-size: 15px; color: var(--ink-muted); }

/* --- programs: fact card ------------------------------------------------ */
.fact { display: grid; gap: 3px; }
.fact__value { font-size: 16px; color: var(--ink-body); }

/* --- legal: document cards ---------------------------------------------- */
.doc-title { font-family: var(--serif); font-size: 20px; color: var(--green-deep); }
.doc-text { font-size: 15px; line-height: 1.6; color: var(--ink-card); }

/* --- gallery: news ------------------------------------------------------ */
.news-date {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--earth);
  font-weight: 600;
}

/* --- contact ------------------------------------------------------------ */
.mail-big, .mail-big:hover {
  color: var(--cream);
  text-decoration: none;
  font-family: var(--mono);
  font-size: clamp(22px, 3.6vw, 36px);
  font-weight: 600;
  border-bottom: 2px solid rgba(246, 242, 231, 0.5);
  padding-bottom: 6px;
  justify-self: start;
  word-break: break-all;
}
.field { display: grid; gap: 6px; font-size: 15px; color: var(--ink-card); }
.field input, .field textarea {
  font-size: 16px;
  padding: 11px 12px;
  border: 1px solid var(--border-input);
  border-radius: 4px;
  background: var(--page);
  color: var(--ink);
}
.field textarea { resize: vertical; }
.form-note { font-size: 14px; color: var(--ink-label); }
.map { width: 100%; height: 380px; border: 0; display: block; }

/* --- footer ------------------------------------------------------------- */
.site-footer { margin-top: auto; background: var(--green-deep); color: var(--footer-ink); }
.site-footer a, .site-footer a:hover { color: var(--footer-ink); }
.site-footer .lnk-strong, .site-footer .lnk-strong:hover { color: var(--cream); }
.site-footer__name { font-family: var(--serif); font-size: 19px; color: var(--cream); }
.site-footer__col { display: grid; gap: 10px; font-size: 15px; line-height: 1.6; }
.site-footer__reg { font-size: 15px; line-height: 1.6; }
.social { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2px; }
.site-footer__bar { border-top: 1px solid rgba(220, 216, 201, 0.2); }
.site-footer__copy { font-size: 14px; opacity: 0.75; }
