/* ==========================================================================
   Greater Springfield VT Habitat for Humanity — styles.css
   Mobile-first. All colors route through semantic --color-* variables;
   never hardcode hex in component rules (see CLAUDE.md).
   ========================================================================== */

:root {
  /* Primary palette (official HFHI) */
  --hfh-bright-blue: #00AFD7;
  --hfh-bright-green: #C4D600;
  --hfh-white: #FFFFFF;
  --hfh-gray: #888B8D;
  --hfh-black: #000000;

  /* Secondary palette (official HFHI) */
  --hfh-habitat-blue: #002F6C;
  --hfh-habitat-green: #43B02A;
  --hfh-orange: #FF671F;
  --hfh-brick: #A4343A;
  --hfh-yellow: #FFD100;

  /* Derived dark-green stops (nav backgrounds; not official chips) */
  --hfh-green-800: #27500A;
  --hfh-green-900: #173404;

  /* Derived lighter navy (hover stop for Habitat-Blue buttons; not official) */
  --hfh-blue-700: #1D4F8F;

  /* Semantic role mapping — change values here, not in component CSS */
  --color-page-bg: var(--hfh-white);
  --color-nav-bg: var(--hfh-green-800);
  --color-nav-text: var(--hfh-white);
  --color-nav-accent-rule: var(--hfh-bright-green);
  --color-nav-cta-bg: var(--hfh-bright-green);
  --color-nav-cta-text: var(--hfh-green-900);
  --color-heading: var(--hfh-habitat-blue);
  --color-body-text: #444441;
  --color-cta-bg: var(--hfh-habitat-green);
  --color-cta-text: var(--hfh-white);
  --color-footer-bg: var(--hfh-habitat-blue);
  --color-footer-text: var(--hfh-white);
  --color-section-alt-bg: #F5F5F2; /* neutral wash, not a tinted brand color */
  --color-rule: #E2E2DE;
  --color-todo-bg: var(--hfh-yellow);
  --color-todo-text: var(--hfh-black);

  /* Type + spacing scale */
  --font-stack: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --measure: 68ch;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --radius: 6px;
  --radius-lg: 10px; /* softer corner for cards and photos */
  --container: 72rem;
}

/* ---------- Reset / base ---------- */

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

body {
  margin: 0;
  font-family: var(--font-stack);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-body-text);
  background: var(--color-page-bg);
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  color: var(--color-heading);
  line-height: 1.15;
  margin: 0 0 var(--space-2);
  font-weight: 700;
}

h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 var(--space-2); max-width: var(--measure); }

a { color: var(--color-heading); }

a:hover { color: var(--hfh-habitat-green); }

/* Visible focus everywhere (WCAG 2.4.7) */
:focus-visible {
  outline: 3px solid var(--hfh-bright-blue);
  outline-offset: 2px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-2);
}

.section { padding-block: var(--space-4); }
.section--alt { background: var(--color-section-alt-bg); }

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-heading);
  color: var(--hfh-white);
  padding: var(--space-1) var(--space-2);
  z-index: 100;
}
.skip-link:focus {
  left: 0;
  color: var(--hfh-white);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  min-height: 44px;
  padding: 0.7rem 1.6rem;
  border: 0;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  background: var(--color-cta-bg);
  color: var(--color-cta-text);
  transition: filter 0.15s ease, transform 0.15s ease;
}
.btn:hover { filter: brightness(0.9); color: var(--color-cta-text); }
.btn:active { transform: translateY(1px); }

/* Habitat-Blue button (e.g. hero secondary CTA); lighter navy on hover */
.btn--blue {
  background: var(--hfh-habitat-blue);
  color: var(--hfh-white);
}
.btn--blue:hover {
  background: var(--hfh-blue-700);
  color: var(--hfh-white);
  filter: none;
}

.btn--nav {
  background: var(--color-nav-cta-bg);
  color: var(--color-nav-cta-text);
}
.btn--nav:hover { color: var(--color-nav-cta-text); }

/* ---------- Header / nav (mobile-first) ---------- */

.site-header {
  background: var(--color-nav-bg);
  border-bottom: 4px solid var(--color-nav-accent-rule);
  position: relative;
  z-index: 50;
}

