/*
Theme Name: HerAlly
Theme URI: https://herallyng.com/
Author: Brick x Brick
Description: Custom theme for HerAlly — Nigeria's AI-powered health platform for women. Five templates (Home, About, Services, Blog, Contact), one design system, no page builder required.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: herally
Tags: health, one-column, custom-menu, custom-logo, featured-images, translation-ready
*/

/* ==========================================================================
   HerAlly — design system
   Every colour and font lives in the :root block below. Change a value once
   here and it updates across all five pages. Nothing else needs editing.
   ========================================================================== */

:root {
  /* --- Brand colours -------------------------------------------------- */
  --brand:        #8B2257;   /* primary — buttons, links, headings accent   */
  --brand-700:    #6C1943;   /* hover / pressed                             */
  --brand-100:    #F6E3EC;   /* tinted fills, icon chips                    */
  --brand-050:    #FCF4F8;   /* very light section backgrounds              */

  --accent:       #E4763F;   /* warm accent — eyebrows, small highlights    */
  --accent-050:   #FDF1E9;

  /* --- Neutrals ------------------------------------------------------- */
  --ink:          #17131C;   /* headings                                    */
  --body:         #4A4353;   /* paragraphs                                  */
  --muted:        #6E6779;   /* meta, captions                              */
  --line:         #EAE4EE;   /* hairlines, card borders                     */
  --surface:      #FFFFFF;
  --surface-alt:  #FAF7FA;

  /* --- Type ----------------------------------------------------------- */
  --font-head: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* --- Rhythm --------------------------------------------------------- */
  --wrap: 1180px;
  --gutter: 24px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --section-y: clamp(64px, 8vw, 116px);

  --shadow-sm: 0 1px 2px rgba(23, 19, 28, .05);
  --shadow-md: 0 12px 32px -12px rgba(23, 19, 28, .14);
  --shadow-lg: 0 28px 60px -24px rgba(23, 19, 28, .22);
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  font-feature-settings: 'kern', 'liga';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-700); }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.35rem, 1.5rem + 3.4vw, 3.9rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.85rem, 1.3rem + 2.1vw, 2.7rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.2rem, 1.05rem + .55vw, 1.42rem); letter-spacing: -0.015em; }
h4 { font-size: 1.06rem; letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.06rem, .98rem + .38vw, 1.22rem);
  line-height: 1.65;
  color: var(--body);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.eyebrow--center { justify-content: center; }

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--alt { background: var(--surface-alt); }
.section--tint { background: var(--brand-050); }
.section--flush-top { padding-top: 0; }

.section-head { max-width: 700px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .97rem;
  line-height: 1;
  padding: 15px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 17px; height: 17px; }

.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--brand-700); color: #fff; }

.btn--outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--brand); color: var(--brand); }

