/* ==========================================================================
   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: calc(var(--space-3xl) + var(--header-h));
}


/* ==========================================================================
   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(420px, 80svh, 750px);
  padding-top: var(--header-h);
  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(380px, 70svh, 650px);
}


/* ==========================================================================
   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);
  }
}