.site-header__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--space-1) var(--space-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  /* Logo sits on a white plate so the official two-color logo is never
     recolored or placed straight on dark green (brand guide). */
  background: var(--hfh-white);
  border-radius: var(--radius);
  padding: 8px 14px;
}
.site-logo img { height: 58px; width: auto; }

/* Mobile menu toggle */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0.4rem 0.8rem;
  background: transparent;
  border: 2px solid var(--color-nav-text);
  border-radius: var(--radius);
  color: var(--color-nav-text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.nav-toggle__bars {
  display: inline-block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

/* Bars animate to an X while the menu is open (JS sets aria-expanded). */
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  transition: top 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

.site-nav {
  display: none; /* shown via .is-open (JS) on mobile, always on desktop */
  flex-basis: 100%;
}
.site-nav.is-open { display: block; }

/* NOTE: top-level list only (>) — the dropdown's nested <ul> must not
   inherit the flex row layout, or its items render side-by-side. */
.site-nav > ul {
  list-style: none;
  margin: 0;
  padding: var(--space-1) 0 var(--space-2);
  display: flex;
  flex-direction: column;
}

/* :not(.btn) keeps the Donate CTA styled as a real button, not a nav link */
.site-nav a:not(.btn) {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  color: var(--color-nav-text);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  background: none;
  border: 0;
  width: 100%;
  font-family: inherit;
  cursor: pointer;
  /* hover affordance: animated underline rule */
  background-image: linear-gradient(var(--color-nav-accent-rule), var(--color-nav-accent-rule));
  background-repeat: no-repeat;
  background-size: 0% 3px;
  background-position: 0.9rem calc(100% - 4px);
  transition: background-size 0.2s ease;
}

.site-nav a:not(.btn):hover,
.site-nav a:not(.btn):focus-visible {
  color: var(--color-nav-text);
  background-size: calc(100% - 1.8rem) 3px;
}

.site-nav a:not(.btn)[aria-current="page"] {
  background-size: calc(100% - 1.8rem) 3px;
}

/* Mobile-only nav affordances (reset in the desktop media query below):
   a stronger current-page marker (left accent bar on a darker green panel;
   the thin underline alone is easy to miss on phones), and tap feedback.
   (Hairline dividers between items were removed per user request.) */
.site-nav a:not(.btn):active { background-color: var(--hfh-green-900); }
.site-nav a:not(.btn)[aria-current="page"] {
  background-color: var(--hfh-green-900);
  border-left: 4px solid var(--color-nav-accent-rule);
  padding-left: calc(0.9rem - 4px); /* keep text aligned despite the border */
  /* Left accent bar is the current-page marker on mobile; the underline
     rule (inherited from the base a:not(.btn) hover/current styles) is
     redundant here and removed so only the side bar shows. */
  background-image: none;
}

.nav-cta { margin-top: var(--space-1); padding-inline: 0.9rem; }
.nav-cta .btn { width: auto; display: inline-block; }

/* Desktop nav */
@media (min-width: 56em) {
  .nav-toggle { display: none; }

  .site-nav {
    display: block !important;
    flex-basis: auto;
  }
  .site-nav > ul {
    flex-direction: row;
    align-items: center;
    gap: 0.2rem;
    padding: 0;
  }
  .site-nav a:not(.btn) { width: auto; }

  /* Reset the mobile-only affordances above */
  .site-nav a:not(.btn):active { background-color: transparent; }
  .site-nav a:not(.btn)[aria-current="page"] {
    background-color: transparent;
    border-left: 0;
    padding-left: 0.9rem;
  }

  .nav-cta { margin: 0 0 0 var(--space-1); }
  .nav-cta .btn { width: auto; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--hfh-green-900);
}

.hero img.hero__img {
  width: 100%;
  height: min(62vh, 34rem);
  min-height: 20rem;
  object-fit: cover;
  opacity: 0.55; /* photo dimmed under dark green for text contrast */
}

.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-2);
  width: 100%;
}

.hero__content h1 {
  color: var(--hfh-white);
  max-width: 22ch;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.hero__content p {
  color: var(--hfh-white);
  font-size: 1.15rem;
  max-width: 46ch;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.hero__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-1); }

