/* =========================================================================
   ClearScape Exterior Care
   Design tokens and page styles.

   LOCKS (documented rules, applied everywhere):
     Accent lock ...... Blue (--brand) is the ONLY action colour.
                        Green (--green) is reserved for one semantic meaning:
                        "verified / done / after". It never becomes a CTA
                        colour except the WhatsApp button, which is green
                        because WhatsApp itself is.
     Shape lock ....... buttons + pills = 999px, cards/panels = 16px,
                        inputs = 10px, media = 14px. No other radii.
     Theme lock ....... one theme for the entire page. The toggle swaps the
                        whole document, never a single section.
   ========================================================================= */

/* ---------------------------------------------------------------- tokens */

:root {
  /* surfaces */
  --bg:            #ffffff;
  --bg-soft:       #f4f7fb;
  --bg-sunk:       #e9eff7;
  --panel:         #ffffff;
  --line:          #dbe3ef;
  --line-strong:   #c3cfe1;

  /* text */
  --text:          #0c1526;
  --text-2:        #4b5a74;
  /* darkened so small print still clears WCAG AA on --bg-sunk, the palest
     surface small text ever sits on */
  --text-3:        #5b6a85;

  /* brand */
  --brand:         #024fb7;
  --brand-hover:   #023f92;
  --brand-ink:     #023a86;
  --brand-soft:    #e8f0fd;
  --brand-on:      #ffffff;

  /* semantic green: "after / verified / done" only */
  --green:         #4d7a17;
  --green-mark:    #659a26;
  --green-soft:    #eef6e2;
  --green-on:      #ffffff;

  --star:          #f0a500;

  /* elevation, tinted to the surface hue rather than pure black */
  --shadow-sm:     0 1px 2px rgba(12, 21, 38, .05), 0 2px 8px rgba(12, 21, 38, .04);
  --shadow-md:     0 2px 4px rgba(12, 21, 38, .05), 0 12px 32px rgba(12, 21, 38, .08);
  --shadow-lg:     0 4px 10px rgba(12, 21, 38, .06), 0 24px 60px rgba(12, 21, 38, .12);

  /* shape lock */
  --r-pill:        999px;
  --r-card:        16px;
  --r-media:       14px;
  --r-input:       10px;

  /* type */
  --font-display:  "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:     "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* layout */
  --wrap:          1180px;
  --gutter:        clamp(1.15rem, 4vw, 2.5rem);
  --section-y:     clamp(3.75rem, 8vw, 7rem);

  /* z-index scale, the only values used in this file */
  --z-base:        1;
  --z-sticky:      50;
  --z-overlay:     80;
  --z-modal:       100;

  color-scheme: light;
}

html[data-theme="dark"] {
  --bg:            #0a1120;
  --bg-soft:       #101a2c;
  --bg-sunk:       #0d1727;
  --panel:         #131f33;
  --line:          #22314b;
  --line-strong:   #32456580;

  --text:          #e8eefb;
  --text-2:        #9dadc9;
  --text-3:        #8493b0;

  --brand:         #59a0ff;
  --brand-hover:   #7cb5ff;
  --brand-ink:     #a9cdff;
  --brand-soft:    #16294a;
  --brand-on:      #05142c;

  --green:         #96cc5c;
  --green-mark:    #96cc5c;
  --green-soft:    #1a2a15;
  --green-on:      #0d1a06;

  --star:          #ffc247;

  --shadow-sm:     0 1px 2px rgba(0, 0, 0, .3);
  --shadow-md:     0 2px 4px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .38);
  --shadow-lg:     0 4px 10px rgba(0, 0, 0, .34), 0 24px 60px rgba(0, 0, 0, .5);

  color-scheme: dark;
}

/* ------------------------------------------------------------- baseline */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--brand); color: var(--brand-on); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: var(--z-modal);
  padding: .75rem 1.25rem;
  background: var(--brand);
  color: var(--brand-on);
  border-radius: 0 0 var(--r-input) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; text-decoration: none; }

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

/* --------------------------------------------------------------- layout */

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

.section { padding-block: var(--section-y); }
.section--soft { background: var(--bg-soft); }
.section--sunk { background: var(--bg-sunk); }

.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { font-size: clamp(1.85rem, 4.2vw, 2.85rem); }
.section-head p {
  margin-top: .9rem;
  color: var(--text-2);
  font-size: 1.0625rem;
  max-width: 60ch;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .85rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .975rem;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease,
              color .18s ease, transform .12s ease, box-shadow .18s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px) scale(.985); }
