/* ============================================================
   Components — reusable across all pages
   buttons · header/nav · footer · cards · stats · forms ·
   marquee · carousel · step list · testimonial
   ============================================================ */

/* ---- Buttons -------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2xs);
  font-family: var(--font-body); font-weight: var(--fw-semibold);
  font-size: var(--fs-200); line-height: 1;
  letter-spacing: 0.02em;
  padding: 1.3em 1.8em 1.15em; /* canonical button padding (more top/bottom, slightly more on top) — base for all buttons */
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--c-lime); color: var(--c-olive); }
.btn--primary:hover { background: var(--c-lime-deep); color: var(--c-olive); }
.btn--olive { background: var(--c-olive); color: var(--c-cream); }
.btn--olive:hover { background: var(--c-olive-deep); color: var(--c-cream); }
.btn--dark { background: var(--c-espresso); color: var(--c-cream); }   /* darkest CTA — #2C1F17 */
.btn--dark:hover { background: var(--c-espresso); color: var(--c-cream); filter: brightness(1.25); }
.btn--orange { background: var(--c-orange); color: var(--c-white); }
.btn--orange:hover { background: var(--c-orange-deep); color: var(--c-white); }
.btn--white { background: var(--c-white); color: var(--c-olive); }
.btn--white:hover { background: var(--c-cream); color: var(--c-olive); }
.btn--blue { background: var(--c-blue); color: var(--c-olive); }   /* muted slate-blue pill (Workshop hero CTA) */
.btn--blue:hover { background: var(--c-blue-deep); color: var(--c-olive); }
.btn--lime { background: var(--c-lime); color: var(--c-white); }   /* lime pill, white caps — Speaker "Watch __ Speak" CTA */
.btn--lime:hover { background: var(--c-lime-deep); color: var(--c-white); }
.btn--outline { background: transparent; border-color: currentColor; color: var(--c-olive); }
.btn--outline:hover { background: var(--c-olive); color: var(--c-cream); border-color: var(--c-olive); }
.bg-olive .btn--outline, .bg-orange .btn--outline { color: var(--c-cream); }
.bg-olive .btn--outline:hover { background: var(--c-lime); color: var(--c-olive); border-color: var(--c-lime); }
.btn--lg { font-size: 1.0625rem; } /* 17px (design spec); padding inherited from base .btn */
.btn--caps { text-transform: uppercase; letter-spacing: 0.1em; }
.btn--sm { font-size: var(--fs-75); letter-spacing: 0.04em; } /* small caps pill — keep AFTER --caps so its tracking wins */

/* ---- Header / Nav ---------------------------------------
   Layout: [ left nav ] [ centered logo ] [ social + Connect ]
   --------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--c-cream-warm);
  border-bottom: 1px solid rgba(54, 68, 31, 0.12);
}
.site-header__inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: var(--space-md); min-height: var(--header-h); padding-block: var(--space-2xs);
}
.brand { justify-self: center; display: inline-flex; align-items: center; }
.brand__logo { height: clamp(52px, 6.4vw, 94px); width: auto; } /* slightly smaller → more top/bottom padding */

/* Left nav */
.primary-nav { justify-self: start; }
.primary-nav > ul { display: flex; align-items: center; gap: clamp(1.1rem, 2.1vw, 2.4rem); list-style: none; }
.primary-nav a, .dropdown-toggle {
  font-family: var(--font-body); font-weight: var(--fw-light); font-size: var(--fs-150);
  letter-spacing: 0.05em; color: var(--c-olive); line-height: 1; padding-block: .5em;
  white-space: nowrap; /* keep multi-word items like "How We Serve" on one line */
  display: inline-flex; align-items: center; gap: .4em; background: none; border: 0; cursor: pointer;
}
.primary-nav > ul > li > a, .dropdown-toggle { position: relative; }
.primary-nav > ul > li > a::after, .dropdown-toggle::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--c-orange); transition: width var(--dur) var(--ease);
}
.primary-nav > ul > li > a:hover, .primary-nav > ul > li > a[aria-current="page"],
.dropdown-toggle:hover { color: var(--c-orange); }
.primary-nav > ul > li > a:hover::after, .primary-nav > ul > li > a[aria-current="page"]::after,
.has-dropdown:hover .dropdown-toggle::after, .has-dropdown.is-open .dropdown-toggle::after { width: 100%; }

