/* LAYOUT: full-width color bands, each with a centered inner column.
   Shared by every page on the site. */
:root {
  --ground: #f1f5f4;     /* page background, a faint sea-glass white */
  --surface: #ffffff;    /* cards */
  --ink: #17262a;        /* main text, dark basalt */
  --muted: #55686c;      /* secondary text */
  --line: #d6e0df;       /* borders */
  --reef: #0b7a96;       /* brand accent: ocean blue */
  --reef-ink: #ffffff;   /* text on the accent */
  --basalt: #17262a;     /* dark band background */
  --basalt-ink: #e8f0ef; /* text on dark band */
  --sun: #f0ac2c;        /* stars and "most popular" label */
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0f1a1c; --surface: #16252a; --ink: #e6efee; --muted: #9db0b2;
    --line: #26393e; --reef: #3db3cf; --reef-ink: #06232b; --basalt: #0a1315;
    --basalt-ink: #e6efee; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0f1a1c; --surface: #16252a; --ink: #e6efee; --muted: #9db0b2;
  --line: #26393e; --reef: #3db3cf; --reef-ink: #06232b; --basalt: #0a1315;
  --basalt-ink: #e6efee; color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
}
img { max-width: 100%; }
a { color: var(--reef); }
:focus-visible { outline: 3px solid var(--reef); outline-offset: 3px; }

/* Every band gets the same side gutter on its inner column */
.band { padding-block: 72px; }
.wrap {
  max-width: 1120px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--display); line-height: 1; text-wrap: balance; margin: 0; letter-spacing: .01em; }
h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); text-transform: uppercase; }
.eyebrow { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--reef); margin: 0 0 10px; }
.lede { color: var(--muted); max-width: 60ch; margin: 14px 0 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 1rem var(--body); text-decoration: none;
  padding: 14px 22px; border-radius: 6px; border: 2px solid transparent;
}
.btn-primary { background: var(--reef); color: var(--reef-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--reef); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Header ---------- */
header { border-bottom: 1px solid var(--line); background: var(--surface); }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.logo { font-family: var(--display); font-weight: 900; font-size: 1.7rem; text-transform: uppercase; color: var(--ink); text-decoration: none; letter-spacing: .02em; }
.logo span { color: var(--reef); }
.head-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.phone { font-weight: 700; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.head-actions .btn { padding: 10px 16px; }

/* ---------- Home hero ---------- */
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(3rem, 8vw, 5.6rem); text-transform: uppercase; font-weight: 900; }
.hero h1 em { font-style: normal; color: var(--reef); display: block; }
.hero-copy { min-width: 0; }
.rating { display: flex; align-items: center; gap: 10px; margin-top: 24px; font-weight: 600; flex-wrap: wrap; }
.stars { color: var(--sun); letter-spacing: 2px; font-size: 1.15rem; }
.rating small { color: var(--muted); font-weight: 500; font-size: .95rem; }

/* ---------- Before/after slider ---------- */
.ba-wrap { max-width: 460px; width: 100%; justify-self: center; }
.ba { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 3 / 4; max-width: 100%; border: 1px solid var(--line); background: var(--line); }
/* Two photos stacked on top of each other. The "before" photo sits on top
   and gets cut off at the slider position, revealing "after" underneath. */
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.ba .before-img { clip-path: inset(0 calc(100% - var(--split, 50%)) 0 0); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 3px; background: #fff; transform: translateX(-50%); pointer-events: none; }
.ba-line::after {
  content: "⇆"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #17262a;
  display: grid; place-items: center; font-weight: 700;
}
.tag { position: absolute; top: 12px; font: 700 .75rem var(--body); letter-spacing: .1em; text-transform: uppercase; background: rgba(23,38,42,.8); color: #fff; padding: 5px 9px; border-radius: 4px; }
.tag.before { left: 12px; } .tag.after { right: 12px; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-caption { font-size: .9rem; color: var(--muted); margin: 10px 0 0; }
.photo { margin: 0; }
.photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }

/* ---------- Services grid (home) ---------- */
.services { background: var(--surface); border-block: 1px solid var(--line); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
/* Each card is one big link: the heading's link stretches over the whole card. */
.svc { position: relative; border: 1px solid var(--line); border-radius: 8px; padding: 22px; background: var(--ground); min-width: 0; transition: border-color .15s; }
.svc:hover { border-color: var(--reef); }
.svc h3 { font-size: 1.6rem; text-transform: uppercase; }
.svc h3 a { color: inherit; text-decoration: none; }
.svc h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 8px; }
.svc p { margin: 8px 0 0; color: var(--muted); font-size: .97rem; }
.svc .more { display: inline-block; margin-top: 14px; font-weight: 700; font-size: .92rem; color: var(--reef); }
.svc .btn { position: relative; z-index: 1; }
.svc.feature { grid-column: span 3; background: var(--basalt); color: var(--basalt-ink); border-color: var(--basalt); display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 28px; }
.svc.feature:hover { border-color: var(--reef); }
.svc.feature h3 { font-size: 2.2rem; }
.svc.feature p { color: var(--basalt-ink); opacity: .82; max-width: 62ch; }
.svc.feature .more { color: var(--basalt-ink); text-decoration: underline; text-underline-offset: 3px; }
.svc.feature .label { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sun); margin: 0 0 8px; opacity: 1; }

/* ---------- Window showcase (home) ---------- */
.showcase .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.showcase-copy { min-width: 0; }

/* ---------- Review cards ---------- */
.rv-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.rv-nav { display: flex; gap: 8px; }
.rv-nav button {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.rv-nav button:hover { border-color: var(--reef); color: var(--reef); }
.rv-nav button:disabled { opacity: .35; cursor: default; }
/* The home page track scrolls sideways; each card snaps into place. */
.rv-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(360px, 85%);
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  margin-top: 28px; padding-bottom: 12px; align-items: start; scrollbar-width: thin;
}
.rv { scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; min-width: 0; }
.rv-photo { aspect-ratio: 4 / 3; background: var(--line); }
.rv-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.rv-pair figure { margin: 0; position: relative; min-width: 0; }
.rv-pair figcaption { position: absolute; top: 8px; left: 8px; font: 700 .7rem var(--body); letter-spacing: .1em; text-transform: uppercase; background: rgba(23,38,42,.8); color: #fff; padding: 4px 7px; border-radius: 4px; }
.rv-body { padding: 20px; display: grid; gap: 12px; }
.rv-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.rv-svc { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--reef); }
.rv-text { margin: 0; font-size: .98rem; }
.rv-name { margin: 0; display: flex; align-items: center; gap: 10px; font-weight: 700; flex-wrap: wrap; }
.rv-name small { color: var(--muted); font-weight: 500; }
.rv-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--reef); color: var(--reef-ink); font-weight: 700; }
.rv-all { display: inline-block; margin-top: 16px; font-weight: 600; }