.btn i { font-size: 1.15em; }

.btn--primary {
  background: var(--brand);
  color: var(--brand-on);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--brand-hover); box-shadow: var(--shadow-md); }

.btn--ghost {
  background: var(--panel);
  color: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }

/* WhatsApp green, darkened from the brand tint so white label text clears
   WCAG AA at the button's 15.6px bold size. */
.btn--wa {
  background: #0f7f43;
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}
.btn--wa:hover { background: #0b6a37; box-shadow: var(--shadow-md); }
html[data-theme="dark"] .btn--wa { background: #1faf54; color: #04220f; }
html[data-theme="dark"] .btn--wa:hover { background: #33c467; }

.btn--lg { padding: 1.05rem 2rem; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

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

.header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
@supports not (backdrop-filter: blur(1px)) { .header { background: var(--bg); } }

.header__inner {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-right: auto;
  flex: none;
}
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: auto; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.05;
}
.brand__sub {
  display: block;
  font-family: var(--font-body);
  font-size: .59rem;
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a {
  color: var(--text-2);
  font-size: .945rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color .16s ease;
  /* padding rather than height, so the tap target reaches ~44px on iPad
     without changing how the bar looks */
  padding-block: .6rem;
}
.nav a:hover { color: var(--brand); text-decoration: none; }

.header__actions { display: flex; align-items: center; gap: .6rem; flex: none; }

.icon-btn {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--text-2);
  cursor: pointer;
  transition: border-color .16s ease, color .16s ease, background-color .16s ease;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn i { font-size: 1.2rem; }

.theme-toggle .ph-moon { display: none; }
html[data-theme="dark"] .theme-toggle .ph-moon { display: block; }
html[data-theme="dark"] .theme-toggle .ph-sun  { display: none; }

.nav-toggle { display: none; }

/* mobile drawer */
@media (max-width: 979px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem var(--gutter) 1.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav[data-open="true"] { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: .95rem .25rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a:last-child { border-bottom: 0; }
  .header__cta { display: none; }
}
@media (min-width: 980px) { .nav { display: flex !important; } }

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

.hero {
  position: relative;
  padding-top: clamp(2.25rem, 5vw, 3.75rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  background:
    radial-gradient(120% 90% at 88% -10%, var(--brand-soft) 0%, transparent 58%),
    var(--bg);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.15rem);
  line-height: 1.08;
  max-width: 15ch;
}
.hero h1 .accent { color: var(--brand); }

.hero__sub {
  margin-top: 1.15rem;
  font-size: clamp(1.03rem, 1.5vw, 1.15rem);
  color: var(--text-2);
  max-width: 34ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.9rem;
}

/* hero media: one large "after", one smaller "before" tucked into the corner */
.hero__media { position: relative; }

.hero__after {
  border-radius: var(--r-media);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  background: var(--bg-sunk);
}
.hero__after img { width: 100%; height: 100%; object-fit: cover; }

.hero__before {
  position: absolute;
  left: -1.5rem;
  bottom: -2rem;
  width: 42%;
  border-radius: var(--r-media);
  overflow: hidden;
  border: 5px solid var(--bg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  background: var(--bg-sunk);
}
.hero__before img { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------- proof strip (under hero) */

.proof {
  border-block: 1px solid var(--line);
  background: var(--bg-soft);
}
.proof__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}
.proof__item {
  background: var(--bg-soft);
  padding: 1.6rem clamp(.9rem, 2vw, 1.6rem);
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.proof__value {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.proof__value i { color: var(--brand); font-size: 1.3rem; }
.proof__value .stars i { font-size: .92rem; }
.proof__label { color: var(--text-2); font-size: .9rem; line-height: 1.45; }

/* Stars carry their own colour so every place that uses them is gold
   without needing a local override. */
.stars { display: inline-flex; gap: 1px; line-height: 1; color: var(--star); }
.stars i { color: inherit; }
.review__stars { font-size: .95rem; }

/* -------------------------------------------------------------- reviews */

.reviews__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}
.reviews__top h2 { font-size: clamp(1.85rem, 4.2vw, 2.85rem); }
.reviews__score {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .7rem 1.15rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
}
.reviews__score b {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
}
/* Direct child only. A plain `.reviews__score span` also matches the nested
   `<span class="stars">` and repaints the stars grey. */
.reviews__score > span { font-size: .875rem; color: var(--text-2); line-height: 1.3; }

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(285px, 340px);
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scrollbar-width: thin;
}
.rail > * { scroll-snap-align: start; }
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: var(--r-pill); }
.rail::-webkit-scrollbar-track { background: transparent; }

.review {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  padding: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
}
.review__quote { font-size: 1rem; color: var(--text); line-height: 1.6; }
.review__meta { margin-top: auto; display: flex; align-items: center; gap: .7rem; }
.review__avatar {
  width: 38px; height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
}
.review__name { font-weight: 700; font-size: .935rem; line-height: 1.25; }
.review__date { font-size: .82rem; color: var(--text-3); }

/* ---------------------------------------------------- before / after work */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.75rem;
}
.filter {
  padding: .5rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--panel);
  color: var(--text-2);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.filter:hover { border-color: var(--brand); color: var(--brand); }
.filter[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-on);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.25rem;
}

.work {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.work:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--line-strong); }
.work[hidden] { display: none; }

.work__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--line);
}

