/* ===========================================================================
   blocks.css — styling for the blocks in templates/blocks/.
   Include only after tokens.css and base.css. Same on every site.
   =========================================================================== */

/* ---- hero-quote ---------------------------------------------------------- */
.hero { position: relative; background: var(--dark); color: var(--on-dark); overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .62;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  /* Dark enough for the copy to clear contrast, light enough that their own
     work is still the thing you see. DESIGN.md §2. */
  background: linear-gradient(100deg, rgba(15,17,20,.92) 0%, rgba(15,17,20,.72) 42%,
                                      rgba(15,17,20,.55) 70%, rgba(15,17,20,.80) 100%);
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; gap: var(--s6);
  padding-block: var(--s7) var(--s8);
}
@media (min-width: 980px) {
  .hero__inner { grid-template-columns: 1.05fr .95fr; align-items: center;
    gap: var(--s8); padding-block: var(--s9); }
}
.hero__copy > * + * { margin-top: var(--s4); }
.hero h1 { color: #fff; }
.hero .lead { color: #d6dae0; }
.hero__proof { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap;
  font-size: var(--step-0); color: #d6dae0; }
.hero__proof strong { color: #fff; }
.stars { color: #ffc043; letter-spacing: .08em; }

.hero__form { background: var(--surface); color: var(--ink); }
.hero__form .field > span { color: var(--ink); }
.hero__form .form-note { color: var(--ink-faint); }
.hero__form-title { font-size: var(--step-2); }
.hero__form form { margin-top: var(--s4); }

/* ---- hero-triptych ------------------------------------------------------- */
.triptych { display: grid; grid-template-columns: 1fr; }
@media (min-width: 760px) { .triptych { grid-template-columns: repeat(3, 1fr); } }
.triptych__panel { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden;
  text-decoration: none; }
@media (min-width: 760px) { .triptych__panel { aspect-ratio: 3/4; max-height: 62vh; } }
.triptych__panel img { width: 100%; height: 100%; object-fit: cover;
  transition: transform 600ms var(--ease); }
.triptych__panel:hover img { transform: scale(1.03); }
.triptych__word {
  position: absolute; inset: auto 0 0 0; padding: var(--s5);
  font-family: var(--font-display); font-size: var(--step-2); font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(15,17,20,.8));
}
.hero__belt { position: relative; z-index: 1; display: grid; gap: var(--s5);
  padding-block: var(--s7); }
@media (min-width: 980px) { .hero__belt { grid-template-columns: 1fr auto; align-items: end; } }
.hero--triptych::after { display: none; }

/* ---- trust-strip --------------------------------------------------------- */
.strip { background: var(--brand); color: var(--brand-contrast); }
.strip__inner { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s6);
  padding-block: var(--s4); font-size: var(--step--1); font-weight: 600; }
.strip__item { display: flex; align-items: center; gap: var(--s2); }
.strip__item::before { content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; opacity: .6; }

/* ---- services-grid ------------------------------------------------------- */
.service-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.service-card > :not(.frame) { padding-inline: var(--s5); }
.service-card h3 { margin-top: var(--s5); }
.service-card p  { margin-top: var(--s3); color: var(--ink-soft); }
.service-card > :last-child { padding-bottom: var(--s5); margin-top: auto; }
.service-card .price { font-weight: 800; color: var(--ink); margin-top: var(--s3); }
.service-card a.more { display: inline-block; margin-top: var(--s4); font-weight: 700;
  text-decoration: none; }
.service-card a.more:hover { text-decoration: underline; }

/* ---- before-after -------------------------------------------------------- */
.ba { margin-top: var(--s6); }
.ba__stage { position: relative; aspect-ratio: 3/2; border-radius: var(--radius);
  overflow: hidden; background: var(--dark-alt); touch-action: pan-y; }
.ba__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-after { clip-path: inset(0 0 0 50%); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px;
  background: #fff; transform: translateX(-1.5px); pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.ba-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px;
  transform: translate(-50%,-50%); border-radius: 50%;
  background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.ba__tag { position: absolute; top: var(--s3); padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(15,17,20,.72); color: #fff; }
.ba__tag--l { left: var(--s3); } .ba__tag--r { right: var(--s3); }
.ba__stage input[type=range] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: none;
}
.ba__stage input[type=range]:focus-visible { opacity: .001; outline: 3px solid var(--brand);
  outline-offset: 3px; }
.ba figcaption { margin-top: var(--s3); font-size: var(--step--1); color: var(--on-dark-soft); }

/* ---- gallery ------------------------------------------------------------- */
/* Four columns on desktop, so six photos with two `--wide` items fill exactly
   two rows (2+1+1 / 1+1+2) with no empty cell. */
.gallery { display: grid; gap: var(--s3); grid-template-columns: repeat(2, 1fr);
  margin-top: var(--s6); }
@media (min-width: 840px) { .gallery { grid-template-columns: repeat(4, 1fr); gap: var(--s4); } }
/* The gallery sets its own ratios so every row lines up: a normal item is
   square, a `--wide` item spans two columns at 2:1, which comes out the same
   height. Without this a wide 4:3 item is double height and tears a hole in
   the grid. */
.gallery__item { border-radius: var(--radius); aspect-ratio: 1 / 1; }
.gallery__item--wide { grid-column: span 2; aspect-ratio: 2 / 1; }
.gallery__item img { transition: transform 500ms var(--ease); }
.gallery__item:hover img { transform: scale(1.02); }

/* ---- how-it-works -------------------------------------------------------- */
.steps { list-style: none; padding: 0; display: grid; gap: var(--s5); margin-top: var(--s6);
  counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(auto-fit, minmax(210px,1fr)); } }
.step__n { display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--brand); color: var(--brand-contrast);
  font-weight: 800; font-size: var(--step-0); margin-bottom: var(--s3); }
.step h3 { margin-bottom: var(--s2); }
.step p { color: var(--ink-soft); }

/* ---- pricing ------------------------------------------------------------- */
.price-card { display: flex; flex-direction: column; gap: var(--s3); }
.price-card .price { font-family: var(--font-display); font-size: var(--step-3);
  font-weight: 900; letter-spacing: -.03em; color: var(--ink); }
.price__qual { font-size: var(--step--1); color: var(--ink-faint); margin-top: calc(var(--s2) * -1); }
.ticks { list-style: none; padding: 0; display: grid; gap: var(--s2); font-size: var(--step--1);
  color: var(--ink-soft); }
.ticks li { display: grid; grid-template-columns: 18px 1fr; gap: var(--s2); }
.ticks li::before { content: "✓"; color: var(--brand-ink); font-weight: 800; }
.price-card .btn { margin-top: auto; }

/* ---- faq ----------------------------------------------------------------- */
.faq { margin-top: var(--s6); border-top: 1px solid var(--line); max-width: 780px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: var(--s4) 40px var(--s4) 0;
  font-weight: 700; font-size: var(--step-0); position: relative; min-height: 52px;
  display: flex; align-items: center;
  transition: color var(--t-fast) var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--brand-ink); }
.faq__item summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-70%) rotate(45deg); transition: transform var(--t-fast) var(--ease);
}
.faq__item[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq__a { padding-bottom: var(--s5); color: var(--ink-soft); }

/* ---- about --------------------------------------------------------------- */
.about { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 900px) { .about { grid-template-columns: 1fr 1fr; gap: var(--s8); } }
.about .frame { border-radius: var(--radius); }
.about .stack > h2 { margin-top: 0; }
.quote { border-left: 3px solid var(--brand); padding-left: var(--s4); }
.quote p { font-size: var(--step-1); }
.quote cite { display: block; margin-top: var(--s3); font-size: var(--step--1);
  font-style: normal; color: var(--ink-faint); }

/* ---- contact ------------------------------------------------------------- */
.contact { display: grid; gap: var(--s6); }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; gap: var(--s8);
  align-items: start; } }
.contact .card { color: var(--ink); }
.contact .card .field > span { color: var(--ink); }

/* ---- service page hero (a page, not the homepage) ------------------------ */
.page-hero { background: var(--dark); color: var(--on-dark); position: relative; overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .32; }
.page-hero .wrap { position: relative; z-index: 1; padding-block: var(--s8); }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero .lead { color: #d6dae0; margin-top: var(--s4); }
.page-hero .btn-row { margin-top: var(--s5); }
.crumbs { font-size: var(--step--1); color: var(--on-dark-soft); margin-bottom: var(--s4); }
.crumbs a { color: var(--on-dark-soft); }
