/* ==========================================================================
   home.css — hero, statement, service index, testimonial wall, realtor strip
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(78svh, 44rem);
  display: flex;
  align-items: flex-end;
  padding-block: clamp(4rem, 14vw, 8rem) clamp(2.5rem, 7vw, 4.5rem);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}

/* Two-stop scrim: navy from the left so the wordmark always has ground,
   plus a bottom fade so the page continues rather than stopping dead. */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(7, 13, 19, 0.95) 0%, rgba(7, 13, 19, 0.78) 42%, rgba(0, 63, 102, 0.35) 100%),
    linear-gradient(to top, var(--ground) 2%, transparent 45%);
}

.hero__inner {
  display: grid;
  gap: var(--sp-6);
  width: 100%;
  min-width: 0;
}
.hero__inner > * { min-width: 0; }

.hero__wordmark {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 14ch;
}
.hero__wordmark .llc {
  display: block;
  overflow-wrap: break-word;
  font-family: var(--font-label);
  font-size: clamp(0.7rem, 1.5vw, 0.9rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: clamp(0.75rem, 2vw, 1.25rem);
  padding-left: 0.25em;
}

.hero__tagline {
  font-size: var(--fs-lead);
  color: var(--ink-muted);
  max-width: 34ch;
  font-weight: 300;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-6);
  margin-top: var(--sp-4);
  font-family: var(--font-label);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.hero__meta li { display: flex; align-items: center; gap: 0.55rem; }
.hero__meta li::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: var(--r-round);
  flex: none;
}

/* --------------------------------------------------------------------------
   Statement — the one sentence the old site buried below the fold
   -------------------------------------------------------------------------- */
.statement {
  padding-block: clamp(3.5rem, 10vw, 7rem);
  border-bottom: 1px solid var(--line);
}
.statement__inner > * { min-width: 0; }
.statement__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: var(--sp-6) clamp(2rem, 6vw, 5rem);
  align-items: end;
}
.statement__lead {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.7rem);
  line-height: 1.14;
  letter-spacing: -0.012em;
  max-width: 22ch;
}
.statement__aside {
  color: var(--ink-muted);
  font-size: var(--fs-body);
  max-width: 46ch;
  display: grid;
  gap: var(--sp-4);
  justify-items: start;
}

/* --------------------------------------------------------------------------
   Service index — asymmetric photo grid, not three equal cards
   -------------------------------------------------------------------------- */
.services { padding-block: clamp(3.5rem, 10vw, 7rem); }

.services__head > * { min-width: 0; }
.services__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--sp-5) clamp(2rem, 6vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.services__head p { color: var(--ink-muted); max-width: 48ch; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
}

.service {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--r-soft);
  background: var(--surface);
  min-height: 20rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-5);
  color: var(--ink);
  text-decoration: none;
}

/* Asymmetric spans: two wide plates open the grid, then a 2-2-2 run,
   and insurance claims takes a full-width band because it is the service
   homeowners arrive in a hurry for. */
.service--siding    { grid-column: span 4; min-height: 26rem; }
.service--decks     { grid-column: span 2; }
.service--insurance { grid-column: span 6; min-height: 17rem; }
.service--painting  { grid-column: span 2; }
.service--gutters   { grid-column: span 2; }
.service--kitchen   { grid-column: span 2; }
.service--bathroom  { grid-column: span 3; }

/* The grid closes on an action rather than another photo plate. */
.service-cta {
  grid-column: span 3;
  min-height: 20rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--sp-5);
  padding: var(--sp-5);
  border: 1px solid var(--gold-dim);
  border-radius: var(--r-soft);
  background:
    radial-gradient(140% 120% at 100% 0%, rgba(0, 63, 102, 0.5), transparent 60%),
    var(--surface);
}
.service-cta h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  line-height: 1.08;
  max-width: 18ch;
}
.service-cta p { color: var(--ink-muted); font-size: var(--fs-small); max-width: 36ch; }