/* Donate dropdown */
.has-dropdown { position: relative; }
.donate-heart { color: var(--c-orange); font-size: .9em; transition: transform var(--dur) var(--ease); }
.has-dropdown:hover .donate-heart, .has-dropdown.is-open .donate-heart { transform: scale(1.2); } /* heart is the dropdown indicator */
.dropdown {
  position: absolute; left: 0; top: calc(100% + .5rem); min-width: 230px; list-style: none;
  background: var(--c-cream-warm); border: 1px solid rgba(54,68,31,.15);
  /* square top (connects to the toggle), rounded bottom only */
  border-radius: 0 0 var(--radius-md) var(--radius-md); box-shadow: var(--shadow-md);
  padding: var(--space-2xs) var(--space-sm) var(--space-sm);  /* roomier sides + bottom */
  display: grid; gap: 2px; z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
/* Transparent bridge over the gap so the cursor can travel from toggle to menu
   without the dropdown closing mid-way. */
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -0.6rem; height: 0.6rem; }
.has-dropdown:hover > .dropdown, .has-dropdown.is-open > .dropdown { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.dropdown a { display: block; padding: .7em 1em; border-radius: 4px; font-size: var(--fs-200); white-space: nowrap; color: var(--c-olive); }
.dropdown a:hover { background: rgba(54,68,31,.08); color: var(--c-orange); }

/* Right actions: social + Connect */
.header__actions { justify-self: end; display: flex; align-items: center; gap: var(--space-lg); }
.social-icons { display: flex; align-items: center; gap: var(--space-xs); list-style: none; }
.social-icons a {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--c-white); color: var(--c-olive);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.social-icons a:hover { background: var(--c-olive); color: var(--c-cream); transform: translateY(-2px); }
.social-icons svg { width: 16px; height: 16px; fill: currentColor; }

/* Hamburger */
.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; height: 2.5px; width: 26px; background: var(--c-olive); border-radius: 2px; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---- Header: mobile / tablet ---------------------------- */
@media (max-width: 1024px) {
  :root { --header-h: 88px; } /* shorter header on small screens (keeps drawer offset in sync) */
  .site-header__inner { display: flex; align-items: center; justify-content: space-between; }
  .brand { justify-self: auto; }
  .nav-toggle { display: flex; order: -1; }   /* hamburger on the left */
  .social-icons { display: none; }            /* moves into the drawer */

  .primary-nav {
    position: fixed; top: var(--header-h); left: 0; right: auto; bottom: auto; width: 100%;
    background: var(--c-cream-warm); border-bottom: 1px solid rgba(54,68,31,.15);
    box-shadow: var(--shadow-md); transform: translateY(-150%);
    transition: transform var(--dur) var(--ease);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .primary-nav[data-open="true"] { transform: translateY(0); }
  .primary-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: var(--space-sm) var(--gutter); }
  .primary-nav > ul > li > a, .dropdown-toggle { width: 100%; padding-block: var(--space-sm); border-bottom: 1px solid rgba(54,68,31,.1); }
  .dropdown-toggle { justify-content: flex-start; }
  .dropdown-toggle .donate-heart { margin-left: auto; }
  /* dropdown becomes an inline accordion */
  .dropdown { position: static; min-width: 0; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; background: transparent; padding: 0 0 var(--space-2xs) var(--space-md); display: none; }
  .has-dropdown:hover > .dropdown { display: none; } /* disable hover-open on touch */
  .has-dropdown.is-open > .dropdown { display: grid; }
}

/* ---- Marquee -------------------------------------------- */
.marquee { overflow: hidden; }
.marquee--text { background: var(--c-cream-warm); color: var(--c-olive); padding-block: var(--space-sm); }
/* Spacing lives on each item (margin-right), NOT flex gap — so a -50% loop lands exactly one
   copy over and there's no jump/jerk at the seam. */
.marquee__track { display: flex; flex-wrap: nowrap; width: max-content; animation: marquee var(--marquee-duration, 28s) linear infinite; will-change: transform; }
.marquee--text span {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.1rem, 0.8rem + 1.4vw, 2rem); letter-spacing: 0.1em; white-space: nowrap;
  margin-right: 4.5rem;
}
.marquee .dot { display: none; } /* remove the lime bullet/circle */
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- Service cards --------------------------------------- */
/* Thinner columns, centered as a group (matches design reference). */
.card-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 264px));
  justify-content: center; gap: clamp(1.25rem, 2.2vw, 2.25rem);
}
@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; gap: 3rem; }
}
/* Each card has two stacked zones: a SOLID accent band at the top (white title sits
   on it) and a lighter tint of that accent filling the body (dark body text). The
   button sits inside the body at the bottom, colored to match the band. */
