/*
Theme Name: Megen Ralphs for School Board
Theme URI: http://localhost/megen
Author: Campaign Web Team
Description: Custom full-site-editing (block) theme for the Megen Ralphs for Iron County School Board, District 7 campaign. Ported from the original static site — green #59d971 / coral #f26451, editable page content and block patterns.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: megen
*/

/* ==========================================================================
   Megen Ralphs for School Board — District 7
   Site stylesheet (ported from static site → block theme)
   Brand colors: green #59d971, coral #f26451
   Fonts:  Blooming Elegant (script) — the "Megen" wordmark
           Cera GR Black (heavy display) — "RALPHS" + headings
           Montserrat (web) — body & UI text
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ---- Brand fonts ---------------------------------------------------------- */
@font-face {
  font-family: "Blooming Elegant";
  src: url("assets/fonts/BloomingElegant-MonolineBold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Cera GR Black";
  src: url("assets/fonts/CeraGR-Black.otf") format("opentype");
  font-weight: 900;
  font-display: swap;
}

/* ---- Design tokens -------------------------------------------------------- */
:root {
  /* Green tonal scale — light to dark */
  --green-50:  #f1fbf3;
  --green-100: #e2f6e7;
  --green-150: #d0f0d8;
  --green-200: #bdeac9;
  --green:     #59d971;   /* brand */
  --green-logo:#58ab8c;   /* the softer green from the logo — accents only (low text contrast) */
  --green-500: #45c85f;
  --green-deep:#2f9d4d;
  --green-700: #217a3b;
  --green-ink: #1a6633;
  --forest:    #124e29;
  --forest-2:  #0d3a20;

  --red: #f26451;        /* coral (brand accent) */
  --red-soft: #fdeae5;
  --red-deep: #d94a38;

  --ink: #1d2321;
  --muted: #5c6660;
  --line: #e2ebe4;
  --bg: #ffffff;
  --bg-soft: #f4f8f5;
  --bg-mint: var(--green-50);

  --shadow-sm: 0 2px 8px rgba(29, 35, 33, .06);
  --shadow-md: 0 12px 32px rgba(29, 35, 33, .10);
  --shadow-lg: 0 24px 60px rgba(29, 35, 33, .16);
  --radius: 16px;
  --radius-lg: 26px;
  --maxw: 1160px;
  --pad: clamp(20px, 5vw, 48px);
}

/* ---- Reset / base --------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Montserrat", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-ink); }

h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1.1em; }
strong { color: var(--ink); font-weight: 700; }

.container { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* Red section kicker / title */
.eyebrow {
  display: inline-block;
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .55rem;
}
.eyebrow--xl {
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  letter-spacing: .06em;
  margin-bottom: .35rem;
}

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--soft   { background: var(--bg-soft); }
.section--mint   { background: var(--green-50); }
.section--tint   { background: var(--green-100); }
.section--band   { background: linear-gradient(160deg, rgba(88,171,140,.22), rgba(88,171,140,.10)); }
.section--forest { background: linear-gradient(160deg, var(--forest), var(--forest-2)); color: #e7f7ec; }
.section--forest h1, .section--forest h2, .section--forest h3 { color: #fff; }
.section--forest .eyebrow { color: #8fe6a6; }
.section--forest p { color: rgba(255,255,255,.9); }

.section__head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand { display: inline-flex; flex-direction: column; line-height: .78; text-decoration: none; }
.brand__script {
  font-family: "Blooming Elegant", cursive;
  color: var(--red);
  font-size: 2.05rem;
  letter-spacing: .01em;
  margin-bottom: -2px;
  padding-left: 2px;
}
.brand__block {
  font-family: "Cera GR Black", "Montserrat", sans-serif;
  color: var(--green-deep);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: .04em;
}
.brand:hover .brand__script { color: var(--red-deep); }
.brand__logo { height: 54px; width: auto; display: block; }
.site-footer .brand__logo { height: 62px; }

/* Nav — works with core Navigation block markup */
.megen-nav .wp-block-navigation__container,
.nav__links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.megen-nav .wp-block-navigation-item a,
.nav__links a {
  display: inline-block;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: .93rem;
  transition: background .18s, color .18s;
}
.megen-nav .wp-block-navigation-item a:hover,
.nav__links a:hover { background: var(--green-50); color: var(--green-ink); }
.megen-nav .wp-block-navigation-item.current-menu-item a,
.nav__links a.is-active { color: var(--green-ink); background: var(--green-100); }
.nav__links .btn { margin-left: 8px; }
.nav__toggle, .nav__toggle-label { display: none; }

/* Right-hand cluster: nav links + Contact button */
.nav__right { display: flex; align-items: center; gap: 6px; }
.nav__right .wp-block-navigation { gap: 2px; }
.nav__cta { margin-left: 8px; }
.nav__cta .wp-block-button__link { padding: 9px 22px; font-size: .93rem; }
.megen-nav .wp-block-navigation-item a { text-decoration: none; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .18s, background .18s, color .18s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(242, 100, 81, .32); }
.btn--primary:hover { background: var(--red-deep); }
.btn--green { background: var(--green-deep); color: #fff; box-shadow: 0 8px 20px rgba(47, 157, 77, .30); }
.btn--green:hover { background: var(--green-ink); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--green); color: var(--green-ink); }
.btn--white { background: #fff; color: var(--green-ink); }
.btn--white:hover { background: var(--green-50); }

/* Core button block → brand button bridge (so editor buttons match) */
.wp-block-button__link { border-radius: 999px; font-weight: 700; padding: 13px 26px; }
.is-style-btn-primary .wp-block-button__link { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(242,100,81,.32); }
.is-style-btn-primary .wp-block-button__link:hover { background: var(--red-deep); }
.is-style-btn-green .wp-block-button__link { background: var(--green-deep); color: #fff; box-shadow: 0 8px 20px rgba(47,157,77,.30); }
.is-style-btn-green .wp-block-button__link:hover { background: var(--green-ink); }
.is-style-btn-ghost .wp-block-button__link { background: #fff; color: var(--ink); border: 2px solid var(--line); }
.is-style-btn-ghost .wp-block-button__link:hover { border-color: var(--green); color: var(--green-ink); }
.is-style-btn-white .wp-block-button__link { background: #fff; color: var(--green-ink); }
.is-style-btn-white .wp-block-button__link:hover { background: var(--green-50); }

/* ==========================================================================
   Ballot / checkbox tagline
   ========================================================================== */
.ballot {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  border-radius: 999px;
  padding: 10px 20px 10px 12px;
  font-weight: 700;
  color: var(--ink);
  font-size: clamp(.95rem, 1.6vw, 1.08rem);
  margin: 0;
}
.ballot__box {
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  color: var(--green-deep);
}
.ballot__box svg { width: 30px; height: 30px; display: block; }
.section--forest .ballot { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff; }
.section--forest .ballot__box { color: var(--green); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 560px at 84% -14%, rgba(88, 171, 140, .52), transparent 62%),
    radial-gradient(1000px 560px at 10% 118%, rgba(88, 171, 140, .44), transparent 60%),
    linear-gradient(180deg, var(--green-150), #fff 48%, var(--green-100));
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(30px, 4.5vw, 60px) 0;
}
.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--green-ink);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero__pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.hero h1 { margin-bottom: .3em; }
.hero h1 .accent { color: var(--green-deep); }
.hero__lead { font-size: 1.32rem; color: var(--green-ink); font-weight: 700; max-width: 32ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero__ballot { margin-top: 26px; }

.hero__portrait {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1 / 1;
  background: var(--bg-soft);
}
.hero__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.hero__portrait::after {
  content: "";
  position: absolute; inset: 0;
  border: 8px solid #fff; border-radius: var(--radius-lg);
  pointer-events: none;
}
.hero__badge {
  position: absolute;
  left: 0; bottom: 26px;
  background: var(--red);
  color: #fff;
  padding: 14px 20px;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  font-weight: 700;
  max-width: 220px;
  line-height: 1.25;
}
.hero__badge span { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; opacity: .85; font-weight: 700; }

/* ==========================================================================
   Prose / rich text blocks
   ========================================================================== */
.prose { max-width: 720px; }
.prose.center { margin: 0 auto; }
.lead { font-size: 1.2rem; color: var(--ink); font-weight: 500; }

/* Two-column text + image */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.split--text-first .split__media { order: 2; }
.split__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Story layout — flowing left text + staggered photos on the right
   ========================================================================== */
.story {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(30px, 5vw, 68px);
  align-items: start;
}
.story__text { max-width: 62ch; }
.story__text > *:first-child { margin-top: 0; }
.story__photos { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 32px); padding-top: 8px; }
.story__photos figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 6px solid #fff;
  background: #fff;
  aspect-ratio: 4 / 3;
}
.story__photos figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* stagger: alternate horizontal offset + size */
.story__photos figure:nth-child(odd)  { margin-right: clamp(0px, 6vw, 46px); }
.story__photos figure:nth-child(even) { margin-left: clamp(0px, 6vw, 46px); }
.story__photos figure:nth-child(3n)   { aspect-ratio: 3 / 4; }

/* ==========================================================================
   Photo gallery
   ========================================================================== */
.gallery { display: grid; gap: 22px; }
.gallery--3 { grid-template-columns: repeat(3, 1fr); }
.gallery--2 { grid-template-columns: repeat(2, 1fr); }
.photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
}
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.photo:hover img { transform: scale(1.04); }
.photo--tall { aspect-ratio: 3 / 4; }
.photo--portrait img { object-position: center 22%; }
.photo__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 16px 12px;
  background: linear-gradient(to top, rgba(0,0,0,.62), transparent);
  color: #fff; font-size: .86rem; font-weight: 600;
}

/* ==========================================================================
   Priorities cards
   ========================================================================== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(88, 171, 140, .16); color: var(--green-deep);
  margin-bottom: 18px;
}
.card:nth-child(even) .card__icon { background: var(--red-soft); color: var(--red-deep); }
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .4em; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ==========================================================================
   Video placeholder + video grid
   ========================================================================== */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 300px at 50% 40%, rgba(89,217,113,.20), transparent 70%),
    var(--bg-soft);
  border: 2px dashed #bcd3c2;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  overflow: hidden;
}
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-frame__play {
  width: 74px; height: 74px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 30px rgba(242,100,81,.38);
  margin: 0 auto 14px;
}
.video-frame__play svg { width: 28px; height: 28px; margin-left: 4px; }
.video-frame b { color: var(--ink); }
.section--forest .video-frame { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.3); color: #d9efdf; }
.section--forest .video-frame b { color: #fff; }

.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.video-grid .video-frame { border-radius: var(--radius); }
.video-card figcaption { margin-top: 10px; font-weight: 600; font-size: .92rem; }

/* Portrait / vertical video endorsements */
.video-grid--portrait {
  grid-template-columns: repeat(auto-fit, minmax(190px, 230px));
  justify-content: center;
}
.video-grid--portrait .video-frame { aspect-ratio: 9 / 16; }

/* Hero-adjacent video band */
.video-lead .video-frame { max-width: 750px; margin: 0 auto; }

/* ==========================================================================
   Contact form (+ Contact Form 7 bridge)
   ========================================================================== */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.contact__intro p { color: var(--muted); }
.contact__list { list-style: none; margin: 22px 0 0; padding: 0; }
.contact__list li { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; font-weight: 600; }
.contact__list .ico { width: 38px; height: 38px; border-radius: 10px; background: var(--green-100); color: var(--green-deep); display: grid; place-items: center; flex: none; }
.contact__list .ico svg { width: 20px; height: 20px; }

.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-md);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(89, 217, 113, .18);
}
.form .btn { width: 100%; margin-top: 4px; }
.form__note { font-size: .82rem; color: var(--muted); margin: 14px 0 0; text-align: center; }
.form__status { margin: 14px 0 0; font-weight: 700; font-size: .95rem; text-align: center; }
.form__status.is-ok  { color: var(--green-ink); }
.form__status.is-err { color: var(--red-deep); }

/* --- Contact Form 7 styled to match the original .form markup --- */
.form .wpcf7-form p { margin: 0; }
.form .wpcf7 .contact-name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .wpcf7 label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 18px; }
.form .wpcf7 label .field-label { display: block; margin-bottom: 7px; }
.form .wpcf7-form-control-wrap { display: block; }
.form .wpcf7 input.wpcf7-form-control,
.form .wpcf7 textarea.wpcf7-form-control {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  margin-top: 7px;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.form .wpcf7 textarea.wpcf7-form-control { resize: vertical; min-height: 140px; }
.form .wpcf7 input.wpcf7-form-control:focus,
.form .wpcf7 textarea.wpcf7-form-control:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(89, 217, 113, .18);
}
.form .wpcf7 input.wpcf7-submit {
  width: 100%;
  margin-top: 4px;
  padding: 15px 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: .98rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(242, 100, 81, .32);
  transition: background .18s;
}
.form .wpcf7 input.wpcf7-submit:hover { background: var(--red-deep); }
.form .wpcf7-spinner { margin: 12px auto 0; display: block; }
.form .wpcf7 .wpcf7-response-output {
  margin: 16px 0 0;
  border-radius: 12px;
  font-weight: 600;
  font-size: .92rem;
  text-align: center;
}

