/* ==========================================================================
   sections.css — reusable page sections
   These blocks appear on more than one page (home, services hub, service
   detail pages). Page-specific styles live in css/pages/*.css.
   ========================================================================== */

/* ==========================================================================
   Services — photo-backed section, cards sit on the image
   ========================================================================== */

.services {
  position: relative;
  isolation: isolate;
  background: var(--pine-deep);   /* fallback, never a white flash */
  overflow: hidden;
}

.services__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.services__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Heavier than the hero's overlay on purpose — this section has real copy on
   it, and a facade photo has bright glass that would otherwise eat the text. */
.services::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      to bottom,
      rgba(21, 31, 24, 0.90) 0%,
      rgba(21, 31, 24, 0.80) 45%,
      rgba(21, 31, 24, 0.88) 100%
    );
}

/* ---- Section head -------------------------------------------------------- */

.services__head {
  max-width: 54ch;
  margin-bottom: var(--space-xl);
}

.services__head .eyebrow { color: var(--brass); }

.services__title { color: var(--paper); }

.services__lede {
  margin-top: var(--space-s);
  color: rgba(242, 244, 239, 0.76);
  font-size: var(--step-1);
  line-height: 1.6;
}

/* ---- Grid ---------------------------------------------------------------- */

.svc-grid {
  display: grid;
  gap: var(--space-s);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Card ---------------------------------------------------------------- */

.svc-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  padding: var(--space-m);
  min-height: 200px;
  text-decoration: none;
  border-radius: var(--radius-m);
  background: rgba(29, 42, 32, 0.66);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(242, 244, 239, 0.14);
  transition: background-color var(--speed) var(--ease),
              border-color var(--speed) var(--ease),
              transform var(--speed) var(--ease);
}

.svc-card:hover {
  background: rgba(29, 42, 32, 0.88);
  border-color: var(--brass);
  transform: translateY(-3px);
}

.svc-card__icon {
  width: 34px;
  height: 34px;
  margin-bottom: var(--space-2xs);
  stroke: var(--sage-light);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke var(--speed) var(--ease);
}

.svc-card:hover .svc-card__icon { stroke: var(--brass); }

.svc-card__title {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: var(--paper);
}

.svc-card__text {
  color: rgba(242, 244, 239, 0.72);
  font-size: var(--step--1);
  line-height: 1.6;
}

/* Pushes the arrow to the bottom regardless of copy length */
.svc-card__more {
  margin-top: auto;
  padding-top: var(--space-s);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage-light);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3xs);
  transition: color var(--speed) var(--ease), gap var(--speed) var(--ease);
}

.svc-card:hover .svc-card__more {
  color: var(--brass);
  gap: var(--space-2xs);
}

.svc-card__more svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- Sixth cell: the quote prompt ---------------------------------------- */

.svc-card--cta {
  background: var(--brass);
  border-color: var(--brass);
}

.svc-card--cta:hover {
  background: var(--brass-dark);
  border-color: var(--brass-dark);
}

.svc-card--cta .svc-card__icon { stroke: rgba(255, 255, 255, 0.85); }
.svc-card--cta:hover .svc-card__icon { stroke: var(--paper); }
.svc-card--cta .svc-card__text { color: rgba(255, 255, 255, 0.88); }
.svc-card--cta .svc-card__more,
.svc-card--cta:hover .svc-card__more { color: var(--paper); }


/* ==========================================================================
   Why choose us — solid dark green
   Treated as an editorial list, not cards, so it reads differently from the
   services grid directly above it.
   ========================================================================== */

.why {
  background: var(--pine);
  color: var(--paper);
}

.why__title { color: var(--paper); }

.why__grid {
  margin-top: var(--space-xl);
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  border-top: 1px solid rgba(242, 244, 239, 0.16);
}

@media (min-width: 820px) {
  .why__grid { grid-template-columns: repeat(2, 1fr); column-gap: var(--space-2xl); }
}