/* Slim page-title hero for interior pages */
.page-hero {
  background: var(--color-heading);
  padding-block: var(--space-4);
}
.page-hero h1 { color: var(--hfh-white); margin: 0; }
.page-hero p { color: var(--hfh-white); margin: var(--space-1) 0 0; }

/* ---------- Feature / story card grid ---------- */

.card-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
  padding: 0;
  margin: var(--space-3) 0 0;
  list-style: none;
}
@media (min-width: 40em) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60em) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 60em) { .card-grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* Board grid (.card-grid--4): show 2 per row from the smallest viewport up,
   rather than waiting for the 40em breakpoint like the default .card-grid. */
.card-grid--4 { grid-template-columns: repeat(2, 1fr); }

.card {
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-page-bg);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
/* Lift affordance only on cards that are actually clickable (contain a
   .card__more stretched link); board cards stay static. Matches the
   sponsor-logo hover lift. Neutral shadow, not a brand color. */
.card:has(.card__more):hover,
.card:has(.card__more):focus-within {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card__media {
  aspect-ratio: 3 / 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  background: var(--color-todo-bg);
  color: var(--color-todo-text);
}
/* Board headshots: square crop, distinct from the 3:2 story-card photos above.
   Specificity note: must beat ".card img" (0,1,1) above, so these use ".card .card__media--photo". */
.card .card__media--photo {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.card--board .card__media {
  aspect-ratio: 1 / 1;
}
/* Board headshot placeholder: generic grey silhouette + "Photo coming soon" label,
   used when no real photo has been supplied yet. Not a .todo-highlight (see about.html
   comment above the board roster for why this one is intentionally not part of the
   TODO grep sweep). */
.card__media--placeholder {
  flex-direction: column;
  gap: var(--space-1);
  background: var(--color-section-alt-bg);
  color: var(--color-body-text);
  font-weight: 400;
}
/* photo-coming-soon.jpg placeholder: shown at ~2/3 the size of a real headshot,
   centered on the neutral section background, so it reads as a smaller icon
   rather than a full-bleed photo (unlike .card__media--photo above). The image
   keeps the card's normal 1:1 slot (aspect-ratio, width:100%) via
   .card__media--photo, but object-fit: contain plus a padding-box background
   shrinks the visible icon inside that slot instead of covering it edge to edge. */
.card .card__media--photo.placeholder-photo {
  object-fit: contain;
  object-position: center;
  box-sizing: border-box;
  padding: 16.67%;
  background: var(--color-section-alt-bg);
}
/* Generic "photo coming soon" placeholder used outside the board grid (news cards,
   post bodies): the source graphic is square, so contain + padding avoids the
   3:2 crop cutting off the bottom of the icon that ".card img"/.post-body img would apply. */
.card img.placeholder-photo,
.post-body img.placeholder-photo {
  aspect-ratio: 3 / 2;
  object-fit: contain;
  object-position: center;
  box-sizing: border-box;
  padding: 12%;
  background: var(--color-section-alt-bg);
}
.placeholder-avatar {
  display: block;
  width: 40%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--hfh-white);
  border: 1px solid var(--hfh-gray);
  position: relative;
  overflow: hidden;
}
.placeholder-avatar::before {
  /* head */
  content: "";
  position: absolute;
  top: 18%;
  left: 50%;
  translate: -50% 0;
  width: 46%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--hfh-gray);
}
.placeholder-avatar::after {
  /* shoulders */
  content: "";
  position: absolute;
  bottom: -35%;
  left: 50%;
  translate: -50% 0;
  width: 80%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--hfh-gray);
}
.placeholder-avatar__label {
  font-size: 0.85rem;
  font-weight: 700;
}
/* Board cards: some members have no subtitle (title omitted at user request).
   .card__body p's flex:1 only fires when a <p> exists, so name-only cards would
   otherwise render shorter than their neighbors within the same grid row, and
   Grid's default row-stretch only equalizes whole-card height, not the body's
   internal layout (also doesn't help a card left alone in the last grid row with
   no taller sibling). min-height is sized to match a full two-line body: padding
   (var(--space-2) top 1rem + var(--space-3) bottom 1.5rem = 2.5rem) + h3 line
   height (1.25rem * 1.15 = 1.4375rem) + gap (var(--space-1) = 0.5rem) + p line
   height (1.0625rem * 1.6 = 1.7rem) = 6.1375rem, rounded up. */