/* ==========================================================================
   Endorsements — dense name lists
   ========================================================================== */
.name-lists {
  columns: 4 190px;
  column-gap: 34px;
}
.name-lists .name {
  break-inside: avoid;
  padding: 7px 0 7px 22px;
  position: relative;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  font-size: .98rem;
}
.name-lists .name::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 9px; height: 9px; margin-top: -4px;
  border-radius: 2px;
  background: var(--green-logo);
}
.name-lists .name:nth-child(even)::before { background: var(--red); }
.name-lists .name small { display: block; color: var(--muted); font-weight: 500; font-size: .82rem; }

.endorse-group { margin-bottom: clamp(40px, 6vw, 64px); }
.endorse-group:last-child { margin-bottom: 0; }

/* ==========================================================================
   District map
   ========================================================================== */
.map-wrap { position: relative; }
.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid #fff;
  background: var(--bg-soft);
  aspect-ratio: 16 / 10;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
/* Stacked frame: static boundary image on top, interactive map below */
.map-frame--stack { aspect-ratio: auto; }
.map-frame--stack img { width: 100%; height: auto; display: block; }
.map-frame--stack iframe {
  width: 100%; height: auto; aspect-ratio: 16 / 10;
  border-top: 6px solid #fff;
}
.map-label {
  position: absolute;
  top: 18px; left: 18px;
  z-index: 2;
  pointer-events: none;
  background: var(--green-deep);
  color: #fff;
  font-weight: 800;
  font-size: .92rem;
  letter-spacing: .02em;
  padding: 9px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
}
.map-caption { margin: 26px auto 0; max-width: 60ch; text-align: center; }
@media (max-width: 700px) { .map-frame { aspect-ratio: 3 / 4; } }