.why__item {
  padding-block: var(--space-m);
  border-bottom: 1px solid rgba(242, 244, 239, 0.16);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-s);
  align-items: start;
}

/* Peak marker, same device as the nav and hero */
.why__item::before {
  content: "";
  width: 0;
  height: 0;
  margin-top: 0.55em;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 8px solid var(--brass);
}

.why__name {
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 700;
  color: var(--paper);
  display: block;
  margin-bottom: var(--space-3xs);
}

.why__text {
  color: rgba(242, 244, 239, 0.74);
  font-size: var(--step--1);
  line-height: 1.6;
}

.why__closer {
  margin-top: var(--space-xl);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: var(--tracking-tight);
  color: var(--sage-light);
  max-width: 46ch;
}

/* ==========================================================================
   What to expect — photo background, six ordered steps
   Numbering is used here because the content genuinely is a sequence.
   ========================================================================== */

.steps {
  position: relative;
  isolation: isolate;
  background: var(--pine-deep);
  overflow: hidden;
}

.steps__media { position: absolute; inset: 0; z-index: -2; }

.steps__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.steps::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(21, 31, 24, 0.92) 0%,
    rgba(21, 31, 24, 0.84) 50%,
    rgba(21, 31, 24, 0.92) 100%
  );
}

.steps__title { color: var(--paper); }

.steps__grid {
  margin-top: var(--space-xl);
  display: grid;
  gap: var(--space-l);
  grid-template-columns: 1fr;
  counter-reset: step;
}

@media (min-width: 700px)  { .steps__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps__grid { grid-template-columns: repeat(3, 1fr); } }

.step {
  counter-increment: step;
  padding-top: var(--space-s);
  border-top: 2px solid rgba(190, 133, 53, 0.45);
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 800;
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  color: var(--brass);
  margin-bottom: var(--space-2xs);
}

.step__name {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: var(--paper);
  margin-bottom: var(--space-3xs);
}

.step__text {
  color: rgba(242, 244, 239, 0.74);
  font-size: var(--step--1);
  line-height: 1.65;
}

.step__text a {
  color: var(--brass);
  text-decoration: none;
  border-bottom: 1px solid rgba(190, 133, 53, 0.5);
}
.step__text a:hover { color: var(--paper); border-color: var(--paper); }

/* ==========================================================================
   Reviews — light solid, one testimonial at a time
   ========================================================================== */

.reviews { background: var(--paper); }

.tcar {
  margin-top: var(--space-xl);
  position: relative;
}

.tcar__viewport {
  overflow: hidden;
}

.tcar__track {
  display: flex;
  transition: transform 480ms var(--ease);
  will-change: transform;
}

.tcar__slide {
  flex: 0 0 100%;
  min-width: 0;
  padding-inline: var(--space-2xs);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Inert slides shouldn't be reachable by tab or read aloud */
.tcar__slide[aria-hidden="true"] { visibility: hidden; }

.tcar__thumb {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bone-deep);
  border: 3px solid var(--sage-wash);
  box-shadow: var(--shadow-m);
  flex-shrink: 0;
}

.tcar__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tcar__stars {
  display: flex;
  gap: 3px;
  margin-block: var(--space-s) var(--space-m);
}

.tcar__stars svg {
  width: 17px;
  height: 17px;
  fill: var(--brass);
}

.tcar__quote {
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--ink);
  max-width: 58ch;
  text-wrap: pretty;
}

.tcar__by {
  margin-top: var(--space-m);
  font-size: var(--step--1);
  color: var(--ink-soft);
}

.tcar__by strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 700;
  color: var(--pine);
}

/* ---- Controls ------------------------------------------------------------ */

.tcar__controls {
  margin-top: var(--space-l);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-m);
}

.tcar__arrow {
  display: grid;
  place-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--pine);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color var(--speed) var(--ease),
              color var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease);
}

.tcar__arrow:hover {
  background: var(--pine);
  color: var(--paper);
  box-shadow: inset 0 0 0 1px var(--pine);
}

