/**
 * Rabbit Remodeling: main stylesheet.
 * Every value comes from the tokens below (BRIEF.md, section 2).
 * If a value is missing, add a token first, then use it.
 * Mobile first; breakpoints 480 / 768 / 1024 / 1280.
 */

/* == Fonts == */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/archivo-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/archivo-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/work-sans-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/work-sans-latin-500-normal.woff2") format("woff2");
}

/* == Tokens == */

:root {
  /* Color */
  --c-ink: #0B0D0E;                    /* main dark background; text on light (19.5:1 on white) */
  --c-ink-2: #1D1E20;                  /* cards and panels on dark */
  --c-ink-line: rgba(255,255,255,.10); /* borders and dividers on dark */
  --c-on-ink: #FFFFFF;
  --c-on-ink-muted: #A1A7B0;           /* secondary text on dark (8.0:1 on ink, 6.9:1 on ink-2) */
  --c-paper: #FFFFFF;
  --c-paper-2: #F3F4F6;                /* every other light section */
  --c-line: #E3E6EB;                   /* card borders and dividers on light */
  --c-field: #8A93A0;                  /* form field border (3.1:1 on white, WCAG non-text contrast) */
  --c-text: #0B0D0E;
  --c-text-muted: #4B5563;             /* secondary text on light (7.6:1) */
  --c-green: #00E664;                  /* button fills, accents and icons on dark (11.6:1 on ink) */
  --c-green-hover: #00CF5A;
  --c-green-ink: #007A36;              /* green TEXT and links on light (5.5:1 on white) */
  --c-error: #B42318;
  --c-star: #F5A300;                   /* rating stars; always next to a text rating */

  /* Type */
  --f-head: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-h1: clamp(2.5rem, 1.75rem + 3.2vw, 4.5rem);      /* 40 → 72 */
  --fs-h2: clamp(2rem, 1.5rem + 2vw, 3rem);             /* 32 → 48 */
  --fs-h3: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);       /* 20 → 24 */
  --fs-lead: clamp(1.125rem, 1.05rem + .35vw, 1.25rem); /* 18 → 20 */
  --fs-body: clamp(1rem, .96rem + .2vw, 1.0625rem);     /* 16 → 17 */
  --fs-small: .875rem;                                  /* 14 */
  --fs-eyebrow: .8125rem;                               /* 13 */
  --lh-tight: 1.05;
  --lh-head: 1.15;
  --lh-body: 1.6;

  /* Spacing: 8px grid */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --section-y: clamp(3.5rem, 2.5rem + 4vw, 6rem);       /* 56 at 390px → 96 at 1440px */
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 76px;                                     /* 64px below 1024px */

  /* Radii */
  --r-sm: 8px;    /* form fields, chips, small badges */
  --r-md: 12px;   /* buttons, photos inside content */
  --r-lg: 20px;   /* cards, form card, green CTA band */
  --r-pill: 999px;

  /* Shadows: floating elements only */
  --sh-card: 0 1px 2px rgba(11,13,14,.06), 0 8px 24px rgba(11,13,14,.06);
  --sh-float: 0 24px 48px rgba(0,0,0,.28);

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
  --t: 180ms;

  /* From BRIEF.md 2.2–2.8 and 4 */
  --ls-head: -.02em;
  --ls-eyebrow: .08em;
  --lh-snug: 1.25;
  --measure: 65ch;
  --measure-intro: 60ch;
  --measure-h1: 16ch;
  --measure-h2: 22ch;
  --fs-button: 1rem;
  --fs-nav: .9375rem;
  --fs-menu: 1.5rem;
  --btn-h: 48px;                       /* 52px from 768px */
  --btn-pad: 22px;                     /* 28px from 768px */
  --field-h: 52px;
  --tap: 44px;
  --icon: 20px;
  --icon-gap: 10px;
  --border-strong: 1.5px;
  --focus-w: 3px;
  --underline: 2px;
  --underline-offset: 6px;
  --logo-plate: 48px;
  --logo-h: 40px;                      /* 44px from 1024px */
  --bar-h: 64px;
  --step: 40px;
  --check: 22px;
  --zoom: 1.03;
  --c-on-ink-border: rgba(255,255,255,.4);
  --c-on-ink-hover: rgba(255,255,255,.06);
  --c-focus-glow: rgba(0,230,100,.35);
  --c-overlay: rgba(11,13,14,.85);
  --c-overlay-photo: rgba(11,13,14,.8); /* How It Works photo: muted text stays AA */
  --c-backdrop: rgba(11,13,14,.9);
  --z-bar: 90;
  --z-header: 100;
  --z-skip: 110;
  --sketch: 760px;                     /* margin drawings */
}

@media (max-width: 1023.98px) {
  :root { --header-h: 64px; }
}

@media (min-width: 768px) {
  :root { --btn-h: 52px; --btn-pad: 28px; }
}

@media (min-width: 1024px) {
  :root { --logo-h: 44px; }
}

/* == Tones: a section's background decides the colors inside it == */