.card {
  position: relative;
  display: flex; flex-direction: column;
  border: none; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  --card-accent: var(--c-olive-mid);                  /* per-card accent, overridden below */
  --card-tint: var(--c-card-tint-1);                  /* per-card body wash, overridden below */
  background: var(--card-tint);
}
/* Solid title band across the top (rounded top corners match the card radius) */
.card__band {
  display: flex; align-items: center; justify-content: center;
  min-height: 5.25rem;                                /* uniform band height across the row */
  padding: var(--space-md) var(--space-sm);
  background: var(--card-accent); text-align: center;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.card__title {
  font-size: var(--fs-400); margin: 0; color: var(--c-white);
  line-height: var(--lh-snug); text-wrap: balance;
}
/* Body zone (tinted) — copy + arrow; extra bottom room for the straddling button */
.card__inner {
  flex: 1 1 auto;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: var(--space-md) var(--space-md) 3.25rem;
}
.card__body { font-size: var(--fs-200); color: var(--c-olive); line-height: 1.6; }
/* Down arrow — centered in the open space below the copy (not pinned to the bottom) */
.card__arrow { display: block; height: 38px; width: auto; margin: auto 0; opacity: 0.75; }
/* Pill button straddling the bottom edge of the card */
.card__btn {
  position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%);
  width: max-content; max-width: 88%;
  white-space: normal; line-height: 1.2;
  font-size: var(--fs-75); letter-spacing: 0.04em;
  padding: 0.65em 1.4em 0.6em;
  background: var(--card-accent); color: var(--c-white);
}
.card__btn:hover { transform: translate(-50%, calc(50% - 2px)); background: var(--card-accent); color: var(--c-white); filter: brightness(0.92); }
/* Per-card accent + tint pairs */
.card--olive { --card-accent: var(--c-lime-acid); --card-tint: var(--c-lime-acid-wash); }
.card--blue  { --card-accent: var(--c-blue-deep); --card-tint: var(--c-card-tint-2); }
.card--dark  { --card-accent: var(--c-olive);     --card-tint: var(--c-card-tint-3); }

/* ---- Stat circles --------------------------------------- */
/* Solid blue discs; ALL text (number, unit, description) lives inside the circle. */
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1.5rem, 4vw, 4.5rem); }
.stat__circle {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: clamp(205px, 21vw, 290px); aspect-ratio: 1;
  border-radius: 50%; background: var(--c-blue);
  padding: var(--space-lg); text-align: center;
}
/* Inter (not Biennale) so the "+" renders — the demo display font maps "+" to a glyph */
.stat__num { font-family: var(--font-body); font-weight: 800; font-size: clamp(2.4rem, 1.6rem + 2.1vw, 3.3rem); color: var(--c-ink); line-height: 1; }
.stat__unit { font-family: var(--font-body); font-weight: var(--fw-bold); font-size: var(--fs-200); color: var(--c-ink); margin-top: 0.1em; }
.stat__desc { font-size: var(--fs-100); color: var(--c-ink); line-height: 1.3; margin-top: var(--space-2xs); max-width: 18ch; }

/* ---- Numbered step list --------------------------------- */
/* Each step: a colored number disc + a bold title line and body copy. */
.steps { display: grid; gap: var(--space-lg); }
.step { display: grid; grid-template-columns: auto 1fr; gap: var(--space-md); align-items: center; }
.step__num {
  display: grid; place-items: center; flex: none;
  width: clamp(54px, 5vw, 66px); aspect-ratio: 1; border-radius: 50%;
  font-family: var(--font-body); font-weight: 800; font-size: var(--fs-500);
  color: var(--c-white); line-height: 1; letter-spacing: -0.02em;
  background: var(--step-accent, var(--c-blue));
}
.step--blue   { --step-accent: var(--c-blue); }
.step--orange { --step-accent: var(--c-orange); }
.step--lime   { --step-accent: var(--c-lime); }
.step__title { font-family: var(--font-body); font-weight: var(--fw-bold); font-size: var(--fs-200); color: var(--c-olive); line-height: 1.25; }
.step__body { font-size: var(--fs-200); color: var(--c-ink); margin-top: var(--space-3xs); }

/* ---- Forms ---------------------------------------------- */
.field { display: flex; flex-direction: column; gap: var(--space-3xs); min-width: 0; }
.field label { font-size: var(--fs-200); font-weight: var(--fw-semibold); }
.field input, .field textarea, .field select {
  width: 100%; min-width: 0; /* allow grid/flex tracks to shrink — prevents overflow */
  padding: 0.85em 1.1em; border: 1.5px solid rgba(54,68,31,.35);
  border-radius: var(--radius-sm); background: var(--c-white); font-size: var(--fs-300);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--c-orange); box-shadow: 0 0 0 3px rgba(233,104,45,.18);
}
.form { display: grid; gap: var(--space-sm); }
.form--inline { grid-template-columns: 1fr 1fr auto; align-items: end; }
@media (max-width: 640px) { .form--inline { grid-template-columns: 1fr; } }
/* Tall message field — borderless white treatment inherited from .field; vertically resizable. */
.field--textarea textarea { min-height: clamp(180px, 24vw, 248px); resize: vertical; }

/* ---- Inner-page hero (photo band) ----------------------- */
/* Reusable header for inner pages: full-bleed photo under a dark-olive duotone
   (same technique as .cta-banner), with title + lead bottom-left. NOT the
   homepage .hero (blue panel + arch photo). */
.page-hero { position: relative; overflow: hidden; display: flex; align-items: center; min-height: clamp(360px, 46vw, 580px); }
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; z-index: 0; filter: saturate(0.6); }
/* For inner-page heroes whose subjects sit high in the frame: anchor the cover-crop higher so faces
   aren't clipped (the Events photo has the group seated in the upper third). */
.page-hero--focus-top .page-hero__bg { object-position: 50% 28%; }
/* Single-event hero: a taller frame (~+25%) + a reduced title size so the longer EVENT title fits
   on one line in the wide container. Short page titles on other heroes keep the default --fs-800. */