.tcar__arrow svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tcar__dots {
  display: flex;
  gap: var(--space-2xs);
}

.tcar__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
  transition: background-color var(--speed) var(--ease),
              transform var(--speed) var(--ease);
}

.tcar__dot[aria-current="true"] {
  background: var(--brass);
  transform: scale(1.35);
}

@media (prefers-reduced-motion: reduce) {
  .tcar__track { transition: none; }
}

/* ==========================================================================
   Gallery — full-bleed, two rows of five
   ========================================================================== */

.gallery {
  background: var(--pine-deep);
  padding-block: var(--space-2xl);
}

.gallery__head { margin-bottom: var(--space-l); }
.gallery__title { color: var(--paper); }

.gallery__grid {
  display: grid;
  gap: 2px;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px)  { .gallery__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .gallery__grid { grid-template-columns: repeat(5, 1fr); } }

.gallery__item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--pine);   /* holds the shape before photos land */
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease), opacity var(--speed) var(--ease);
}

.gallery__item:hover img {
  transform: scale(1.06);
  opacity: 0.9;
}

/* ==========================================================================
   Closing CTA — solid light
   ========================================================================== */

.closer { background: var(--bone); }

.closer__inner {
  display: grid;
  gap: var(--space-l);
  align-items: center;
}

@media (min-width: 880px) {
  .closer__inner {
    grid-template-columns: 1fr auto;
    gap: var(--space-2xl);
  }
}

.closer__title { max-width: 20ch; }

.closer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  align-items: center;
}

.closer__phone {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: var(--pine);
  text-decoration: none;
  white-space: nowrap;
}
.closer__phone:hover { color: var(--brass-dark); }


/* ==========================================================================
   Lead modifier — for a photo section used as the top of a page, under a
   transparent overlay header. Adds the header's height to its top padding.
   ========================================================================== */

.services--lead { padding-top: var(--space-3xl); }


/* ==========================================================================
   Page head — compact photo banner for interior pages
   Pairs with <body class="overlay-header">. Deliberately short and quiet:
   the page's real content starts immediately below.
   ========================================================================== */

.pagehead {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(320px, 50svh, 520px);
  padding-bottom: var(--space-xl);
  background: var(--pine-deep);
  overflow: hidden;
}

.pagehead__media { position: absolute; inset: 0; z-index: -2; }

.pagehead__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.pagehead::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(21, 31, 24, 0.62) 0%,
    rgba(21, 31, 24, 0.28) 40%,
    rgba(21, 31, 24, 0.78) 100%
  );
}

/* ---- Breadcrumbs --------------------------------------------------------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2xs);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: rgba(242, 244, 239, 0.72);
}

.crumbs a {
  color: rgba(242, 244, 239, 0.72);
  text-decoration: none;
  transition: color var(--speed) var(--ease);
}

.crumbs a:hover { color: var(--brass); }

.crumbs li { display: flex; align-items: center; gap: var(--space-2xs); }

.crumbs li + li::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid var(--brass);
}

.crumbs [aria-current="page"] { color: var(--paper); }

.pagehead__title {
  margin-top: var(--space-s);
  color: var(--paper);
  font-size: var(--step-3);
}


/* ==========================================================================
   Intro / About — the homepage's first solid-background section.
   Asymmetric editorial split: the claim and the CTA hold the left column,
   the argument runs down the right.
   ========================================================================== */

.intro {
  background: var(--sage-wash);
}

.intro__grid {
  display: grid;
  gap: var(--space-l);
}

@media (min-width: 900px) {
  .intro__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: var(--space-2xl);
    align-items: start;
  }
}

.intro__title {
  font-size: var(--step-3);
  max-width: 18ch;
}

.intro__actions {
  margin-top: var(--space-l);
}

/* Hairline between the columns, desktop only — a rule, not a box. */
.intro__body {
  display: grid;
  gap: var(--space-m);
}