.service__media { position: absolute; inset: 0; z-index: -2; }
.service__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 700ms var(--ease), filter 700ms var(--ease);
  filter: saturate(0.86) contrast(1.02);
}
.service::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(7, 13, 19, 0.94) 14%, rgba(7, 13, 19, 0.42) 55%, rgba(0, 63, 102, 0.18) 100%);
  transition: background var(--dur) var(--ease);
}
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  border: 1px solid var(--line);
  transition: border-color var(--dur) var(--ease);
  pointer-events: none;
}
.service:hover .service__media img { transform: scale(1.07); filter: saturate(1) contrast(1.04); }
.service:hover::before { border-color: var(--gold-dim); }

.service h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  line-height: 1.05;
  letter-spacing: 0.005em;
  margin-bottom: var(--sp-3);
}
.service__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
}
.service__list li {
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border: 1px solid var(--line);
  border-radius: var(--r-tight);
  padding: 0.28rem 0.5rem;
  background: rgba(7, 13, 19, 0.45);
}
.service--insurance .service__list li { border-color: var(--gold-dim); color: var(--gold); }

/* --------------------------------------------------------------------------
   Testimonial wall — staggered, no carousel, no dots
   -------------------------------------------------------------------------- */
.testimonials {
  padding-block: clamp(3.5rem, 10vw, 7rem);
  border-top: 1px solid var(--line);
}

.quote-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}
/* Stagger the columns so the wall never reads as three matched cards */
.quote-wall > :nth-child(2) { margin-top: clamp(1.5rem, 4vw, 3.5rem); }
.quote-wall > :nth-child(3) { margin-top: clamp(0.75rem, 2vw, 1.75rem); }

.quote {
  display: grid;
  gap: var(--sp-4);
  padding-left: var(--sp-5);
  border-left: 1px solid var(--gold-dim);
}
.quote blockquote {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 300;
}
.quote figcaption {
  font-family: var(--font-label);
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   Realtor strip
   -------------------------------------------------------------------------- */
.realtor-strip {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--r-soft);
  margin-top: clamp(2rem, 6vw, 4rem);
}
.realtor-strip__media { position: absolute; inset: 0; z-index: -2; }
.realtor-strip__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.realtor-strip::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(95deg, rgba(7, 13, 19, 0.96) 24%, rgba(0, 63, 102, 0.55) 100%);
}
.realtor-strip__inner {
  padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1.5rem, 5vw, 3.5rem);
  display: grid;
  gap: var(--sp-4);
  max-width: 52ch;
}
.realtor-strip h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: 1.04;
  letter-spacing: -0.015em;
}
.realtor-strip p { color: var(--ink-muted); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 64rem) {
  .service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .service--siding    { grid-column: span 4; min-height: 22rem; }
  .service--decks     { grid-column: span 2; }
  .service--insurance { grid-column: span 4; }
  .service--painting  { grid-column: span 2; }
  .service--gutters   { grid-column: span 2; }
  .service--kitchen   { grid-column: span 2; }
  .service--bathroom  { grid-column: span 2; }
  .service-cta        { grid-column: span 4; min-height: 15rem; }

  .quote-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote-wall > :nth-child(3) { margin-top: 0; }
}

@media (max-width: 48rem) {
  .statement__inner,
  .services__head { grid-template-columns: minmax(0, 1fr); }
  .statement__inner { align-items: start; }
}

@media (max-width: 40rem) {
  .hero { min-height: auto; padding-block: clamp(3rem, 12vw, 5rem) var(--sp-7); }
  .hero__wordmark .llc { letter-spacing: 0.2em; font-size: 0.68rem; line-height: 1.6; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__meta { gap: var(--sp-2) var(--sp-4); }
  .hero__media img { object-position: 62% 60%; }
  .hero__wordmark { max-width: 100%; }

  .service-grid { grid-template-columns: minmax(0, 1fr); }
  .service,
  .service--siding, .service--decks, .service--insurance, .service--painting,
  .service--gutters, .service--kitchen, .service--bathroom {
    grid-column: span 1;
    min-height: 17rem;
  }
  .service-cta { grid-column: span 1; min-height: auto; }

  .quote-wall { grid-template-columns: minmax(0, 1fr); }
  .quote-wall > :nth-child(2),
  .quote-wall > :nth-child(3) { margin-top: 0; }
}
