/* =====================================================================
   Thatcham Baptist Church — redesign demo
   Design system + components. Mobile-first.
   "Church is the people, not the building."
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Warm, natural palette — soft earth tones + one confident accent */
  --cream:        #FBF6EE;   /* page background */
  --cream-2:      #F4EADB;   /* soft sand, alt sections */
  --card:         #FFFDF9;   /* card surface */
  --ink:          #2C2723;   /* warm near-black text (not heavy black) */
  --ink-soft:     #5C544C;   /* secondary text */
  --line:         #E7DBC8;   /* hairlines / borders */

  --clay:         #C15B33;   /* confident accent — warm terracotta */
  --clay-dark:    #A64A28;   /* accent hover */
  --clay-soft:    #F5E2D6;   /* accent tint bg */
  --honey:        #E3A34A;   /* warm secondary */
  --sage:         #7C8A6B;   /* gentle green for balance */
  --sage-soft:    #E7ECE0;

  --radius:       18px;
  --radius-lg:    28px;
  --radius-pill:  999px;

  --shadow-sm:    0 2px 10px rgba(65, 45, 25, .06);
  --shadow:       0 10px 30px rgba(85, 55, 25, .10);
  --shadow-lg:    0 24px 60px rgba(80, 50, 20, .16);

  --maxw:         1140px;
  --gutter:       clamp(1.1rem, 4vw, 2.4rem);

  --font-body:    "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  --ease:         cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--clay-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.3rem, 7vw, 4.1rem); font-optical-sizing: auto; }
h2 { font-size: clamp(1.8rem, 4.6vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2.6vw, 1.55rem); }
p  { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 6px; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.2rem, 8vw, 6rem); }
.section--tight { padding-block: clamp(2.2rem, 5vw, 3.4rem); }
.bg-sand   { background: var(--cream-2); }
.bg-sage   { background: var(--sage-soft); }
.center    { text-align: center; }
.narrow    { max-width: 720px; margin-inline: auto; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: .9rem;
}
.lede { font-size: clamp(1.1rem, 2.2vw, 1.28rem); color: var(--ink-soft); }
.skip-link {
  position: absolute; left: -999px; top: .5rem; z-index: 200;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 10px;
}
.skip-link:focus { left: .5rem; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--clay); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: var(--radius-pill);
  background: var(--bg); color: var(--fg); border: 2px solid transparent;
  cursor: pointer; text-decoration: none; line-height: 1;
  transition: transform .25s var(--ease), background .2s var(--ease), box-shadow .25s var(--ease);
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); background: var(--clay-dark); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--ink); box-shadow: none; }
.btn--ghost:hover { --bg: var(--ink); --fg: #fff; background: var(--ink); }
.btn--light { --bg: #fff; --fg: var(--clay-dark); }
.btn--light:hover { background: #fff; color: var(--clay-dark); }
.btn--sage { --bg: var(--sage); }
.btn--sage:hover { background: #6a785b; }
.btn--lg { font-size: 1.08rem; padding: 1rem 1.8rem; }
.btn__icon { width: 1.15em; height: 1.15em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 246, 238, .82);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: 66px; padding-block: .5rem;
}
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; margin-right: auto; }
.brand__mark {
  width: 40px; height: 40px; flex: none; border-radius: 12px;
  background: linear-gradient(140deg, var(--clay), var(--honey));
  display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-sm);
}
.brand__mark svg { width: 22px; height: 22px; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: var(--ink); line-height: 1.05; }
.brand__sub  { display: block; font-family: var(--font-body); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--clay); font-weight: 700; }

.nav { display: none; }
.nav a {
  font-weight: 600; color: var(--ink); text-decoration: none; font-size: .98rem;
  padding: .4rem .1rem; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--clay); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--clay-dark); }

.header-cta { display: none; gap: .55rem; }

.nav-toggle {
  margin-left: auto; width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  color: var(--ink); box-shadow: var(--shadow-sm);
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Mobile drawer */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--cream);
  padding: .6rem var(--gutter) 1.4rem;
}
.mobile-nav.open { display: block; animation: drop .3s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mobile-nav a {
  display: block; padding: .95rem .4rem; font-weight: 600; font-size: 1.12rem;
  color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line);
}
.mobile-nav a[aria-current="page"] { color: var(--clay-dark); }
.mobile-nav .mobile-cta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }
.mobile-nav .mobile-cta .btn { flex: 1 1 auto; }

