/* =========================================================
   Kinship Families of Thailand
   "Quiet precision" — editorial, near-monochrome, hairline-driven.
   Display: Space Grotesk · Text: Inter · Accent: a single gold hairline.
   ========================================================= */

:root {
  /* Ink / surfaces */
  --ink:        #14271a;   /* near-black forest — text & solid surfaces */
  --ink-soft:   #3c4a40;   /* body text */
  --muted:      #79806f;   /* tertiary / labels */
  --green:      #15301f;   /* deep green surface */
  --green-2:    #1d3e29;

  /* Paper */
  --paper:      #fbfaf5;   /* page background */
  --paper-2:    #f2f0e7;   /* faint alternating band */
  --line:       #e4e0d3;   /* hairline on light */
  --line-2:     #d8d3c2;
  --line-dk:    rgba(255,255,255,.14); /* hairline on dark */

  /* Accent */
  --gold:       #a07d34;   /* restrained — lines, labels */
  --gold-2:     #c39a47;

  --white:#fff;

  --kft-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1240px;
  --gut: clamp(20px, 5vw, 56px);
  --hh: 112px;              /* header height */
  --ease: cubic-bezier(.4, 0, .15, 1);

  --r: 3px;                 /* squared geometry */
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 1.0625rem;
  line-height: 1.72;
  font-weight: 400;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
.page--flat { padding-top: var(--hh); }   /* clear the fixed header on heroless pages */
[id] { scroll-margin-top: calc(var(--hh) + 18px); }  /* anchor jumps clear the fixed header */

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--ink); color: var(--paper); }

h1, h2, h3, h4 {
  font-family: var(--kft-display);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 0;
}
p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gut); }
.section { padding: clamp(72px, 11vw, 148px) 0; }
.section--tight { padding: clamp(56px, 8vw, 104px) 0; }
.section--band { background: var(--paper-2); }
.section--ink { background: var(--ink); color: #cfd6c9; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Signature: gold tick + label ---------- */
.label {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--sans); font-weight: 600;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold);
}
.label::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .8; }
.label--plain::before { display: none; }
.on-dark .label, .label--light { color: var(--gold-2); }

.section-head { max-width: 720px; margin-bottom: clamp(38px, 5vw, 64px); }
.section-head .label { margin-bottom: 1.4rem; }
h2.section-title { font-size: clamp(1.9rem, 4vw, 2.1rem); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: var(--muted); line-height: 1.55; margin-top: 1.1rem; letter-spacing: -.01em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--sans); font-weight: 600;
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 1.05em 1.7em; border-radius: var(--r);
  border: 1px solid transparent; background: transparent;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn svg { transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--green-2); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--line-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--line-light:hover { background: #fff; color: var(--ink); border-color:#fff; }
.btn--block { width: 100%; justify-content: center; }
.btn--sm { padding: .85em 1.25em; font-size: .72rem; }

/* text link */
.tlink {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--sans); font-weight: 600; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); padding-bottom: 3px; border-bottom: 1px solid var(--line-2);
  transition: color .25s, border-color .25s;
}
.tlink svg { transition: transform .25s var(--ease); }
.tlink:hover { color: var(--gold); border-color: var(--gold); }
.tlink:hover svg { transform: translateX(3px); }
.on-dark .tlink { color: #fff; border-color: var(--line-dk); }
.on-dark .tlink:hover { color: var(--gold-2); border-color: var(--gold-2); }

/* inline prose link */
.inline-link { color: #2563eb; border-bottom: 1px solid rgba(37,99,235,.4); padding-bottom: 1px; transition: color .2s, border-color .2s; }
.inline-link:hover { color: #1d4ed8; border-color: #1d4ed8; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--hh);
  display: flex; align-items: center;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.site-header.solid {
  background: rgba(251,250,245,.86);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}

.brand { display: flex; align-items: center; flex: none; }
.brand .logo { height: clamp(59px, 6.8vw, 100px); width: auto; display: block; }
.brand .logo--white { display: none; }
/* dark backgrounds (over-hero header): wordmark goes white, icon + THAILAND stay original */
.site-header:not(.solid) .brand .logo--color { display: none; }
.site-header:not(.solid) .brand .logo--white { display: block; }
/* when the mobile menu is open the header sits over the cream drawer: use the colour logo + dark toggle */
.site-header.nav-open .brand .logo--white { display: none; }
.site-header.nav-open .brand .logo--color { display: block; }

.nav-links { display: flex; align-items: center; gap: 2.1rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--sans); font-weight: 500; font-size: .82rem; letter-spacing: .04em;
  color: var(--ink-soft); transition: color .25s;
}
.site-header:not(.solid) .nav-links a { color: rgba(255,255,255,.82); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold); }
.site-header:not(.solid) .nav-links a:hover, .site-header:not(.solid) .nav-links a[aria-current="page"] { color: #fff; }

.nav-cta { display: flex; align-items: center; gap: 1rem; }
.site-header:not(.solid) .nav-cta .btn--line { border-color: rgba(255,255,255,.5); color:#fff; }
.site-header:not(.solid) .nav-cta .btn--line:hover { background:#fff; color: var(--ink); }

.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line-2); background: transparent;
  border-radius: var(--r); flex-direction: column; gap: 5px; align-items: center; justify-content: center;
}
.site-header:not(.solid) .nav-toggle { border-color: rgba(255,255,255,.4); }
.nav-toggle span { width: 18px; height: 1.5px; background: var(--ink); transition: .3s var(--ease); }
.site-header:not(.solid) .nav-toggle span { background: #fff; }
.site-header.nav-open .nav-toggle { border-color: var(--line-2); }
.site-header.nav-open .nav-toggle span { background: var(--ink); }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,19,13,.62) 0%, rgba(11,19,13,.36) 30%, rgba(11,19,13,.8) 72%, rgba(11,19,13,.96) 100%),
    rgba(11,19,13,.14);  /* slight overall darkening so the headline always reads */
}
.hero__inner { padding-bottom: clamp(54px, 8vw, 104px); padding-top: calc(var(--hh) + 24px); max-width: 940px; }
.hero .label { color: var(--gold-2); margin-bottom: 1.6rem; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 1vw, 5.6rem); font-weight: 500; line-height: 1; letter-spacing: -.035em; max-width: 25ch; }
.hero h2 { color: #fff; font-size: 30px; font-weight: 500; line-height: 1; letter-spacing: -.035em; max-width: 90vw; }
.hero p { color: rgba(255,255,255,.86); font-size: clamp(1.05rem, 1.7vw, 1.3rem); max-width: 50ch; margin-top: 1.5rem; line-height: 1.55; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.4rem; }
.hero__scroll {
  position: absolute; left: var(--gut); bottom: 26px; display: flex; align-items: center; gap: .7em;
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.6);
}

