/* ==========================================================================
   TTHC v3 — shell: header, menu, footer and the shared partials
   (help-now box, venues, funders, closing CTA). Owned by the lead.
   ========================================================================== */

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 200; height: var(--header-h); transition: background .35s, box-shadow .35s, backdrop-filter .35s; }
.site-header.is-scrolled, .site-header.is-open {
  background: rgba(252, 251, 248, .86); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}
/* open menu: no backdrop-filter, or the header becomes the containing block of the fixed .menu and squeezes it to 0px */
.site-header.is-open { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper); transition: none; }
.site-header__in { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--forest); text-decoration: none; margin-right: auto; min-height: 44px; }
.brand:hover { color: var(--forest); text-decoration: none; }
.brand img { width: 36px; height: auto; }
.brand__name { font-family: var(--serif); font-size: 1.12rem; line-height: 1.05; font-weight: 400; letter-spacing: -.005em; }
.brand__name span { display: block; }
.nav { display: flex; align-items: center; gap: 1.2rem; }
.nav__links { display: flex; gap: .2rem; list-style: none; }
.nav__links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: .4rem .8rem; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: .98rem; transition: background .2s, color .2s;
}
.nav__links a:hover { background: var(--mint); color: var(--forest); }
.nav__links a[aria-current="page"] { color: var(--forest); background: var(--mint); }
.nav__help::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rose-deep); margin-right: .5rem; flex: none; }
.nav__cta { min-height: 46px; padding: .6rem 1.2rem; font-size: 1rem; }
.nav__toggle {
  display: none; align-items: center; gap: .55rem; min-height: 46px; padding: .5rem 1rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--white); color: var(--forest); font-weight: 700; cursor: pointer;
}
.nav__toggle .ico { width: 20px; height: 20px; }
/* em, not px: enlarged text (not only page zoom) collapses the nav. 68.75em = 1100px at the default size */
@media (max-width: 68.75em) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
  /* without JS the Menu button cannot open anything: hide it and keep Help now in the header */
  html:not(.js) .nav__toggle { display: none; }
  html:not(.js) .nav__links { display: flex; }
  html:not(.js) .nav__links li:not(:last-child) { display: none; }
}
/* 23.75em = 380px: the label is hidden visually only, so the button keeps its Menu / Close name */
@media (max-width: 23.75em) {
  .brand__name { font-size: 1rem; }
  .nav__toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- mobile menu ---------- */
.menu {
  position: fixed; inset: var(--header-h) 0 0; z-index: 199; overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper);
}
.menu[hidden] { display: none; }
.menu__in { width: min(640px, 100% - var(--gutter) * 2); margin-inline: auto; padding: 2rem 0 7rem; display: grid; gap: 2.2rem; }
.menu__links { list-style: none; display: grid; }
.menu__links a {
  display: flex; align-items: center; min-height: 60px; padding: .4rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.4rem); font-weight: 300; line-height: 1.1;
  color: var(--forest); text-decoration: none;
}
.menu__links a[aria-current="page"] { color: var(--rose-deep); font-style: italic; }
.menu__links .nav__help::before { width: 10px; height: 10px; margin-right: .8rem; }
.menu__foot { display: grid; gap: .75rem; }
.menu__foot .btn { width: 100%; }
.menu__urgent { margin: .6rem 0 0; font-weight: 700; color: var(--rose-deep); }
.menu__urgent a { color: var(--rose-deep); }
html.menu-open { overflow: hidden; }
html.js .menu:not([hidden]) .menu__in { animation: menu-in .45s var(--ease-out) both; }
@keyframes menu-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- help-now box ---------- */
.helpbox { background: var(--white); border-radius: var(--r-lg); padding: clamp(24px, 3.5vw, 44px); box-shadow: var(--shadow-sm); border-top: 6px solid var(--rose-deep); }
.helpbox__title { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); margin-bottom: .4rem; }
.helpbox__head p { color: var(--ink-soft); margin-bottom: 1.4rem; }
.helpbox__list { list-style: none; display: grid; gap: .5rem; }
.helpbox__row {
  display: grid; grid-template-columns: 1fr auto; gap: .4rem 1.2rem; align-items: center;
  padding: .85rem 1rem; border-radius: var(--r-sm); background: var(--paper); line-height: 1.4;
}
.helpbox__row strong { color: var(--forest); }
.helpbox__row a {
  display: inline-flex; align-items: center; min-height: 44px; padding: .2rem .9rem; border-radius: 999px;
  background: var(--mint); color: var(--forest); font-weight: 700; font-size: 1.05rem; text-decoration: none; white-space: nowrap; justify-self: end;
}
.helpbox__row a:hover { background: var(--sage-field); }
.helpbox__row--urgent { background: var(--blush); }
.helpbox__row--urgent strong { color: var(--rose-deep); }
.helpbox__row--urgent a { background: var(--rose-deep); color: #fff; }
.helpbox__row--urgent a:hover { background: #7f3449; color: #fff; }
.helpbox__note { margin-top: 1.2rem; color: var(--ink-soft); }
/* until Help now goes two-column (1024px), each number sits under its name, on the left: clear of the fixed
   Leave this site corner on tablet first screens */
@media (max-width: 1023px) { .helpbox__row { grid-template-columns: 1fr; } .helpbox__row a { justify-self: start; } }

/* ---------- venues ---------- */
.venues { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
@media (max-width: 860px) { .venues { grid-template-columns: 1fr; } }
.venue { position: relative; background: var(--white); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.venue__art { position: absolute; right: clamp(20px, 3vw, 36px); top: clamp(20px, 3vw, 36px); color: var(--sage); font-size: 2.2rem; }
.venue__name { padding-right: 2.5rem; margin-bottom: .35rem; }
.venue__what { color: var(--ink-soft); }
/* keep the first line clear of the corner leaf (like .venue__name's padding), and let the lines below use the full width */
.venue__what::before { content: ""; float: right; width: 2.5rem; height: 1.2em; }
.venue__facts { margin: .6rem 0 1rem; font-size: 1.02rem; }
.venue__facts a { display: inline-block; padding-block: .6rem; margin-block: -.6rem; }  /* 44px tap area, text does not move */
.venue__map { margin-top: auto; align-self: flex-start; }

/* ---------- funders ---------- */
.funders__title { margin-bottom: 1.8rem; }
@media (max-width: 700px) { .funders__title { display: flex; flex-direction: column; align-items: center; gap: .55rem; text-wrap: balance; } }
.funders__logos { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(18px, 3vw, 44px) clamp(22px, 3.6vw, 52px); }
.funders__logos img { height: clamp(40px, 4.4vw, 56px); width: auto; max-width: 180px; object-fit: contain; mix-blend-mode: multiply; }
/* optical balance: a small square mark reads smaller than a wide wordmark at the same height */
.funders__logo--lift img { height: clamp(50px, 5.5vw, 70px); }
.funders__logo--calm img { height: clamp(34px, 3.8vw, 48px); }
@media (max-width: 700px) { .funders__logos:not(.funders__logos--badges) { max-width: 440px; margin-inline: auto; } }
/* phones: six partner logos sit 3 + 3 (the wide council wordmark goes a little smaller) */
@media (max-width: 420px) { .funders__logos:not(.funders__logos--badges) > li:first-child img { height: 28px; } }
@media (max-width: 359px) {
  .funders__logos { column-gap: 12px; }
  .funders__logos img { height: 36px; } .funders__logo--lift img { height: 45px; } .funders__logo--calm img { height: 30px; }
  .funders__logos:not(.funders__logos--badges) > li:first-child img { height: 26px; }
}
.funders__title--sub { margin-top: clamp(2.2rem, 4vw, 3rem); }
/* accreditation badges are detailed and square, so they get a little more height */
.funders__logos--badges img { height: clamp(60px, 6vw, 80px); }
.funders__give { margin-top: 2rem; color: var(--ink-soft); font-size: 1rem; }
.funders__give a { font-weight: 700; }

/* ---------- closing CTA ---------- */
.cta-end__sheet { background: radial-gradient(120% 140% at 100% 0%, var(--lilac) 0%, transparent 55%), radial-gradient(90% 120% at 0% 100%, var(--mint) 0%, transparent 60%), var(--blush); }
.cta-end__in { display: grid; grid-template-columns: 1.3fr auto; gap: 2rem 4rem; align-items: end; }
.cta-end__in h2 { max-width: 18ch; }
@media (max-width: 900px) { .cta-end__in { grid-template-columns: 1fr; align-items: start; } }

/* ---------- footer ---------- */
.site-footer { padding: 0 0 clamp(8px, 1.6vw, 24px); }
.site-footer__sheet { padding-block: clamp(56px, 7vw, 96px) clamp(96px, 9vw, 120px); }
.site-footer__top { display: flex; align-items: flex-end; gap: clamp(20px, 3vw, 40px); padding-bottom: clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.site-footer__mark { width: clamp(64px, 7vw, 96px); height: auto; flex: none; }
.site-footer__line { font-family: var(--serif); font-weight: 300; font-size: clamp(1.7rem, 1.1rem + 2.6vw, 3.2rem); line-height: 1.06; letter-spacing: -.018em; color: var(--forest); margin: 0; max-width: 20ch; }
.site-footer__line em { color: var(--rose-deep); }
.site-footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; padding-block: clamp(32px, 4vw, 56px); }
@media (max-width: 960px) { .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .site-footer__cols { grid-template-columns: 1fr; } }
.site-footer__h { font-family: var(--sans); font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--garden); margin: 0 0 .9rem; }
.site-footer ul { list-style: none; display: grid; gap: 0; font-size: 1.02rem; }
.site-footer ul a { display: inline-block; padding-block: .6rem; }  /* each list link is a 44px+ tap target */
.site-footer a { color: var(--forest); }
.site-footer__contact a { overflow-wrap: anywhere; }
.site-footer ul a.site-footer__social { display: inline-flex; align-items: center; gap: .5rem; }  /* outranks the inline-block list-link rule above */
.site-footer__social .ico { width: 20px; height: 20px; flex: none; }
.site-footer__999 { display: inline-flex; align-items: center; min-height: 48px; padding: .4rem 1.2rem; border-radius: 999px; background: var(--rose-deep); color: #fff !important; font-weight: 700; text-decoration: none; font-size: 1.1rem; }
.site-footer__999:hover { background: #7f3449; }
.site-footer__urgent p { margin-bottom: .6rem; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); font-size: .92rem; color: var(--ink-soft); }
.site-footer__bottom p { margin: 0; }
.site-footer kbd { font: 700 .8rem/1 var(--sans); padding: .2rem .4rem; border-radius: 5px; background: var(--white); border: 1px solid var(--line); }

/* ---------- page hero (every page except home): use this, do not invent another ----------
   <section class="phero" aria-labelledby="page-title">
     <div class="wrap phero__in">
       <p class="eyebrow">Get support</p>
       <h1 id="page-title" data-split>Support for <em>women and girls</em></h1>
       <p class="lead" data-reveal style="--d:.35s">…</p>
       <div class="actions" data-reveal style="--d:.5s">…</div>      (optional)
     </div>
   </section>
   Add data-tone="blush|lilac|mint" on .phero to change the corner wash (default mint). */
.phero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--header-h) + clamp(48px, 7vw, 104px)) 0 clamp(48px, 6vw, 88px); }
/* the corner wash: the same circle as before (radius = half its width, centred that far below the box top),
   but the box now ends at the hero's bottom edge and fades out over its last 140px, so a tall wash on a short
   hero no longer stops in a hard straight line (in a mask only the alpha counts) */
.phero::before {
  --phero-r: min(35vw, 450px);
  content: ""; position: absolute; z-index: -1; inset: -20% -10% 0 auto; width: min(70vw, 900px);
  background: radial-gradient(circle var(--phero-r) at 50% var(--phero-r), var(--phero-a, var(--mint)) 0%, color-mix(in srgb, var(--phero-a, var(--mint)) 60%, transparent) 45%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, var(--ink) calc(100% - 140px), transparent);
  mask-image: linear-gradient(to bottom, var(--ink) calc(100% - 140px), transparent);
  filter: blur(10px); opacity: .95;
}
.phero::after {
  content: ""; position: absolute; z-index: -1; right: clamp(12px, 5vw, 96px); bottom: clamp(16px, 3vw, 40px); width: clamp(120px, 17vw, 250px); aspect-ratio: 24 / 32;
  background: var(--phero-leaf, var(--sage)); opacity: .35;
  -webkit-mask: url(../assets/leaf.svg) center / contain no-repeat; mask: url(../assets/leaf.svg) center / contain no-repeat;
  transform: rotate(18deg);
}
.phero[data-tone="blush"] { --phero-a: var(--blush); --phero-leaf: var(--rose); }
.phero[data-tone="lilac"] { --phero-a: var(--lilac); --phero-leaf: var(--lilac-mid); }
.phero__in { position: relative; }
.phero h1 { max-width: 15ch; }
.phero .lead { margin-top: .4rem; }
.phero .actions { margin-top: 1.8rem; }
@media (max-width: 1024px) and (min-width: 701px) { .phero::after { width: 150px; opacity: .22; } }
@media (max-width: 700px) { .phero::after { opacity: .18; right: 8px; bottom: 12px; width: 96px; } }

/* helpline numbers stack under their names whenever the box itself is narrow (e.g. the reading column on posts),
   so the fixed Leave button can never sit over a right-aligned number */
.helpbox { container-type: inline-size; }
@container (max-width: 760px) {
  .helpbox__row { grid-template-columns: 1fr; }
  .helpbox__row a { justify-self: start; }
}

/* one venue (Hockwell Ring removed, 8 Oct 2026): a single wide card, name on the left, facts on the right */
.venues:has(> .venue:only-child) { grid-template-columns: 1fr; }
.venue--wide { max-width: none; }
.venue--wide .venue__map { margin-top: 1rem; }
@media (min-width: 861px) {
  .venue--wide { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
  .venue--wide .venue__facts { margin: 0; padding: .3rem 2.6rem 0 clamp(20px, 3vw, 40px); border-left: 1px solid var(--line); }
}