:root,
.tone-light {
  --fg: var(--c-text);
  --fg-muted: var(--c-text-muted);
  --accent: var(--c-green-ink);
  --link: var(--c-green-ink);
  --focus: var(--c-green-ink);
  --line: var(--c-line);
  --surface: var(--c-paper);
  --panel: var(--c-paper-2);          /* a panel in the other light tone */
}

.tone-light { color: var(--fg); }

.tone-dark {
  --fg: var(--c-on-ink);
  --fg-muted: var(--c-on-ink-muted);
  --accent: var(--c-green);
  --link: var(--c-on-ink);
  --focus: var(--c-green);
  --line: var(--c-ink-line);
  --surface: var(--c-ink-2);
  --panel: var(--c-ink-2);
  background: var(--c-ink);
  color: var(--fg);
}

.tone-green {
  --fg: var(--c-ink);
  --fg-muted: var(--c-ink);
  --accent: var(--c-ink);
  --link: var(--c-ink);
  --focus: var(--c-ink);
  --line: var(--c-ink);
  background: var(--c-green);
  color: var(--fg);
}

.section--paper { background: var(--c-paper); }
.section--paper-2 { --panel: var(--c-paper); background: var(--c-paper-2); }

/* Margin drawings (Site Settings → Brand); 50% centres the image. */
@media (min-width: 1024px) {
  [class*="sketch--"] {
    --sx: calc(min(var(--container), 100vw) / 2 - var(--gutter) + var(--sketch) / 2);
    background: url("../img/sketch-deck.svg") calc(50% + var(--sx)) center / var(--sketch) no-repeat var(--c-paper);
  }

  .section--paper-2[class*="sketch--"] { background-color: var(--c-paper-2); background-position: calc(50% - var(--sx)) center; }
  .sketch--fence { background-image: url("../img/sketch-fence.svg"); }
  .sketch--plan { background-image: url("../img/sketch-plan.svg"); }
  .sketch--stairs { background-image: url("../img/sketch-stairs.svg"); }
}

/* == Base == */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--s-5));
}

html.is-locked { overflow: hidden; }

body {
  margin: 0;
  background: var(--c-ink);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.site-main { background: var(--c-paper); }

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

a { color: var(--link); }
a:hover { text-decoration-thickness: var(--underline); }

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

:focus-visible {
  outline: var(--focus-w) solid var(--focus);
  outline-offset: var(--focus-w);
}

.icon {
  flex: none;
  width: var(--icon);
  height: var(--icon);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

.icon--brand {
  fill: currentColor;
  stroke: none;
}

.icon--solid { fill: currentColor; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

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

/* == Typography == */

h1, h2, h3, h4 {
  margin: 0 0 var(--s-4);
  font-family: var(--f-head);
  text-wrap: balance;
}

h1, .h1 {
  max-width: var(--measure-h1);
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-head);
}

h2, .h2 {
  max-width: var(--measure-h2);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: var(--lh-head);
  letter-spacing: var(--ls-head);
}

h3, .h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: var(--lh-snug);
}

h4, .h4 {
  font-size: var(--fs-lead);
  font-weight: 600;
  line-height: var(--lh-snug);
}

p, ul, ol, dl, blockquote, figure { margin: 0 0 var(--s-4); }
:is(p, ul, ol, dl, blockquote, figure):last-child { margin-bottom: 0; }

strong, b { font-weight: 500; }

.lead { font-size: var(--fs-lead); }
.muted { color: var(--fg-muted); }
.small { font-size: var(--fs-small); }
.accent { color: var(--accent); }

.eyebrow {
  display: block;
  margin-bottom: var(--s-3);
  color: var(--accent);
  font-family: var(--f-head);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
}

.prose { max-width: var(--measure); }
.prose > * + :is(h2, h3) { margin-top: var(--s-7); }
.prose h2 { font-size: var(--fs-h3); max-width: none; letter-spacing: 0; }
.prose h3 { font-size: var(--fs-lead); }
.prose :is(ul, ol) { padding-left: var(--s-5); }
.prose li + li { margin-top: var(--s-2); }

/* == Layout == */

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

.section { padding-block: var(--section-y); }

.section-head { margin-bottom: var(--s-6); }

.section-head__intro {
  max-width: var(--measure-intro);
  color: var(--fg-muted);
  font-size: var(--fs-lead);
}

.split {
  display: grid;
  gap: var(--s-6);
  align-items: center;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.cards > * {
  flex: 0 0 100%;
  min-width: 0;
}

@media (min-width: 768px) {
  .section-head { margin-bottom: var(--s-7); }
  .cards > * { flex-basis: calc((100% - var(--s-5)) / 2); }
}

@media (min-width: 1024px) {
  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--s-8);
  }

  .split--7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .cards--3 > * { flex-basis: calc((100% - 2 * var(--s-5)) / 3); }
  .cards--4 > * { flex-basis: calc((100% - 3 * var(--s-5)) / 4); }
}

/* == Buttons == */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--icon-gap);
  min-height: var(--btn-h);
  padding: var(--s-2) var(--btn-pad);
  border: var(--border-strong) solid transparent;
  border-radius: var(--r-md);
  font-family: var(--f-head);
  font-size: var(--fs-button);
  font-weight: 700;
  line-height: var(--lh-snug);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease);
}