.page-hero--event { min-height: clamp(450px, 57vw, 725px); }
.page-hero--event .page-hero__title { font-size: var(--fs-700); }
/* Article hero: taller frame than the default page-hero (the comp masthead is ~54vw); page-scoped. */
.page-hero--article { min-height: clamp(480px, 50vw, 800px); }
/* Founders hero: tall masthead (comp ≈54vw), olive duotone via the default __tint (measured #6E745F). */
.page-hero--founders { min-height: clamp(480px, 52vw, 820px); }
.page-hero__tint { position: absolute; inset: 0; z-index: 1; background: var(--c-olive); mix-blend-mode: multiply; opacity: 0.78; pointer-events: none; }
.page-hero > .container { position: relative; z-index: 2; padding-block: clamp(2.5rem, 5vw, 4.5rem); text-align: center; }
.page-hero__title { color: var(--c-cream); font-size: var(--fs-800); line-height: var(--lh-tight); }
/* Fuller solid-orange highlight behind the title word (taller than the site-wide bar — matches the comp). */
.page-hero__title .hl-mark { --hl-height: 0.48em; --hl-pos: 87%; }
/* Events hero: taller masthead (comp ≈47vw) + the orange block raised so its bottom sits at the
   baseline instead of hanging below the letters (client: "cropped a little + moved up"). */
.page-hero--events { min-height: clamp(460px, 47vw, 760px); }
.page-hero--events .page-hero__title .hl-mark { --hl-height: 0.52em; --hl-pos: 46%; }
.page-hero__lead { color: var(--c-cream); font-size: var(--fs-400); max-width: 56ch; margin: var(--space-sm) auto 0; }

/* ---- Category tiles (Events) ---------------------------- */
/* 4-up row of rounded color tiles (icon + uppercase Hello-Imperfect label) on the warm-tan
   squiggle shelf below the page hero. Colors all resolve to brand tokens; icon SVGs carry
   their own per-tile contrast color (cream on orange/olive, olive on blue/lime). */
/* Section band: warm-tan base + the cream wavy brushstroke pattern (extracted from the comp
   .ai) layered over it — the strokes (#F6E9D7) read against the darker tan (--c-tan #EADAC4). */
.category-section {
  background-color: var(--c-tan);
  background-image: url("../patterns/PNG/events-tile-pattern.png");
  background-repeat: no-repeat; background-position: center; background-size: cover;
}
.category-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2.2vw, 2rem); }
.category-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-sm); text-align: center; text-decoration: none;
  /* Equal-height tiles: grid items stretch to the tallest in the row, so the 2-line
     "Church Conferences" tile no longer towers over the 1-line tiles (aspect-ratio
     let the taller content win — client-caught). min-height sets the floor. */
  min-height: clamp(190px, 17vw, 232px); padding: clamp(1.25rem, 2.5vw, 2rem);
  border-radius: var(--radius-lg);
  transition: transform 0.18s ease, filter 0.18s ease;
}
/* Hover: darken to the tile's deeper token + lift; lock the label/icon contrast color so the
   global a:hover (orange) can't override it and make the label unreadable on the orange tile. */
.category-tile:hover { transform: translateY(-4px); }
.category-tile--orange:hover { background: var(--c-orange-deep); color: var(--c-cream); }
.category-tile--blue:hover   { background: var(--c-blue-deep);   color: var(--c-olive); }
.category-tile--olive:hover  { background: var(--c-olive-deep);  color: var(--c-cream); }
.category-tile--lime:hover   { background: var(--c-lime-deep);   color: var(--c-olive); }
.category-tile__icon { width: clamp(56px, 6.5vw, 104px); height: auto; }
.category-tile__label {
  font-family: var(--font-accent); font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.45rem, 2.4vw, 2.15rem); line-height: 1.06; letter-spacing: 0;
}
.category-tile--orange { background: var(--c-orange); color: var(--c-cream); }
.category-tile--blue   { background: var(--c-blue);   color: var(--c-olive); }
.category-tile--olive  { background: var(--c-olive);  color: var(--c-cream); }
.category-tile--lime   { background: var(--c-lime);   color: var(--c-olive); }
@media (max-width: 720px) {
  .category-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .category-tiles { grid-template-columns: 1fr; }
  .category-tile { aspect-ratio: auto; min-height: 160px; }
}

/* ---- Event list (Events) -------------------------------- */
/* Stacked white event cards: square color icon-tile (left, cycles the 4 brand colors) ·
   date pill (olive) + time pill (outlined) · Gabarito title · outlined LEARN MORE (right). */