/* ---------- Stats strip ---------- */
.stats { border-top: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(34px, 4.5vw, 56px) clamp(18px,2.5vw,34px); border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .num {
  font-family: var(--kft-display); font-weight: 500; font-size: clamp(2.6rem, 5vw, 4rem);
  color: var(--ink); line-height: 1; letter-spacing: -.03em; display: flex; align-items: baseline; gap: .12em;
}
.stat .num .suffix { font-size: .42em; color: var(--gold); }
.stat .lbl { margin-top: 1rem; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* ---------- Feature (asymmetric image + text) ---------- */
.feature { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(34px, 6vw, 96px); align-items: center; }
.feature--flip .feature__text { order: -1; }
.feature__media { position: relative; }
.feature__media img { width: 100%; aspect-ratio: 4/3.2; object-fit: cover; border-radius: var(--r); }
.feature__media figcaption { margin-top: .9rem; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: .7em; }
.feature__media figcaption::before { content: ""; width: 22px; height: 1px; background: var(--gold); }
.feature h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: 1.2rem; }
.feature .body p { margin-bottom: 1.1rem; }
.feature .actions { margin-top: 2rem; }

/* ---------- Ways to give ---------- */
.give-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.give-card { padding: clamp(30px, 3.4vw, 48px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .3s var(--ease); position: relative; }
.give-card:hover { background: var(--paper-2); }
.give-card .ico { width: 30px; height: 30px; color: var(--gold); margin-bottom: clamp(28px,4vw,52px); }
.give-card h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.give-card p { font-size: .96rem; color: var(--muted); margin-bottom: 1.5rem; }
.give-card .price { font-family: var(--kft-display); font-weight: 500; font-size: 1.05rem; color: var(--ink); letter-spacing: -.01em; }
.give-card .price .per { color: var(--muted); font-family: var(--sans); font-size: .82rem; font-weight: 500; }

/* ---------- Process / Kinship model (sequence) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: clamp(28px,3vw,40px) clamp(20px,2vw,30px) 0; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step .idx { font-family: var(--kft-display); font-weight: 500; font-size: .9rem; color: var(--gold); letter-spacing: .08em; }
.step .ico { width: 26px; height: 26px; color: var(--ink); margin: clamp(34px,5vw,64px) 0 1.2rem; }
.step h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.step p { font-size: .8rem; color: var(--muted); }

/* ---------- Stories (editorial text) ---------- */
.stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.story { border-top: 2px solid var(--ink); padding-top: 1.6rem; }
.story .idx { font-family: var(--kft-display); font-weight: 500; color: var(--gold); font-size: .82rem; letter-spacing: .1em; }
.story h3 { font-size: 1.45rem; margin: 1.4rem 0 .8rem; line-height: 1.1; }
.story p { font-size: .98rem; color: var(--muted); margin-bottom: 1.4rem; }

/* ---------- Core values (bordered grid) ---------- */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.value { padding: clamp(26px, 3vw, 42px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .3s var(--ease); }
.value:hover { background: var(--paper-2); }
.value .idx { font-family: var(--kft-display); font-weight: 500; font-size: .82rem; color: var(--gold); letter-spacing: .1em; }
.value h3 { font-size: 1.2rem; margin: .95rem 0 .55rem; line-height: 1.15; }
.value p { font-size: .95rem; color: var(--muted); margin: 0; }

/* ---------- Pull quote (scripture) ---------- */
.pullquote { margin: clamp(28px, 4vw, 44px) 0 0; padding-left: clamp(1.2rem, 2vw, 1.8rem); border-left: 2px solid var(--gold); }
.pullquote p { font-family: var(--kft-display); font-weight: 500; font-size: clamp(1.4rem, 2.8vw, 2.1rem); color: var(--ink); line-height: 1.18; letter-spacing: -.02em; margin: 0; }
.pullquote cite { display: block; margin-top: .9rem; font-style: normal; font-family: var(--sans); font-weight: 600; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.on-dark .pullquote p { color: #fff; }

/* ---------- Families index (roster) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 1.6rem; align-items: center; margin-bottom: 12px; }
.filter {
  background: none; border: 0; padding: .4em 0; font-family: var(--sans); font-weight: 500; font-size: .82rem;
  letter-spacing: .02em; color: var(--muted); border-bottom: 2px solid transparent; transition: color .25s, border-color .25s;
}
.filter:hover { color: var(--ink); }
.filter.is-active { color: var(--ink); border-color: var(--gold); }

.roster { border-top: 1px solid var(--ink); }
.row {
  display: grid; grid-template-columns: 56px 1fr 200px 130px 40px; align-items: center; gap: 1.5rem;
  padding: clamp(22px, 2.6vw, 34px) 4px; border-bottom: 1px solid var(--line);
  transition: padding-left .3s var(--ease), background .3s var(--ease); position: relative;
}
.row:hover { background: var(--paper-2); padding-left: 18px; }
.row .ridx { font-family: var(--kft-display); font-weight: 500; color: var(--gold); font-size: .9rem; }
.row .fname { font-family: var(--kft-display); font-weight: 500; font-size: clamp(1.3rem, 2.4vw, 1.9rem); color: var(--ink); letter-spacing: -.02em; }
.row .rmeta { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.row .rcount { font-family: var(--kft-display); font-weight: 500; color: var(--ink-soft); font-size: .95rem; }
.row .rcount span { color: var(--muted); font-family: var(--sans); font-size: .76rem; }
.row .arr { color: var(--ink); justify-self: end; transition: transform .3s var(--ease); }
.row:hover .arr { transform: translateX(5px); color: var(--gold); }
.row.is-hidden { display: none; }

/* ---------- Family detail ---------- */
.fd-hero { position: relative; color: #fff; min-height: clamp(420px, 64vh, 620px); display: flex; align-items: flex-end; overflow: hidden; }
.fd-hero__media { position: absolute; inset: 0; z-index: -1; }
.fd-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.fd-hero__media::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(15,25,18,.25) 30%, rgba(15,25,18,.9)); }
.fd-hero__inner { padding-bottom: clamp(38px, 5vw, 64px); padding-top: calc(var(--hh) + 30px); width: 100%; }
.back-link { display:inline-flex; align-items:center; gap:.5em; font-size:.74rem; letter-spacing:.14em; text-transform:uppercase; color: rgba(255,255,255,.7); margin-bottom: 1.4rem; }
.back-link:hover { color:#fff; }
.fd-hero h1 { color:#fff; font-size: clamp(2.2rem, 5.2vw, 3.8rem); letter-spacing: -.03em; }
.fd-codeline { margin-top: .9rem; }
.fd-codeline .fd-tag { color: rgba(255,255,255,.82); font-size: 1.05rem; font-style: italic; }
.fd-meta { display: flex; flex-wrap: wrap; gap: 0; margin-top: 1.4rem; }
.fd-meta div { padding-right: 2rem; margin-right: 2rem; border-right: 1px solid rgba(255,255,255,.22); }
.fd-meta div:last-child { border-right: 0; }
.fd-meta .k { display:block; font-size:.68rem; letter-spacing:.16em; text-transform:uppercase; color: var(--gold-2); margin-bottom:.25rem; }
.fd-meta .v { font-family: var(--kft-display); font-weight:500; font-size:1.05rem; color:#fff; }

.tabs { display: flex; flex-wrap: wrap; gap: 2rem; border-bottom: 1px solid var(--line); margin-bottom: clamp(34px,5vw,52px); }
.tab { background: none; border: 0; padding: 0 0 1.1rem; font-family: var(--sans); font-weight: 600; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .25s, border-color .25s; }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); border-color: var(--gold); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fade .45s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tab-panel h2 { font-size: clamp(1.5rem,3vw,2rem); margin-bottom: 1.2rem; }

/* Story tab: named identity lead, with the home's narrative fused in */
.tab-panel[data-panel="story"] .label { margin-bottom: 1.1rem; }
.tab-panel[data-panel="story"] h2 { margin-bottom: .5rem; }
.fd-meaning { font-family: var(--kft-display); font-weight: 500; font-style: italic; font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--gold); letter-spacing: -.01em; margin-bottom: 1.4rem; }
.fd-story-body { margin-top: 1.3rem; }

.fd-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(34px, 6vw, 80px); align-items: start; }
.needs-list { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.needs-list li { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 0; border-top: 1px solid var(--line); font-size: .98rem; color: var(--ink-soft); }
.needs-list .ico { color: var(--gold); flex: none; margin-top: 3px; }
.people { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(20px,4vw,48px); }
.people li { padding: 1rem 0; border-top: 1px solid var(--line); font-family: var(--kft-display); font-weight: 500; font-size: 1.05rem; color: var(--ink); letter-spacing: -.01em; }
@media (max-width: 560px) { .people { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.contact-list { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.contact-list li { display: flex; flex-direction: column; gap: .35rem; padding: 1.2rem 0; border-top: 1px solid var(--line); }
.contact-list li:first-child { border-top: 0; padding-top: 0; }
.contact-list .k { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact-list .v, .contact-list a { font-family: var(--kft-display); font-weight: 500; font-size: 1.18rem; color: var(--ink); letter-spacing: -.01em; }
.contact-list a:hover { color: var(--gold); }
.contact-socials { display: flex; gap: 1.4rem; margin-top: 2rem; }
.contact-socials a { color: var(--muted); transition: color .25s; }
.contact-socials a:hover { color: var(--gold); }

.form .field { margin-bottom: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: .55rem; }
.form input, .form textarea {
  width: 100%; padding: .9em 1em; border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--paper); font-family: var(--sans); font-size: 1rem; color: var(--ink); transition: border-color .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ink); }
.form textarea { resize: vertical; min-height: 150px; }
.form .btn { margin-top: .4rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }

.support-card { border: 1px solid var(--line); border-radius: var(--r); padding: clamp(26px,3vw,38px); position: sticky; top: calc(var(--hh) + 20px); background: var(--paper); }
.support-card h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.support-card p.sc-sub { font-size: .92rem; color: var(--muted); }
.support-card .btn--block { margin-top: 22px; }
.support-card .btn--block + .btn--block { margin-top: 10px; }
.sc-note { margin-top: 14px; font-size: .76rem; color: var(--muted); text-align: center; }

/* ---------- CTA band ---------- */
.cta { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.cta__topo { position: absolute; inset: 0; opacity: .06; pointer-events: none; }
.cta__topo img { width: 100%; height: 100%; object-fit: cover; }
.cta .container { position: relative; }
.cta .label { color: var(--gold-2); margin-bottom: 1.5rem; }
.cta h2 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -.03em; max-width: 18ch; }
.cta p { color: rgba(255,255,255,.78); max-width: 52ch; margin-top: 1.3rem; font-size: 1.08rem; }
.cta .actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green); color: #aab6a3; padding: clamp(60px, 8vw, 100px) 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.3fr; gap: clamp(32px, 4vw, 56px); }
.footer-watchdogs { display: grid; grid-template-columns: repeat(6, 40px); gap: 10px; }
.footer-watchdogs a { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1; transition: transform .25s; }
.footer-watchdogs a:hover { transform: translateY(-2px); }
.footer-watchdogs img { width: 100%; height: 100%; object-fit: contain; display: block; }
.site-footer .footer-fineprint { font-size: .7rem; line-height: 1.6; }
.site-footer p { color: #93a08c; font-size: .96rem; max-width: 50ch; }
.footer-col h4 { color: #fff; font-family: var(--sans); font-weight: 600; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 1.3rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.footer-col a { color: #aab6a3; font-size: .95rem; transition: color .25s; }
.footer-col a:hover { color: var(--gold-2); }
.form-status.is-success { color: var(--ink); }
.form-status.is-error { color: #b23b3b; }
.site-footer .form-status.is-success { color: #cfd8c8; }
.site-footer .form-status.is-error { color: #e5a9a9; }
.footer-news { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1rem; }
.footer-news .form-status { flex-basis: 100%; }
.footer-news input { flex: 1; min-width: 0; padding: .8em 1em; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: #fff; border-radius: var(--r); font-family: var(--sans); }
.footer-news input::placeholder { color: #7e8c78; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: clamp(44px,5vw,68px); padding-top: 26px; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-size: .82rem; color: #7e8c78; }
.footer-bottom .socials { display: flex; gap: 1.2rem; }
.footer-bottom .socials a { color: #93a08c; transition: color .25s; }
.footer-bottom .socials a:hover { color: var(--gold-2); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
[data-delay="1"]{ transition-delay: .08s; } [data-delay="2"]{ transition-delay: .16s; } [data-delay="3"]{ transition-delay: .24s; }

/* ---------- Mobile drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(15,25,18,.5); opacity: 0; visibility: hidden; transition: .35s; z-index: 98; }
.scrim.show { opacity: 1; visibility: visible; }
.nav-drawer {
  position: fixed; top: 0; right: 0; height: 100dvh; width: 100%; z-index: 99;
  background: var(--paper); padding: calc(var(--hh) + 16px) var(--gut) 40px;
  transform: translateX(105%); transition: transform .4s var(--ease); display: flex; flex-direction: column; overflow-y: auto;
}
.nav-drawer.open { transform: none; }
.nav-drawer a:not(.btn) { font-family: var(--kft-display); font-weight: 500; font-size: 1.5rem; color: var(--ink); padding: .7em 0; border-bottom: 1px solid var(--line); letter-spacing: -.01em; }
.nav-drawer .btn { margin-top: 1.8rem; }

/* ---------- Donation modal (embedded GiveSmart form) ---------- */
.donate-modal { position: fixed; inset: 0; z-index: 200; display: none; }
.donate-modal.open { display: block; animation: donateFade .3s var(--ease); }
@keyframes donateFade { from { opacity: 0; } to { opacity: 1; } }
.donate-modal__scrim { position: absolute; inset: 0; background: rgba(11,19,13,.66); backdrop-filter: blur(3px); }
.donate-modal__panel {
  position: absolute; inset: 0; margin: auto; width: min(560px, 94vw); max-height: 92vh;
  display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r);
  overflow: hidden; box-shadow: 0 30px 90px rgba(0,0,0,.45);
}
.donate-modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%;
  background: rgba(251,250,245,.92); color: var(--ink); box-shadow: 0 2px 10px rgba(0,0,0,.12); transition: background .2s;
}
.donate-modal__close:hover { background: #fff; }
.donate-modal__body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.donate-modal__body iframe { width: 100%; border: 0; display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature--flip .feature__text { order: 0; }
  .give-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stories { grid-template-columns: 1fr; gap: 0; }
  .story { padding: 1.6rem 0; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .fd-grid { grid-template-columns: 1fr; }
  .support-card { position: static; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .row { grid-template-columns: 38px 1fr 28px; gap: 1rem; row-gap: .25rem; padding-block: 22px; }
  .row:hover { padding-left: 4px; }   /* no shift on touch */
  .row .ridx { align-self: start; padding-top: .35rem; }
  .row .rmeta { grid-column: 2; }
  .row .rcount { grid-column: 2; }
  .row .arr { grid-row: 1 / span 3; grid-column: 3; align-self: center; }
  /* tabs become a horizontal scroller */
  .tabs { flex-wrap: nowrap; overflow-x: auto; gap: 1.5rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { white-space: nowrap; flex: none; }
}
@media (max-width: 560px) {
  :root { --hh: 124px; }
  .brand .logo { height: clamp(81px, 27vw, 107px); }   /* ~80% larger on phones */
  .site-header .container { gap: 12px; }
  .section { padding: clamp(56px, 14vw, 80px) 0; }
  .give-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 28px; }
  .step:last-child { border-bottom: 0; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 30px 16px; }
  .fd-meta div { border-right: 0; padding-right: 0; margin-right: 0; margin-bottom: 1rem; }
  .fd-meta div:last-child { margin-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-watchdogs { grid-template-columns: repeat(3, 64px); gap: 16px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .hero .actions { flex-direction: column; align-items: stretch; }
  .hero .actions .btn { width: 100%; justify-content: center; }
  .hero__scroll { display: none; }
  .filters { gap: 1.1rem 1.4rem; }
  .mobile-hidden-hero { display: none; }
}
@media (max-width: 380px) {
  .stats__grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
}
@media (min-width: 861px) { .nav-drawer, .scrim { display: none; } }


/* =====================================================================
   ELEMENTOR LAYER
   Maps the original design onto Elementor's markup. Everything above this
   line is the original static-site stylesheet (kept verbatim so the roster
   and family-detail shortcodes render identically).
   Convention: widgets/containers carry a "kft-*" class set in the editor.
   ===================================================================== */

/* Elementor resets so our spacing is the only spacing */
.e-con.kft-c, .e-con.kft-section, .e-con.kft-container {
  --padding-top: 0; --padding-right: 0; --padding-bottom: 0; --padding-left: 0;
  --gap: 0px; --row-gap: 0px; --column-gap: 0px;
}
.elementor-widget:not(:last-child) { margin-block-end: 0; }
.elementor-widget-container > :last-child { margin-bottom: 0; }
.elementor-widget-text-editor, .elementor-widget-text-editor p { font: inherit; color: inherit; }
.elementor-widget-text-editor p { margin: 0 0 1.1rem; }
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.elementor-widget-heading .elementor-heading-title {
  font-family: var(--kft-display); color: var(--ink); font-weight: 500; line-height: 1.02; letter-spacing: -.02em;
}
.elementor-editor-active .reveal { opacity: 1; transform: none; }

/* Section + container wrappers */
.e-con.kft-section { padding-block: clamp(72px, 11vw, 148px); }
.e-con.kft-section--tight { padding-block: clamp(56px, 8vw, 104px); }
.e-con.kft-band { background: var(--paper-2); }
.e-con.kft-container {
  width: 100%; max-width: var(--container); margin-inline: auto;
  padding-inline: var(--gut);
}
.e-con.kft-divider { height: 1px; background: var(--line); width: 100%; min-height: 0; }

/* Equal-height grids driven by a class on the parent container */
.e-con.kft-grid { display: grid; align-items: start; }
.e-con.kft-grid > .elementor-element, .e-con.kft-grid > .e-con { width: auto; max-width: none; margin: 0; }
.e-con.kft-feature { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(34px, 6vw, 96px); align-items: center; }
.e-con.kft-feature--flip .kft-feature__text { order: -1; }
.e-con.kft-contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.e-con.kft-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.e-con.kft-give-grid, .e-con.kft-value-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.e-con.kft-steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.e-con.kft-stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.e-con.kft-footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.3fr; gap: clamp(32px, 4vw, 56px); align-items: start; }

/* Signature label (gold tick + small caps) — text-editor widget containing <span class="label"> */
.kft-label-w { margin-bottom: 1.4rem; }

/* Headings */
.kft-h1 .elementor-heading-title { font-size: clamp(2.3rem, 5.4vw, 4rem); margin-top: 1.4rem; }
.kft-h2 .elementor-heading-title { font-size: clamp(1.9rem, 4vw, 2.1rem); }
.kft-h2--feature .elementor-heading-title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-top: 1.3rem; margin-bottom: 1.2rem; }
.kft-lead, .kft-lead p { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: var(--muted); line-height: 1.55; letter-spacing: -.01em; }
.kft-lead a, .kft-prose a { color: #2563eb; border-bottom: 1px solid rgba(37,99,235,.4); padding-bottom: 1px; transition: color .2s, border-color .2s; }
.kft-lead a:hover, .kft-prose a:hover { color: #1d4ed8; border-color: #1d4ed8; }
.kft-section-head { max-width: 720px; margin-bottom: clamp(38px, 5vw, 64px); }
.kft-intro { max-width: 900px; }
.kft-prose { max-width: 68ch; font-size: clamp(1.03rem, 1.3vw, 1.13rem); line-height: 1.7; color: var(--ink-soft); }

/* Buttons (button widget + class kft-btn kft-btn--variant) */
.kft-btn .elementor-button {
  display: inline-flex; align-items: center; gap: .7em; border-radius: var(--r);
  font-family: var(--sans); font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 1.05em 1.7em; border: 1px solid transparent; background: transparent; line-height: 1.2;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.kft-btn--sm .elementor-button { padding: .85em 1.25em; font-size: .72rem; }
.kft-btn--primary .elementor-button { background: var(--ink); color: var(--paper); }
.kft-btn--primary .elementor-button:hover { background: var(--green-2); color: var(--paper); }
.kft-btn--line .elementor-button { border-color: var(--ink); color: var(--ink); }
.kft-btn--line .elementor-button:hover { background: var(--ink); color: var(--paper); }
.kft-btn--light .elementor-button { background: var(--paper); color: var(--ink); }
.kft-btn--light .elementor-button:hover { background: #fff; color: var(--ink); }
.kft-btn--line-light .elementor-button { border-color: rgba(255,255,255,.55); color: #fff; }
.kft-btn--line-light .elementor-button:hover { background: #fff; color: var(--ink); border-color: #fff; }
.kft-actions { display: flex; flex-direction: row; flex-wrap: wrap; gap: .9rem; margin-top: 2.4rem; }
.e-con.kft-actions { --gap: .9rem; --flex-wrap: wrap; --flex-direction: row; }
.kft-tlink a { font-weight: 600; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); padding-bottom: 3px; border-bottom: 1px solid var(--line-2); }
.kft-tlink a:hover { color: var(--gold); border-color: var(--gold); }

/* Header (Theme Builder) */
.e-con.kft-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--hh); width: 100%;
  align-items: center; justify-content: center;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
body.admin-bar .e-con.kft-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .e-con.kft-header { top: 46px; } }
.e-con.kft-header.solid {
  background: rgba(251,250,245,.86); backdrop-filter: saturate(160%) blur(14px); border-bottom-color: var(--line);
}
.e-con.kft-header-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 1.5rem; }
.kft-header .kft-logo img { height: clamp(59px, 6.8vw, 100px); width: auto; max-width: none; }
.kft-header .kft-logo--white { display: none; }
.kft-header:not(.solid) .kft-logo--color { display: none; }
.kft-header:not(.solid) .kft-logo--white { display: block; }
.kft-header.nav-open .kft-logo--white { display: none; }
.kft-header.nav-open .kft-logo--color { display: block; }
.kft-header .elementor-nav-menu a.elementor-item {
  font-family: var(--sans); font-weight: 500; font-size: .82rem; letter-spacing: .04em; color: var(--ink-soft); padding: .4em 1.05rem;
}
.kft-header:not(.solid) .elementor-nav-menu a.elementor-item { color: rgba(255,255,255,.82); }
.kft-header .elementor-nav-menu a.elementor-item:hover,
.kft-header .elementor-nav-menu a.elementor-item.elementor-item-active { color: var(--gold); background: transparent; }
.kft-header:not(.solid) .elementor-nav-menu a.elementor-item:hover,
.kft-header:not(.solid) .elementor-nav-menu a.elementor-item.elementor-item-active { color: #fff; }
.kft-header .elementor-menu-toggle { border: 1px solid var(--line-2); border-radius: var(--r); background: transparent; color: var(--ink); }
.kft-header:not(.solid) .elementor-menu-toggle { border-color: rgba(255,255,255,.4); color: #fff; }
.kft-header.nav-open .elementor-menu-toggle { border-color: var(--line-2); color: var(--ink); }
.kft-header .elementor-nav-menu--dropdown { background: var(--paper); margin-top: 18px; }
.kft-header .elementor-nav-menu--dropdown a { font-family: var(--kft-display); font-size: 1.3rem; color: var(--ink); border-bottom: 1px solid var(--line); padding: .7em 1rem; }
.kft-header:not(.solid) .kft-btn--line .elementor-button { border-color: rgba(255,255,255,.5); color: #fff; }
.kft-header:not(.solid) .kft-btn--line .elementor-button:hover { background: #fff; color: var(--ink); }
.kft-header .kft-nav-cta { margin-left: auto; }

/* Hero */
.e-con.kft-hero {
  position: relative; min-height: 100svh; justify-content: flex-end; color: #fff; overflow: hidden;
  background-size: cover; background-position: center 30%;
}
.e-con.kft-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11,19,13,.62) 0%, rgba(11,19,13,.36) 30%, rgba(11,19,13,.8) 72%, rgba(11,19,13,.96) 100%),
    rgba(11,19,13,.14);
}
.e-con.kft-hero > * { position: relative; z-index: 1; }
.e-con.kft-hero-inner { max-width: 940px; margin-inline: auto; width: 100%; padding-inline: var(--gut); padding-bottom: clamp(54px, 8vw, 104px); padding-top: calc(var(--hh) + 24px); }
.kft-hero .label { color: var(--gold-2); margin-bottom: 1.6rem; }
.kft-hero h1 .elementor-heading-title, .kft-hero .kft-hero-h1 .elementor-heading-title { color: #fff; font-size: clamp(2.5rem, 1vw, 5.6rem); font-weight: 500; line-height: 1; letter-spacing: -.035em; max-width: 25ch; margin: 0; }
.kft-hero .kft-hero-h2 .elementor-heading-title { color: #fff; font-size: 30px; font-weight: 500; line-height: 1; letter-spacing: -.035em; max-width: 90vw; margin: 0; }
.kft-hero .kft-hero-p, .kft-hero .kft-hero-p p { color: rgba(255,255,255,.86); font-size: clamp(1.05rem, 1.7vw, 1.3rem); max-width: 50ch; line-height: 1.55; }

/* Stats (Counter widget) */
.kft-stat { padding: clamp(34px, 4.5vw, 56px) clamp(18px,2.5vw,34px); border-right: 1px solid var(--line); }
.kft-stat:last-child { border-right: 0; }
.kft-stat .elementor-counter-number-wrapper {
  font-family: var(--kft-display); font-weight: 500; font-size: clamp(2.6rem, 5vw, 4rem); color: var(--ink);
  line-height: 1; letter-spacing: -.03em; justify-content: flex-start; align-items: baseline; gap: .12em;
}
.kft-stat .elementor-counter-number-suffix { font-size: .42em; color: var(--gold); }
.kft-stat .elementor-counter-title {
  margin-top: 1rem; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; text-align: left;
}
.kft-stat .elementor-counter { text-align: left; }

/* Feature image + caption */
.kft-feature__media img { width: 100%; aspect-ratio: 4/3.2; object-fit: cover; border-radius: var(--r); }
.kft-feature__media figcaption, .kft-feature__media .widget-image-caption {
  margin-top: .9rem; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: .7em; text-align: left;
}
.kft-feature__media figcaption::before, .kft-feature__media .widget-image-caption::before { content: ""; width: 22px; height: 1px; background: var(--gold); }
.kft-feature__media--wide img { aspect-ratio: 21/8; }

/* Give cards (Icon Box widget) */
.kft-give-card { padding: clamp(30px, 3.4vw, 48px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .3s var(--ease); }
.kft-give-card:hover { background: var(--paper-2); }
.kft-give-card .elementor-icon-box-wrapper { display: block; text-align: left; }
.kft-give-card .elementor-icon-box-icon { margin: 0 0 clamp(28px,4vw,52px); display: block; }
.kft-give-card .elementor-icon { color: var(--gold); font-size: 30px; }
.kft-give-card .elementor-icon svg { fill: var(--gold); width: 30px; height: 30px; }
.kft-give-card .elementor-icon-box-title { font-family: var(--kft-display); font-weight: 500; font-size: 1.3rem; color: var(--ink); margin-bottom: .5rem; letter-spacing: -.02em; line-height: 1.02; }
.kft-give-card .elementor-icon-box-description { font-size: .96rem; color: var(--muted); }

/* Values / steps / stories (small containers) */
.kft-value { padding: clamp(26px, 3vw, 42px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .3s var(--ease); }
.kft-value:hover { background: var(--paper-2); }
.kft-idx, .kft-idx p { font-family: var(--kft-display); font-weight: 500; font-size: .82rem; color: var(--gold); letter-spacing: .1em; }
.kft-value .elementor-heading-title { font-size: 1.2rem; margin: .95rem 0 .55rem; line-height: 1.15; }
.kft-value .kft-value-p, .kft-value .kft-value-p p { font-size: .95rem; color: var(--muted); }
.kft-step { padding: clamp(28px,3vw,40px) clamp(20px,2vw,30px) 0; border-right: 1px solid var(--line); }
.kft-step:last-child { border-right: 0; }
.kft-step .elementor-icon-box-wrapper { display: block; text-align: left; }
.kft-step .elementor-icon-box-icon { margin: clamp(34px,5vw,64px) 0 1.2rem; display: block; }
.kft-step .elementor-icon { color: var(--ink); font-size: 26px; }
.kft-step .elementor-icon-box-title { font-family: var(--kft-display); font-weight: 500; font-size: 1.3rem; color: var(--ink); margin-bottom: .5rem; }
.kft-step .elementor-icon-box-description { font-size: .8rem; color: var(--muted); }
.kft-story { border-top: 2px solid var(--ink); padding-top: 1.6rem; }
.kft-story .elementor-heading-title { font-size: 1.45rem; margin: 1.4rem 0 .8rem; line-height: 1.1; }
.kft-story .kft-story-p, .kft-story .kft-story-p p { font-size: .98rem; color: var(--muted); }

/* CTA band */
.e-con.kft-cta { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.e-con.kft-cta::before { content: ""; position: absolute; inset: 0; opacity: .06; pointer-events: none; background: var(--kft-topo, none) center / cover no-repeat; }
.e-con.kft-cta > * { position: relative; }
.kft-cta .label { color: var(--gold-2); margin-bottom: 1.5rem; }
.kft-cta .elementor-heading-title { color: #fff; font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -.03em; max-width: 18ch; }
.kft-cta .kft-cta-p, .kft-cta .kft-cta-p p { color: rgba(255,255,255,.78); max-width: 52ch; font-size: 1.08rem; }

/* Contact details list */
.kft-contact-list .k { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.kft-contact-list .v, .kft-contact-list a { font-family: var(--kft-display); font-weight: 500; font-size: 1.18rem; color: var(--ink); letter-spacing: -.01em; line-height: 1.3; }
.kft-contact-list a:hover { color: var(--gold); }

/* Elementor Form (Pro) in the design */
.kft-form .elementor-field-label { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: .55rem; }
.kft-form .elementor-field-textual {
  width: 100%; padding: .9em 1em; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--paper);
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
}
.kft-form .elementor-field-textual:focus { outline: none; border-color: var(--ink); }
.kft-form textarea.elementor-field-textual { min-height: 150px; resize: vertical; }
.kft-form .elementor-button { background: var(--ink); color: var(--paper); border-radius: var(--r); font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; padding: 1.05em 1.7em; }
.kft-form .elementor-button:hover { background: var(--green-2); }
.kft-form .elementor-message-success { color: var(--ink); }
.kft-form .elementor-message-danger { color: #b23b3b; }
.kft-form .elementor-form-fields-wrapper { gap: 0; row-gap: 18px; }

/* Footer */
.e-con.kft-footer { background: var(--green); color: #aab6a3; padding-block: clamp(60px, 8vw, 100px) 34px; }
.kft-footer p, .kft-footer .elementor-widget-text-editor { color: #93a08c; font-size: .96rem; max-width: 50ch; }
.kft-footer .kft-fineprint, .kft-footer .kft-fineprint p { font-size: .7rem; line-height: 1.6; margin-top: 1.3rem; }
.e-con.kft-watchdogs { display: grid; grid-template-columns: repeat(6, 40px); gap: 10px; }
.kft-watchdogs .elementor-widget-image a { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1; transition: transform .25s; }
.kft-watchdogs .elementor-widget-image a:hover { transform: translateY(-2px); }
.kft-watchdogs img { width: 100%; height: 100%; object-fit: contain; }
.kft-footer h4, .kft-footer .kft-h4 .elementor-heading-title { color: #fff; font-family: var(--sans); font-weight: 600; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 1.3rem; }
.kft-footer-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.kft-footer-links a { color: #aab6a3; font-size: .95rem; transition: color .25s; }
.kft-footer-links a:hover { color: var(--gold-2); }
.kft-footer .kft-news .elementor-field-textual { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.16); color: #fff; border-radius: var(--r); padding: .8em 1em; }
.kft-footer .kft-news .elementor-field-textual::placeholder { color: #7e8c78; }
.kft-footer .kft-news .elementor-button { background: var(--paper); color: var(--ink); padding: .85em 1.25em; font-size: .72rem; }
.kft-footer .kft-news .elementor-message { color: #cfd8c8; }
.e-con.kft-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: clamp(44px,5vw,68px); padding-top: 26px; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.kft-footer-bottom, .kft-footer-bottom p { font-size: .82rem; color: #7e8c78; }
.kft-footer .elementor-social-icon { background: transparent !important; color: #93a08c; font-size: 18px; }
.kft-footer .elementor-social-icon:hover { color: var(--gold-2); }
.kft-footer .elementor-social-icon svg { fill: currentColor; }

/* Page offset under the fixed header for pages without a hero */
.e-con.kft-page-top { padding-top: var(--hh); }

/* Family detail (shortcode) uses original classes; the page body needs the header offset only via .fd-hero's own padding. */
.kft-fd .fd-hero { isolation: isolate; }

/* ---------- Elementor layer: responsive ---------- */
@media (max-width: 1080px) {
  .e-con.kft-feature { grid-template-columns: 1fr; gap: 32px; }
  .e-con.kft-feature--flip .kft-feature__text { order: 0; }
  .e-con.kft-give-grid, .e-con.kft-value-grid { grid-template-columns: repeat(2, 1fr); }
  .e-con.kft-steps { grid-template-columns: repeat(2, 1fr); }
  .kft-step:nth-child(2) { border-right: 0; }
  .kft-step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .e-con.kft-footer-grid { grid-template-columns: 1fr 1fr; }
  .e-con.kft-stories { grid-template-columns: 1fr; gap: 0; }
  .kft-story { padding: 1.6rem 0; }
}
@media (max-width: 860px) {
  .e-con.kft-contact-grid { grid-template-columns: 1fr; }
  .e-con.kft-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .kft-stat:nth-child(2) { border-right: 0; }
  .kft-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .kft-header .kft-logo img { height: clamp(81px, 27vw, 107px); }
  .e-con.kft-give-grid, .e-con.kft-value-grid, .e-con.kft-steps { grid-template-columns: 1fr; }
  .kft-step { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 28px; }
  .kft-step:last-child { border-bottom: 0; }
  .e-con.kft-footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .e-con.kft-watchdogs { grid-template-columns: repeat(3, 64px); gap: 16px; }
  .e-con.kft-footer-bottom { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .e-con.kft-actions { flex-direction: column; align-items: stretch; }
  .e-con.kft-actions .kft-btn .elementor-button { width: 100%; justify-content: center; }
  .kft-hero__scroll { display: none; }
}
@media (max-width: 380px) {
  .e-con.kft-stats-grid { grid-template-columns: 1fr; }
  .kft-stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .kft-stat:last-child { border-bottom: 0; }
}

/* Hero scroll cue (text-editor widget with class kft-hero__scroll) */
.e-con.kft-hero .kft-hero__scroll {
  position: absolute; left: var(--gut); bottom: 26px; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.6);
}
.kft-header .kft-logo-wrap { display: flex; align-items: center; }

/* ---------- Pro-free header: [kft_nav] menu + toggle + drawer ---------- */
.kft-site-header { display: contents; }
.kft-header .kft-nav .nav-links a { font-family: var(--sans); font-weight: 500; font-size: .82rem; letter-spacing: .04em; color: var(--ink-soft); transition: color .25s; }
.kft-header:not(.solid) .kft-nav .nav-links a { color: rgba(255,255,255,.82); }
.kft-header .kft-nav .nav-links a:hover, .kft-header .kft-nav .nav-links a[aria-current="page"] { color: var(--gold); }
.kft-header:not(.solid) .kft-nav .nav-links a:hover, .kft-header:not(.solid) .kft-nav .nav-links a[aria-current="page"] { color: #fff; }
.kft-nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line-2); background: transparent; border-radius: var(--r);
  flex-direction: column; gap: 5px; align-items: center; justify-content: center; padding: 0;
}
.kft-nav-toggle span { width: 18px; height: 1.5px; background: var(--ink); transition: .3s var(--ease); display: block; }
.kft-header:not(.solid) .kft-nav-toggle { border-color: rgba(255,255,255,.4); }
.kft-header:not(.solid) .kft-nav-toggle span { background: #fff; }
.kft-header.nav-open .kft-nav-toggle { border-color: var(--line-2); }
.kft-header.nav-open .kft-nav-toggle span { background: var(--ink); }
.kft-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.kft-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.kft-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.e-con.kft-header-inner .elementor-widget-shortcode { width: auto; }
.e-con.kft-header-inner .kft-nav-wrap { margin-left: auto; margin-right: 1rem; flex-direction: row; align-items: center; gap: 1rem; }
@media (max-width: 860px) {
  .kft-header .kft-nav { display: none; }
  .kft-header .kft-nav-cta { display: none; }
  .kft-nav-toggle { display: flex; }
}
@media (min-width: 861px) { .nav-drawer, .scrim { display: none; } }
.admin-bar .nav-drawer { padding-top: calc(var(--hh) + 48px); }
/* shortcode form widgets inherit the original form styling */
.kft-form-w .form .btn, .kft-form-w .footer-news .btn { cursor: pointer; }

/* nested containers inside row layouts size to their content (Elementor defaults them to equal shares) */
.e-con.kft-header-inner > .e-con, .e-con.kft-footer-bottom > .elementor-element, .e-con.kft-nav-wrap > .elementor-element { --width: auto; width: auto; flex: 0 0 auto; }
.e-con.kft-logo-wrap { align-items: flex-start; }
.e-con.kft-nav-wrap { justify-content: flex-end; }
@media (max-width: 560px) { .kft-hero .kft-hero-h2 .elementor-heading-title { font-size: 22px; } }

/* ---------- Specificity + rhythm fixes (Elementor widget CSS loads later and sets px line-heights) ---------- */
body .elementor .elementor-widget-text-editor,
body .elementor .elementor-widget-text-editor p,
body .elementor .elementor-icon-box-description,
body .elementor .kft-label-w { line-height: 1.72; }
body .elementor .kft-label-w .label { line-height: 1.72; font-size: .72rem; }
body .elementor .kft-stat .elementor-counter-number-wrapper { font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; font-family: var(--kft-display); }
body .elementor .kft-stat .elementor-counter-number-prefix, body .elementor .kft-stat .elementor-counter-number { font-size: inherit; }
body .elementor .kft-stat .elementor-counter-number-suffix { font-size: .42em; }
body .elementor .kft-stat .elementor-counter-title { font-size: .74rem; line-height: 1.72; letter-spacing: .14em; margin-top: 1rem; font-family: var(--sans); font-weight: 600; }
body .elementor .kft-hero__scroll { line-height: 1.72; }

body .elementor .kft-btn .elementor-button { line-height: 1.72; }
body .elementor .kft-give-card .elementor-icon-box-description { margin-bottom: 1.5rem; }
body .elementor .kft-give-card .elementor-icon-box-description:last-child { margin-bottom: 1.5rem; }

/* ---------- Spacing parity (explicit, beats Elementor's default widget/container margins) ---------- */
body .elementor .kft-label-w { font-size: .72rem; line-height: 1.72; margin-bottom: 1.4rem !important; }
body .elementor .kft-hero .kft-label-w { margin-bottom: 1.6rem !important; }
body .elementor .kft-section-head { margin-bottom: clamp(38px, 5vw, 64px); }
body .elementor .kft-lead { margin-top: 1.1rem !important; }
body .elementor .kft-hero-p { margin-top: 1.5rem !important; }
body .elementor .kft-cta-p { margin-top: 1.3rem !important; }
body .elementor .kft-cta .kft-label-w { margin-bottom: 1.5rem !important; }
body .elementor .e-con.kft-actions { margin-top: 2.4rem; }
body .elementor .kft-band .kft-container > .kft-actions { margin-top: clamp(34px, 4vw, 52px); }
body .elementor .kft-h1 .elementor-heading-title { margin-top: 1.4rem; }
body .elementor .kft-intro .kft-h1 .elementor-heading-title { margin-top: 1.4rem; }
body .elementor .elementor-widget-heading, body .elementor .elementor-widget-text-editor, body .elementor .elementor-widget-image, body .elementor .elementor-widget-counter, body .elementor .elementor-widget-icon-box { margin-block-end: 0; }
/* figures on the static site keep the browser default margin (1em 40px) */
body .elementor .kft-feature__media { margin: 0 40px; padding-block: 1.0625rem; }
body .elementor .kft-feature__media--wide { padding-bottom: calc(1.0625rem + clamp(40px, 5vw, 68px)); }
/* footer socials */
body .elementor .kft-footer .elementor-social-icons-wrapper { display: flex; gap: 1.2rem; }
body .elementor .kft-footer .elementor-grid-item { margin: 0 !important; }
body .elementor .kft-footer .elementor-social-icon { width: auto; height: auto; padding: 0; line-height: 1; }
body .elementor .kft-footer .elementor-social-icon i { font-size: 18px; }

body .elementor .kft-give-card .elementor-icon-box-wrapper, body .elementor .kft-step .elementor-icon-box-wrapper { gap: 0; }
body .elementor .kft-give-card .elementor-icon-box-icon { margin-bottom: 47px; }

/* the widget carries the spacing; the span inside must not add its own */
body .elementor .kft-label-w .label { margin: 0 !important; }

/* equal-height cells in the bordered grids; left-aligned icon boxes like the static site */
body .elementor .e-con.kft-grid { align-items: stretch; }
body .elementor .kft-give-card .elementor-icon-box-wrapper,
body .elementor .kft-give-card .elementor-icon-box-content,
body .elementor .kft-step .elementor-icon-box-wrapper,
body .elementor .kft-step .elementor-icon-box-content,
body .elementor .kft-give-card .elementor-icon-box-title,
body .elementor .kft-give-card .elementor-icon-box-description { text-align: left !important; }
body .elementor .kft-give-card .elementor-icon-box-icon, body .elementor .kft-step .elementor-icon-box-icon { text-align: left; }

/* container paddings must out-rank Elementor's .e-con padding rules */
body .elementor .e-con.kft-value { padding: clamp(26px, 3vw, 42px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
body .elementor .e-con.kft-step { padding: clamp(28px,3vw,40px) clamp(20px,2vw,30px) 0; border-right: 1px solid var(--line); }
body .elementor .e-con.kft-step:last-child { border-right: 0; }
body .elementor .e-con.kft-story { padding-top: 1.6rem; border-top: 2px solid var(--ink); }
body .elementor .e-con.kft-footer-bottom { padding-top: 26px; margin-top: clamp(44px,5vw,68px); border-top: 1px solid rgba(255,255,255,.12); }
body .elementor .e-con.kft-intro { max-width: 900px; }
body .elementor .e-con.kft-section-head { max-width: 720px; }

/* heroless pages: clear the fixed header, then the normal tight section padding */
body .elementor .e-con.kft-page-top { padding-top: calc(var(--hh) + clamp(56px, 8vw, 104px)); }

/* shortcode output (roster, forms, family detail) carries the original rhythm */
body .elementor .elementor-widget-shortcode, body .kft-fd { line-height: 1.72; font-size: 1.0625rem; }
body .elementor .elementor-widget-shortcode .row .fname { line-height: 1.72; }

/* Family pages are a plain post type, so Hello wraps them in a narrow .site-main; let our own containers set the width */
body.single-kft_family .site-main, body.single-kft_family .page-content, body.single-kft_family main { max-width: none !important; width: 100%; margin: 0; padding: 0; }
body.single-kft_family .page-header { display: none; }

/* Elementor kit heading colours must not recolour the family hero */
body .kft-fd .fd-hero h1 { color: #fff; font-size: clamp(2.2rem, 5.2vw, 3.8rem); letter-spacing: -.03em; line-height: 1.02; }
body .kft-fd h2, body .kft-fd h3 { color: var(--ink); }
body .kft-fd .fd-meta .v { color: #fff; }
body .kft-fd .cta h2 { color: #fff; }
body .kft-fd .cta p { color: rgba(255,255,255,.78); }
body .kft-fd .btn--light { color: var(--ink); }
body .kft-fd .btn--primary { color: var(--paper); }
body .kft-fd .btn--line-light { color: #fff; }

/* long-form copy column (Why Kinship) */
body .elementor .kft-prose { max-width: 68ch; }
body .elementor .elementor-widget-text-editor.kft-prose, body .elementor .elementor-widget-text-editor.kft-prose p { line-height: 1.7; }
body .elementor .kft-lead { max-width: 60ch; }

/* Elementor caps every widget at max-width:100% with a very specific selector — copy widths must be forced */
body .elementor .kft-prose { max-width: 68ch !important; }
body .elementor .kft-lead { max-width: 60ch !important; }
body .elementor .kft-lead--54 { max-width: 54ch !important; }
body .elementor .kft-hero-p { max-width: 50ch !important; }
body .elementor .kft-cta-p { max-width: 52ch !important; }
body .elementor .kft-section-head .kft-lead { max-width: none !important; }

/* Why Kinship uses a smaller, label-less H1 */
body .elementor .kft-h1--sm .elementor-heading-title { font-size: clamp(1.8rem, 4vw, 2.6rem) !important; margin: 0 0 1.4rem !important; }
