/* ==========================================================================
   trevorbkwok.com — shared stylesheet
   Type scale, body type and heading map follow the preview design guide.
   Allowed sizes only: .75 .875 1 1.125 1.25 1.5 1.75 2.25 2.5 3.5 rem
   ========================================================================== */

:root {
  /* Brand palette, lifted from the live Sitejet build */
  --navy: #0f2536;
  --ink: #0d1116;
  --accent: #f58220;
  --sand: #cecac1;
  --mist: #cbc7ce;

  /* #9e9b9a is the live body/nav grey but only reaches 2.76:1 on white.
     --muted is the darkened equivalent that clears AA (5.52:1). */
  --muted: #6b6867;

  /* The hero and the CTA band share this scrim, matching the live site. */
  --scrim: rgba(13, 17, 22, 0.6);

  --line: #e2e2e2;
  --shell: #f5f4f2;
  --white: #fff;

  --fs-chip: 0.75rem;
  --fs-meta: 0.875rem;
  --fs-ui: 1rem;
  --fs-body: 1.125rem;
  --fs-lead: 1.25rem;
  --fs-h3: 1.5rem;
  --fs-stat: 1.75rem;
  --fs-h2: 2.25rem;
  --fs-h1: 3.5rem;

  --serif: "Marcellus", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --gutter: 1.5rem;
  --measure: 1200px;
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  font-weight: 400;
}

img,
video { max-width: 100%; display: block; }

/* --------------------------------------------------------------- typography */

h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--navy);
  margin: 0 0 0.5em;
  line-height: 1.15;
  text-wrap: balance;              /* no orphan words in headings */
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; }
h4 { font-size: var(--fs-body); line-height: 1.35; }
h5 { font-size: var(--fs-ui); line-height: 1.4; }

p {
  margin: 0 0 1.25rem;
  text-wrap: pretty;               /* no orphan words in paragraphs */
}

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

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

.lead { font-size: var(--fs-lead); }
.meta { font-size: var(--fs-meta); }

/* Keeps a phrase intact when text-wrap:pretty can't stop a break — notably
   inside hyphenated words, where the browser will happily split "stress-free". */
.nowrap { white-space: nowrap; }

/* ------------------------------------------------------------------ helpers */

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

/* Article pages read better on a shorter line, and it keeps their photos at a
   width their sources can still serve at 2x. */
.container--narrow { max-width: 65rem; }

.section { padding-block: 5rem; }
.section--sand { background: var(--sand); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2,
.section--navy h3 { color: var(--white); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100%;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 6px 6px;
  font-size: var(--fs-ui);
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* Focus indicator: navy ring on light surfaces, white ring on dark ones.
   Both clear the 3:1 non-text contrast requirement (WCAG 2.2 SC 1.4.11). */
:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}
.hero :focus-visible,
.section--navy :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--white);
}

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;             /* >= 24x24 target size (SC 2.5.8) */
  padding: 0.75rem 1.75rem;
  font-family: var(--sans);
  font-size: var(--fs-ui);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--sand); }

.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--ink); }

/* ------------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

/* min-height keeps the logo link above the 24x24 target minimum (SC 2.5.8) */
.brand { display: inline-flex; align-items: center; min-height: 2.75rem; }
.brand img { width: 200px; height: auto; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--navy);
  font-size: var(--fs-ui);        /* else UA default 13.33px lands off-scale */
  cursor: pointer;
}
.nav-toggle svg { width: 1.5rem; height: 1.5rem; fill: currentColor; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-list,
.sub-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link,
.sub-toggle,
.sub-list a {
  font-family: var(--sans);
  font-size: var(--fs-ui);
  color: var(--muted);            /* 5.52:1 on white */
  text-decoration: none;
}

.nav-link:hover,
.sub-list a:hover,
.nav-link[aria-current="page"] { color: var(--navy); }

.nav-link[aria-current="page"] { font-weight: 600; }

.nav-item { position: relative; }

.nav-row { display: flex; align-items: center; }

.sub-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  min-height: 2.75rem;
  padding: 0 0.25rem;
  background: none;
  border: 0;
  cursor: pointer;
}

/* Dropdown parents that carry their own label ("Feature Listings") rather
   than sitting beside a link ("About Me" + caret). */
.sub-toggle--text {
  min-width: 0;
  gap: 0.375rem;
  padding: 0;
}
.sub-toggle svg {
  width: 0.75rem;
  height: 0.75rem;
  fill: currentColor;
  transition: transform 0.18s ease;
}
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.sub-toggle:hover { color: var(--navy); }