/* Priorities intro — heading + small photos side by side */
.split--intro { grid-template-columns: 1.3fr .7fr; align-items: center; }
.split--intro .intro-photos { display: flex; flex-direction: column; gap: 18px; }
.split--intro .intro-photos .photo { aspect-ratio: 3 / 2; box-shadow: var(--shadow-md); }
@media (max-width: 900px) {
  .split--intro { grid-template-columns: 1fr; }
  .split--intro .intro-photos { flex-direction: row; }
  .split--intro .intro-photos .photo { flex: 1; }
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  background: linear-gradient(120deg, var(--green-deep), var(--green-ink));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(34px, 5vw, 56px);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.92); max-width: 52ch; margin-left: auto; margin-right: auto; }
.cta-band .btn--primary { box-shadow: 0 10px 24px rgba(0,0,0,.2); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--forest-2);
  color: #b9d3c1;
  padding: clamp(44px, 6vw, 72px) 0 32px;
}
.site-footer .brand__script { color: #ff6b78; }
.site-footer .brand__block { color: var(--green); }
.footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: center; }
.footer__links,
.site-footer .wp-block-navigation__container { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.footer__links a,
.site-footer .wp-block-navigation-item a { color: #cbe4d3; text-decoration: none; font-weight: 600; }
.footer__links a:hover,
.site-footer .wp-block-navigation-item a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 34px; padding-top: 22px;
  font-size: .84rem; color: #86a591;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.mt-gallery { margin-top: clamp(32px, 5vw, 52px); }
.text-center { text-align: center; }

/* ==========================================================================
   WordPress / block-editor integration
   ========================================================================== */
/* Let full-width section groups span the viewport; inner .container constrains */
.wp-site-blocks { overflow-x: hidden; }
/* Sections stack edge-to-edge: kill the block-flow gap between top-level
   blocks (header / sections / footer) so backgrounds meet with no white gap. */
.wp-site-blocks > *,
main.wp-block-group,
.wp-block-post-content > * { margin-block: 0 !important; }
.wp-block-post-content { width: 100%; max-width: none; }
/* Sticky header offset when the admin bar is present */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
/* Neutralize default block vertical margins inside our custom layouts */
.hero__copy > *, .story__text > *, .prose > *, .contact__intro > * { max-width: 100%; }
.hero__actions .wp-block-button { margin: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px var(--pad) 20px;
    gap: 4px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav__links a { padding: 12px 14px; }
  .nav__links .btn { margin: 6px 0 0; }
  .nav__toggle:checked ~ .nav__links { display: flex; }
  .nav__toggle-label {
    display: inline-flex; flex-direction: column; gap: 5px;
    cursor: pointer; padding: 10px; margin: -10px;
  }
  .nav__toggle-label span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; }
  .brand__logo { height: 46px; }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__portrait { max-width: 460px; margin: 0 auto; order: -1; }
  .split { grid-template-columns: 1fr; }
  .split--text-first .split__media { order: 0; }
  .story { grid-template-columns: 1fr; }
  .story__photos { flex-direction: row; flex-wrap: wrap; }
  .story__photos figure { margin: 0 !important; flex: 1 1 240px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .video-grid { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .gallery--3, .gallery--2 { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .form__row, .form .wpcf7 .contact-name-row { grid-template-columns: 1fr; }
  .name-lists { columns: 1; }
  .hero__badge { left: 0; }
  .story__photos figure { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media (max-width: 599px) {
    .wp-block-navigation__responsive-container.is-menu-open {
        height: 100vh;
        overflow: hidden;
        background-color: #fff !important;
    }

    .wp-block-navigation__responsive-close,
    .wp-block-navigation__responsive-dialog {
        height: 100%;
        background-color: #fff;
    }
}