.btn:hover { text-decoration: none; }

.btn--primary {
  background: var(--c-green);
  color: var(--c-ink);
}

.btn--primary:hover { background: var(--c-green-hover); }

.btn--outline-light {
  border-color: var(--c-on-ink-border);
  background: transparent;
  color: var(--c-on-ink);
}

.btn--outline-light:hover {
  border-color: var(--c-on-ink);
  background: var(--c-on-ink-hover);
}

.btn--outline-dark {
  border-color: var(--c-ink);
  background: transparent;
  color: var(--c-ink);
}

.btn--outline-dark:hover {
  background: var(--c-ink);
  color: var(--c-on-ink);
}

.btn--ink {
  background: var(--c-ink);
  color: var(--c-on-ink);
}

.btn--ink:hover { background: var(--c-ink-2); }

.btn--sm { min-height: var(--tap); }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

.btn-row > .btn { flex: 1 1 100%; }
.btn-row--center { justify-content: center; }

@media (min-width: 480px) {
  .btn-row > .btn { flex: 0 1 auto; }
}

/* == Header == */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t) var(--ease);
}

.site-header.is-scrolled { border-bottom-color: var(--c-ink-line); }

/* main.js: the header's border shows once this leaves the screen. */
.scroll-marker {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  height: 100%;
}

.logo {
  display: inline-flex;
  flex: none;
  align-items: center;
  color: var(--c-on-ink);
  text-decoration: none;
}

.logo__badge {
  display: grid;
  place-items: center;
  width: var(--logo-plate);
  height: var(--logo-plate);
  padding: var(--s-1);
  border-radius: var(--r-sm);
  background: var(--c-paper);
}

.logo__badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo__img {
  width: auto;
  height: var(--logo-h);
}

.logo__text {
  font-family: var(--f-head);
  font-size: var(--fs-lead);
  font-weight: 700;
}

.site-nav {
  display: none;
  margin-inline-start: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__item { position: relative; }

.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  min-height: var(--tap);
  padding-inline: var(--s-3);
  border: 0;
  background: none;
  color: var(--c-on-ink);
  font-family: var(--f-head);
  font-size: var(--fs-nav);
  font-weight: 600;
  line-height: var(--lh-snug);
  text-decoration: none;
  cursor: pointer;
}

.site-nav__link:hover { color: var(--c-green); }

.site-nav__link.is-active,
.site-nav__link[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--c-green);
  text-decoration-thickness: var(--underline);
  text-underline-offset: var(--underline-offset);
}

.site-nav__link .icon {
  width: var(--s-4);
  height: var(--s-4);
  transition: transform var(--t) var(--ease);
}

.site-nav__link[aria-expanded="true"] .icon { transform: rotate(180deg); }

.site-nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  width: max-content;
  margin: 0;
  padding: var(--s-2);
  border: 1px solid var(--c-ink-line);
  border-radius: var(--r-md);
  background: var(--c-ink-2);
  box-shadow: var(--sh-float);
  list-style: none;
}

.has-dropdown.is-open > .site-nav__dropdown,
html:not(.js) .has-dropdown:is(:hover, :focus-within) > .site-nav__dropdown { display: block; }

.site-nav__dropdown a {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding-inline: var(--s-3);
  border-radius: var(--r-sm);
  color: var(--c-on-ink);
  font-family: var(--f-head);
  font-size: var(--fs-nav);
  font-weight: 600;
  text-decoration: none;
}

/* A long list (all services) splits into two columns. */
.site-nav__dropdown--cols {
  columns: 2;
  column-gap: var(--s-2);
}

.site-nav__dropdown--cols li { break-inside: avoid; }

.site-nav__dropdown a:hover { background: var(--c-ink-line); }
.site-nav__dropdown a[aria-current="page"] { color: var(--c-green); }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-inline-start: auto;
}

.site-header__phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  width: var(--tap);
  height: var(--tap);
  border-radius: var(--r-pill);
  background: var(--c-green);
  color: var(--c-ink);
  font-family: var(--f-head);
  font-weight: 600;
  text-decoration: none;
}

.site-header__phone-number,
.site-header__cta { display: none; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  padding: 0;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  color: var(--fg);
  cursor: pointer;
}

.icon-btn .icon {
  width: var(--s-5);
  height: var(--s-5);
}

@media (min-width: 1024px) {
  .site-header__inner { gap: var(--s-5); }
  .site-nav { display: block; }
  .site-header__actions { margin-inline-start: 0; }
  .site-header__cta { display: inline-flex; }
  .site-header__burger { display: none; }

  .site-header__phone {
    width: auto;
    min-width: var(--tap);
    background: none;
    color: var(--c-on-ink);
  }

  .site-header__phone:hover { color: var(--c-green); }
}

@media (min-width: 1280px) {
  .site-header__phone-number { display: inline; }
}

/* == Mobile menu (a modal <dialog>) == */