.card--board .card__body {
  flex: 1;
  min-height: 6.15rem;
}
.card__body { padding: var(--space-2) var(--space-2) var(--space-3); display: flex; flex-direction: column; gap: var(--space-1); flex: 1; }
.card__body h3 { margin: 0; }
.card__body p { margin: 0; flex: 1; }

.card__more {
  font-weight: 700;
  text-decoration: none;
  align-self: flex-start;
  padding-block: 0.35rem; /* keeps target ≥44px with line box */
  background-image: linear-gradient(var(--hfh-habitat-green), var(--hfh-habitat-green));
  background-repeat: no-repeat;
  background-size: 0% 2px;
  background-position: 0 100%;
  transition: background-size 0.2s ease;
}
.card__more:hover, .card__more:focus-visible { background-size: 100% 2px; }
.card__more::after { content: " →"; }

/* Make the whole card clickable without nesting links */
.card { position: relative; }
.card__more::before { content: ""; position: absolute; inset: 0; }

/* ---------- Representative projects photo array (uniform tiles) ---------- */

.project-grid {
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 40em) { .project-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 60em) { .project-grid { grid-template-columns: repeat(4, 1fr); } }

.project-tile img {
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
.project-tile__caption {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-heading);
}

/* ---------- Photo gallery ---------- */

.photo-grid {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: repeat(2, 1fr);
  margin-top: var(--space-3);
}
@media (min-width: 60em) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
.photo-grid img { border-radius: var(--radius-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.photo-grid img.crop-upper { object-position: 50% 15%; }

/* ---------- Sponsor logo grid ---------- */

.sponsor-grid {
  list-style: none;
  margin: var(--space-3) auto 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-3) var(--space-4);
}
@media (min-width: 60em) {
  .sponsor-grid { max-width: 75%; }
}
.sponsor-grid a {
  display: inline-flex;
  align-items: center;
  min-height: 44px; /* touch target */
  border-radius: var(--radius);
  /* Subtle scale on hover/focus signals these logos are clickable links
     (they open the sponsor site in a new tab). */
  transition: transform 0.15s ease;
}
.sponsor-grid a:hover,
.sponsor-grid a:focus-visible {
  transform: scale(1.05);
}
.sponsor-grid img {
  max-height: 72px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

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

.stats {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
  text-align: center;
  margin-top: var(--space-3);
}
@media (min-width: 40em) { .stats { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); } }
.stat__number {
  display: block;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1;
}
.stat__label { display: block; margin-top: var(--space-1); }

/* ---------- Donate split ---------- */

.donate-band {
  background: var(--color-heading);
  color: var(--hfh-white);
  text-align: center;
}
.donate-band h2, .donate-band p { color: var(--hfh-white); margin-inline: auto; }
.donate-band p { max-width: 60ch; text-wrap: balance; }
.donate-band__actions {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-3);
}
/* ---------- Newsletter inline form ---------- */

.newsletter { border-top: 4px solid var(--color-nav-accent-rule); }
.newsletter > .container > p { max-width: 60ch; text-wrap: balance; }

.newsletter form {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: 1fr;
  max-width: 56rem;
  margin-top: var(--space-2);
}
@media (min-width: 48em) {
  .newsletter form { grid-template-columns: 1fr 1fr 1.4fr auto; align-items: end; }
  /* Turnstile and the submit button each get their own full-width row below
     the name/email fields; the widget doesn't fit usefully in a narrow column. */
  .newsletter form .field--turnstile,
  .newsletter form .form-status { grid-column: 1 / -1; }
}

/* Privacy microcopy under the newsletter form: small print, body-text color
   (kept at the standard body token so it stays >= 4.5:1 on the section wash). */
.form-privacy-note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-body-text);
}

/* Honeypot: positioned off-screen (not display:none or visibility:hidden,
   which some bots specifically check for and skip) so it stays invisible and
   unreachable by tab order for sighted and assistive-tech users, but is still
   a normal fillable input to a bot that blindly fills every field in a form. */