@media (min-width: 900px) {
  .intro__body {
    border-left: 1px solid rgba(57, 83, 64, 0.20);
    padding-left: var(--space-2xl);
  }
}

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

/* First paragraph carries slightly more weight — it sets up the problem. */
.intro__body p:first-child {
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--ink);
}

.intro__body strong {
  color: var(--pine);
  font-weight: 600;
}


/* Shorter page head — image only, no overlaid content. */
.pagehead--md {
  min-height: clamp(300px, 45svh, 480px);
}


/* ==========================================================================
   Grid modifiers — four across
   Eight cards or four steps orphan a row in the default three-column grids.
   These variants skip 3 entirely: 1 → 2 → 4, so every row stays full.
   ========================================================================== */

.svc-grid--quad {
  grid-template-columns: 1fr;
}

@media (min-width: 640px)  { .svc-grid--quad { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .svc-grid--quad { grid-template-columns: repeat(4, 1fr); } }

.steps__grid--quad {
  grid-template-columns: 1fr;
}

@media (min-width: 700px)  { .steps__grid--quad { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps__grid--quad { grid-template-columns: repeat(4, 1fr); } }

/* ==========================================================================
   Split — image one side, prose the other
   ========================================================================== */

.split { background: var(--paper); }

.split__grid {
  display: grid;
  gap: var(--space-l);
}

@media (min-width: 900px) {
  .split__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: var(--space-2xl);
    align-items: center;
  }
}

.split__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--bone-deep);
}

@media (max-width: 899px) {
  .split__media { aspect-ratio: 16 / 10; }
}

.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split__body { display: grid; gap: var(--space-m); }

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

/* Opening paragraph carries the argument, so it gets the weight */
.split__body p:first-of-type {
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--ink);
}

.split__title { max-width: 20ch; }

/* Image on the right instead */
@media (min-width: 900px) {
  .split--flip .split__media { order: 2; }
  .split--flip .split__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

/* ##########################################################################
   2026 REDESIGN — "real people" system
   Everything below is the new section vocabulary. Short copy, big type,
   cream backgrounds, green bands, gold only on buttons and small marks.
   ########################################################################## */

/* ==========================================================================
   Band colours — put one on any .section
   ========================================================================== */

.band--cream { background: var(--bone); }
.band--paper { background: var(--paper); }
.band--deep  { background: var(--bone-deep); }

.band--pine,
.band--night {
  background: var(--pine);
  color: rgba(255, 253, 248, 0.82);
}
.band--night { background: var(--pine-deep); }

.band--pine :is(h1, h2, h3),
.band--night :is(h1, h2, h3) { color: var(--paper); }
.band--pine .eyebrow,
.band--night .eyebrow { color: var(--brass); }
.band--pine .lede,
.band--night .lede { color: rgba(255, 253, 248, 0.78); }


/* ==========================================================================
   Section head — eyebrow, big headline, one line of lede
   ========================================================================== */

.head { max-width: 46rem; margin-bottom: var(--space-xl); }
.head h2 { font-size: var(--step-4); }
.head .lede { margin-top: var(--space-s); }

.head--center { margin-inline: auto; text-align: center; }
.head--center .lede { margin-inline: auto; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-s);
  margin-top: var(--space-l);
}
.head--center + .actions,
.actions--center { justify-content: center; }

/* Small "Mon–Fri · 7:30–4:30" line that sits under a Talk button */
.hours-note {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-soft);
}
.hours-note::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 4px rgba(98, 141, 93, 0.22);
}
.band--pine .hours-note,
.band--night .hours-note { color: rgba(255, 253, 248, 0.72); }


/* ==========================================================================
   Placeholder — stands in for a photo or video until the real one exists.
   Deliberately obvious so nobody ships it by accident.
   <div class="ph" style="--ar: 4/3">
     <span class="ph__label">Photo: …</span><span class="ph__note">…</span>
   </div>
   Add .ph--video for a play glyph.
   ========================================================================== */