.event-list__title {
  font-family: var(--font-display-alt); color: var(--c-olive);
  font-size: var(--fs-700); line-height: var(--lh-snug); margin: 0;
}
/* Title row: heading left, "Show All Events" reset button right (hidden until a filter is active). */
.event-list__head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--space-md); margin: 0 0 var(--space-lg);
}
.event-list__reset[hidden] { display: none; }
.event-list { display: flex; flex-direction: column; gap: var(--space-md); }
/* Filtered-out cards: .event-card's display:grid would otherwise beat the [hidden] UA style. */
.event-card[hidden] { display: none; }
/* Active filter tile: lock to the tile's deeper token + a subtle inset ring (mirrors :hover). */
.category-tile.is-active { transform: translateY(-4px); box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.18); }
.category-tile--orange.is-active { background: var(--c-orange-deep); color: var(--c-cream); }
.category-tile--blue.is-active   { background: var(--c-blue-deep);   color: var(--c-olive); }
.category-tile--olive.is-active  { background: var(--c-olive-deep);  color: var(--c-cream); }
.category-tile--lime.is-active   { background: var(--c-lime-deep);   color: var(--c-olive); }
/* Empty state when a category filter matches no events. */
.event-list__empty {
  margin: 0; padding: var(--space-lg); text-align: center;
  color: var(--c-olive); font-size: var(--fs-300);
}
.event-list__empty[hidden] { display: none; }
/* Seamless re-entry fade on each filter change (instant client-side swap, AJAX-style feel). */
@keyframes eventCardIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.event-list.is-filtering .event-card:not([hidden]) { animation: eventCardIn 0.3s ease both; }
@media (prefers-reduced-motion: reduce) {
  .event-list.is-filtering .event-card:not([hidden]) { animation: none; }
}
.event-card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: stretch;
  background: var(--c-white); border-radius: var(--radius-lg); overflow: hidden;
}
/* Square color tile, flush to the card's left rounded corners (card overflow:hidden clips it). */
.event-card__icon {
  display: flex; align-items: center; justify-content: center;
  width: clamp(132px, 14.5vw, 188px); align-self: stretch;
}
.event-card__icon img { width: 46%; max-width: 72px; height: auto; }
.event-card__icon--orange { background: var(--c-orange); }
.event-card__icon--blue   { background: var(--c-blue); }
.event-card__icon--olive  { background: var(--c-olive); }
.event-card__icon--lime   { background: var(--c-lime); }
.event-card__body {
  display: flex; flex-direction: column; justify-content: center; gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
}
.event-card__meta { display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap; }
.event-pill {
  font-family: var(--font-body); font-size: var(--fs-300); line-height: 1;
  letter-spacing: 0.01em; border-radius: var(--radius-pill); padding: 0.65em 1.3em; white-space: nowrap;
}
.event-pill--date { background: var(--c-olive); color: var(--c-cream); }
.event-pill--time { background: var(--c-white); color: var(--c-olive); border: var(--border); }
.event-card__title {
  font-family: var(--font-display-alt); color: var(--c-olive); font-weight: 700;
  font-size: var(--fs-600); line-height: var(--lh-snug); margin: 0;
}
.event-card__action { display: flex; align-items: center; padding-inline-end: var(--space-lg); }
@media (max-width: 640px) {
  /* Stack: small square icon top-left + body beside it, button on its own row below.
     (Desktop's full-height icon strip + --space-xl padding don't suit a narrow card.) */
  .event-card { grid-template-columns: auto 1fr; align-items: start; }
  .event-card__icon { align-self: start; width: clamp(72px, 20vw, 104px); aspect-ratio: 1; }
  .event-card__body { padding: var(--space-md); gap: var(--space-sm); }
  .event-card__title { font-size: var(--fs-500); }
  .event-card__action {
    grid-column: 1 / -1; justify-content: flex-start;
    padding: 0 var(--space-md) var(--space-md);
  }
}

/* ---- Pagination (Events) -------------------------------- */
/* Centered pager: muted prev-arrow (disabled on page 1) · numbered circles
   (active = olive disc + cream number; inactive = olive-outlined) · … · solid next-arrow. */
.pagination { display: flex; align-items: center; justify-content: center; gap: clamp(0.5rem, 1.5vw, 1rem); flex-wrap: wrap; margin-top: var(--space-xl); }
.pagination__item, .pagination__arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: clamp(44px, 4.4vw, 58px); aspect-ratio: 1;
  border-radius: var(--radius-pill); text-decoration: none;
  font-family: var(--font-body); font-size: var(--fs-300); color: var(--c-olive);
  transition: background 0.18s ease, color 0.18s ease;
}
.pagination__item { border: var(--border); }
.pagination__item:hover { background: var(--c-olive); color: var(--c-cream); }
.pagination__item--current { background: var(--c-olive); color: var(--c-cream); border-color: var(--c-olive); }
.pagination__ellipsis { color: var(--c-olive); letter-spacing: 0.12em; padding-inline: var(--space-2xs); }
.pagination__arrow svg { width: 26px; height: 26px; }
.pagination__arrow:hover { color: var(--c-olive-deep); }
.pagination__arrow.is-disabled { opacity: 0.42; pointer-events: none; }

/* ---- Single-event hero meta (date/time pills) ----------- */
/* Cream pills with an inline stroke icon, centered under the .page-hero title.
   Distinct from the listing's .event-pill pair: here BOTH pills are cream + carry an icon. */
