/*
Theme Name: Kaldess AC
Theme URI: https://www.kaldessac.com/
Author: Kaldess AC Inc.
Description: The Kaldess AC site. Family owned heating and air conditioning in Woodland Hills. Classic theme, no plugins required.
Version: 1.0.5
Requires at least: 5.6
Tested up to: 6.8
Requires PHP: 7.0
License: GPL-2.0-or-later
Text Domain: kaldess
*/

/* ------------------------------------------------------------------ type -- */

@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

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

:root {
  /* The logo's three colors, exactly. */
  --navy: #00108a;
  --red: #c8060a;
  --teal: #0a9a90;

  /* White page, near-neutral greys; the logo navy is the one accent. */
  --ink: oklch(0.2 0.055 266);
  --stage: #fff;
  /* Support text is ink at a smaller size, never grey (Sam, 2026-11-06). */
  --ink-2: var(--ink);
  --bg: #fff;
  --card: #fff;
  --surface: oklch(0.972 0.002 266);
  --accent-wash: oklch(0.955 0.022 268);
  --line: oklch(0.91 0.004 266);
  --line-2: oklch(0.8 0.008 266);
  --band: oklch(0.21 0.075 266);
  --band-ink: oklch(0.96 0.01 266);
  --band-ink-2: oklch(0.8 0.03 266);
  --red-dk: oklch(0.43 0.18 27);
  --red-wash: oklch(0.96 0.02 25);
  --accent: var(--navy);
  --accent-dk: oklch(0.2 0.12 266);
  --accent-lt: oklch(0.74 0.12 268);

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wide: 108%;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.45rem, 1.2rem + 0.9vw, 1.85rem);
  --step-3: clamp(1.9rem, 1.4rem + 1.9vw, 2.9rem);
  --step-4: clamp(2.35rem, 1.45rem + 3.6vw, 4.6rem);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 76rem;
  --sec: clamp(4rem, 3rem + 5vw, 7.5rem);
  --radius: 12px;
  --r-panel: clamp(1.25rem, 2.2vw, 1.75rem);
  --r-card: 1.25rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --z-sticky: 20;
  --z-menu: 30;
  --z-drawer: 40;
  --z-callbar: 50;
  --head-h: 4.25rem;
  --head-gap: 0.75rem;
}

/* ----------------------------------------------------------------- base -- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--head-h) + var(--head-gap) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-stretch: 100%;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
ul[role="list"] { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

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

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--accent); color: #fff; padding: 0.75rem 1rem; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }

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

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* Display type: Archivo pulled wide and heavy, like lettering on a truck door. */
.hero__h, .page-h, .sec-h, .contact__num, .side-card__num, .license__n {
  font-stretch: var(--wide);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.06;
  color: var(--ink);
}

.sec-h { font-size: var(--step-3); max-width: 22ch; }

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

.btn-call, .btn-solid, .btn-quiet {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 3rem; padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-weight: 700; font-stretch: 106%; font-size: 1rem; line-height: 1.1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.18s var(--ease-out), color 0.18s var(--ease-out), border-color 0.18s var(--ease-out), transform 0.18s var(--ease-out);
}
.btn-call:active, .btn-solid:active, .btn-quiet:active { transform: translateY(1px); }