.mobile-menu {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-menu[open] {
  display: flex;
  flex-direction: column;
  animation: slide-in var(--t) var(--ease);
}

.mobile-menu::backdrop { background: var(--c-backdrop); }

@keyframes slide-in {
  from { transform: translateX(100%); }
}

.mobile-menu__head {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  padding-inline: var(--gutter);
  border-bottom: 1px solid var(--c-ink-line);
}

.mobile-menu__nav {
  flex: 1 0 auto;
  padding: var(--s-2) var(--gutter);
}

.mobile-menu__list,
.mobile-menu__sub {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-menu__list > li { border-bottom: 1px solid var(--c-ink-line); }

.mobile-menu__link {
  display: block;
  padding-block: var(--s-4);
  color: var(--c-on-ink);
  font-family: var(--f-head);
  font-size: var(--fs-menu);
  font-weight: 700;
  line-height: var(--lh-snug);
  text-decoration: none;
}

.mobile-menu__sub { padding-bottom: var(--s-3); }

.mobile-menu__sub a {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--c-on-ink-muted);
  font-family: var(--f-head);
  font-size: var(--fs-lead);
  font-weight: 600;
  text-decoration: none;
}

.mobile-menu :is(.mobile-menu__link, .mobile-menu__sub a)[aria-current="page"] { color: var(--c-green); }

.mobile-menu__actions {
  display: grid;
  flex: none;
  gap: var(--s-3);
  padding: var(--s-5) var(--gutter) calc(var(--s-5) + env(safe-area-inset-bottom));
}

/* == Sticky bar on phones == */

.sticky-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: var(--z-bar);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-2);
  align-items: center;
  min-height: calc(var(--bar-h) + env(safe-area-inset-bottom));
  padding: var(--s-2) var(--s-3) calc(var(--s-2) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--c-ink-line);
  transition: transform var(--t) var(--ease), visibility var(--t);
}

.sticky-bar .btn { padding-inline: var(--s-3); }

.sticky-bar.is-hidden {
  visibility: hidden;
  transform: translateY(100%);
}

body { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }

@media (min-width: 768px) {
  .sticky-bar { display: none; }
  body { padding-bottom: 0; }
}

/* == Green CTA band == */

.cta-band {
  padding-block: var(--s-8);
  text-align: center;
}

.cta-band :is(h2, p) { margin-inline: auto; }
.cta-band p { max-width: var(--measure-intro); }
.cta-band .btn-row { justify-content: center; }

/* == Footer == */

.site-footer {
  padding-block: var(--s-8) var(--s-6);
  font-size: var(--fs-small);
}

.site-footer__grid {
  display: grid;
  gap: var(--s-6);
}

.site-footer__tagline {
  margin-top: var(--s-4);
  color: var(--c-on-ink-muted);
}

.site-footer__title {
  margin-bottom: var(--s-2);
  color: var(--c-green);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
}

.site-footer ul,
.contact-list,
.social {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__links a,
.contact-list a {
  display: inline-flex;
  align-items: center;
  min-width: var(--tap);
  min-height: var(--tap);
  color: var(--c-on-ink);
  text-decoration: none;
}

.site-footer__links a:hover,
.contact-list a:hover {
  color: var(--c-green);
  text-decoration: underline;
}

.site-footer__links a[aria-current="page"] { color: var(--c-green); }

/* Services: two columns. */
.site-footer__links--cols {
  columns: 2;
  column-gap: var(--s-5);
}

.site-footer__links--cols li { break-inside: avoid; }

/* Long names wrap on phones: keep them apart. */
.site-footer__links--cols a {
  padding-block: var(--s-2);
  line-height: var(--lh-snug);
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
}

.contact-list .icon {
  margin-top: var(--s-3);
  color: var(--c-green);
}

.contact-list li > span { padding-block: var(--s-3); }

.site-footer__bottom p { margin: 0; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-2) var(--s-5);
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--c-ink-line);
  color: var(--c-on-ink-muted);
}

.social {
  display: flex;
  gap: var(--s-2);
  margin-top: var(--s-4);
}

.social a {
  display: grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--fg);
}

.social a:hover {
  border-color: var(--c-green);
  color: var(--c-green);
}

@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Four columns from 1280px, where the service list and e-mail fit. */
@media (min-width: 1280px) {
  .site-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.25fr); }
}

/* == Cards == */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: box-shadow var(--t) var(--ease);
}

.card__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--line);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t) var(--ease);
}

.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: var(--s-5);
}

.card__title {
  margin-bottom: var(--s-2);
  font-size: var(--fs-h3);
}

.card__title a {
  color: inherit;
  text-decoration: none;
}