.event-hero__meta { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-lg); }
.event-hero__pill {
  display: inline-flex; align-items: center; gap: 0.6em;
  background: var(--c-cream); color: var(--c-olive);
  font-family: var(--font-body); font-size: var(--fs-400); line-height: 1;
  border-radius: var(--radius-pill); padding: 0.85em 1.55em;
}
.event-hero__pill svg { width: 1.2em; height: 1.2em; flex: none; }

/* ---- Event detail (single event) ------------------------ */
/* Full-bleed orange category banner (icon + 2-line Gabarito label + lightened squiggle
   decor), then a white body with intro copy and a centered outlined sign-up button. */
.event-detail { background: var(--c-white); }
/* The category bar color matches the event type's card color (set per-accent below).
   Defaults to orange (Church Conferences) if no type/accent resolves. */
.event-detail__banner {
  position: relative; overflow: hidden;
  background: var(--c-orange); color: var(--c-cream);
  padding-block: clamp(1.75rem, 3.4vw, 2.75rem);
}
.event-detail__banner--orange { background: var(--c-orange); color: var(--c-cream); }
.event-detail__banner--blue   { background: var(--c-blue);   color: var(--c-olive); }
.event-detail__banner--olive  { background: var(--c-olive);  color: var(--c-cream); }
.event-detail__banner--lime   { background: var(--c-lime);   color: var(--c-olive); }
/* The squiggle SVG is solid --c-orange; blend it as a tonal texture (soft-light) so it
   reads in EACH banner's own hue — light-on-orange, but also correct on blue/olive/lime. */
.event-detail__banner-pattern {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  height: 150%; width: auto; z-index: 0; pointer-events: none;
  mix-blend-mode: soft-light; opacity: 0.65;
}
.event-detail__cat { position: relative; z-index: 1; display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.6rem); }
.event-detail__cat-icon { width: clamp(52px, 5.5vw, 84px); height: auto; flex: none; }
.event-detail__cat-label {
  font-family: var(--font-display-alt); font-weight: 700; text-transform: uppercase;
  color: inherit; font-size: var(--fs-450); line-height: 1.04; margin: 0;
}
.event-detail__body { padding-block: clamp(2.25rem, 4.5vw, 3.75rem); }
.event-detail__copy { max-width: none; color: var(--c-olive); font-size: var(--fs-300); line-height: 1.7; }
.event-detail__copy p + p { margin-top: var(--space-md); }
.event-detail__cta { display: flex; justify-content: center; margin-top: clamp(1.75rem, 3.5vw, 2.75rem); }

/* ---- Related events ("You Might Also Like") ------------- */
/* 3-up vertical cards: inset rounded color icon-box · date+time .event-pill row · Gabarito
   title · filled-olive LEARN MORE straddling the card's bottom edge (same idiom as .card__btn). */
.related__title {
  font-family: var(--font-display-alt); color: var(--c-olive);
  font-size: var(--fs-700); line-height: var(--lh-snug); margin: 0 0 var(--space-lg);
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
.related-card {
  position: relative; background: var(--c-white); border-radius: var(--radius-lg);
  padding: 0 var(--space-lg) clamp(3.5rem, 5vw, 4.25rem);
  display: flex; flex-direction: column; gap: var(--space-md);
}
/* Icon-box is flush with the card's TOP edge (square top corners), inset from the left so it clears
   the card's rounded top-left corner; only the bottom corners are rounded. */
.related-card__icon {
  display: flex; align-items: center; justify-content: center;
  width: clamp(88px, 9vw, 116px); aspect-ratio: 1;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.related-card__icon img { width: 56%; height: auto; }
.related-card__icon--orange { background: var(--c-orange); }
.related-card__icon--olive  { background: var(--c-olive); }
.related-card__icon--lime   { background: var(--c-lime); }
.related-card__icon--blue   { background: var(--c-blue); }
.related-card__meta { display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap; }
.related-card__title {
  font-family: var(--font-display-alt); color: var(--c-olive); font-weight: 700;
  font-size: var(--fs-600); line-height: var(--lh-snug); margin: 0;
}
.related-card__btn {
  position: absolute; right: var(--space-lg); bottom: 0; transform: translateY(50%);
  background: var(--c-olive); color: var(--c-cream);
}
/* Hover = a slight color shift only; keep the positioning transform so it does NOT lift/animate
   (the base .btn:hover/:active translateY would otherwise unseat the straddle). */
.related-card__btn:hover { background: var(--c-olive-deep); color: var(--c-cream); filter: none; transform: translateY(50%); }
.related-card__btn:active { transform: translateY(50%); }
@media (max-width: 860px) {
  /* Stack to 1 col; widen the row-gap so each card's straddling LEARN MORE button (overhangs the
     bottom by ~half its height) clears the next card's flush-top icon box instead of overlapping it. */
  .related-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; row-gap: var(--space-xl); }
}

/* ---- Blog: collage hero (page-hero variant) ------------- */
/* Three-photo collage replacing the single .page-hero__bg: cool-tinted side portraits
   flank a warm orange-tinted center group shot; title + .page-hero__lead overlay the center. */
/* Tall full-bleed hero — comp photo is ~1038px tall on the 1920 artboard (~54vw). */
.page-hero--collage { min-height: clamp(560px, 54vw, 1040px); }
.page-hero--collage .page-hero__collage {
  position: absolute; inset: 0; z-index: 0;
  display: grid; grid-template-columns: 0.34fr 1.7fr 0.34fr;
}
.page-hero__cell { position: relative; overflow: hidden; }
.page-hero__cell img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.82); }
.page-hero__cell::after { content: ""; position: absolute; inset: 0; mix-blend-mode: multiply; pointer-events: none; }
.page-hero__cell--main img { object-position: 50% 32%; }
/* Lighter warm wash so the center reads orange without going flat-red over the already-orange backdrop. */
.page-hero__cell--main::after { background: var(--c-orange); opacity: 0.4; }
.page-hero__cell--side::after { background: var(--c-olive); opacity: 0.62; }
@media (max-width: 720px) {
  .page-hero--collage .page-hero__collage { grid-template-columns: 1fr; }
  .page-hero__cell--side { display: none; }
}