/* Mobile-first: nav is a collapsible panel */
@media (max-width: 1023px) {
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.5rem;
    max-height: calc(100vh - 4.5rem);
    overflow-y: auto;
  }
  .site-nav[data-open="true"] { display: block; }

  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-row { justify-content: space-between; }
  .nav-link { display: block; padding: 0.875rem 0; flex: 1; }
  .sub-list { display: none; padding: 0 0 0.75rem 1rem; }
  .sub-list[data-open="true"] { display: block; }
  .sub-list a { display: block; padding: 0.625rem 0; }
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }

  .site-nav { display: block !important; }
  .nav-list { display: flex; align-items: center; gap: 1.75rem; }
  .nav-link { padding: 1.5rem 0; display: inline-block; }

  .sub-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 15rem;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(15, 37, 54, 0.12);
    padding: 0.5rem 0;
  }
  .sub-list[data-open="true"] { display: block; }
  .sub-list a { display: block; padding: 0.625rem 1.25rem; white-space: nowrap; }
  .sub-list a:hover { background: var(--shell); }
}

/* --------------------------------------------------------------------- hero */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  /* Fill the viewport below the 4.5rem sticky header; svh keeps mobile browser
     chrome from pushing it past the fold. 36rem floor for short landscape
     windows; the first line is a plain fallback for browsers without svh. */
  min-height: 36rem;
  min-height: max(36rem, calc(100svh - 4.5rem));
  padding-block: 6rem;
  overflow: hidden;
  background: var(--ink) url("../images/hero-poster.webp") center / cover no-repeat;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

/* Scrim: brings white text on the brightest part of the footage to 6.4:1 */
.hero__scrim {
  position: absolute;
  inset: 0;
  background: var(--scrim);
}

/* 64rem, not 56: the first headline line needs ~930px to stay unbroken, so a
   narrower box forces a third line the live site doesn't have. */
.hero__inner {
  position: relative;
  text-align: center;
  color: var(--white);
  max-width: 64rem;
}

/* Set in title case so screen readers don't spell it out, uppercased visually.
   The explicit <br> owns the line break, so balancing must not re-break it. */
.hero h1 {
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  text-wrap: normal;
}

/* The hard line break is the live site's; on narrow screens let it wrap. */
.hero h1 br { display: none; }
@media (min-width: 768px) {
  .hero h1 br { display: inline; }
}

.hero p {
  color: var(--white);
  margin-bottom: 1.75rem;
}

.hero__pause {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 17, 22, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
}
.hero__pause svg { width: 1rem; height: 1rem; fill: currentColor; }
.hero__pause .icon-play { display: none; }
.hero__pause[aria-pressed="true"] .icon-pause { display: none; }
.hero__pause[aria-pressed="true"] .icon-play { display: block; }

/* -------------------------------------------------------------------- about */

.about__grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}

.about__awards {
  width: 200px;
  height: auto;
  margin-top: 2rem;
}

.about__portrait {
  width: 100%;
  max-width: 320px;
  height: auto;
  justify-self: center;
}

@media (min-width: 768px) {
  .about__grid { grid-template-columns: 1.4fr 1fr; gap: 4rem; }
  .about__portrait { justify-self: end; }
}

/* ----------------------------------------------------------------- services */

.service {
  display: grid;
  gap: 1.5rem;
  padding-block: 3rem;
  align-items: center;
}
.service + .service { border-top: 1px solid rgba(15, 37, 54, 0.25); }

.service__head { display: flex; align-items: center; gap: 1.25rem; }
.service__head h2 { margin: 0; }

.service__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  background: var(--accent);       /* brand accent — decorative tile behind a white glyph */
  border-radius: 2px;
}
.service__icon svg { width: 1.5rem; height: 1.5rem; fill: var(--white); }

.service p { color: var(--ink); }