/* Red means "call". Nothing else on the site is this red. */
.btn-call { background: var(--red); color: #fff; border: 0; }
.btn-call:hover { background: var(--red-dk); }
.btn-call--lg { min-height: 3.4rem; padding-inline: 1.6rem; font-size: 1.1rem; }
.btn-call .icon { width: 1.2em; height: 1.2em; }

.btn-solid { background: var(--accent); color: #fff; border: 0; }
.btn-solid:hover { background: var(--accent-dk); }

.btn-quiet { background: transparent; color: var(--ink); border: 1.5px solid var(--line-2); }
.btn-quiet:hover { border-color: var(--ink); }
.btn-quiet--lg { min-height: 3.4rem; padding-inline: 1.5rem; font-size: 1.05rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 700; font-stretch: 106%; color: var(--accent);
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.25em;
}
.link-arrow .icon { transition: transform 0.2s var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ------------------------------------------------------------- masthead -- */

.masthead {
  position: sticky; top: var(--head-gap); z-index: var(--z-sticky);
  margin: var(--head-gap) auto 0;
  width: calc(100% - var(--gutter) * 2); max-width: var(--max);
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease-out), border-color 0.3s;
}
/* Logged in, WordPress's toolbar sits on top of the page (32px, 46px on
   small screens, and it scrolls away below 600px). Keep the menu under it. */
.admin-bar .masthead { top: calc(var(--head-gap) + 32px); }
@media (max-width: 782px) { .admin-bar .masthead { top: calc(var(--head-gap) + 46px); } }
@media (max-width: 600px) { .admin-bar .masthead { top: var(--head-gap); } }
.masthead.is-stuck { box-shadow: 0 10px 30px -14px oklch(0.2 0.06 266 / 0.28); border-color: transparent; }

.masthead__in {
  display: flex; align-items: center; gap: 1.25rem;
  height: var(--head-h); max-width: none; padding-inline: 1.1rem 0.45rem;
}

.brand { flex: none; display: block; margin-left: -4px; }
.brand img { width: auto; height: 3rem; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 0.15rem; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link {
  display: block; padding: 0.55rem 0.7rem; border-radius: 999px;
  font-weight: 600; font-size: 0.97rem; text-decoration: none; color: var(--ink);
}
.nav__link:hover, .nav__link[aria-current] { color: var(--accent); }
.nav__link[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.45em; }
.has-menu .nav__link { padding-right: 0.2rem; }
.nav__more {
  display: grid; place-items: center; width: 1.75rem; height: 2rem;
  background: none; border: 0; border-radius: 6px; cursor: pointer; color: var(--ink-2);
}
.nav__more .icon { width: 1rem; height: 1rem; transition: transform 0.2s var(--ease-out); }
.has-menu.is-open .nav__more .icon { transform: rotate(180deg); }

.menu {
  position: absolute; top: calc(100% + 0.9rem); left: -0.5rem; z-index: var(--z-menu);
  width: 21rem; padding: 0.5rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 1.1rem;
  box-shadow: 0 1px 2px oklch(0.2 0.05 266 / 0.06), 0 12px 32px -8px oklch(0.2 0.05 266 / 0.18);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.16s var(--ease-out), transform 0.16s var(--ease-out), visibility 0s 0.16s;
}
/* Hover bridge, so the pointer can cross the gap to the menu. */
.menu::before { content: ""; position: absolute; inset: -1.1rem 0 auto; height: 1.1rem; }
.has-menu:hover .menu, .has-menu.is-open .menu, .has-menu:focus-within .menu {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.16s var(--ease-out), transform 0.16s var(--ease-out), visibility 0s;
}
.menu a {
  display: grid; gap: 0.1rem; padding: 0.65rem 0.8rem; border-radius: 0.8rem; text-decoration: none;
}
.menu a:hover, .menu a[aria-current] { background: var(--surface); }
.menu__t { font-weight: 700; font-stretch: 106%; }
.menu__l { font-size: var(--step--1); color: var(--ink-2); line-height: 1.4; }

.masthead__call .btn-call { min-height: 3.2rem; }

.menu-btn {
  display: none; align-items: center; gap: 0.45rem;
  min-height: 3.2rem; padding: 0.5rem 1.1rem; margin-left: auto;
  background: var(--surface); border: 0; border-radius: 999px;
  font-weight: 700; cursor: pointer;
}

.drawer {
  position: fixed; inset: 0; z-index: calc(var(--z-sticky) - 1);
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); border-top: 1px solid var(--line);
  padding: calc(var(--head-h) + var(--head-gap) * 3) var(--gutter) 7rem;
}
.drawer[hidden] { display: none; }
.has-drawer { overflow: hidden; }
.drawer__in { display: grid; gap: 1.75rem; max-width: 34rem; }
.drawer__h {
  display: block; margin-bottom: 0.4rem;
  font-weight: 800; font-stretch: var(--wide); font-size: var(--step-2); text-decoration: none; color: var(--accent);
}
.drawer__group li a, .drawer__plain a {
  display: block; padding: 0.6rem 0; border-bottom: 1px solid var(--line);
  font-weight: 600; text-decoration: none;
}
.drawer__plain a { font-size: var(--step-1); font-weight: 700; font-stretch: 106%; }

@media (prefers-reduced-motion: no-preference) {
  .drawer:not([hidden]) { animation: drop 0.28s var(--ease-out); }
}

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

/* One real job photo, full width, words over a dark fade. Calm on purpose:
   one promise, one proof, one call button. */
.hero { padding-top: 0.75rem; }
.hero__frame {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; align-items: center;
  min-height: clamp(36rem, calc(100svh - var(--head-h) - var(--head-gap) * 2 - 1rem), 48rem);
  border-radius: var(--r-panel);
  /* The white the condenser video was rendered on (decodes as exactly #fff),
     so the video has no edges. Change both together or the frame shows. */
  background: var(--stage);
}
/* The condenser fills the right of the frame. The video is cropped tight to
   the unit's full travel (620x648), so contain shows all of it, as big as fits. */
.hero__stage { position: absolute; inset: 13% 4% 0 40%; z-index: -2; }
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 50%; background: var(--stage);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent), linear-gradient(180deg, transparent, #000 2%, #000 98%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent), linear-gradient(180deg, transparent, #000 2%, #000 98%, transparent);
  mask-composite: intersect;
}
@media (min-width: 48rem) and (max-width: 74.99rem) {
  .hero__stage { inset: 16% 0 0 50%; }
}
/* The logo again, bigger. On the dark hero it uses the reversed file: the navy arrow in white. */
.hero__logo {
  position: absolute; top: clamp(1rem, 2.5vw, 1.75rem); right: clamp(1rem, 2.5vw, 1.75rem); z-index: 1; margin: 0;
}
.hero__logo img { width: clamp(9rem, 6rem + 7vw, 14.5rem); height: auto; }
.hero__frame::before {
  content: none;
}
.hero__text { padding: clamp(1.75rem, 5vw, 4.5rem) clamp(1.75rem, 5vw, 4.5rem) clamp(1.75rem, 5vw, 4.5rem) 0; max-width: 42rem; color: var(--ink); }
.hero__h { color: var(--ink); font-size: clamp(2.5rem, 1.5rem + 3.4vw, 4.4rem); max-width: 12ch; margin-top: 1.25rem; }
.hero__sub { margin-top: 1.25rem; max-width: 40ch; font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); }
.hero__act { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 2rem; }
.hero__note { display: flex; align-items: center; gap: 0.45rem; margin: 1.1rem 0 0; font-weight: 600; font-size: 0.95rem; color: var(--ink-2); }
.hero__note .icon { color: var(--accent); width: 1.1rem; height: 1.1rem; }
.hero__lic {
  position: absolute; left: 0; bottom: clamp(1rem, 2.5vw, 1.5rem); margin: 0;
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.75rem 1.25rem 0.75rem 0.9rem; border-radius: 1rem;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 12px 30px -18px oklch(0.2 0.06 266 / 0.35);
  color: var(--ink-2); font-size: 0.95rem; font-weight: 600; line-height: 1.25;
}
.hero__lic .icon { width: 1.8rem; height: 1.8rem; color: var(--accent); }
.hero__lic strong { color: var(--ink); }
.hero__lic span { display: grid; }
.hero__lic strong { font-size: 1.2rem; font-weight: 800; font-stretch: var(--wide); letter-spacing: -0.01em; }

/* Inner pages keep their plain header actions. */
.page-head .hero__act { margin-top: 1.75rem; }

/* Phones: words first, then the unit, then the license. The menu already
   carries the logo, so the hero's big logo steps aside. */