/* ---- Blog: filter + search toolbar ---------------------- */
.blog-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--space-md); margin-bottom: var(--space-xl);
}
.blog-filter, .blog-search {
  display: inline-flex; align-items: center;
  border: var(--border); border-radius: var(--radius-pill);
  color: var(--c-olive); background: var(--c-white);
  font-size: var(--fs-400); padding: 1em 1.8em;
}
/* Filter pill is a wide control, label left + chevron flush right; its label is noticeably
   larger than the search text (per comp), with trimmed block padding so it stays ~search height. */
/* The filter pill keeps the SAME box as the search (shared font-size + padding above) — only the
   label text is enlarged, via a span whose line-height (0) doesn't inflate the box height. */
.blog-filter {
  flex: 0 1 480px; justify-content: space-between; gap: 1.4em; cursor: pointer; white-space: nowrap;
  font-family: var(--font-display);
}
.blog-filter__label { font-size: var(--fs-500); line-height: 1; }
.blog-filter__chevron { width: 1em; height: 1em; flex: none; }
.blog-search { flex: 0 1 420px; gap: 0.8em; }
.blog-search input {
  flex: 1 1 auto; border: 0; background: transparent;
  font-family: var(--font-body); font-size: var(--fs-200);
  letter-spacing: 0.08em; color: var(--c-olive); min-width: 0;
}
.blog-search input::placeholder { color: var(--c-muted); }
.blog-search input:focus { outline: none; }
.blog-search__icon { width: 1.15em; height: 1.15em; flex: none; color: var(--c-olive); }

/* ---- Blog: card grid ------------------------------------ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
.blog-card {
  display: flex; flex-direction: column;
  background: var(--c-cream-soft); border-radius: var(--radius-lg);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: box-shadow var(--dur) var(--ease);
}
.blog-card:hover { box-shadow: 0 12px 30px rgba(54, 68, 31, 0.16); }
.blog-card__head { padding: clamp(1.5rem, 2.4vw, 2rem) clamp(1.5rem, 2.4vw, 2rem) clamp(1.25rem, 2vw, 1.75rem); }
.blog-card__cats { display: flex; flex-wrap: wrap; gap: 0.6em; margin-bottom: var(--space-md); }
.blog-cat {
  display: inline-flex; align-items: center; gap: 0.5em;
  border: var(--border); border-radius: var(--radius-pill);
  background: var(--c-white); color: var(--c-olive);
  font-family: var(--font-body); font-size: var(--fs-75);
  letter-spacing: 0.02em; padding: 0.45em 1em;
}
.blog-card__title {
  font-family: var(--font-display); color: var(--c-olive);
  font-size: var(--fs-600); line-height: var(--lh-snug); margin: 0;
}
/* Photo has its own small rounded top edge (cream-soft peeks at the corners), per comp. */
.blog-card__media { margin-top: auto; aspect-ratio: 3 / 2; border-radius: var(--radius-md) var(--radius-md) 0 0; overflow: hidden; }
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 860px) {
  .blog-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
}