.ph {
  --ar: 4 / 3;
  position: relative;
  aspect-ratio: var(--ar);
  width: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--space-3xs);
  padding: var(--space-m);
  text-align: center;
  border-radius: var(--radius-l);
  color: var(--pine);
  background:
    repeating-linear-gradient(135deg,
      rgba(57, 83, 64, 0.045) 0 12px,
      transparent 12px 24px),
    var(--bone-deep);
  outline: 2px dashed rgba(57, 83, 64, 0.28);
  outline-offset: -10px;
  overflow: hidden;
}

.ph__label {
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 700;
  line-height: 1.25;
  max-width: 26ch;
}

.ph__note {
  font-size: var(--step--1);
  color: var(--ink-soft);
}

.ph::before {
  content: "";
  width: 44px;
  height: 44px;
  margin-bottom: var(--space-2xs);
  opacity: 0.5;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='9' cy='10' r='2'/%3E%3Cpath d='m21 16-5-5-9 9'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='9' cy='10' r='2'/%3E%3Cpath d='m21 16-5-5-9 9'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ph--video::before {
  width: 64px;
  height: 64px;
  opacity: 1;
  border-radius: 50%;
  background: var(--brass);
  -webkit-mask: none;
          mask: none;
  box-shadow: var(--shadow-m);
}
/* Play triangle sits on the gold disc */
.ph--video::after {
  content: "";
  position: absolute;
  top: calc(50% - 46px);
  left: calc(50% - 6px);
  border-left: 18px solid var(--pine-deep);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  pointer-events: none;
}
/* Keep the triangle centred on the disc when there's no note line */
.ph--video:not(:has(.ph__note))::after { top: calc(50% - 35px); }

/* On dark bands */
.band--pine .ph,
.band--night .ph,
.ph--dark {
  color: var(--paper);
  background:
    repeating-linear-gradient(135deg,
      rgba(255, 253, 248, 0.05) 0 12px,
      transparent 12px 24px),
    rgba(255, 253, 248, 0.06);
  outline-color: rgba(255, 253, 248, 0.3);
}
.band--pine .ph__note,
.band--night .ph__note,
.ph--dark .ph__note { color: rgba(255, 253, 248, 0.65); }

/* Copy the client still has to write or confirm */
.tbd {
  background: var(--brass-soft);
  color: var(--ink);
  padding: 0.05em 0.35em;
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}


/* ==========================================================================
   Hero — cream, big type left, photo right. .hero--page for interior pages.
   ========================================================================== */

.hero {
  background: var(--bone);
  padding-block: var(--space-2xl) var(--space-3xl);
}

/* Desktop logo shelf hangs ~56px below the bar — give it room */
@media (min-width: 1200px) {
  .hero { padding-top: calc(var(--space-2xl) + 48px); }
}

.hero__grid {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: var(--space-2xl);
  }
}

.hero__title {
  font-size: clamp(2.6rem, 1.6rem + 4.2vw, 5.4rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero__title span { display: block; color: var(--sage-deep); }

.hero__sub {
  margin-top: var(--space-m);
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: var(--tracking-tight);
  color: var(--pine);
  max-width: 28ch;
}

.hero__lede {
  margin-top: var(--space-s);
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 44ch;
}

.hero__media {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-l);
}
.hero__media > img { width: 100%; height: 100%; object-fit: cover; }
.hero__media > .ph { height: 100%; aspect-ratio: auto; border-radius: 0; }

@media (max-width: 959px) {
  .hero__media { aspect-ratio: 4 / 3; }
}

.hero--page .hero__title { font-size: var(--step-5); }
.hero--page .hero__media { aspect-ratio: 4 / 3; }

@media (prefers-reduced-motion: no-preference) {
  .hero__grid > * { animation: rise 700ms var(--ease) backwards; }
  .hero__grid > *:nth-child(2) { animation-delay: 140ms; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}


/* ==========================================================================
   Talk strip — "Have a question? Talk to a real person. Call | Text | Email"
   Sits right under the hero buttons, and anywhere else a question is likely.
   ========================================================================== */

.talk {
  margin-top: var(--space-xl);
  padding: var(--space-m);
  border-radius: var(--radius-l);
  background: var(--paper);
  box-shadow: var(--shadow-s), inset 0 0 0 1px var(--line);
  display: grid;
  gap: var(--space-s);
  max-width: 34rem;
}

.talk__q {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.2;
  color: var(--pine);
}
.talk__q span { display: block; font-weight: 500; color: var(--ink-soft); font-size: var(--step-0); }

.talk__opts { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }

.talk__opt {
  flex: 1 1 0;
  min-width: 6.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  padding: 0.7em 1em;
  border-radius: 999px;
  background: var(--sage-wash);
  color: var(--pine);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease);
}
.talk__opt:hover { background: var(--pine); color: var(--paper); }

.talk__opt svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ==========================================================================
   Split — media one side, copy the other. Generic; used all over.
   ========================================================================== */

.duo {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 900px) {
  .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xl); }
  .duo--flip > :first-child { order: 2; }
  .duo--wide-media { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
}