@media (max-width: 47.99rem) {
  .hero { padding-top: 0.25rem; }
  .hero__frame { display: flex; flex-direction: column; align-items: stretch; min-height: 0; border-radius: 0; }
  .hero__frame::before, .hero__logo { display: none; }
  .hero__text { order: 1; padding: 1.25rem 0 0; max-width: none; }
  .hero__h { font-size: clamp(2.35rem, 1.2rem + 5.6vw, 3rem); margin-top: 1rem; }
  .hero__sub { font-size: 1.06rem; margin-top: 0.9rem; }
  .hero__act { margin-top: 1.4rem; }
  .hero__act > * { flex: 1 1 100%; }
  .hero__note { margin-top: 0.9rem; font-size: 0.9rem; }
  .hero__stage { order: 2; position: relative; inset: auto; z-index: 0; width: min(88%, 24rem); aspect-ratio: 620 / 648; margin: 1.25rem auto 0; }
  .hero__lic { order: 3; position: static; align-self: flex-start; margin: 0.5rem 0 0.25rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__video { animation: fade-in 0.9s ease-out both; }
  .hero__text > * { animation: rise 0.9s var(--ease-out) both; }
  .hero__text > :nth-child(2) { animation-delay: 0.08s; }
  .hero__text > :nth-child(3) { animation-delay: 0.16s; }
  .hero__text > :nth-child(4) { animation-delay: 0.24s; }
  .hero__text > :nth-child(5) { animation-delay: 0.3s; }
  .hero__lic, .hero__logo { animation: fade-in 0.6s ease-out 0.6s both; }
  .swoosh path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 0.9s var(--ease-out) 0.75s forwards; }
}

.rating {
  display: inline-flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
  font-size: 0.95rem; color: var(--ink); text-decoration: none;
}
.rating__stars { display: inline-flex; color: oklch(0.78 0.16 80); }
.rating__stars .icon { width: 1.05rem; height: 1.05rem; }
.rating strong { font-weight: 800; }
.rating:hover > span:last-child { text-decoration: underline; text-underline-offset: 0.2em; }
.rating--lg { font-size: var(--step-1); margin-top: 1.25rem; }
.rating--lg .rating__stars .icon { width: 1.4rem; height: 1.4rem; }