@media (min-width: 940px) {
  .nav { display: flex; gap: clamp(1rem, 2.2vw, 1.9rem); align-items: center; }
  .header-cta { display: flex; }
  .nav-toggle { display: none; }
}

/* ---------- Mobile sticky action bar (the 3 money actions) ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  background: rgba(44, 39, 35, .96);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: .35rem .35rem calc(.35rem + env(safe-area-inset-bottom, 0));
}
.action-bar a {
  display: flex; flex-direction: column; align-items: center; gap: .18rem;
  padding: .5rem .3rem; text-decoration: none; color: #F4EADB;
  font-size: .78rem; font-weight: 700; border-radius: 12px;
}
.action-bar a svg { width: 22px; height: 22px; }
.action-bar a:active { background: rgba(255,255,255,.08); }
.action-bar a.is-primary { color: var(--honey); }
body { padding-bottom: 74px; } /* room for bar on mobile */
@media (min-width: 940px) {
  .action-bar { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- Placeholder image blocks ---------- */
.ph {
  position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(135deg, var(--honey), var(--clay));
  box-shadow: var(--shadow);
  isolation: isolate;
}
.ph::after { /* subtle grain/vignette */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 120% at 20% 10%, rgba(255,255,255,.28), transparent 45%),
              radial-gradient(120% 120% at 90% 90%, rgba(0,0,0,.22), transparent 55%);
  z-index: 1; pointer-events: none;
}
.ph__art { position: absolute; inset: 0; display: grid; place-items: center; z-index: 0; }
.ph__art svg { width: 46%; height: auto; opacity: .9; }
.ph__note {
  position: absolute; left: .7rem; bottom: .7rem; z-index: 2;
  background: rgba(44,39,35,.72); color: #FBF6EE;
  font-size: .72rem; font-weight: 600; letter-spacing: .01em;
  padding: .35rem .7rem; border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
}
/* palette variants for variety */
.ph--sunrise { background: linear-gradient(135deg, #F0B455, #C15B33); }
.ph--grove   { background: linear-gradient(135deg, #9CAE84, #5F6E4C); }
.ph--dusk    { background: linear-gradient(135deg, #C15B33, #7A4E63); }
.ph--sand    { background: linear-gradient(135deg, #E9C88F, #C98F55); }
.ph--slate   { background: linear-gradient(135deg, #8A98A6, #4E5B69); }
/* Real photo filling a placeholder frame */
.ph__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 16%; transform: scale(1.05); transform-origin: center center; background: #e7dbc8; z-index: 0; }
.photo-soft { filter: saturate(.88) brightness(.97) contrast(.98); }
.alpha-photo .ph__img { transform: none; object-fit: contain; object-position: center center; background: #f7efe6; }
.ph.has-photo { background: #E7DBC8; }
.ph.has-photo::after { background: none; }
.hero__media .ph.has-photo::after {
  background: linear-gradient(180deg, rgba(28,20,14,.34) 0%, rgba(28,20,14,.12) 40%, rgba(24,17,11,.72) 100%),
              radial-gradient(120% 90% at 15% 10%, rgba(255,255,255,.14), transparent 50%);
}
.person__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; z-index: 0; }
.map-frame { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow); background: #E7DBC8; }
.card__icon--photo { padding: 0; overflow: hidden; }
.card__icon--photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-4-3  { aspect-ratio: 4 / 3; }
.ratio-1-1  { aspect-ratio: 1 / 1; }
.ratio-3-4  { aspect-ratio: 3 / 4; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media .ph { height: 100%; width: 100%; border-radius: 0; box-shadow: none; }
.hero__media .ph::after {
  background: linear-gradient(180deg, rgba(30,22,16,.10) 0%, rgba(30,22,16,.04) 40%, rgba(24,17,11,.28) 100%),
              radial-gradient(120% 90% at 15% 10%, rgba(255,255,255,.06), transparent 50%);
}
.hero__inner {
  position: relative; z-index: 2;
  min-height: min(86vh, 720px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-block: clamp(3rem, 10vw, 6rem);
  color: #fff;
}
.hero__eyebrow { color: #FBE9D6; }
.hero h1 { color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.28); max-width: 15ch; }
.hero__lede { color: #FBF1E6; font-size: clamp(1.1rem, 2.4vw, 1.4rem); max-width: 40ch; margin-bottom: 1.6rem; text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .7rem; }
.hero__note { position: absolute; right: .7rem; bottom: .7rem; z-index: 3; }

/* Page hero (interior pages) — simpler band */
.pagehero { background: var(--cream-2); border-bottom: 1px solid var(--line); }
.pagehero .wrap { padding-block: clamp(2.6rem, 7vw, 4.6rem); }
.pagehero h1 { max-width: 18ch; }
.pagehero p { max-width: 55ch; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 620px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 940px) {
  .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-lg);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #dcccb2; }
.card h3 { margin-bottom: .35rem; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--clay-soft); color: var(--clay-dark); margin-bottom: 1rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card--link { text-decoration: none; color: inherit; display: block; }
.card--link .more { color: var(--clay-dark); font-weight: 700; display: inline-flex; align-items: center; gap: .3rem; }
.card--link:hover .more { gap: .55rem; }

/* Feature (image + text) */
.feature { display: grid; gap: clamp(1.6rem, 4vw, 3rem); align-items: center; }
@media (min-width: 860px) {
  .feature { grid-template-columns: 1fr 1fr; }
  .feature--reverse .feature__media { order: 2; }
}

/* ---------- Service times block ---------- */
.services {
  display: grid; gap: 1.2rem; grid-template-columns: 1fr;
}
@media (min-width: 720px) { .services { grid-template-columns: 1fr 1fr; } }
.service-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.7rem; box-shadow: var(--shadow-sm); position: relative;
}
.service-card__time {
  font-family: var(--font-display); font-size: 2.1rem; color: var(--clay-dark); line-height: 1;
  margin-bottom: .3rem; font-weight: 600;
}
.service-card ul { margin: .8rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--sage-soft); color: #45503a; font-weight: 600; font-size: .84rem;
  padding: .3rem .7rem; border-radius: var(--radius-pill);
}
.chip--clay { background: var(--clay-soft); color: var(--clay-dark); }

/* Info strip (address / phone / live) */
.infoline { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; align-items: center; color: var(--ink-soft); font-weight: 600; }
.infoline span { display: inline-flex; align-items: center; gap: .45rem; }
.infoline svg { width: 1.15em; height: 1.15em; color: var(--clay); }

/* ---------- What's On schedule ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter-btn {
  font-family: var(--font-body); font-weight: 700; font-size: .92rem; cursor: pointer;
  padding: .55rem 1.1rem; border-radius: var(--radius-pill);
  background: var(--card); color: var(--ink); border: 1.5px solid var(--line);
  transition: all .2s var(--ease);
}
.filter-btn:hover { border-color: var(--clay); }
.filter-btn.active { background: var(--clay); color: #fff; border-color: var(--clay); }

.day-group { margin-bottom: 2.4rem; scroll-margin-top: 90px; }
.day-group__head { display: flex; align-items: baseline; gap: .8rem; margin-bottom: 1rem; }
.day-group__head h2 { margin: 0; }
.day-group__head .count { color: var(--ink-soft); font-weight: 600; font-size: .9rem; }
.event-card {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.2rem; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.3rem; box-shadow: var(--shadow-sm); margin-bottom: .9rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.event-card__time {
  font-family: var(--font-display); font-weight: 600; color: var(--clay-dark);
  font-size: 1.05rem; white-space: nowrap; padding-top: .1rem;
}
.event-card h3 { margin: 0 0 .2rem; font-size: 1.2rem; }
.event-card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--sage); margin-top: .5rem;
}

/* ---------- Team ---------- */
.team-grid { display: grid; gap: 1.3rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
.person { text-align: center; }
.person__photo {
  aspect-ratio: 1/1; border-radius: var(--radius-lg); position: relative; overflow: hidden;
  display: grid; place-items: center; margin-bottom: .8rem; box-shadow: var(--shadow-sm);
}
.person__photo .initials {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 6vw, 2.6rem);
  color: rgba(255,255,255,.92);
}
.person__photo--anne img {
  object-fit: contain;
  object-position: center center;
  transform: none;
}
.person__photo .tagchip {
  position: absolute; bottom: .45rem; left: 50%; transform: translateX(-50%);
  background: rgba(44,39,35,.66); color: #FBF6EE; font-size: .62rem; font-weight: 600;
  padding: .2rem .55rem; border-radius: var(--radius-pill); white-space: nowrap;
}
.person__name { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; margin: 0; }
.person__role { color: var(--clay-dark); font-weight: 700; font-size: .86rem; margin: .1rem 0 .3rem; }
.person__bio  { color: var(--ink-soft); font-size: .9rem; margin: 0; }
.lead-team { display: grid; gap: 1.4rem; grid-template-columns: 1fr; margin-bottom: 3rem; }
@media (min-width: 720px) { .lead-team { grid-template-columns: 1fr 1fr; } }
.lead-card { display: grid; grid-template-columns: 110px 1fr; gap: 1.2rem; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.3rem; box-shadow: var(--shadow-sm); }
.lead-card .person__photo { margin: 0; }
@media (min-width: 500px) { .lead-card { grid-template-columns: 130px 1fr; } }

/* Photo gradient variants (cycled) */
.g1{background:linear-gradient(135deg,#E3A34A,#C15B33)} .g2{background:linear-gradient(135deg,#9CAE84,#5F6E4C)}
.g3{background:linear-gradient(135deg,#C98F55,#8A5A3B)} .g4{background:linear-gradient(135deg,#C15B33,#7A4E63)}
.g5{background:linear-gradient(135deg,#7C8A6B,#4E5B69)} .g6{background:linear-gradient(135deg,#E9C88F,#C98F55)}

/* ---------- Callout / accent band ---------- */
.callout {
  background: linear-gradient(135deg, var(--clay), var(--clay-dark));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.4rem);
  box-shadow: var(--shadow); text-align: center;
}
.callout h2 { color: #fff; }
.callout p { color: #FBE9D6; max-width: 50ch; margin-inline: auto; }
.callout .btn { margin-top: .6rem; }
.callout--sage { background: linear-gradient(135deg, var(--sage), #5F6E4C); }
.callout--sage p { color: #EAF0E1; }

/* ---------- Quote ---------- */
.quote { text-align: center; max-width: 20ch; margin-inline: auto; }
.quote blockquote {
  font-family: var(--font-display); font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.15; color: var(--ink); margin: 0; font-weight: 500; max-width: 16ch; margin-inline: auto;
}
.quote cite { display: block; margin-top: 1.2rem; color: var(--clay-dark); font-style: normal; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .82rem; max-width: none; }

/* ---------- Community strip ---------- */
.outreach { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .outreach { grid-template-columns: repeat(3, 1fr); } }
.outreach-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.outreach-card h3 { font-size: 1.15rem; }
.outreach-card p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* ---------- Form (visual only) ---------- */
.form-note {
  background: var(--sage-soft); border: 1px dashed var(--sage); border-radius: 12px;
  padding: .8rem 1rem; font-size: .9rem; color: #45503a; margin-bottom: 1.4rem; font-weight: 600;
}
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .form-grid .col-2 { grid-column: span 2; } .form-grid { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 700; margin-bottom: .35rem; font-size: .92rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--card); border: 1.5px solid var(--line); border-radius: 12px;
  padding: .8rem .9rem;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--clay); outline: none; box-shadow: 0 0 0 3px var(--clay-soft); }
.field textarea { min-height: 120px; resize: vertical; }

/* ---------- Definition list (believe / expect) ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.checklist li { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start; }
.checklist .tick {
  width: 30px; height: 30px; border-radius: 50%; background: var(--clay-soft); color: var(--clay-dark);
  display: grid; place-items: center; flex: none;
}
.checklist .tick svg { width: 16px; height: 16px; }
.checklist strong { display: block; }
.checklist span { color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #E9DDCB; padding-block: clamp(2.6rem, 6vw, 4rem); margin-top: 0; }
.site-footer a { color: #F0DEC7; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-grid h4 { color: #fff; font-size: 1.05rem; margin-bottom: .8rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-brand .brand__name { color: #fff; }
.footer-brand p { color: #C4B7A4; font-size: .95rem; max-width: 34ch; }
.socials { display: flex; gap: .6rem; margin-top: 1rem; }
.socials a {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #F0DEC7; transition: background .2s var(--ease), transform .2s var(--ease);
}
.socials a:hover { background: var(--clay); color: #fff; transform: translateY(-2px); }
.socials svg { width: 20px; height: 20px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.4rem; padding-top: 1.4rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: center; justify-content: space-between;
  font-size: .86rem; color: #B7AA97;
}
.footer-bottom a { color: #B7AA97; }
.footer-bottom .links { display: flex; flex-wrap: wrap; gap: 1.2rem; }

/* ---------- Scroll-in animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Utility ---------- */
.mt-1{margin-top:.6rem}.mt-2{margin-top:1.2rem}.mt-3{margin-top:2rem}.mb-0{margin-bottom:0}
.stack > * + * { margin-top: 1rem; }
.pill-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.divider { height: 1px; background: var(--line); border: 0; margin-block: 2rem; }

/* =====================================================================
   Additions for the full multi-page rebuild
   ===================================================================== */

/* ---------- Multilingual welcome band ---------- */
.welcome-band {
  background: linear-gradient(135deg, var(--clay), var(--clay-dark));
  color: #fff; border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.4rem); box-shadow: var(--shadow); text-align: center;
  position: relative; overflow: hidden; isolation: isolate;
}
.welcome-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 120% at 12% 8%, rgba(255,255,255,.16), transparent 46%),
              radial-gradient(120% 120% at 90% 96%, rgba(0,0,0,.18), transparent 55%);
}
.welcome-band .eyebrow { color: #FBE9D6; }
.welcome-band h2 { color: #fff; margin-bottom: 1.2rem; }
.welcome-words {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline;
  gap: .5rem 1.4rem; margin: 0 auto; max-width: 34ch;
}
.welcome-words li { list-style: none; }
.welcome-words .lang {
  font-family: var(--font-display), "Noto Sans SC", "Noto Sans Arabic", sans-serif; font-weight: 500;
  font-size: clamp(1.35rem, 4.4vw, 2.3rem); line-height: 1.1; color: #fff;
  display: inline-block;
}
.welcome-words .lang--lead { color: #FFE7CF; }
.welcome-words .lang small {
  display: block; font-family: var(--font-body); font-weight: 600;
  font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  color: #FBD9BF; margin-top: .25rem;
}
.welcome-band p.welcome-sub { color: #FBE9D6; max-width: 52ch; margin: 1.4rem auto 0; }

/* ---------- Strapline band ---------- */
.strapline {
  text-align: center; max-width: 30ch; margin-inline: auto;
}
.strapline blockquote {
  font-family: var(--font-display); font-weight: 500; margin: 0;
  font-size: clamp(1.5rem, 4.2vw, 2.4rem); line-height: 1.2; color: var(--ink);
}
.strapline blockquote .accent { color: var(--clay-dark); }
.strapline cite {
  display: block; margin-top: 1rem; color: var(--ink-soft); font-style: normal;
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .78rem;
}

/* ---------- Notices ---------- */
.notice-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.5rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.notice-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.notice-card__date {
  font-weight: 700; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--clay); margin-bottom: .5rem;
}
.notice-card h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.notice-card p { color: var(--ink-soft); font-size: .96rem; margin: 0; }
.notice-card .more { color: var(--clay-dark); font-weight: 700; margin-top: .9rem; font-size: .92rem; }

/* ---------- Frequency markers (weekly vs periodic) ---------- */
.freq {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 700; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase;
  padding: .28rem .7rem; border-radius: var(--radius-pill); white-space: nowrap;
}
.freq::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: currentColor; }
.freq--weekly   { background: var(--sage-soft); color: #45503a; }
.freq--periodic { background: #F6E6CD; color: #8a5a1e; }
.freq-legend { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: center; margin-bottom: 1.6rem; color: var(--ink-soft); font-size: .9rem; }
.event-card__meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .55rem; }

/* ---------- Believe / statement cards ---------- */
.believe { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 780px) { .believe { grid-template-columns: repeat(3, 1fr); } }
.believe-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: var(--shadow-sm); border-top: 4px solid var(--clay);
}
.believe-card:nth-child(2) { border-top-color: var(--honey); }
.believe-card:nth-child(3) { border-top-color: var(--sage); }
.believe-card h3 { margin-bottom: .4rem; }
.believe-card p { color: var(--ink-soft); margin: 0; font-size: .98rem; }

/* ---------- Statement of Faith ---------- */
.statement-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: clamp(1.4rem, 4vw, 2.8rem);
  max-width: 840px; margin-inline: auto;
}
.statement { list-style: none; counter-reset: sof; margin: 0; padding: 0; }
.statement li {
  counter-increment: sof;
  display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.3rem; align-items: start;
  padding: 1.5rem 0; border-top: 1px solid var(--line);
}
.statement li:first-child { border-top: 0; padding-top: 0; }
.statement li:last-child { padding-bottom: 0; }
.statement li::before {
  content: counter(sof);
  font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1;
  color: var(--clay-dark); background: var(--clay-soft);
  width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; flex: none;
}
.statement p { margin: 0; font-size: 1.06rem; color: var(--ink); }

/* ---------- Our Links grid ---------- */
.links-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .links-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px) { .links-grid { grid-template-columns: repeat(3, 1fr); } }
.link-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.4rem; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.link-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #dcccb2; }
.link-card h3 { font-size: 1.12rem; margin-bottom: .3rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.link-card h3 svg { width: 18px; height: 18px; color: var(--clay); flex: none; }
.link-card p { color: var(--ink-soft); font-size: .92rem; margin: 0; }

/* ---------- Safeguarding process steps ---------- */
.steps { display: grid; gap: 1.3rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.7rem; box-shadow: var(--shadow-sm); border-top: 4px solid var(--clay);
  display: flex; flex-direction: column;
}
.step-card__num {
  display: inline-flex; align-items: center; gap: .55rem; margin-bottom: .7rem;
  font-weight: 700; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--clay);
}
.step-card__num b {
  font-family: var(--font-display); font-size: 1.4rem; color: var(--clay-dark); line-height: 1;
  width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--clay-soft);
  display: grid; place-items: center; flex: none;
}
.step-card h3 { margin-bottom: .5rem; }
.step-card p { color: var(--ink-soft); margin: 0 0 1.1rem; }
.step-card .keywords { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; }
.step-card .keywords span {
  background: var(--sage-soft); color: #45503a; font-weight: 700; font-size: .72rem;
  letter-spacing: .04em; text-transform: uppercase; padding: .32rem .7rem; border-radius: var(--radius-pill);
}

/* ---------- Emergency / warning box ---------- */
.emergency {
  background: #FCEBCF; border: 1px solid #E8B765; border-left: 6px solid #D8901F;
  border-radius: var(--radius); padding: 1.5rem 1.7rem; color: #6b4410; box-shadow: var(--shadow-sm);
}
.emergency h3 { color: #7a4a0c; display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.emergency h3 svg { width: 1.5em; height: 1.5em; color: #D8901F; flex: none; }
.emergency p { margin: .35rem 0; }
.emergency p:last-child { margin-bottom: 0; }
.emergency a { color: #7a4a0c; font-weight: 700; }
.emergency .num { font-family: var(--font-display); font-weight: 600; font-size: 1.1em; }

/* ---------- External contacts ---------- */
.ext-contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .ext-contacts { grid-template-columns: 1fr 1fr; } }
.ext-contacts li {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.3rem; box-shadow: var(--shadow-sm);
}
.ext-contacts .who { font-weight: 700; display: block; margin-bottom: .15rem; }
.ext-contacts .detail { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Policy downloads ---------- */
.downloads { display: grid; gap: 1rem; grid-template-columns: 1fr; max-width: 720px; margin-inline: auto; }
@media (min-width: 640px) { .downloads { grid-template-columns: 1fr 1fr; } }
.download-card {
  display: flex; align-items: center; gap: 1rem; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.4rem; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.download-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #dcccb2; }
.download-card .dl-ico {
  width: 46px; height: 46px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: var(--clay-soft); color: var(--clay-dark);
}
.download-card .dl-ico svg { width: 24px; height: 24px; }
.download-card .dl-title { font-weight: 700; display: block; line-height: 1.25; }
.download-card .dl-sub { color: var(--ink-soft); font-size: .85rem; }

/* ---------- Safeguarding contact cards ---------- */
.safeguard { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .safeguard { grid-template-columns: repeat(3, 1fr); } }
.safeguard-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.safeguard-card__avatar {
  width: 76px; height: 76px; border-radius: 50%; overflow: hidden; margin-bottom: 1rem;
  background: var(--cream-2); box-shadow: var(--shadow-sm);
}
.safeguard-card__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.safeguard-card .role {
  font-weight: 700; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--clay); margin-bottom: .5rem;
}
.safeguard-card h3 { font-size: 1.18rem; margin-bottom: .3rem; }
.safeguard-card a { font-weight: 600; word-break: break-word; }

/* ---------- Definition rows (address / at-a-glance) ---------- */
.deflist { display: grid; gap: 1rem; margin: 0; }
.deflist div { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start; }
.deflist .ico {
  width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: var(--clay-soft); color: var(--clay-dark);
}
.deflist .ico svg { width: 20px; height: 20px; }
.deflist dt { font-weight: 700; margin: 0; }
.deflist dd { margin: 0; color: var(--ink-soft); }

/* ---------- Small helper: notice/aside box ---------- */
.aside-box {
  background: var(--sage-soft); border: 1px solid #d3ddc7; border-radius: var(--radius);
  padding: 1.2rem 1.3rem; color: #45503a;
}
.aside-box h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.aside-box p:last-child { margin-bottom: 0; }