.duo h2 { font-size: var(--step-4); }
.duo .lede { margin-top: var(--space-s); }
.duo__body > p + p { margin-top: var(--space-s); }

.duo__media { border-radius: var(--radius-l); overflow: hidden; }
.duo__media img { width: 100%; height: 100%; object-fit: cover; }

/* The line a section exists to say, set large */
.pull {
  margin-top: var(--space-m);
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: var(--tracking-tight);
  color: var(--pine);
}
.band--pine .pull,
.band--night .pull { color: var(--brass); }


/* ==========================================================================
   Promise — four short pillars (the customer experience)
   ========================================================================== */

.promise {
  display: grid;
  gap: var(--space-m);
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .promise { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .promise { grid-template-columns: repeat(4, 1fr); } }

.promise__item {
  padding: var(--space-l) var(--space-m);
  border-radius: var(--radius-l);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}

.promise__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sage-wash);
  margin-bottom: var(--space-m);
}
.promise__icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--pine);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.promise__name {
  font-size: var(--step-1);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.promise__text {
  margin-top: var(--space-2xs);
  color: var(--ink-soft);
  line-height: 1.55;
}


/* ==========================================================================
   Video tiles — window styles in action
   Each .vid holds either a .ph--video placeholder or a real <video>.
   Mobile: a swipeable row. Desktop: five across.
   ========================================================================== */

.vids {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 72%);
  gap: var(--space-s);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-s);
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
}

@media (min-width: 720px) {
  .vids { grid-auto-columns: minmax(220px, 40%); }
}

@media (min-width: 1100px) {
  .vids {
    grid-auto-flow: row;
    grid-template-columns: repeat(5, 1fr);
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }
}

.vid {
  scroll-snap-align: start;
  display: grid;
  gap: var(--space-s);
  align-content: start;
  text-decoration: none;
  color: inherit;
}

.vid .ph,
.vid video {
  aspect-ratio: 4 / 5;
  width: 100%;
  border-radius: var(--radius-l);
  object-fit: cover;
  transition: transform var(--speed) var(--ease);
}
.vid:hover .ph,
.vid:hover video { transform: translateY(-4px); }

.vid__name {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--pine);
  line-height: 1.2;
}
.vid__name sup { font-size: 0.55em; }

.vid__text { color: var(--ink-soft); font-size: var(--step--1); margin-top: calc(var(--space-2xs) * -1); }

.vid--feature .vid__name::after {
  content: "Featured";
  margin-left: var(--space-2xs);
  padding: 0.2em 0.6em;
  border-radius: 999px;
  background: var(--brass);
  color: var(--pine-deep);
  font-size: 0.55em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 0.3em;
}


/* ==========================================================================
   Factor chips — "size · style · glass · colour · installation"
   ========================================================================== */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  margin-top: var(--space-m);
}