@media (min-width: 900px) {
  .service { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

/* ----------------------------------------------------------------- listings */

.listings { text-align: center; }
.listings h2 { margin-bottom: 2rem; }

/* Heights mirror the fixed pixel heights the live Sitejet page hands the
   mygoodreal.net embeds; the widget itself does not report its own size. */
.listings__frame {
  width: 100%;
  border: 0;
  display: block;
}
.listings__frame--mls { height: 300px; }
.listings__frame--office { height: 670px; }

@media (min-width: 768px) {
  .listings__frame--office { height: 430px; }
}

.listings__actions { margin-top: 2rem; }

/* --------------------------------------------------------------- communities */

.communities__intro { max-width: 40rem; margin-bottom: 3.5rem; }
.communities__intro p { color: var(--mist); }

.community-grid { display: grid; gap: 3.5rem; }

/* One photo beside a short description, alternating sides — as on the live
   site. Below 900px each row stacks with the photo on top. */
.community-row {
  position: relative;
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 900px) {
  .community-grid { gap: 5rem; }
  /* Photo takes the larger share of the row — it is the point of the section.
     Flipped rows must mirror the ratio too, or the photo lands in the narrow
     column and shrinks. */
  .community-row { grid-template-columns: 1.6fr 1fr; gap: 3.5rem; }
  .community-row:nth-child(even) { grid-template-columns: 1fr 1.6fr; }
  .community-row:nth-child(even) .community-row__media { order: 2; }
}

.community-row__media { margin: 0; }

.community-row__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.community-row h3 { margin-bottom: 0.75rem; }
.community-row h3 a { color: var(--white); text-decoration: none; }
.community-row p { color: var(--mist); }

/* The heading link is stretched over the whole row, so the row is one large
   target with one accessible name — no duplicate image/arrow links. */
.community-row h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.community-row__arrow {
  display: inline-flex;
  align-items: center;
  margin-top: 1.25rem;
  transition: transform 0.18s ease;
}
.community-row__arrow svg { width: 2rem; height: 1rem; fill: var(--accent); }
.community-row:hover .community-row__arrow { transform: translateX(6px); }
.community-row:hover h3 a { color: var(--sand); }

/* ------------------------------------------------------------- testimonials */

.testimonials { text-align: center; }
.testimonials h2 { margin-bottom: 2.5rem; }

.carousel { position: relative; }

.carousel__viewport { overflow: hidden; }

.carousel__track {
  display: grid;
  gap: 1.5rem;
}

/* Slides stretch to the tallest quote, so short ones must centre their content
   vertically or they sit stranded at the top of the box. */
.slide {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--shell);
  padding: 3.5rem 2rem;
  border: 1px solid var(--line);
}

.slide blockquote {
  margin: 0 auto 2rem;
  max-width: 52rem;               /* keeps the quote at a readable measure */
}
.slide blockquote p { font-size: var(--fs-lead); color: var(--ink); }
.slide blockquote p + p { margin-top: 1.25rem; }

.slide__attr { padding-top: 1.75rem; border-top: 1px solid var(--line); display: inline-block; margin-inline: auto; }
.slide h3 { margin-bottom: 0.25rem; }
.slide .role { font-size: var(--fs-meta); color: var(--muted); margin: 0; }

@media (min-width: 900px) {
  .slide { min-height: 26rem; padding: 4rem 3rem; }
}

.carousel__controls { display: none; }

/* With JS the carousel becomes one slide at a time; without it every
   testimonial stays visible and readable. */
.js .carousel__track {
  display: flex;
  gap: 0;
  transition: transform 0.4s ease;
}
.js .slide { flex: 0 0 100%; }

/* Grab affordance for the swipe/drag interaction (added in js/site.js). */
.js .carousel__viewport { cursor: grab; touch-action: pan-y; }
.js .carousel.is-dragging .carousel__viewport { cursor: grabbing; }
.carousel.is-dragging,
.carousel.is-dragging * { user-select: none; }

.js .carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.carousel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  flex: none;
  background: var(--navy);
  border: 0;
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel__btn:hover { background: var(--ink); transform: scale(1.06); }
.carousel__btn:focus-visible,
.carousel__dot:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.carousel__btn svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }

.carousel__dots { display: flex; gap: 0.25rem; }

.carousel__dot {
  width: 1.5rem;                   /* 24x24 target (SC 2.5.8) */
  height: 1.5rem;
  display: grid;
  place-items: center;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.carousel__dot::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--muted);
}
.carousel__dot[aria-current="true"]::before { background: var(--navy); }

/* ----------------------------------------------------------------- cta band */

/* Background photo + the same scrim as the hero, matching the live site. */
.cta-band {
  position: relative;
  background: var(--ink) url("../images/cta-band.webp") center / cover no-repeat;
  color: var(--white);
  text-align: center;
  padding-block: 7rem;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--scrim);
}
.cta-band .container { position: relative; }
.cta-band h2 { color: var(--white); margin-bottom: 1.75rem; }

/* ------------------------------------------------------------------- footer */