.field--honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Forms ---------- */

.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field label { font-weight: 700; font-size: 0.95rem; color: var(--color-heading); }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  font: inherit;
  color: var(--color-body-text);
  padding: 0.65rem 0.8rem;
  min-height: 44px;
  border: 1px solid var(--hfh-gray);
  border-radius: var(--radius);
  background: var(--hfh-white);
  width: 100%;
}
textarea { min-height: 8rem; resize: vertical; }

/* ---------- FAQ ---------- */

.faq { max-width: var(--measure); }
.faq details {
  border-bottom: 1px solid var(--color-rule);
}
/* Custom chevron replaces the default marker, which renders inconsistently
   across browsers and read as "not expandable" to some users. Both the
   standard and -webkit- marker selectors are needed for full Safari support. */
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--color-heading);
  padding: var(--space-2) 0;
  padding-inline-end: var(--space-3);
  position: relative;
  list-style: none;
  min-height: 44px; /* touch target */
  display: flex;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  transform-origin: center;
  transition: transform 0.15s ease;
}
.faq details[open] > summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.faq summary:hover { color: var(--hfh-habitat-green); }
.faq details > *:not(summary) { padding-bottom: var(--space-2); }

/* ---------- News ---------- */

.post-meta { color: var(--hfh-gray); font-size: 0.95rem; margin-bottom: var(--space-2); }
/* Cap article photos at the text measure so they read as part of the column
   instead of spanning the full container (a 4:3 photo at container width is
   ~840px tall on desktop, dwarfing the paragraphs beside it in flow). */
.post-body img { border-radius: var(--radius-lg); margin-block: var(--space-2); max-width: var(--measure); }

/* ---------- Two-column split ---------- */

.split {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 48em) { .split { grid-template-columns: 1fr 1fr; } }
/* Uniform 3:2 window keeps the photo column balanced against the text column
   (native aspect ratios ranged from 2.26:1 to 3:4, leaving large white gaps
   beside short text blocks on desktop and long scrolls on mobile). Photos are
   cropped to fit via object-fit, never distorted. */
.split img {
  border-radius: var(--radius-lg);
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
/* Focal-point nudges for photos whose subject is off-center in the 3:2 crop.
   crop-upper: portrait shots with faces in the upper third.
   crop-left: wide shots with the subject on the left. */
.split img.crop-upper { object-position: 50% 32%; }
.split img.crop-left { object-position: 28% 50%; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding-block: var(--space-4) var(--space-3);
  /* no margin-top: the footer should sit flush against the last section
     (a gap here reads as a stray white band when the final section is dark) */
}
.site-footer a { color: var(--color-footer-text); }
.site-footer a:hover { color: var(--hfh-bright-green); }

.site-footer__grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}
@media (min-width: 48em) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.site-footer h2 {
  color: var(--color-footer-text);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.site-footer address { font-style: normal; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer li a { display: inline-block; padding-block: 0.3rem; }

.site-footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  margin-top: var(--space-3);
  padding-top: var(--space-2);
  font-size: 0.9rem;
}
.site-footer__legal p { max-width: none; }

.site-footer__equal-housing {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
/* Logo sits on a white plate, same rationale as .site-logo: the official
   mark is never recolored or placed straight on a dark fill. */
.site-footer__equal-housing img {
  background: var(--hfh-white);
  border-radius: var(--radius);
  padding: 4px 6px;
  height: 44px;
  width: auto;
}
.site-footer__equal-housing p { margin: 0; }

/* ---------- Utilities ---------- */

.center { text-align: center; }
.mt-lg { margin-top: var(--space-4); }
.center p { margin-inline: auto; max-width: 60ch; text-wrap: balance; }
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Marks placeholder/unconfirmed copy needing org review. Pairs 1:1 with an
   HTML TODO comment (see CLAUDE.md) — every .todo-highlight should have one
   immediately before it in the markup, and vice versa. Remove both together
   once the org confirms real content. */
.todo-highlight {
  background: var(--color-todo-bg);
  color: var(--color-todo-text);
  padding: 0 0.15em;
  border-radius: 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.todo-highlight--small { font-size: 0.7em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