.chips li {
  padding: 0.45em 1em;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step--1);
  color: var(--pine);
}


/* ==========================================================================
   Partner band — "Windows by AMSCO"
   ========================================================================== */

.partner {
  display: grid;
  gap: var(--space-m);
  align-items: center;
  padding: var(--space-l);
  border-radius: var(--radius-l);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}

@media (min-width: 820px) {
  .partner {
    grid-template-columns: 200px 1fr auto;
    gap: var(--space-xl);
    padding: var(--space-l) var(--space-xl);
  }
}

.partner .ph { aspect-ratio: 5 / 2; padding: var(--space-2xs); outline-offset: -6px; }
.partner .ph::before { display: none; }
.partner .ph__label { font-size: var(--step--1); }

.partner h2 { font-size: var(--step-3); }
.partner p { margin-top: var(--space-3xs); color: var(--ink-soft); }

.btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ==========================================================================
   Before / after slider — js/compare.js sets --pos
   ========================================================================== */

.compare {
  --pos: 50%;
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-l);
  overflow: hidden;
  user-select: none;
  background: var(--bone-deep);
}

.compare__before,
.compare__after {
  position: absolute;
  inset: 0;
}
.compare__before > *,
.compare__after > * {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: auto;
  border-radius: 0;
}

.compare__after { clip-path: inset(0 0 0 var(--pos)); }
/* Tint the AFTER placeholder so the two halves read as different, and keep
   each label in its own half so they don't collide under the handle */
.compare__after .ph { background-color: var(--sage-wash); padding-left: 52%; }
.compare__before .ph { padding-right: 52%; }

.compare__tag {
  position: absolute;
  top: var(--space-s);
  z-index: 2;
  padding: 0.3em 0.8em;
  border-radius: 999px;
  background: rgba(29, 42, 32, 0.78);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}
.compare__tag--before { left: var(--space-s); }
.compare__tag--after  { right: var(--space-s); background: var(--brass); color: var(--pine-deep); }

.compare__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  translate: -50% 0;
  background: var(--paper);
  pointer-events: none;
  z-index: 2;
}
.compare__handle::after {
  content: "◂ ▸";
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  color: var(--pine);
  font-size: 14px;
  letter-spacing: 2px;
  box-shadow: var(--shadow-m);
}

.compare input[type="range"] {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.compare:has(input:focus-visible) {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
}


/* ==========================================================================
   Projects — one featured before/after and two supporting projects
   ========================================================================== */

.projects {
  display: grid;
  gap: var(--space-m);
}

@media (min-width: 960px) {
  .projects {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
  }
  .projects > :first-child { grid-row: span 2; display: flex; flex-direction: column; }
  .projects > :first-child .compare { flex: 1; aspect-ratio: auto; min-height: 420px; }
}

.project { display: grid; gap: var(--space-xs); align-content: start; }
.project > .ph { aspect-ratio: 16 / 10; }

.project__cap {
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.project__cap strong {
  font-family: var(--font-display);
  font-size: var(--step-0);
  color: var(--pine);
  margin-right: var(--space-2xs);
}


/* ==========================================================================
   Reviews — three cards, each tagged with what it speaks to
   ========================================================================== */

.quotes {
  display: grid;
  gap: var(--space-m);
}
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); } }

.quote {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  padding: var(--space-l);
  border-radius: var(--radius-l);
  background: var(--bone);
}

.quote__tag {
  align-self: flex-start;
  padding: 0.3em 0.8em;
  border-radius: 999px;
  background: var(--sage-wash);
  color: var(--pine);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 700;
}

.quote__stars { display: flex; gap: 3px; }
.quote__stars svg { width: 17px; height: 17px; fill: var(--brass); }

.quote blockquote {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink);
}

.quote__by {
  margin-top: auto;
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.quote__by strong { display: block; color: var(--pine); font-family: var(--font-display); font-size: var(--step-0); }


/* ==========================================================================
   Stat promise — the "2 business days" device on the after-install band
   ========================================================================== */

.stat {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--space-s);
  margin-top: var(--space-l);
  padding: var(--space-s) var(--space-l) var(--space-s) var(--space-s);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.08);
  text-align: left;
}