.site-footer {
  background: var(--navy);
  color: var(--white);
  padding-top: 4rem;
}

.site-footer h3,
.site-footer h4 { color: var(--white); }

/* Links inherit the global navy, which is invisible on the navy footer. */
.site-footer a { color: var(--mist); }
.site-footer a:hover { color: var(--white); }

.footer__grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1.2fr 1fr; gap: 3rem; }
}

.footer__brand { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; }

/* One logo asset serves both surfaces: the navy artwork is knocked out to
   white for the dark footer. */
.footer__brand .brand img { width: 240px; filter: brightness(0) invert(1); }

.footer__balloon { width: 90px; height: auto; }

.site-footer p { font-size: var(--fs-body); margin-bottom: 0.25rem; }
.site-footer .footer__office p { color: var(--mist); }

.footer__links { list-style: none; margin: 0; padding: 0; }
.footer__links li { margin-bottom: 0.25rem; }
.footer__links a {
  display: inline-block;
  padding: 0.25rem 0;              /* clears the 24px target minimum */
  color: var(--mist);
  text-decoration: none;
}
.footer__links a:hover { color: var(--white); text-decoration: underline; }

.footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: var(--fs-meta);
  color: var(--mist);
}
.footer__bar a { color: var(--mist); }
.footer__bar a:hover { color: var(--white); }
.footer__bar p { font-size: var(--fs-meta); margin: 0; }

/* -------------------------------------------------------- article pages */

.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.75rem; }
.prose > h2:first-child { margin-top: 0; }

.article-rows { display: grid; gap: 4rem; }

.article-row { display: grid; gap: 2rem; align-items: center; }

@media (min-width: 900px) {
  .article-row { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .article-row--flip .article-row__media { order: -1; }
}

/* Stacked, the media would span the full container and upscale sources that
   top out at 614px. Cap it so no photo is ever rendered above its native size. */
.article-row__media { margin: 0 auto; max-width: 480px; }

@media (min-width: 900px) {
  .article-row__media { max-width: none; }
}

.article-row__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.article-row h2 { margin-top: 0; }

/* about page: bio beside the portrait + award badges */
.about-page__grid { display: grid; gap: 3rem; align-items: start; }

@media (min-width: 900px) {
  .about-page__grid { grid-template-columns: 1.15fr 1fr; gap: 4rem; }
  /* The bio runs long and the portrait column is short, so pin the portrait to
     keep Trevor in view while reading. align-self:start keeps the block at its
     natural height (not stretched to the column) so it can travel; top clears
     the 4.5rem sticky header. */
  .about-hero__media { position: sticky; top: 6rem; align-self: start; }
}

/* testimonials page */
.testimonial-list { display: grid; gap: 2.5rem; }

.testimonial-card {
  background: var(--shell);
  border: 1px solid var(--line);
  padding: 2.5rem 2rem;
}
.testimonial-card blockquote { margin: 0 0 1.75rem; }
.testimonial-card blockquote p { font-size: var(--fs-lead); }
.testimonial-card blockquote p + p { margin-top: 1.25rem; }
.testimonial-card h2 { margin-bottom: 0.25rem; }
.testimonial-card .role { font-size: var(--fs-meta); color: var(--muted); margin: 0; }

/* shared "Connect with Trevor" band */
.connect {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding-block: 5rem;
}
.connect h2 { color: var(--white); margin-bottom: 1rem; }
.connect p { color: var(--mist); max-width: 46rem; margin: 0 auto 2rem; }
.connect__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* -------------------------------------------------- third-party widget pages */

.widget-page { padding-block: 2rem 4rem; }

/* Heights mirror the fixed pixel heights the live Sitejet pages hand the
   mygoodreal.net embeds — the widget does not report its own size. */
.widget-frame { width: 100%; border: 0; display: block; height: 800px; }
@media (min-width: 768px) { .widget-frame { height: 2000px; } }

.widget-frame--mls { height: 800px; }
@media (min-width: 768px) { .widget-frame--mls { height: 1350px; } }

/* The map embed is a fixed 600px at every width — this must come after the
   base rule's media query to win. */
.widget-frame--map { height: 600px; }
@media (min-width: 768px) { .widget-frame--map { height: 600px; } }

/* ------------------------------------------------------- contact page + form */

.page-head { padding-block: 4rem 2rem; }
.page-head .lead { color: var(--ink); max-width: 46rem; }

/* Subpage title banner: a photo behind the page title, as on the live site.
   Each page sets `background-image` inline — a url() inside a custom property
   would resolve against this stylesheet (css/), not the page. */
.page-head--banner {
  position: relative;
  padding-block: 5.5rem;
  text-align: center;
  background-color: var(--ink);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--white);
}
.page-head--banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--scrim);
}
.page-head--banner > .container { position: relative; }
.page-head--banner h1 { color: var(--white); }
/* Decorative accent rule under every subpage title — the same brand motif used
   on the About page, so the accent recurs site-wide rather than living on one
   page. Purely decorative, so exempt from the 3:1 non-text contrast rule. */