.card__text {
  display: -webkit-box;
  overflow: hidden;
  color: var(--fg-muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.card__more {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: auto;
  padding-top: var(--s-4);
  color: var(--accent);
  font-family: var(--f-head);
  font-weight: 700;
}

.card__more .icon {
  width: var(--s-4);
  height: var(--s-4);
}

/* One link per card: the title link stretches over it. */
.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.card__link:focus-visible { outline: none; }

.card:has(.card__link:focus-visible) {
  outline: var(--focus-w) solid var(--focus);
  outline-offset: var(--focus-w);
}

.card:has(.card__link):hover { box-shadow: var(--sh-card); }

@media (prefers-reduced-motion: no-preference) {
  .card:has(.card__link):hover .card__media img { transform: scale(var(--zoom)); }
}

.cards + .cards { margin-top: var(--s-5); }

/* Compact cards: two per row on phones, photo and title only. */
@media (max-width: 767.98px) {
  .cards--compact { gap: var(--s-3); }
  .cards--compact > * { flex-basis: calc((100% - var(--s-3)) / 2); }
  .card--compact .card__body { padding: var(--s-3); }
  .card--compact .card__title { margin: 0; font-size: var(--fs-body); }
  .card--compact :is(.card__text, .card__more) { display: none; }
}

/* Wide card: the photo beside the text. */
@media (min-width: 768px) {
  .card--wide {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .card--wide .card__body {
    justify-content: center;
    padding: var(--s-6);
  }

  .card--wide .card__more { margin-top: 0; }
}

.card--project .card__body { padding: var(--s-4) var(--s-5); }

.card--project .card__caption {
  margin: 0;
  color: var(--fg-muted);
  font-family: var(--f-head);
  font-size: var(--fs-small);
  font-weight: 600;
}

.card--project .card__title {
  margin: 0 0 var(--s-1);
  font-size: var(--fs-button);
  font-weight: 600;
}

.card__desc { color: var(--fg-muted); }

/* Ruled panel ("What's included"). */
.ruled {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--line);
  list-style: none;
}

.ruled > li { padding: var(--s-5); background: var(--panel); }

.ruled__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s-4);
  color: var(--accent);
}

.ruled__top .icon { width: var(--s-5); height: var(--s-5); }

.ruled__num,
.contact-method__label {
  color: var(--fg-muted);
  font-family: var(--f-head);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--ls-eyebrow);
  font-variant-numeric: tabular-nums;
}

.ruled h3 { margin-bottom: var(--s-2); }
.ruled p { color: var(--fg-muted); }

.ruled__img {
  width: 100%;
  margin-bottom: var(--s-5);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-md);
}

@media (min-width: 768px) {
  .ruled { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ruled > li { padding: var(--s-6); }
  .ruled__top { margin-bottom: var(--s-6); }
  .ruled > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .ruled--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ruled--3 > :last-child:nth-child(odd) { grid-column: auto; }
  .ruled--3 > :last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
  .ruled--3 > :last-child:nth-child(3n + 2) { grid-column: span 2; }
}

/* Scroll-snap track; main.js adds arrows and dots. The padding keeps
   focus outlines unclipped. */
.carousel__track {
  display: grid;
  grid-auto-columns: calc((100% - var(--s-3)) / 2);
  grid-auto-flow: column;
  gap: var(--s-3);
  margin: calc(-1 * var(--s-2));
  padding: var(--s-2);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-padding-inline: var(--s-2);
  scroll-snap-type: x mandatory;
}

.carousel.is-ready .carousel__track { scrollbar-width: none; }
.carousel.is-ready .carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { min-width: 0; scroll-snap-align: start; }

.carousel__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  margin-top: var(--s-5);
}

.carousel__nav[hidden] { display: none; }
.carousel__dots { display: flex; }

.carousel__btn {
  display: grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  border: var(--border-strong) solid var(--fg);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}

.carousel__btn:hover:not(:disabled) { background: var(--fg); color: var(--surface); }

.carousel__btn:disabled {
  border-color: var(--line);
  color: var(--c-field);
  cursor: default;
}

.carousel__dot {
  display: grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.carousel__dot::before {
  content: "";
  width: var(--s-2);
  height: var(--s-2);
  border-radius: var(--r-pill);
  background: var(--c-field);
  transition: width var(--t) var(--ease), background var(--t) var(--ease);
}

.carousel__dot[aria-current="true"]::before { width: var(--s-5); background: var(--accent); }

@media (min-width: 768px) {
  .carousel__track {
    grid-auto-columns: calc((100% - var(--s-5)) / 2);
    gap: var(--s-5);
  }
}

@media (min-width: 1024px) {
  .carousel__track { grid-auto-columns: calc((100% - 2 * var(--s-5)) / 3); }
}

/* == Reviews, rating, trust row == */

.review {
  gap: var(--s-4);
  padding: var(--s-5);
}

.stars {
  display: inline-flex;
  gap: var(--s-1);
  color: var(--c-star);
}

.stars .icon {
  width: var(--s-4);
  height: var(--s-4);
}

.review__quote {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  line-clamp: 6;
}

.review__quote.is-open {
  display: block;
  overflow: visible;
}

.review__more {
  align-self: flex-start;
  min-height: var(--tap);
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  font-family: var(--f-head);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.review__author {
  margin-top: auto;
  font-size: var(--fs-small);
}

.review__author strong {
  display: block;
  font-family: var(--f-head);
  font-size: var(--fs-button);
  font-weight: 600;
}

.review__author span { color: var(--fg-muted); }

.rating {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--f-head);
  font-weight: 600;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  margin: var(--s-6) 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--f-head);
  font-size: var(--fs-small);
  font-weight: 600;
}

.trust-row li {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}

.trust-row .icon { color: var(--accent); }
.trust-row .stars .icon { color: var(--c-star); }

/* == Chips == */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--fg);
  font-family: var(--f-head);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: var(--lh-snug);
}