/* ---- Blog single (article) ------------------------------ */
.article-layout {
  display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: start;
}
/* Main column ----------------------------------------------- */
.article__cats { display: flex; flex-wrap: wrap; gap: 0.6em; margin-bottom: var(--space-md); }
.article__title { font-family: var(--font-display); color: var(--c-olive); font-size: var(--fs-700); line-height: var(--lh-snug); margin: 0; }
.article__meta { margin-top: var(--space-md); color: var(--c-ink); font-family: var(--font-body); font-size: var(--fs-200); line-height: 1.7; }
.article__meta a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.article__meta a:hover { color: var(--c-orange); }
.article__body { margin-top: var(--space-lg); color: var(--c-ink); font-size: var(--fs-300); line-height: 1.8; }
.article__body > * + * { margin-top: var(--space-md); }
.article__body img { width: 100%; height: auto; border-radius: var(--radius-lg); display: block; margin-block: var(--space-lg); }
.article__nav { display: flex; justify-content: space-between; gap: var(--space-md); margin-top: var(--space-xl); }
.article__nav a { display: inline-flex; align-items: center; gap: 0.6em; color: var(--c-olive); font-family: var(--font-body); font-weight: 600; font-size: var(--fs-75); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.article__nav svg { width: 1.4em; height: 1.4em; flex: none; }
.article__nav a:hover { color: var(--c-orange); }
/* Aside ----------------------------------------------------- */
.article-aside { display: flex; flex-direction: column; gap: var(--space-lg); }
.article-aside__title { font-family: var(--font-display); color: var(--c-olive); font-size: var(--fs-600); line-height: var(--lh-snug); margin: 0; }
.article-aside .blog-search { flex: none; width: 100%; max-width: none; }
/* Overlay media card (related articles) — photo + olive-deep gradient + cream title + pills. */
.article-card { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; text-decoration: none; }
.article-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42, 52, 25, 0) 30%, var(--c-olive-deep) 100%); }
.article-card__cats { position: absolute; top: var(--space-md); left: var(--space-md); right: var(--space-md); z-index: 1; display: flex; flex-wrap: wrap; gap: 0.5em; }
.article-card__title { position: absolute; left: var(--space-md); right: var(--space-md); bottom: var(--space-md); z-index: 1; font-family: var(--font-display); color: var(--c-cream); font-size: var(--fs-450); line-height: var(--lh-snug); margin: 0; }
/* About the author ----------------------------------------- */
.author-bio { position: relative; overflow: hidden; background: var(--c-cream); }
.author-bio__pattern { position: absolute; right: 0; top: 50%; transform: translateY(-50%); height: 130%; width: auto; z-index: 0; pointer-events: none; opacity: 0.12; }
.author-bio > .container { position: relative; z-index: 1; }
.author-bio__title { font-family: var(--font-display); color: var(--c-olive); font-size: var(--fs-700); line-height: var(--lh-snug); margin: 0 0 var(--space-lg); }
.author-bio__row { display: flex; align-items: flex-start; gap: clamp(1.5rem, 4vw, 3.5rem); }
.author-bio__avatar { flex: none; width: clamp(140px, 16vw, 220px); aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
.author-bio__text { max-width: 70ch; color: var(--c-ink); font-size: var(--fs-300); line-height: 1.8; }
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { max-width: 520px; }
}
@media (max-width: 600px) {
  .author-bio__row { flex-direction: column; align-items: center; text-align: center; }
}

/* ---- Testimonial ---------------------------------------- */
.quote { max-width: 60ch; margin-inline: auto; text-align: center; }
.quote__mark { font-family: var(--font-display); font-size: 4rem; color: var(--c-lime); line-height: 0.5; }
.quote__text { font-family: var(--font-display); font-size: var(--fs-600); color: var(--c-olive); line-height: var(--lh-snug); }
.quote__cite { font-style: normal; font-size: var(--fs-200); color: var(--c-muted); margin-top: var(--space-sm); display: block; }

/* ---- Carousel (minimal, scroll-snap) -------------------- */
.carousel { position: relative; }
.carousel__viewport { display: flex; gap: var(--space-md); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: var(--space-2xs); }
.carousel__viewport::-webkit-scrollbar { display: none; }
.carousel__slide { flex: 0 0 100%; scroll-snap-align: center; }
.carousel__nav { display: flex; gap: var(--space-2xs); justify-content: center; margin-top: var(--space-sm); }
.carousel__btn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--c-olive); display: grid; place-items: center; color: var(--c-olive); transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.carousel__btn:hover { background: var(--c-olive); color: var(--c-cream); }

/* ---- Previous Partners band (lime) ---------------------- */
.partners-band { padding-block: clamp(2.5rem, 1.8rem + 3vw, 4.5rem); }
.partners-band__label {
  text-align: center; font-family: var(--font-body); font-weight: var(--fw-semibold);
  letter-spacing: 0.12em; text-transform: uppercase; font-size: var(--fs-200);
  color: var(--c-olive); margin-bottom: var(--space-lg);
}
.partners-marquee { --marquee-duration: 50s; }
.partner-card {
  flex: 0 0 auto; display: grid; place-items: center; background: var(--c-white);
  border-radius: var(--radius-md); padding: var(--space-md);
  width: clamp(160px, 16vw, 200px); height: 100px; margin-right: var(--space-lg);
}
.partner-card img { max-height: 56px; max-width: 100%; width: auto; object-fit: contain; }

/* ---- Partner logo row ----------------------------------- */
.partners { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.5rem, 4vw, 3.5rem); }
.partners img { height: clamp(38px, 5vw, 56px); width: auto; opacity: .85; filter: saturate(0); transition: opacity var(--dur) var(--ease), filter var(--dur) var(--ease); }
.partners img:hover { opacity: 1; filter: none; }