.chip {
  display: inline-flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  padding: 0.45rem 0.85rem 0.45rem 0.7rem; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  font-size: 0.9rem; font-weight: 500; color: var(--ink); text-decoration: none;
}
.chip:hover { border-color: var(--line-2); }
.chip strong { font-weight: 800; }
.chip .icon, .chip .rating__stars .icon { width: 0.95rem; height: 0.95rem; }
.chip--glass {
  background: oklch(1 0 0 / 0.14); border-color: oklch(1 0 0 / 0.24); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.chip--glass:hover { border-color: oklch(1 0 0 / 0.5); }

.btn-glass {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 3.4rem; padding: 0.7rem 1.5rem; border-radius: 999px;
  background: oklch(1 0 0 / 0.12); color: #fff; border: 1.5px solid oklch(1 0 0 / 0.45);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-weight: 700; font-stretch: 104%; font-size: 1.05rem; text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.btn-glass:hover { background: #fff; color: var(--ink); }

/* The navy underline under the promise, lightened to read on dark: the logo's arrow, borrowed. */
.swoosh { position: relative; display: inline-block; white-space: nowrap; }
.swoosh svg {
  position: absolute; left: -2%; bottom: -0.14em; width: 104%; height: 0.3em;
  overflow: visible; fill: none; stroke: var(--red); stroke-linecap: round;
}
.swoosh path { stroke-width: clamp(4px, 0.5vw, 7px); vector-effect: non-scaling-stroke; }

/* The license, as a stamped tag with four rivets. */
.license {
  display: inline-grid; justify-items: center; gap: 0.1rem;
  padding: 0.7rem 1.4rem 0.75rem;
  border: 1.5px solid var(--ink); border-radius: 6px;
  background:
    radial-gradient(circle at 9px 9px, var(--line-2) 2.2px, transparent 2.8px),
    radial-gradient(circle at calc(100% - 9px) 9px, var(--line-2) 2.2px, transparent 2.8px),
    radial-gradient(circle at 9px calc(100% - 9px), var(--line-2) 2.2px, transparent 2.8px),
    radial-gradient(circle at calc(100% - 9px) calc(100% - 9px), var(--line-2) 2.2px, transparent 2.8px),
    var(--card);
  text-decoration: none; color: var(--ink); line-height: 1.2;
}
.license__k { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.license__n { font-size: 1.45rem; font-variant-numeric: tabular-nums; }
.license__c { font-size: 0.8rem; font-weight: 600; color: var(--ink-2); }
.license:hover { border-color: var(--accent); }

/* ------------------------------------------------- credibility row -- */

/* Reviews and license, right under the hero, at a size people can read
   from across the room. Yelp leads: it's where most of the reviews are. */
.trust { padding-block: 0.75rem var(--sec); }
.creds { display: grid; gap: 0.75rem; }
.creds__reviews { display: grid; gap: 0.75rem; }
@media (min-width: 40rem) { .creds__reviews { grid-template-columns: 1fr 1fr; } }
@media (min-width: 75rem) {
  .creds__reviews { grid-column: 1 / span 2; }
}
@media (min-width: 40rem) and (max-width: 74.99rem) {
  .creds { grid-template-columns: 1fr 1fr; }
  .creds__reviews { grid-column: 1 / -1; }
}

.badge, .cred {
  position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1rem;
  padding: 1.15rem 1.35rem; border-radius: var(--r-card);
  background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.3s var(--ease-out), translate 0.3s var(--ease-out);
}
a.badge:hover, a.cred:hover { border-color: var(--line-2); box-shadow: 0 14px 32px -20px oklch(0.2 0.06 266 / 0.35); translate: 0 -2px; }
.badge__logo { width: 2.6rem; height: 2.6rem; flex: none; }
.badge__body, .cred__body { display: grid; grid-template-columns: 1fr; row-gap: 0.2rem; min-width: 0; }
.badge__body .rating__stars .icon { width: 1rem; height: 1rem; }
.badge--yelp .rating__stars { color: #d32323; }
.badge__n { font-size: clamp(1.9rem, 1.5rem + 1vw, 2.4rem); font-weight: 800; font-stretch: var(--wide); line-height: 1; letter-spacing: -0.02em; }
.badge__l { font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
.badge__go { position: absolute; top: 1rem; right: 1rem; width: 1rem; height: 1rem; color: var(--ink); opacity: 0.5; }
.badge--yelp { background: oklch(0.975 0.012 25); border-color: oklch(0.92 0.03 25); }

.cred__icon {
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--accent-wash); color: var(--accent);
}
.cred__icon .icon { width: 1.35rem; height: 1.35rem; }
.cred__n { font-size: clamp(1.5rem, 1.15rem + 1vw, 2rem); font-weight: 800; font-stretch: var(--wide); line-height: 1.1; letter-spacing: -0.015em; }
.cred--license .cred__n { font-size: clamp(1.7rem, 1.3rem + 1vw, 2.2rem); font-variant-numeric: tabular-nums; }
.cred__l { font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
.cred--bonded .cred__n { font-size: clamp(1.3rem, 1.05rem + 0.7vw, 1.6rem); text-wrap: balance; }
@media (min-width: 75rem) {
  .creds { grid-template-columns: 1fr 1fr 0.95fr 1.05fr; }
}
@media (min-width: 64rem) {
  /* Five reviews: three across, then two wider, so no row ends in a hole. */
  .quotes:not(.quotes--page) { grid-template-columns: repeat(6, 1fr); }
  .quotes:not(.quotes--page) .quote { grid-column: span 2; }
  .quotes:not(.quotes--page) .quote:nth-child(4), .quotes:not(.quotes--page) .quote:nth-child(5) { grid-column: span 3; }
}

/* Smaller, stacked: sidebar and footer. */
.badges--stack { display: grid; gap: 0.5rem; width: 100%; }
.badges--stack .badge { padding: 0.8rem 1rem; gap: 0.75rem; }
.badges--stack .badge__logo { width: 1.9rem; height: 1.9rem; }
.badges--stack .badge__n { font-size: 1.35rem; }
.badges--stack .badge__l { font-size: 0.85rem; }
.badges--stack .badge__body .rating__stars .icon { width: 0.85rem; height: 0.85rem; }
.badges--stack .badge__go { top: 0.75rem; right: 0.75rem; }

.said__badges { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); width: min(100%, 36rem); }
.said__badges .badge { padding: 0.9rem 1.1rem; }
.said__badges .badge__n { font-size: 1.6rem; }
.badges--lg { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); max-width: 44rem; margin-top: 1.5rem; }

.chip__logo { width: 1.15rem; height: 1.15rem; }
.chip--glass .chip__logo { background: #fff; border-radius: 4px; padding: 1px; }
.btn__logo { width: 1.2rem; height: 1.2rem; }
.btn-solid .btn__logo { background: #fff; border-radius: 4px; padding: 1px; }

/* ----------------------------------------------------------- service rows -- */

.work { padding-bottom: var(--sec); }
.work > .sec-h { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.work__cols { display: grid; gap: 3rem clamp(2rem, 5vw, 5rem); }
.work__h {
  margin-bottom: 0.75rem; font-size: var(--step--1); font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2);
}
.work__h a { text-decoration: none; }
.work__h a:hover { color: var(--accent); }
.work__aside { margin-top: 2rem; color: var(--ink-2); }
.work__aside a { color: var(--accent); font-weight: 600; }

.rows { border-top: 1px solid var(--line-2); }
.rows li { border-bottom: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; align-items: center;
  padding: 1.1rem 0.25rem; text-decoration: none;
}
.row__t { font-size: var(--step-1); font-weight: 700; font-stretch: 108%; line-height: 1.25; }
.row__l { grid-column: 1; color: var(--ink-2); font-size: 0.97rem; line-height: 1.45; margin-top: 0.15rem; }
.row__a { grid-column: 2; grid-row: 1 / span 2; width: 1.35rem; height: 1.35rem; color: var(--ink-2); transition: transform 0.22s var(--ease-out), color 0.22s; }
.row:hover .row__t { color: var(--accent); }
.row:hover .row__a { transform: translateX(4px); color: var(--accent); }

@media (min-width: 56rem) {
  .work__cols { grid-template-columns: 1fr 1fr; }
}

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

.said { padding-bottom: var(--sec); }
.said__head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.25rem 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.said__links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; }

.quotes { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr)); align-items: stretch; }
.quote {
  display: grid; grid-template-rows: 1fr auto; gap: 1.25rem; padding: clamp(1.4rem, 2.5vw, 1.9rem);
  border-radius: var(--r-card); background: var(--card); border: 1px solid var(--line);
}
.quote:nth-child(3n+2) { background: var(--accent-wash); border-color: transparent; }
.quote blockquote { margin: 0; }
.quote blockquote p { font-size: clamp(1.05rem, 1rem + 0.2vw, 1.15rem); line-height: 1.55; font-weight: 400; text-wrap: pretty; }
.quote blockquote p::before { content: "\201C"; }
.quote blockquote p::after { content: "\201D"; }
.quote__by { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin: 0; }
.quote__name { font-weight: 800; font-stretch: 106%; }
.quote__src {
  padding: 0.2rem 0.65rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; text-decoration: none;
  background: var(--surface); color: var(--ink);
}
.quote:nth-child(3n+2) .quote__src { background: var(--card); }
.quote__src:hover { color: var(--accent); }

/* -------------------------------------------------------- review marquee -- */

/* Two identical tracks slide left together; when the first has moved its own
   width the second is exactly where the first began, so the loop never jumps. */
.mq {
  --gap: 0.85rem; --dur: 55s;
  display: flex; gap: var(--gap); overflow: hidden; padding-block: 0.5rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.mq__track { display: flex; gap: var(--gap); flex: none; min-width: max-content; }
@media (prefers-reduced-motion: no-preference) {
  .mq__track { animation: marquee var(--dur) linear infinite; }
  .mq:hover .mq__track, .mq:focus-within .mq__track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .mq { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-mask-image: none; mask-image: none; padding-inline: var(--gutter); }
  .mq__track--copy { display: none; }
  .mq-card { scroll-snap-align: start; }
}
@keyframes marquee { to { transform: translateX(calc(-100% - var(--gap))); } }

.mq-card { width: min(23rem, 80vw); flex: none; }
.mq-card a {
  display: grid; align-content: start; gap: 1rem; height: 100%;
  padding: 1.4rem 1.5rem 1.6rem; border-radius: var(--r-card);
  background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.3s var(--ease-out);
}
.mq-card a:hover { border-color: var(--line-2); box-shadow: 0 16px 34px -22px oklch(0.2 0.06 266 / 0.4); }
.mq-card--yelp a { background: oklch(0.985 0.008 25); }
.mq-card__head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.75rem; }
.mq-card__avatar {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; font-stretch: var(--wide); font-size: 1.1rem;
}
.mq-card--yelp .mq-card__avatar { background: #d32323; }
.mq-card__who { display: grid; gap: 0.1rem; min-width: 0; }
.mq-card__name { font-weight: 800; font-stretch: 106%; line-height: 1.2; }
.mq-card__src { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; font-weight: 600; }
.mq-card__logo { width: 0.95rem; height: 0.95rem; }
.mq-card__stars { display: inline-flex; color: oklch(0.78 0.16 80); align-self: start; }
.mq-card--yelp .mq-card__stars { color: #d32323; }
.mq-card__stars .icon { width: 0.85rem; height: 0.85rem; }
.mq-card__text { font-size: 1.02rem; line-height: 1.55; text-wrap: pretty; }

/* --------------------------------------------------------- leave a review -- */

.leave { padding-bottom: var(--sec); }
.leave__in {
  display: grid; justify-items: center; text-align: center; gap: 1.25rem;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3rem);
  border-radius: var(--r-panel); background: var(--accent-wash);
}
.leave__h {
  font-size: clamp(2.6rem, 1.6rem + 4.4vw, 5.4rem); font-weight: 800; font-stretch: var(--wide);
  letter-spacing: -0.03em; line-height: 0.98; color: var(--ink); max-width: 14ch;
}
.leave__p { max-width: 40ch; font-size: var(--step-1); line-height: 1.5; margin: 0; }
.leave__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 0.75rem; }
.leave__btn {
  display: inline-flex; align-items: center; gap: 0.85rem;
  min-height: 4.25rem; padding: 0.75rem 1.5rem 0.75rem 1rem; border-radius: 999px;
  background: var(--card); border: 1.5px solid var(--line-2); color: var(--ink); text-decoration: none;
  font-size: 1.15rem; font-weight: 600;
  transition: border-color 0.2s, box-shadow 0.3s var(--ease-out), translate 0.3s var(--ease-out);
}
.leave__btn strong { font-weight: 800; font-stretch: 106%; }
.leave__btn:hover { border-color: var(--ink); box-shadow: 0 14px 30px -18px oklch(0.2 0.06 266 / 0.45); translate: 0 -2px; }
.leave__logo { width: 2.5rem; height: 2.5rem; padding: 0.35rem; border-radius: 50%; background: var(--surface); }
.leave__btn--yelp .leave__logo { background: oklch(0.96 0.025 25); }
.leave__go { width: 1rem; height: 1rem; opacity: 0.55; }
@media (max-width: 30rem) { .leave__btn { width: 100%; justify-content: center; } }

/* The reviews page runs them as one column, larger. */
.quotes--page { grid-template-columns: repeat(auto-fit, minmax(min(24rem, 100%), 1fr)); }
.quotes--page .quote blockquote p { font-size: var(--step-1); font-weight: 600; font-stretch: 104%; }
.reviews { padding-bottom: var(--sec); }

/* ---------------------------------------------------------- photo cards -- */

.work__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.work__h--2 { margin-top: clamp(2.5rem, 4vw, 3.5rem); }
.cards { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(min(15.5rem, 100%), 1fr)); }
.card {
  position: relative; display: grid; grid-template-rows: auto 1fr; height: 100%;
  border-radius: var(--r-card); overflow: hidden; background: var(--card); border: 1px solid var(--line);
  text-decoration: none; isolation: isolate;
  transition: border-color 0.25s, box-shadow 0.35s var(--ease-out), translate 0.35s var(--ease-out);
}
.card:hover { border-color: var(--line-2); box-shadow: 0 18px 40px -22px oklch(0.2 0.06 266 / 0.35); translate: 0 -3px; }
.card__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.6s var(--ease-out); }
.card:hover .card__img img { scale: 1.04; }
.card__body { display: grid; align-content: start; gap: 0.3rem; padding: 1.1rem 3.5rem 1.25rem 1.2rem; }
.card__t { font-weight: 800; font-stretch: 108%; font-size: 1.15rem; line-height: 1.25; }
.card__l { color: var(--ink-2); font-size: 0.93rem; line-height: 1.45; }
.card__go {
  position: absolute; right: 1rem; bottom: 1.1rem; display: grid; place-items: center;
  width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--accent-wash); color: var(--accent);
  transition: background-color 0.25s, color 0.25s;
}
.card__go .icon { width: 1.05rem; height: 1.05rem; transition: transform 0.25s var(--ease-out); }
.card:hover .card__go { background: var(--accent); color: #fff; }
.card:hover .card__go .icon { transform: rotate(-45deg); }

/* Photos ease into place as they scroll in. CSS only; browsers without
   scroll timelines simply show the photo. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .card__img img, .family__photo img, .page-head__photo img {
      animation: settle linear both; animation-timeline: view(); animation-range: entry 0% cover 45%;
    }
  }
}

/* --------------------------------------------------------------- family -- *//* --------------------------------------------------------------- family -- */

.family {
  display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center;
  padding-bottom: var(--sec);
}
.family__photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-panel); background: var(--surface); }
.family__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.family__text .sec-h { margin-bottom: 1.5rem; }
.family__text p { max-width: 52ch; }
.family__text .link-arrow { margin-top: 1.25rem; }