/* Each half is a real button so the viewer opens by keyboard as well as tap. */
.work__shot {
  display: block;
  position: relative;
  padding: 0;
  border: 0;
  margin: 0;
  background: var(--bg-sunk);
  overflow: hidden;
  cursor: default;
}
html.lb-ready .work__shot { cursor: zoom-in; }
.work__shot:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; z-index: var(--z-base); }

.work__pair img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--bg-sunk);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1);
}
html.lb-ready .work__shot:hover img,
html.lb-ready .work__shot:focus-visible img { transform: scale(1.05); }

/* the magnifier hint only appears where a pointer can actually hover */
.work__shot::after {
  content: "\e30c";                       /* magnifying-glass-plus */
  font-family: 'Phosphor';
  position: absolute;
  right: .55rem;
  bottom: .55rem;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: rgba(9, 15, 26, .62);
  color: #fff;
  font-size: 1rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
html.lb-ready .work__shot:hover::after,
html.lb-ready .work__shot:focus-visible::after { opacity: 1; transform: none; }
@media (hover: none) { .work__shot::after { display: none; } }
.work__cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .9rem 1.1rem;
  font-size: .92rem;
  font-weight: 600;
}
.work__tag {
  flex: none;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-soft);
  padding: .22rem .6rem;
  border-radius: var(--r-pill);
}

.work-note {
  margin-top: 1.5rem;
  font-size: .925rem;
  color: var(--text-3);
}

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

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.1rem;
}
/* 5 cells, exactly 5 items: one wide lead, two mid, two mid */
.bento > :nth-child(1) { grid-column: span 6; }
.bento > :nth-child(2),
.bento > :nth-child(3) { grid-column: span 3; }
.bento > :nth-child(4),
.bento > :nth-child(5) { grid-column: span 3; }

.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}
.tile:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.tile__body { padding: 1.6rem; }
.tile__body h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.tile__body p { color: var(--text-2); font-size: .96rem; }

.tile__icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: var(--brand-soft);
  color: var(--brand-ink);
  margin-bottom: 1rem;
}
.tile__icon i { font-size: 1.4rem; }

.tile__list {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: 1.1rem;
}
.tile__list li {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .75rem;
  border-radius: var(--r-pill);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: .845rem;
  font-weight: 600;
  color: var(--text-2);
}
.tile__list i { color: var(--green); font-size: .95rem; }

/* lead tile carries a real photo alongside the copy */
.tile--lead { display: grid; grid-template-columns: 1.05fr 1fr; align-items: stretch; }
.tile--lead .tile__body { padding: clamp(1.6rem, 3vw, 2.4rem); align-self: center; }
.tile--lead figure { margin: 0; height: 100%; min-height: 260px; }
.tile--lead img { width: 100%; height: 100%; object-fit: cover; }

/* photo-topped tiles */
.tile--photo figure { margin: 0; }
.tile--photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* ------------------------------------------------------------- pricing */

.pricing {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 2rem;
  align-items: center;
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1.4rem, 3vw, 2.4rem);
}
.price-row + .price-row { border-top: 1px solid var(--line); }
.price-row h3 { font-size: 1.32rem; }
.price-row p { margin-top: .4rem; color: var(--text-2); font-size: .96rem; max-width: 48ch; }

.price-tag { text-align: right; }
.price-tag small {
  display: block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: .15rem;
}
.price-tag b {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--brand);
  line-height: 1;
}

.price-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem clamp(1.4rem, 3vw, 2.4rem);
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  font-size: .93rem;
  color: var(--text-2);
}