.btn--light { background: #fff; color: var(--brand); }
.btn--light:hover { background: #fff; color: var(--brand-700); }

.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }

.btn--sm { padding: 11px 20px; font-size: .9rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-row--center { justify-content: center; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand em { font-style: normal; color: var(--brand); }

.site-header__nav { display: flex; align-items: center; }
.site-header__nav > .btn { display: none; }

.nav { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav a {
  display: block;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 500;
  color: var(--body);
  transition: background .16s ease, color .16s ease;
}
.nav a:hover { background: var(--brand-050); color: var(--brand); }
.nav a[aria-current="page"] { color: var(--brand); font-weight: 600; }

.header__actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle span {
  display: block;
  width: 17px;
  height: 1.8px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 17px;
  height: 1.8px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease;
}
.nav-toggle span::before { top: -5.5px; }
.nav-toggle span::after  { top:  5.5px; }
.site-header.is-open .nav-toggle span { background: transparent; }
.site-header.is-open .nav-toggle span::before { transform: translateY(5.5px) rotate(45deg); }
.site-header.is-open .nav-toggle span::after  { transform: translateY(-5.5px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 7vw, 96px) clamp(64px, 8vw, 110px);
  background:
    radial-gradient(900px 460px at 88% -8%, var(--brand-100) 0%, transparent 62%),
    radial-gradient(700px 420px at 4% 106%, var(--accent-050) 0%, transparent 58%),
    var(--surface);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

.hero h1 { margin-bottom: 22px; }
.hero .lede { max-width: 34em; margin-bottom: 32px; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: .93rem;
  color: var(--muted);
}
.hero__meta strong { color: var(--ink); font-family: var(--font-head); }

.hero__panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  padding: 30px;
}
.hero__panel h4 { margin-bottom: 18px; }

.channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
  margin-bottom: 11px;
  transition: border-color .18s ease, transform .18s ease;
}
.channel:hover { border-color: var(--brand); transform: translateX(2px); }
.channel:last-of-type { margin-bottom: 0; }
.channel__icon {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: var(--brand-100);
  color: var(--brand);
}
.channel__icon svg { width: 19px; height: 19px; }
.channel__label { display: block; font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: .96rem; line-height: 1.3; }
.channel__value { display: block; font-size: .87rem; color: var(--muted); line-height: 1.45; }

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card:hover { border-color: #DCD2E2; box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .97rem; margin: 0; }

.card__icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--brand-100);
  color: var(--brand);
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.card__icon svg { width: 22px; height: 22px; }
.card--accent .card__icon { background: var(--accent-050); color: var(--accent); }

/* Steps ------------------------------------------------------------------ */

.step { position: relative; padding-top: 26px; }
.step::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 46px; height: 3px;
  background: var(--brand);
  border-radius: 3px;
}
.step__no {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  display: block;
  margin-bottom: 8px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .97rem; margin: 0; }

/* Stats ------------------------------------------------------------------ */

.stat { padding: 4px 0; }
.stat__value {
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 1.5rem + 2.2vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--brand);
  display: block;
  margin-bottom: 10px;
}
.stat p { font-size: .95rem; color: var(--muted); margin: 0; }

.stats--onbrand .stat__value { color: #fff; }
.stats--onbrand .stat p { color: rgba(255,255,255,.72); }

/* Risk list -------------------------------------------------------------- */

.ticks { list-style: none; display: grid; gap: 13px; }
.ticks li {
  position: relative;
  padding-left: 34px;
  color: var(--body);
  font-size: 1rem;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0; top: .42em;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--brand-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238B2257' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Quote ------------------------------------------------------------------ */

.quote {
  border-left: 3px solid var(--accent);
  padding-left: 26px;
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem);
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 600;
}

/* ==========================================================================
   Pricing
   ========================================================================== */

.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.plan--featured {
  border-color: var(--brand);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.plan__flag {
  position: absolute;
  top: -13px; left: 28px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
}
.plan__name { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.1rem; }
.plan__price {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 14px 0 4px;
  line-height: 1;
}
.plan__price span { font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan__note { font-size: .92rem; color: var(--muted); margin-bottom: 22px; }
.plan .ticks { margin-bottom: 28px; }
.plan .ticks li { font-size: .95rem; }
.plan .btn { margin-top: auto; width: 100%; }

.toggle {
  display: inline-flex;
  padding: 5px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  gap: 4px;
}
.toggle button {
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: .92rem;
  padding: 9px 22px; border-radius: var(--radius-pill);
  color: var(--muted); transition: background .18s ease, color .18s ease;
}
.toggle button.is-active { background: var(--brand); color: #fff; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq { max-width: 780px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  position: relative;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.04rem;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  position: absolute; right: 4px; top: 50%;
  width: 13px; height: 13px;
  margin-top: -6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238B2257' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .22s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 24px 0; color: var(--muted); font-size: .99rem; }

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 62%, #4B1130 100%);
  color: #fff;
  border-radius: 26px;
  padding: clamp(44px, 5.5vw, 72px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: '';
  position: absolute;
  inset: auto -12% -58% auto;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
}
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: rgba(255,255,255,.8); max-width: 56ch; margin: 0 auto 30px; position: relative; }
.cta-band .btn-row { position: relative; }

.band-onbrand {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%);
  color: #fff;
}
.band-onbrand h2 { color: #fff; }

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */

.page-hero {
  background:
    radial-gradient(760px 320px at 82% -20%, var(--brand-100) 0%, transparent 62%),
    var(--surface-alt);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(52px, 6vw, 84px);
}
.page-hero__inner { max-width: 760px; }
.page-hero h1 { margin-bottom: 18px; }
.page-hero .lede { color: var(--body); }

.crumbs {
  font-size: .87rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs span { margin-inline: 8px; opacity: .5; }

/* ==========================================================================
   Blog
   ========================================================================== */

.post {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.post:hover { border-color: #DCD2E2; box-shadow: var(--shadow-md); transform: translateY(-3px); }
.post__thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--brand-100), var(--accent-050));
  display: grid; place-items: center;
  color: var(--brand);
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .74rem;
}
.post__body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.post__meta {
  font-size: .78rem;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.post h3 { margin-bottom: 10px; font-size: 1.16rem; }
.post p { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.post__more {
  margin-top: auto;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .92rem;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.post__more::after { content: '→'; transition: transform .18s ease; }
.post:hover .post__more::after { transform: translateX(3px); }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(36px, 5vw, 72px); align-items: start; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink);
  margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 13px 15px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { min-height: 148px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-100);
}

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 38px);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: #140F19;
  color: rgba(255,255,255,.62);
  padding-block: clamp(52px, 6vw, 76px) 34px;
  font-size: .95rem;
}
.site-footer h4 {
  color: #fff;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.site-footer a { color: rgba(255,255,255,.62); }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand:hover { color: #fff; }
.site-footer .brand em { color: #E7A4C2; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.footer-grid ul { list-style: none; display: grid; gap: 11px; }
.footer-about { max-width: 34ch; }

.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.16);
  display: grid; place-items: center;
  transition: background .18s ease, border-color .18s ease;
}
.socials a:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.32); }
.socials svg { width: 17px; height: 17px; }

.footer-bottom {
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  justify-content: space-between;
  font-size: .88rem;
  color: rgba(255,255,255,.45);
}

/* ==========================================================================
   Floating WhatsApp
   ========================================================================== */

.wa-float {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 70;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .6);
  transition: transform .18s ease;
}
.wa-float:hover { transform: scale(1.06); color: #fff; }
.wa-float svg { width: 27px; height: 27px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .nav-toggle { display: grid; }
  .header__actions .btn { display: none; }

  .site-header__nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 12px var(--gutter) 22px;
    display: none;
  }
  .site-header.is-open .site-header__nav { display: block; }
  .nav { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a { padding: 13px 14px; border-radius: 11px; font-size: 1rem; }
  .site-header__nav > .btn { display: inline-flex; width: 100%; margin-top: 14px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-band { border-radius: 20px; }
  .hero__panel { padding: 24px 20px; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .hero__meta { gap: 8px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   WordPress integration
   ========================================================================== */

.screen-reader-text {
  border: 0;
  clip-path: inset(50%);
  height: 1px; width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  white-space: nowrap;
}
.screen-reader-text:focus {
  clip-path: none;
  background: #fff;
  color: var(--brand);
  height: auto; width: auto;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  top: 12px; left: 12px;
  z-index: 100;
  font-family: var(--font-head);
  font-weight: 600;
}

/* Admin bar must not sit on top of the sticky header */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* Menu states produced by wp_nav_menu */
.nav .current-menu-item > a,
.nav .current_page_item > a,
.nav .current-menu-ancestor > a { color: var(--brand); font-weight: 600; }

/* Custom logo */
.brand img,
.custom-logo { max-height: 40px; width: auto; }
.brand--has-logo { gap: 0; }

/* Featured images in post cards */
.post__thumb { position: relative; overflow: hidden; }
.post__thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.post__thumb--placeholder { color: var(--brand); }

/* ==========================================================================
   Editor content (single posts and generic pages)
   ========================================================================== */

.entry-content {
  max-width: 760px;
  margin-inline: auto;
  font-size: 1.06rem;
  line-height: 1.75;
}
.entry-content > * { margin-block: 0 1.25em; }
.entry-content h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.95rem); margin-top: 1.9em; }
.entry-content h3 { font-size: 1.3rem; margin-top: 1.7em; }
.entry-content h4 { font-size: 1.1rem; margin-top: 1.5em; }
.entry-content ul,
.entry-content ol { padding-left: 1.35em; display: grid; gap: .55em; }
.entry-content li { padding-left: .2em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content img,
.entry-content figure { border-radius: var(--radius); overflow: hidden; }
.entry-content figcaption,
.entry-content .wp-caption-text {
  font-size: .88rem; color: var(--muted); margin-top: .7em; text-align: center;
}
.entry-content blockquote {
  margin: 2em 0;
  padding: 4px 0 4px 26px;
  border-left: 3px solid var(--accent);
  font-family: var(--font-head);
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 600;
}
.entry-content blockquote cite {
  display: block; margin-top: .7em;
  font-family: var(--font-body); font-size: .92rem;
  font-weight: 400; font-style: normal; color: var(--muted);
}
.entry-content code {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .1em .4em;
  font-size: .9em;
}
.entry-content pre {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
  overflow-x: auto;
}
.entry-content hr {
  border: 0; height: 1px; background: var(--line); margin-block: 2.4em;
}
.entry-content table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 11px 14px; text-align: left; }
.entry-content th { background: var(--surface-alt); font-family: var(--font-head); font-weight: 600; color: var(--ink); }

.alignwide  { max-width: min(1000px, 100%); margin-inline: auto; }
.alignfull  { max-width: 100%; }
.alignleft  { float: left;  margin: .4em 1.6em 1.2em 0; }
.alignright { float: right; margin: .4em 0 1.2em 1.6em; }
.aligncenter { margin-inline: auto; }

.entry-meta {
  font-family: var(--font-head);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex; flex-wrap: wrap; gap: 6px 16px;
}
.entry-meta a { color: var(--accent); }

.entry-featured {
  max-width: 1000px; margin: 0 auto clamp(36px, 5vw, 60px);
  border-radius: var(--radius); overflow: hidden;
}
.entry-featured img { width: 100%; height: auto; }

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-top: clamp(40px, 5vw, 60px);
}
.pagination .page-numbers {
  min-width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  color: var(--body);
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.pagination .page-numbers:hover { border-color: var(--brand); color: var(--brand); }
.pagination .page-numbers.current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .dots { border-color: transparent; }

/* ==========================================================================
   Empty states
   ========================================================================== */

.empty-state {
  max-width: 620px; margin-inline: auto; text-align: center;
  padding: clamp(40px, 5vw, 64px) 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
}
.empty-state p { color: var(--muted); }

/* ==========================================================================
   Image slots (Customize > HerAlly images)
   ========================================================================== */

/* Hero: optional image sits above the "three ways to reach us" panel. */
.hero__aside { display: grid; gap: 20px; align-content: start; }

.hero__figure {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--brand-100);
  box-shadow: var(--shadow-lg);
}
.hero__figure img { width: 100%; height: 100%; object-fit: cover; }

/* Full-width banner used under the About page hero. */
.section--media { padding-bottom: 0; }

.media-band {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  background: var(--brand-100);
}
.media-band img { width: 100%; height: 100%; object-fit: cover; }

/* Partner / trust logo strip. */
.section--strip {
  padding-block: clamp(36px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}

.strip__label {
  text-align: center;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 26px;
}

/* Grid rather than flex, so the last row is never a lonely single logo. */
.partners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  align-items: center;
  justify-items: center;
  gap: 26px 32px;
  max-width: 1040px;
  margin-inline: auto;
}
.partner img {
  max-height: 42px;
  width: auto;
  opacity: .55;
  filter: grayscale(1);
  transition: opacity .2s ease, filter .2s ease;
}
.partner:hover img { opacity: 1; filter: none; }

/* Logos in the dark footer. */
.site-footer .brand img { max-height: 44px; width: auto; }

@media (max-width: 640px) {
  .media-band { aspect-ratio: 4 / 3; }
  .partners { grid-template-columns: repeat(3, 1fr); gap: 22px 20px; }
  .partner img { max-height: 30px; }
}