.chip small {
  color: var(--fg-muted);
  font-size: inherit;
}

button.chip {
  min-height: var(--tap);
  padding-inline: var(--s-4);
  cursor: pointer;
}

button.chip:hover { border-color: var(--fg); }

.chip[aria-pressed="true"] {
  border-color: var(--c-ink);
  background: var(--c-ink);
  color: var(--c-on-ink);
}

/* == Breadcrumbs == */

.breadcrumbs {
  margin-bottom: var(--s-5);
  color: var(--fg-muted);
  font-size: var(--fs-small);
}

.breadcrumbs p { margin: 0; }

.breadcrumbs a {
  display: inline-flex;
  align-items: center;
  min-width: var(--tap);
  min-height: var(--tap);
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line);
}

.breadcrumbs a:hover { color: var(--fg); }
.breadcrumbs .separator { padding-inline: var(--s-1); }

/* == FAQ == */

.faq { border-top: 1px solid var(--line); }

.faq__item { border-bottom: 1px solid var(--line); }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: var(--tap);
  padding-block: var(--s-5);
  font-family: var(--f-head);
  font-size: var(--fs-lead);
  font-weight: 600;
  line-height: var(--lh-snug);
  list-style: none;
  cursor: pointer;
}

.faq__q::-webkit-details-marker { display: none; }

.faq__icon {
  position: relative;
  flex: none;
  width: var(--icon);
  height: var(--icon);
  color: var(--accent);
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: calc(50% - var(--underline) / 2);
  left: 0;
  width: 100%;
  height: var(--underline);
  border-radius: var(--underline);
  background: currentColor;
  transition: transform var(--t) var(--ease);
}

.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }

.faq__a {
  max-width: var(--measure);
  padding-bottom: var(--s-5);
  color: var(--fg-muted);
}

/* == Process steps == */

.steps {
  display: grid;
  gap: var(--s-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps__num {
  display: grid;
  place-items: center;
  width: var(--step);
  height: var(--step);
  margin-bottom: var(--s-4);
  border-radius: var(--r-pill);
  background: var(--c-green);
  color: var(--c-ink);
  font-family: var(--f-head);
  font-weight: 700;
}

.steps h3 { margin-bottom: var(--s-2); }
.steps p { color: var(--fg-muted); }

@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Steps in a light section: a panel. */
.steps--panel {
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--line);
}

.steps--panel li { padding: var(--s-5); background: var(--panel); }

@media (min-width: 768px) {
  .steps--panel li { padding: var(--s-6); }
}

/* == Forms == */

.form-card {
  padding: var(--s-5);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-paper);
  box-shadow: var(--sh-card);
}

.form-card--float {
  border-color: transparent;
  box-shadow: var(--sh-float);
}

.form-card__title { font-size: var(--fs-h3); }

.form-grid {
  display: grid;
  gap: var(--s-4);
}

.field,
.wpcf7-form-control-wrap {
  display: grid;
  gap: var(--s-2);
  align-content: start;
}

.field__label {
  color: var(--fg);
  font-family: var(--f-head);
  font-size: var(--fs-small);
  font-weight: 600;
}

.field__label small {
  color: var(--fg-muted);
  font-size: inherit;
  font-weight: 400;
}

.input {
  width: 100%;
  min-height: var(--field-h);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--c-field);
  border-radius: var(--r-sm);
  background: var(--c-paper);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: var(--fs-button);
  line-height: var(--lh-snug);
}

textarea.input {
  min-height: 0;
  resize: vertical;
}

.select { position: relative; }

.select .input {
  padding-inline-end: calc(var(--s-4) + var(--icon) + var(--s-2));
  appearance: none;
  cursor: pointer;
}

.select .icon {
  position: absolute;
  top: calc((var(--field-h) - var(--icon)) / 2);
  right: var(--s-4);
  color: var(--c-text-muted);
  pointer-events: none;
}

.input:focus-visible {
  border-color: var(--c-green-ink);
  outline: none;
  box-shadow: 0 0 0 var(--focus-w) var(--c-focus-glow);
}

.input[aria-invalid="true"] { border-color: var(--c-error); }

.wpcf7-not-valid-tip {
  color: var(--c-error);
  font-size: var(--fs-eyebrow);
}

.wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  min-height: var(--tap);
  padding-block: var(--s-2);
  color: var(--fg-muted);
  font-size: var(--fs-small);
  cursor: pointer;
}

.wpcf7-acceptance input {
  flex: none;
  width: var(--check);
  height: var(--check);
  margin: 0;
  accent-color: var(--c-green-ink);
  cursor: pointer;
}

.form-note {
  margin-top: var(--s-3);
  color: var(--fg-muted);
  font-size: var(--fs-small);
  text-align: center;
}

.wpcf7-response-output:empty,
.hidden-fields-container { display: none; }

.wpcf7-response-output {
  margin-top: var(--s-4);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm);
  background: var(--c-paper-2);
  font-size: var(--fs-small);
}

:not(.sent) > .wpcf7-response-output { color: var(--c-error); }

.hp {
  position: absolute;
  left: -100vw;
}