/* ---------------------------------------------------------------- steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 16px);
}
.step { position: relative; text-align: center; }
.step__dot {
  position: relative;
  width: 56px; height: 56px;
  margin: 0 auto 1.1rem;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: var(--brand-on);
  box-shadow: var(--shadow-md);
}
.step__dot i { font-size: 1.5rem; }
.step h3 { font-size: 1.2rem; margin-bottom: .45rem; }
.step p { color: var(--text-2); font-size: .965rem; max-width: 32ch; margin-inline: auto; }

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

.about {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about figure {
  margin: 0;
  border-radius: var(--r-media);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  background: var(--bg-sunk);
}
.about figure img { width: 100%; height: 100%; object-fit: cover; }
.about h2 { font-size: clamp(1.85rem, 4.2vw, 2.7rem); }
.about p { margin-top: 1.1rem; color: var(--text-2); font-size: 1.045rem; max-width: 56ch; }

.badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.75rem; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem 1rem;
  border-radius: var(--r-pill);
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid color-mix(in srgb, var(--green) 24%, transparent);
  font-size: .885rem;
  font-weight: 700;
}
.badge i { font-size: 1.05rem; }

/* ----------------------------------------------------------------- area */

.area {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}
.area h2 { font-size: clamp(1.7rem, 3.6vw, 2.35rem); }
.area > div > p { margin-top: 1rem; color: var(--text-2); max-width: 46ch; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li {
  padding: .5rem 1rem;
  border-radius: var(--r-pill);
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-2);
}
.area__note { margin-top: 1.25rem; font-size: .92rem; color: var(--text-3); }

/* ----------------------------------------------------------------- form */

.quote {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.quote h2 { font-size: clamp(1.85rem, 4.2vw, 2.7rem); }
.quote__lead { margin-top: 1rem; color: var(--text-2); max-width: 44ch; }

.contact-list { margin-top: 2rem; display: grid; gap: 1rem; }
.contact-list a, .contact-list div {
  display: flex;
  align-items: center;
  gap: .9rem;
  color: var(--text);
  font-weight: 600;
}
.contact-list a:hover { color: var(--brand); text-decoration: none; }
.contact-list i {
  width: 42px; height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 1.25rem;
}
.contact-list small {
  display: block;
  font-weight: 500;
  font-size: .8rem;
  color: var(--text-3);
  letter-spacing: .02em;
}

.form-card {
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-md);
}

/* align-content:start keeps inputs at their natural height when a neighbouring
   field in the same row is taller because it carries a hint line. */
.field { display: grid; gap: .45rem; margin-bottom: 1.15rem; align-content: start; }
.field > label { font-size: .9rem; font-weight: 700; }
.field .hint { font-size: .8rem; color: var(--text-3); }
.field .req { color: var(--brand); }

.field input, .field select, .field textarea {
  width: 100%;
  padding: .8rem .95rem;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-input);
  color: var(--text);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { resize: vertical; min-height: 118px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(1.28rem), calc(100% - 14px) calc(1.28rem);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.6rem;
}