.stat__num {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brass);
  color: var(--pine-deep);
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 800;
  line-height: 1;
}

.stat__text { color: var(--paper); font-weight: 600; line-height: 1.35; }
.stat__text span { display: block; font-weight: 400; color: rgba(255, 253, 248, 0.7); font-size: var(--step--1); }


/* ==========================================================================
   Areas — the other two parts of the business
   ========================================================================== */

.areas {
  display: grid;
  gap: var(--space-m);
}
@media (min-width: 820px) { .areas { grid-template-columns: repeat(2, 1fr); } }

.area {
  display: grid;
  gap: var(--space-s);
  align-content: start;
  padding: var(--space-s) var(--space-s) var(--space-l);
  border-radius: var(--radius-l);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  text-decoration: none;
  color: inherit;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.area:hover { transform: translateY(-4px); box-shadow: var(--shadow-m), inset 0 0 0 1px var(--line); }

.area .ph { aspect-ratio: 16 / 9; }
.area__body { padding-inline: var(--space-s); }
.area h3 { font-size: var(--step-2); }
.area p { margin-top: var(--space-3xs); color: var(--ink-soft); }

.more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  margin-top: var(--space-s);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass-dark);
  transition: gap var(--speed) var(--ease);
}
.area:hover .more { gap: var(--space-xs); }
.more::after { content: "→"; }


/* ==========================================================================
   Path — numbered steps, kept to one line each
   ========================================================================== */

.path {
  display: grid;
  gap: var(--space-m);
  counter-reset: path;
}
@media (min-width: 720px)  { .path { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .path { grid-template-columns: repeat(5, 1fr); } }

.path li {
  counter-increment: path;
  padding-top: var(--space-s);
  border-top: 3px solid var(--brass);
}
.path li::before {
  content: counter(path);
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 800;
  color: var(--brass-dark);
  line-height: 1;
  margin-bottom: var(--space-2xs);
}
.path h3 { font-size: var(--step-1); }
.path p { margin-top: var(--space-3xs); color: var(--ink-soft); font-size: var(--step--1); line-height: 1.55; }

.band--pine .path li::before,
.band--night .path li::before { color: var(--brass); }
.band--pine .path p,
.band--night .path p { color: rgba(255, 253, 248, 0.72); }


/* ==========================================================================
   Team grid — people a customer might actually talk to
   ========================================================================== */

.team {
  display: grid;
  gap: var(--space-m);
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.team .ph { aspect-ratio: 4 / 5; }
.team h3 { margin-top: var(--space-s); font-size: var(--step-1); }
.team p { color: var(--ink-soft); font-size: var(--step--1); }


/* ==========================================================================
   Style library — the Windows & Videos page
   ========================================================================== */

.styles { display: grid; gap: var(--space-2xl); }

.style {
  display: grid;
  gap: var(--space-l);
  align-items: center;
}
@media (min-width: 900px) {
  .style { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: var(--space-2xl); }
  .style:nth-child(even) > :first-child { order: 2; }
  .style:nth-child(even) { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
}
.style h2 { font-size: var(--step-3); }
.style p { margin-top: var(--space-s); color: var(--ink-soft); }
.style .ph { aspect-ratio: 16 / 9; }

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  margin-top: var(--space-l);
}
.jump a {
  padding: 0.5em 1.1em;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step--1);
  color: var(--pine);
  text-decoration: none;
}
.jump a:hover { background: var(--pine); color: var(--paper); box-shadow: none; }


/* ==========================================================================
   Closer — the last "talk to us" band before the footer
   ========================================================================== */

.closer--talk { text-align: center; }
.closer--talk h2 { font-size: var(--step-4); max-width: 22ch; margin-inline: auto; }
.closer--talk .lede { margin: var(--space-s) auto 0; }