@media (min-width: 56rem) {
  .family { grid-template-columns: 5fr 7fr; }
}

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

.area { padding-bottom: var(--sec); }
.area__head { display: grid; gap: 1rem; margin-bottom: 2.5rem; }
.area__head p { max-width: 48ch; }
.area__lists { display: grid; gap: 2.5rem clamp(2rem, 5vw, 5rem); }
.area__h {
  margin-bottom: 1rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--line-2);
  font-size: var(--step--1); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.area__valley { display: flex; flex-wrap: wrap; gap: 0.3rem 0; }
.area__valley li {
  font-size: var(--step-1); font-weight: 700; font-stretch: 108%; line-height: 1.45;
}
.area__valley li:not(:last-child)::after { content: "·"; margin-inline: 0.55rem; color: var(--accent); font-weight: 800; }
.area__county { columns: 2 8.5rem; column-gap: 1.5rem; color: var(--ink-2); font-size: 0.95rem; }
.area__county li { padding-block: 0.15rem; break-inside: avoid; }
.area__note { margin-top: 2rem; font-weight: 600; }

@media (min-width: 56rem) {
  .area { display: grid; grid-template-columns: 4fr 8fr; column-gap: clamp(2rem, 5vw, 5rem); }
  .area__head { margin-bottom: 0; align-content: start; }
  .area__lists { grid-template-columns: 7fr 5fr; }
  .area__note { grid-column: 2; }
}