.field .error {
  font-size: .84rem;
  font-weight: 600;
  color: #c0281f;
  min-height: 0;
}
html[data-theme="dark"] .field .error { color: #ff8f85; }
.field[data-invalid="true"] input,
.field[data-invalid="true"] select,
.field[data-invalid="true"] textarea { border-color: #c0281f; }
html[data-theme="dark"] .field[data-invalid="true"] input,
html[data-theme="dark"] .field[data-invalid="true"] select,
html[data-theme="dark"] .field[data-invalid="true"] textarea { border-color: #ff8f85; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.honey { position: absolute; left: -9999px; opacity: 0; }

.form-note { margin-top: .9rem; font-size: .84rem; color: var(--text-3); text-align: center; }

.form-status {
  display: none;
  gap: .8rem;
  align-items: flex-start;
  margin-bottom: 1.2rem;
  padding: 1rem 1.15rem;
  border-radius: var(--r-input);
  font-size: .95rem;
  line-height: 1.5;
}
.form-status[data-show="true"] { display: flex; }
.form-status i { font-size: 1.3rem; flex: none; margin-top: 1px; }
.form-status--ok {
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid color-mix(in srgb, var(--green) 30%, transparent);
}
.form-status--err {
  background: color-mix(in srgb, #c0281f 10%, transparent);
  color: #c0281f;
  border: 1px solid color-mix(in srgb, #c0281f 32%, transparent);
}
html[data-theme="dark"] .form-status--err { color: #ff8f85; }

.spinner {
  width: 1.05em; height: 1.05em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: var(--r-pill);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

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

.footer {
  background: var(--bg-sunk);
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 5vw, 3.75rem) 1.5rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
}
.footer__grid h3 {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1rem;
}
.footer__links { display: grid; gap: .15rem; }
.footer__links a {
  color: var(--text-2);
  font-size: .95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  min-height: 40px;          /* thumb-sized, these are real navigation */
  width: fit-content;
}
.footer__links a:hover { color: var(--brand); text-decoration: none; }
.footer__about p { margin-top: 1rem; color: var(--text-2); font-size: .95rem; max-width: 38ch; }
.footer__social { display: flex; gap: .6rem; margin-top: 1.25rem; }

.footer__bottom {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  font-size: .87rem;
  color: var(--text-3);
}

/* ------------------------------------------------ full size photo viewer */

.lightbox {
  width: 100%;
  max-width: 100vw;
  height: 100%;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  /* Painted on the dialog itself rather than only on ::backdrop. Backdrop
     support is patchy across engines and it does not render at all in some
     headless captures, which would leave the photo floating over a lit page. */
  background: rgba(7, 11, 20, .97);
  color: #f2f6ff;
  overflow: hidden;
}
.lightbox:not([open]) { display: none; }
.lightbox::backdrop { background: rgba(7, 11, 20, .97); }

.lightbox__inner,
.lightbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.lightbox__bar,
.lightbox__foot {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .75rem clamp(.75rem, 3vw, 1.5rem);
}
.lightbox__bar { justify-content: space-between; }
.lightbox__foot { justify-content: center; }

.lightbox__cap {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .55rem;
  min-width: 0;
  font-size: .98rem;
  font-weight: 600;
}
.lightbox__state {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: .2rem .6rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .14);
}
.lightbox__count { font-size: .9rem; color: #b8c6e0; font-variant-numeric: tabular-nums; }

.lightbox__btn {
  width: 46px; height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, transform .12s ease;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .4); }
.lightbox__btn:active { transform: scale(.94); }
.lightbox__btn:focus-visible { outline: 3px solid #7cb5ff; outline-offset: 2px; }
.lightbox__btn i { font-size: 1.3rem; }

.lightbox__stage {
  position: relative;
  min-height: 0;
  display: grid;
  /* Explicit, bounded row. Left implicit, the row sizes itself to the photo's
     natural height and the image's max-height:100% then has nothing to clamp
     against, so a 1400px photo spills over the controls below it. */
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  padding-inline: clamp(.5rem, 2vw, 1.5rem);
  overflow: hidden;
  touch-action: pan-y;
}

/* Prev/next sit on the photo itself, not tucked in the footer, so the way to
   move between before and after is obvious without reading anything.
   Absolutely positioned: pulled out of the stage's grid flow so they never
   compete with the image for the single centred cell. */
.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: var(--z-base);
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--r-pill);
  background: rgba(9, 15, 26, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}
@supports not (backdrop-filter: blur(1px)) { .lightbox__arrow { background: rgba(9, 15, 26, .78); } }
.lightbox__arrow i { font-size: 1.5rem; }
.lightbox__arrow--prev { left: clamp(.35rem, 2vw, 1.25rem); }
.lightbox__arrow--next { right: clamp(.35rem, 2vw, 1.25rem); }
.lightbox__arrow:hover { background: rgba(9, 15, 26, .8); border-color: rgba(255, 255, 255, .45); }
.lightbox__arrow:hover.lightbox__arrow--prev { transform: translateY(-50%) translateX(-3px); }
.lightbox__arrow:hover.lightbox__arrow--next { transform: translateY(-50%) translateX(3px); }
.lightbox__arrow:active { transform: translateY(-50%) scale(.92); }
.lightbox__arrow:focus-visible { outline: 3px solid #7cb5ff; outline-offset: 2px; }

@media (max-width: 719px) {
  .lightbox__arrow { width: 44px; height: 44px; }
  .lightbox__arrow i { font-size: 1.3rem; }
}
.lightbox__stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--r-media);
  opacity: 1;
  transition: opacity .2s ease;
}
.lightbox[data-loading="true"] .lightbox__stage img { opacity: .25; }

/* spinner while the full size file arrives */
.lightbox__stage::after {
  content: "";
  position: absolute;
  width: 34px; height: 34px;
  border: 3px solid rgba(255, 255, 255, .3);
  border-right-color: transparent;
  border-radius: var(--r-pill);
  opacity: 0;
  pointer-events: none;
}
.lightbox[data-loading="true"] .lightbox__stage::after {
  opacity: 1;
  animation: spin .7s linear infinite;
}

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

/* ---------------------------------------------------------- back to top */

.to-top {
  position: fixed;
  right: clamp(1rem, 4vw, 1.75rem);
  bottom: clamp(1rem, 4vw, 1.75rem);
  z-index: var(--z-overlay);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--panel);
  color: var(--text-2);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s,
              border-color .16s ease, color .16s ease, background-color .16s ease;
}
.to-top[data-show="true"] { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--brand); color: var(--brand); }
.to-top:active { transform: scale(.92); }
.to-top i { font-size: 1.35rem; }

/* Clears the sticky call bar (its own height plus the iPhone home
   indicator) so the two floating controls never sit on top of each other. */
@media (max-width: 719px) {
  .to-top { bottom: calc(72px + env(safe-area-inset-bottom) + .85rem); }
}

/* ------------------------------------------------------- sticky mobile bar */

.callbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-overlay);
  display: none;
  gap: .45rem;
  /* Its own tighter gutter, not var(--gutter): three buttons have to fit
     inside 320px without any of them running off the edge. */
  padding: .55rem .7rem calc(.55rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
@supports not (backdrop-filter: blur(1px)) { .callbar { background: var(--bg); } }

.callbar .btn {
  flex: 1 1 0;
  min-width: 0;              /* lets a button shrink below its content width */
  padding: .78rem .4rem;
  font-size: .9rem;
  gap: .35rem;
}
.callbar .btn i { flex: none; font-size: 1.05em; }

/* Under 400px the labels alone carry the meaning, and dropping the glyphs
   is what keeps all three buttons on screen. */
@media (max-width: 399px) {
  .callbar .btn i { display: none; }
  .callbar .btn { font-size: .875rem; padding-inline: .3rem; }
}

/* -------------------------------------------------------------- reveal */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s cubic-bezier(.16, 1, .3, 1),
                transform .55s cubic-bezier(.16, 1, .3, 1);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .reveal.is-in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ---------------------------------------------------------- responsive */

@media (max-width: 1023px) {
  .hero__grid { grid-template-columns: 1fr; gap: clamp(3rem, 8vw, 4rem); }
  .hero__sub { max-width: 46ch; }
  .hero__before { width: 36%; left: -.75rem; bottom: -1.25rem; border-width: 4px; }

  .tile--lead { grid-template-columns: 1fr; }
  .tile--lead figure { min-height: 220px; order: -1; }

  .about { grid-template-columns: 1fr; }
  .about figure { max-width: 380px; aspect-ratio: 4 / 3; }

  .area, .quote { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .proof__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: 1fr; }
  .bento > * { grid-column: 1 / -1 !important; }
}

@media (max-width: 719px) {
  html { scroll-padding-top: 84px; }
  /* clears the fixed call bar plus the iPhone home indicator */
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .callbar { display: flex; }

  .hero { padding-bottom: clamp(3.5rem, 9vw, 4.5rem); }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__before { width: 40%; }

  .steps { grid-template-columns: 1fr; gap: 1.75rem; }
  .steps::before { display: none; }
  .step { text-align: left; display: grid; grid-template-columns: 56px 1fr; gap: 0 1.1rem; }
  .step__dot { margin: 0; grid-row: span 2; }
  .step p { margin-inline: 0; max-width: none; }

  .price-row { grid-template-columns: 1fr; gap: .75rem; }
  .price-tag { text-align: left; }
  .price-tag b { font-size: 2.1rem; }

  .field-row { grid-template-columns: 1fr; gap: 0; }

  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  .reviews__top { align-items: flex-start; }
  .work-grid { grid-template-columns: 1fr; }
}

/* Keep the proof strip two-up on phones. Stacking all four pushes the
   reviews below the fold, and the rating is the whole point of the strip. */
@media (max-width: 719px) {
  .proof__item { padding: 1.15rem 1rem; }
  .proof__value { font-size: 1.12rem; }
  .proof__label { font-size: .845rem; }
}

@media (max-width: 359px) {
  .proof__grid { grid-template-columns: 1fr; }
  .brand__name { font-size: 1.06rem; }
  .brand img { width: 34px; }
}

@media print {
  .header, .callbar, .filters, .form-card { display: none; }
  body { background: #fff; color: #000; }
}