/* ---------- Commercial (home) ---------- */
.panel { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 30px; min-width: 0; }
.panel h2 { font-size: clamp(1.9rem, 4vw, 2.4rem); }
.panel p { color: var(--muted); }
.commercial { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.commercial > div { max-width: 60ch; }

/* ---------- Service pages ---------- */
.crumb { display: inline-block; font-weight: 600; text-decoration: none; margin-bottom: 20px; }
.crumb:hover { text-decoration: underline; }
.svc-hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.svc-hero h1 { font-size: clamp(2.8rem, 7vw, 4.8rem); text-transform: uppercase; font-weight: 900; }
.svc-hero .hero-copy > .rating { margin-top: 20px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 28px; margin-top: 28px; justify-items: center; }
.how { background: var(--surface); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 28px; margin: 36px 0 0; list-style: none; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; min-width: 0; border-top: 2px solid var(--line); padding-top: 16px; }
.steps li::before { content: counter(s); font-family: var(--display); font-weight: 900; font-size: 3rem; line-height: 1; color: var(--reef); display: block; }
.steps h3 { font-size: 1.45rem; text-transform: uppercase; margin-top: 8px; }
.steps p { color: var(--muted); margin: 6px 0 0; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; margin-top: 28px; align-items: start; }
.others { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.others a { border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; text-decoration: none; color: var(--ink); font-weight: 600; background: var(--surface); }
.others a:hover { border-color: var(--reef); color: var(--reef); }

/* ---------- Final CTA ---------- */
.cta-band { background: var(--basalt); color: var(--basalt-ink); }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { max-width: 18ch; }
.cta-band p { opacity: .82; margin: 10px 0 0; }
.cta-band .select { color: var(--basalt-ink); }

/* ---------- Footer ---------- */
footer { padding-block: 40px; font-size: .95rem; color: var(--muted); }
footer .wrap { display: grid; grid-template-columns: 1.6fr 1.2fr 1fr 1fr; gap: 24px; }
footer h4 { margin: 0 0 8px; color: var(--ink); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
footer a { color: var(--muted); }
.select { user-select: all; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Phones ---------- */
@media (max-width: 820px) {
  .hero .wrap, .showcase .wrap, .svc-hero .wrap { grid-template-columns: 1fr; }
  footer .wrap { grid-template-columns: 1fr 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc.feature { grid-column: auto; grid-template-columns: 1fr; }
  .band { padding-block: 52px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