/* ------------------------------------------------------------- callback -- */

.callback {
  display: grid; gap: 2rem clamp(2rem, 5vw, 5rem);
  margin-bottom: var(--sec);
  padding: clamp(1.5rem, 4vw, 3.5rem);
  background: var(--surface); border-radius: var(--r-panel);
}
.callback__intro h2 { font-size: var(--step-3); font-weight: 800; font-stretch: var(--wide); letter-spacing: -0.018em; line-height: 1.06; margin-bottom: 1rem; }
.callback__intro p { max-width: 38ch; }
.callback__or { margin-top: 1.5rem; font-weight: 600; }
.callback__or a { color: var(--red-dk); font-weight: 800; white-space: nowrap; }

.form { display: grid; gap: 1.1rem; align-content: start; }
.form__row { display: grid; gap: 1.1rem; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: grid; gap: 0.4rem; }
.field__label { font-weight: 700; font-size: 0.95rem; }
.field__opt { font-weight: 500; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3.1rem; padding: 0.7rem 0.85rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--card); border: 1.5px solid var(--line-2); border-radius: var(--radius);
  transition: border-color 0.15s;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23162040' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.85rem center; background-size: 1.1rem;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--accent); outline-offset: 1px; }
.form .btn-solid { justify-self: start; min-height: 3.25rem; padding-inline: 1.5rem; margin-top: 0.25rem; }
.form__error {
  margin: 0; padding: 0.8rem 1rem; border-radius: var(--radius);
  background: var(--red-wash); color: var(--red-dk); font-weight: 600;
}
.callback__done {
  display: flex; gap: 1rem; align-items: start; align-self: start;
  padding: 1.25rem 1.4rem; background: var(--card); border: 1.5px solid var(--accent); border-radius: var(--radius);
}
.callback__done > .icon { width: 1.75rem; height: 1.75rem; color: var(--accent); }
.callback__done-h { font-weight: 800; font-stretch: 108%; font-size: var(--step-1); margin-bottom: 0.25rem; }
.callback__done:focus { outline: none; }

@media (min-width: 40rem) {
  .form__row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 56rem) {
  .callback { grid-template-columns: 5fr 7fr; }
}

/* ------------------------------------------------------------ page head -- */

.page-head {
  display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  padding-block: clamp(2rem, 1.5rem + 3vw, 4.5rem) clamp(2.5rem, 2rem + 3vw, 4.5rem);
}
.page-h { font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.9rem); max-width: min(18ch, 100%); }
.page-lede { margin-top: 1.25rem; max-width: 52ch; font-size: var(--step-1); line-height: 1.5; }
.page-head--plain { gap: 0; padding-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.page-head--plain .hero__act { margin-top: 1.75rem; }
.page-head__photo { margin: 0; aspect-ratio: 4 / 5; max-height: 34rem; overflow: hidden; border-radius: var(--r-panel); background: var(--surface); }
.page-head__photo img { width: 100%; height: 100%; object-fit: cover; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; font-size: 0.95rem; font-weight: 600; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--accent); }

.page-head--urgent .page-h { color: var(--red-dk); }