@media (min-width: 768px) {
  .form-card { padding: var(--s-6); }
  /* Name, phone: half a row each; ZIP a third, service two thirds (long names). */
  .form-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .form-grid > * { grid-column: span 3; }
  .form-grid > .field--zip { grid-column: span 2; }
  .form-grid > .field--service { grid-column: span 4; }
  .form-grid > .span-2 { grid-column: 1 / -1; }
}

/* Beside text at 1024–1279px: too narrow for ZIP and a long service. */
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .form-card--beside .form-grid > :is(.field--zip, .field--service) { grid-column: 1 / -1; }
}

/* == Lightbox (a modal <dialog>) == */

.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: var(--s-4);
  border: 0;
  background: transparent;
  color: var(--c-on-ink);
}

.lightbox[open] {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: var(--s-3);
}

.lightbox::backdrop { background: var(--c-backdrop); }

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lightbox__count {
  margin: 0;
  color: var(--c-on-ink-muted);
  font-family: var(--f-head);
  font-size: var(--fs-small);
}

.lightbox__figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: var(--s-3);
  min-height: 0;
  margin: 0;
}

.lightbox__media {
  display: flex;
  justify-content: center;
  gap: var(--s-2);
  min-height: 0;
}

.lightbox__media img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--r-md);
}

.lightbox__media figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: var(--s-2);
  min-width: 0;
  margin: 0;
}

.lightbox__media figcaption,
.lightbox__caption {
  color: var(--c-on-ink-muted);
  font-size: var(--fs-small);
  text-align: center;
}

.lightbox__btn {
  display: grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  padding: 0;
  border: 1px solid var(--c-on-ink-border);
  border-radius: var(--r-pill);
  background: var(--c-ink);
  color: var(--c-on-ink);
  cursor: pointer;
}

.lightbox__btn:hover { border-color: var(--c-on-ink); }

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: calc(50% - var(--tap) / 2);
}

.lightbox__prev { left: var(--s-4); }
.lightbox__next { right: var(--s-4); }
.lightbox.is-single :is(.lightbox__prev, .lightbox__next) { display: none; }

@media (min-width: 768px) {
  .lightbox { padding: var(--s-5) var(--s-9); }
}

/* == Page sections == */

.split > * { min-width: 0; }

.hero { position: relative; overflow: hidden; }
.hero--compact { padding-block: var(--s-8); }
.hero--service { padding-block: var(--s-7); }
.hero > .container { position: relative; }
.hero__text { max-width: var(--measure-intro); color: var(--fg-muted); }
.hero__img { border-radius: var(--r-lg); }

/* A photo behind a whole section, under a dark overlay. */
.section-bg,
.section-bg::after {
  position: absolute;
  inset: 0;
}

.section-bg::after {
  content: "";
  background: var(--c-overlay);
}

.section-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section--photo {
  position: relative;
  overflow: hidden;
}

.section--photo > .container { position: relative; }
.section--photo .section-bg::after { background: var(--c-overlay-photo); }

/* Text beside a photo that stays in view. */
.split--top { align-items: start; }

@media (min-width: 1024px) {
  .split__aside {
    position: sticky;
    top: calc(var(--header-h) + var(--s-5));
  }
}

.media-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-md);
}

.checklist, .points, .features, .spec-list, .link-list, .post-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist, .points {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-5);
}

.checklist li, .points li { display: flex; align-items: flex-start; gap: var(--s-3); }
.points li { align-items: center; }
.checklist .icon { color: var(--accent); }
.points .steps__num { flex: none; margin: 0; }

.more-link { margin-top: var(--s-6); }

.more-link a {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: var(--tap);
  color: var(--accent);
  font-family: var(--f-head);
  font-weight: 700;
}

.features {
  display: grid;
  gap: var(--s-5) var(--s-6);
}

.features li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: start;
  column-gap: var(--s-4);
}

.features li > .icon { grid-row: span 2; color: var(--accent); }
.features .icon { width: var(--s-6); height: var(--s-6); }
.features h3 { margin-bottom: var(--s-1); font-size: var(--fs-lead); }
.features p { color: var(--fg-muted); }
/* Numbered list in a panel. */
.spec-list {
  padding-inline: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
}

.spec-list li {
  display: grid;
  grid-template-columns: var(--s-6) minmax(0, 1fr);
  gap: var(--s-3);
  padding-block: var(--s-5);
}

.spec-list li + li { border-top: 1px solid var(--line); }

.spec-list__num {
  color: var(--accent);
  font-family: var(--f-head);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: var(--lh-snug);
  font-variant-numeric: tabular-nums;
}

.spec-list h3 { margin-bottom: var(--s-2); }
.spec-list p { color: var(--fg-muted); }

@media (min-width: 768px) {
  .spec-list { padding-inline: var(--s-6); }
  .spec-list li { grid-template-columns: var(--s-7) minmax(0, 1fr); padding-block: var(--s-6); }
}

@media (min-width: 1024px) {
  .split--5-7 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

/* Areas we serve. */
.areas__radius {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s-1) var(--s-3);
  margin-bottom: var(--s-6);
  color: var(--fg-muted);
}