.page-head--banner h1::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin: 1.25rem auto 0;
  background: var(--accent);
}
.page-head--banner .lead {
  color: var(--white);
  max-width: 46rem;
  margin-inline: auto;
}

/* ------------------------------------------------------------- about page */

/* The whole bio sits on a darkened photo, which is why the live site uses the
   white award artwork here rather than the black one. */
.about-hero {
  position: relative;
  padding-block: 5rem;
  background: var(--ink) url("../images/about-bg.webp") center / cover no-repeat;
  color: var(--white);
}
.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 9, 22, 0.72);
}
.about-hero > .container { position: relative; }
.about-hero h1,
.about-hero h2 { color: var(--white); }
.about-hero p { color: var(--white); }

.about-hero__media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.about-hero__portrait { width: 100%; max-width: 520px; height: auto; }
.about-hero__awards { width: 100%; max-width: 200px; height: auto; }

/* The bio was a stack of same-looking heading+paragraph pairs that read as one
   long essay. A short accent rule turns each section heading into a scannable
   marker, and the two list-shaped sections below become an actual list and a
   set of pills instead of prose. */
.about-hero .prose > h2 {
  margin-top: 2.75rem;
}
.about-hero .prose > h2::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-bottom: 1rem;
  background: var(--accent);
}

.about-tags {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}
.about-tags li {
  font-size: var(--fs-ui);
  line-height: 1.2;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  color: var(--white);
}

.about-awards {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.about-awards li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--white);
}
.about-awards li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--accent);
  transform: rotate(45deg);
}

.contact__grid { display: grid; gap: 3rem; align-items: start; }

@media (min-width: 900px) {
  .contact__grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; }
}

.contact-card {
  border: 1px solid var(--line);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.contact-card h3 { margin-bottom: 0.5rem; }

/* inline-block + padding lifts these past the 24px target minimum (SC 2.5.8);
   as bare inline links they render only ~21px tall. */
.contact-card a {
  display: inline-block;
  padding: 0.25rem 0;
  font-weight: 600;
}

.form__field { margin-bottom: 1.25rem; }

.form__field label {
  display: block;
  font-size: var(--fs-ui);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.375rem;
}

.form__req { color: var(--muted); font-weight: 400; }

.form__field input,
.form__field textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.625rem 0.875rem;
  font-family: var(--sans);
  font-size: var(--fs-ui);
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--muted);   /* 5.52:1 — clears 3:1 for UI borders */
  border-radius: 2px;
}
.form__field textarea { min-height: 8rem; resize: vertical; }

.form__field input:focus,
.form__field textarea:focus { border-color: var(--navy); }

/* Honeypot: off-screen, never type="hidden" (bots skip hidden inputs) */
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form__status {
  margin-top: 1.25rem;
  padding: 0.875rem 1.125rem;
  border-radius: 2px;
  font-size: var(--fs-ui);
}
.form__status[data-state="ok"] { background: #e7f4ea; color: #14532d; border: 1px solid #14532d; }
.form__status[data-state="error"] { background: #fdeaea; color: #7f1d1d; border: 1px solid #7f1d1d; }
.form__status:empty { display: none; }

/* -------------------------------------------------------- responsive + motion */

@media (max-width: 768px) {
  :root { --gutter: 1.25rem; }
  h1 { font-size: var(--fs-h2); }    /* 2.25rem — still on the scale */
  h2 { font-size: var(--fs-stat); }  /* 1.75rem — still on the scale */
  .section { padding-block: 3.5rem; }
  .hero { min-height: max(30rem, calc(100svh - 4.5rem)); }
}

/* On the narrowest phones a page title like "New Westminster Listings" cannot
   wrap without stranding a word; one step down the scale lets it fit. */
@media (max-width: 430px) {
  .page-head h1 { font-size: var(--fs-stat); }   /* 1.75rem — on the scale */
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js .carousel__track { transition: none; }
  .hero__video { display: none; }    /* poster still shows through */
}