@media (min-width: 56rem) {
  .page-head:not(.page-head--plain) { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .page-head__photo { aspect-ratio: 4 / 5; }
}
@media (max-width: 55.99rem) {
  .page-head__photo { aspect-ratio: 16 / 10; max-height: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .page-head__text > *, .page-head--plain > * { animation: rise 0.7s var(--ease-out) both; }
  .page-head__text > :nth-child(2), .page-head--plain > :nth-child(2) { animation-delay: 0.05s; }
  .page-head__text > :nth-child(3), .page-head--plain > :nth-child(3) { animation-delay: 0.11s; }
  .page-head__text > :nth-child(4) { animation-delay: 0.17s; }
  .page-head__photo { animation: unveil 1s var(--ease-out) 0.1s both; }
}

/* ------------------------------------------------------------ service body -- */

.svc { display: grid; gap: 3rem clamp(2rem, 6vw, 6rem); padding-bottom: var(--sec); }
.svc__body { max-width: 44rem; }
.svc__block { padding-block: 2rem; border-top: 1px solid var(--line-2); }
.svc__block:first-child { padding-top: 1.5rem; }
.svc__h { font-size: var(--step-2); font-weight: 800; font-stretch: 110%; letter-spacing: -0.01em; line-height: 1.15; margin-bottom: 1rem; }
.svc__block p { max-width: 62ch; }
.svc__close { margin-top: 1rem; padding-top: 2rem; border-top: 1px solid var(--line-2); font-size: var(--step-1); font-weight: 700; }
.svc__close a { color: var(--red-dk); white-space: nowrap; }

.ticks { display: grid; gap: 0.7rem; }
.ticks li { display: flex; gap: 0.75rem; align-items: start; }
.ticks .icon { margin-top: 0.22em; color: var(--accent); width: 1.2rem; height: 1.2rem; }

.defs { margin: 0; display: grid; gap: 1.25rem; }
.defs dt { font-weight: 800; font-stretch: 108%; }
.defs dd { margin: 0.2rem 0 0; max-width: 60ch; }

.side-card {
  padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--card);
  display: grid; gap: 0.4rem;
}
.side-card__k { margin: 0; font-weight: 600; font-size: 0.95rem; color: var(--accent); }
.side-card__num { font-size: 1.85rem; color: var(--accent); text-decoration: none; white-space: nowrap; }
.side-card__num:hover { text-decoration: underline; text-underline-offset: 0.15em; }
.side-card__l { color: var(--ink-2); font-size: 0.95rem; margin-bottom: 0.6rem; }
.side-card .rating { font-size: 0.88rem; }

.side-more { margin-top: 2rem; }
.side-more__h { font-size: var(--step--1); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 0.5rem; }
.side-more a {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.75rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600;
}
.side-more a .icon { color: var(--ink-2); transition: transform 0.2s var(--ease-out); }
.side-more a:hover { color: var(--accent); }
.side-more a:hover .icon { transform: translateX(3px); color: var(--accent); }

@media (min-width: 64rem) {
  .svc { grid-template-columns: minmax(0, 1fr) 20rem; }
  .svc__side { position: sticky; top: calc(var(--head-h) + 1.5rem); align-self: start; }
}

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

.about { display: grid; gap: 3rem clamp(2rem, 6vw, 6rem); padding-bottom: var(--sec); }
.about__main { display: grid; gap: 3rem; }
.about__photo { margin: 0; }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-panel); }
.about__photo figcaption { margin-top: 0.6rem; font-size: 0.9rem; color: var(--ink-2); }

.facts { margin: 0; border-top: 1px solid var(--line-2); }
.facts > div { display: grid; gap: 0.15rem 2rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
.facts a { color: var(--accent); }
@media (min-width: 40rem) {
  .facts > div { grid-template-columns: 8rem 1fr; }
}
@media (min-width: 64rem) {
  .about { grid-template-columns: minmax(0, 1fr) 22rem; }
}

.prose { max-width: 44rem; padding-bottom: var(--sec); }
.about .prose { padding-bottom: 0; }
.prose h2 { font-size: var(--step-2); font-weight: 800; font-stretch: 110%; line-height: 1.15; margin: 2rem 0 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose a { color: var(--accent); }
.prose img { border-radius: var(--radius); }

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

.read-more { padding-bottom: var(--sec); }
.read-more__links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 1.25rem; }
.read-more__links .icon { width: 1rem; height: 1rem; }
.read-more p { color: var(--ink-2); }

/* -------------------------------------------------------------- gallery -- */

.gallery { padding-bottom: var(--sec); }
.gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(10rem, 45%), 1fr)); gap: 0.6rem; }
@media (min-width: 40rem) { .gallery__grid { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); } }
.gallery__item { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--r-card); background: var(--surface); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.gallery__item:hover img { transform: scale(1.035); }

.lightbox {
  padding: 0; border: 0; background: transparent; max-width: 94vw; max-height: 94vh; overflow: visible;
}
.lightbox::backdrop { background: oklch(0.12 0.03 266 / 0.88); }
.lightbox img { max-width: 94vw; max-height: 86vh; width: auto; height: auto; border-radius: var(--r-card); }
.lightbox__cap { margin: 0.75rem 0 0; color: #fff; font-size: 0.95rem; max-width: 60ch; }
.lightbox__close {
  position: fixed; top: 1rem; right: 1rem; display: grid; place-items: center;
  width: 3rem; height: 3rem; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: var(--ink);
}
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] { animation: rise 0.35s var(--ease-out); }
}

/* -------------------------------------------------------------- contact -- */

.contact { display: grid; gap: 3rem clamp(2rem, 5vw, 5rem); align-items: start; }
.contact .callback { grid-template-columns: 1fr; margin-bottom: var(--sec); }
.contact__ways { display: grid; gap: 2rem; }
.contact__phone {
  display: grid; gap: 0.25rem; padding: 1.5rem 1.6rem; border-radius: var(--r-panel);
  background: var(--red); color: #fff; text-decoration: none;
  transition: background-color 0.18s var(--ease-out);
}
.contact__phone:hover { background: var(--red-dk); }
.contact__k { font-weight: 600; opacity: 0.9; }
.contact__num { font-size: clamp(2rem, 1.4rem + 2.2vw, 2.9rem); color: #fff; white-space: nowrap; }
@media (min-width: 60rem) {
  .contact { grid-template-columns: 5fr 7fr; }
}

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

.foot { padding-top: clamp(3rem, 6vw, 5rem); background: var(--surface); border-radius: var(--r-panel) var(--r-panel) 0 0; }
.foot__in { display: grid; gap: 2.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.foot__id { display: grid; gap: 1rem; align-content: start; justify-items: start; }
.foot__id img { width: 9rem; height: auto; }
.foot__id p { font-size: 0.95rem; }
.foot__h { font-size: var(--step--1); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 0.9rem; }
.foot__h a { text-decoration: none; }
.foot__col li { padding-block: 0.25rem; }
.foot__col a { text-decoration: none; }
.foot__col a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 0.2em; }
.foot__contact li { display: flex; gap: 0.6rem; align-items: start; padding-block: 0.35rem; }
.foot__contact .icon { margin-top: 0.25em; color: var(--accent); width: 1.05rem; height: 1.05rem; }
.foot__contact a { overflow-wrap: anywhere; }
.foot__base { margin-top: clamp(3rem, 6vw, 4.5rem); padding-block: 1.5rem; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--ink-2); }
@media (min-width: 64rem) {
  .foot__in { grid-template-columns: 1.3fr 1.2fr 1fr 1fr 0.8fr; }
}