.areas__radius strong {
  color: var(--fg);
  font-family: var(--f-head);
  font-size: var(--fs-h2);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-head);
}

.areas { display: grid; gap: var(--s-6); }
.area { padding-top: var(--s-5); border-top: 1px solid var(--line); }
.area .eyebrow { margin-bottom: var(--s-4); }

.area__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-2) var(--s-5);
  margin: 0 0 var(--s-4);
  padding: 0;
  list-style: none;
  font-weight: 500;
}

.areas__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-5);
  margin-top: var(--s-7);
}

.areas__cta p { margin: 0; font-family: var(--f-head); font-weight: 600; }

@media (min-width: 768px) {
  .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Home: the closing card with the form. */
.finale {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--c-paper);
  box-shadow: var(--sh-card);
}

.finale__intro { position: relative; padding: var(--s-6) var(--s-5); }
.finale__intro .section-bg::after { background: var(--c-overlay-photo); }
.finale__content { position: relative; }

.finale__call {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4) var(--s-5);
  margin-top: var(--s-6);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
}

.finale__hours {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0;
  color: var(--fg-muted);
  font-size: var(--fs-small);
}

.finale__hours .icon { color: var(--accent); }

.form-card--flat {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

@media (min-width: 768px) {
  .finale__intro { padding: var(--s-7) var(--s-6); }
}

@media (min-width: 1024px) {
  .finale { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .finale__intro { padding: var(--s-8) var(--s-7); }
  .finale .form-card { align-self: center; padding: var(--s-7); }
}

.rating { margin-bottom: var(--s-5); }
.filters { margin-bottom: var(--s-6); }

.card__pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-1);
  height: 100%;
}

.card__pair > span { position: relative; }

.card__pair img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__tag {
  position: absolute;
  bottom: var(--s-2);
  left: var(--s-2);
  padding: var(--s-1) var(--s-2);
  border-radius: var(--r-sm);
  background: var(--c-ink);
  color: var(--c-on-ink);
  font-family: var(--f-head);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
}

/* Contact: on phones the form comes right after the text. */
.contact-hero {
  display: grid;
  grid-template-areas: "intro" "form" "talk";
  gap: var(--s-7);
}

.contact-hero__intro { grid-area: intro; }
.contact-hero .trust-row { flex-direction: column; font-size: var(--fs-body); }
.contact-hero .form-card { grid-area: form; }
.contact-hero__talk { grid-area: talk; }

.contact-hero__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
}

.contact-methods {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--line);
  list-style: none;
}

.contact-methods li { display: grid; background: var(--surface); }

.contact-method {
  display: grid;
  grid-template-columns: var(--s-5) minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4);
  color: var(--fg);
  text-decoration: none;
  transition: background var(--t) var(--ease);
}

.contact-method > .icon { width: var(--s-5); height: var(--s-5); color: var(--accent); }
.contact-method__go { display: none; }
a.contact-method:hover { background: var(--c-on-ink-hover); }
a.contact-method:focus-visible { outline-offset: calc(-1 * var(--focus-w)); }

.contact-method__label { display: block; text-transform: uppercase; }

.contact-method__value { display: block; font-weight: 500; overflow-wrap: anywhere; }

.contact-method--call .contact-method__value {
  font-family: var(--f-head);
  font-size: var(--fs-h3);
  font-weight: 700;
}

@media (min-width: 768px) {
  .contact-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-method__go { display: block; }
  .contact-method { padding: var(--s-5); }
}

@media (min-width: 1024px) {
  .contact-hero {
    grid-template-areas: "intro form" "talk talk";
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    column-gap: var(--s-8);
  }
}

.thank-you .h3 { margin-top: var(--s-7); }

.link-list {
  display: grid;
  gap: var(--s-2);
  margin-top: var(--s-5);
}

.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--tap);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--fg);
  font-family: var(--f-head);
  font-size: var(--fs-lead);
  font-weight: 600;
  text-decoration: none;
}

.link-list a:hover { border-color: var(--c-green); }

.stats { display: grid; gap: var(--s-6); margin: 0; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { color: var(--fg-muted); }

.stats dd {
  margin: 0;
  color: var(--accent);
  font-family: var(--f-head);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: var(--lh-head);
}

.owner figcaption { margin-top: var(--s-3); color: var(--fg-muted); }
.post-list li + li { margin-top: var(--s-6); padding-top: var(--s-6); border-top: 1px solid var(--line); }

@media (max-width: 767.98px) {
  .gallery-grid { gap: var(--s-2); }
  .gallery-grid > * { flex-basis: calc((100% - var(--s-2)) / 2); }
  .gallery-grid .card__body { padding: var(--s-2) var(--s-3); }
}

@media (min-width: 768px) {
  .features, .link-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .media-img--tall { aspect-ratio: 4 / 5; }
}

/* == Accessibility helpers == */

.screen-reader-text,
.screen-reader-response {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: var(--s-2);
  left: var(--s-2);
  z-index: var(--z-skip);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm);
  background: var(--c-green);
  color: var(--c-ink);
  font-family: var(--f-head);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(calc(-100% - var(--s-4)));
}

.skip-link:focus {
  --focus: var(--c-ink);
  transform: none;
}