/* ------------------------------------------------ phones and tablets -- */

@media (max-width: 47.99rem) {
  :root { --sec: 3.5rem; }
  .sec-h { font-size: clamp(1.85rem, 1.1rem + 3.6vw, 2.4rem); }
  .work__head { margin-bottom: 1.25rem; }

  /* Credentials: a tidy two-by-two instead of four tall boxes. */
  .trust { padding-top: 1.75rem; }
  .creds, .creds__reviews { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .creds__reviews { grid-column: 1 / -1; }
  .badge, .cred { grid-template-columns: 1fr; gap: 0.5rem; padding: 0.95rem 1rem 1rem; align-content: start; }
  .badge__logo, .cred__icon { width: 1.9rem; height: 1.9rem; }
  .cred__icon .icon { width: 1.05rem; height: 1.05rem; }
  .badge__n { font-size: 1.7rem; }
  .cred__n, .cred--license .cred__n, .cred--bonded .cred__n { font-size: 1.2rem; white-space: normal; }
  .badge__l, .cred__l { font-size: 0.85rem; }
  .badge__go { display: none; }

  /* Services: compact rows with a square photo, not four tall cards. */
  .cards { grid-template-columns: 1fr; gap: 0.6rem; }
  .card { grid-template-columns: 6.25rem 1fr; grid-template-rows: auto; align-items: center; }
  .card__img { aspect-ratio: 1; height: 100%; }
  .card__body { padding: 0.85rem 3.25rem 0.85rem 1rem; }
  .card__t { font-size: 1.05rem; }
  .card__l { font-size: 0.88rem; }
  .card__go { top: 50%; bottom: auto; translate: 0 -50%; right: 0.85rem; width: 2rem; height: 2rem; }

  .said__head { margin-bottom: 1.25rem; }
  .said__badges { grid-template-columns: 1fr 1fr; width: 100%; }
  .said__badges .badge { padding: 0.8rem 0.9rem; }
  .said__badges .badge__n { font-size: 1.35rem; }

  .family__photo { aspect-ratio: 4 / 3; }
  .area__valley li { font-size: 1.05rem; }
  .leave__h { font-size: clamp(2.3rem, 1.2rem + 6vw, 3.2rem); }
  .callback { padding: 1.4rem 1.15rem; border-radius: var(--r-card); }
  .callback__intro h2 { font-size: clamp(1.8rem, 1.1rem + 3.4vw, 2.3rem); }
  .page-h { font-size: clamp(2rem, 1.2rem + 4vw, 2.6rem); }
  .page-lede { font-size: 1.05rem; }
}

/* iPad and small laptops: two columns that breathe. */
@media (min-width: 48rem) and (max-width: 74.99rem) {
  .hero__frame { min-height: 36rem; }
  .hero__text { max-width: 52%; padding-right: 1rem; }
  .hero__h { font-size: clamp(2.6rem, 1rem + 3.6vw, 3.6rem); }
  .hero__stage { inset: 18% 0 2% 50%; }
  .hero__frame { align-content: center; }
  .hero__text { padding-bottom: 0; }
  .hero__lic { position: static; justify-self: start; margin: 1.5rem 0 1rem; }
  .family__photo { aspect-ratio: 16 / 10; }
  .cards { grid-template-columns: 1fr 1fr; }
}

/* -------------------------------------------------------- phone call bar -- */

.callbar { display: none; }

@media (max-width: 47.99rem) {
  :root { --head-h: 3.75rem; --head-gap: 0.5rem; }
  .brand img { height: 2.6rem; }
  .masthead__in { padding-inline: 0.85rem 0.35rem; }
  .menu-btn { min-height: 2.9rem; }
  .masthead__call { display: none; }
  .masthead__call + .menu-btn { margin-left: auto; }
  body { padding-bottom: calc(4.75rem + env(safe-area-inset-bottom)); }
  .callbar {
    display: block; position: fixed; inset: auto 0 0; z-index: var(--z-callbar);
    padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
    background: var(--bg);
    background: color-mix(in oklch, var(--bg) 92%, transparent);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  .callbar__btn {
    display: flex; align-items: center; justify-content: center; gap: 0.6rem;
    min-height: 3.4rem; border-radius: 999px;
    background: var(--red); color: #fff; text-decoration: none;
    font-weight: 800; font-stretch: 108%; font-size: 1.15rem;
  }
  .callbar__btn:active { background: var(--red-dk); }
  .callbar__btn .icon { width: 1.3rem; height: 1.3rem; }
  /* The hero's own call button would sit right above the bar; keep one. */
  .hero__act .btn-call, .page-head .hero__act .btn-call { display: none; }
  .hero__act > * { flex: 1 1 12rem; }
}

@media (max-width: 63.99rem) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (min-width: 48rem) and (max-width: 63.99rem) {
  .masthead__call { margin-left: auto; }
  .masthead__call + .menu-btn { margin-left: 0; }
}

/* ---------------------------------------------------------------- motion -- */

/* Reveal: the default is visible. JS holds back only what starts below the fold. */
[data-reveal] { transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out); }
[data-reveal].is-held { opacity: 0; transform: translateY(1.25rem); }
.quotes .quote:nth-child(2) { transition-delay: 0.08s; }
.quotes .quote:nth-child(3) { transition-delay: 0.16s; }

@keyframes rise { from { opacity: 0; transform: translateY(0.9rem); } }
@keyframes lift { from { opacity: 0; transform: translateY(2.5rem) scale(0.97); } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-0.75rem); } }
@keyframes settle { from { scale: 1.08; } to { scale: 1; } }
@keyframes fade { to { opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes drop { from { opacity: 0; transform: translateY(-0.5rem); } }
@keyframes unveil { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-delay: 0s !important; }
  [data-reveal].is-held { opacity: 1; transform: none; }
}

@media print {
  .masthead, .callbar, .drawer, .callback { display: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
