/* ==========================================================================
   Rota Home Services · design system
   Organic paper + brush-painted blocks. Mobile first.
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var-latin.woff2") format("woff2-variations"), url("../fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Next";
  src: url("../fonts/atkinson-next-var-latin.woff2") format("woff2-variations"), url("../fonts/atkinson-next-var-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallbacks to keep CLS near zero while fonts swap */
@font-face { font-family: "Archivo Fallback"; src: local("Arial Black"), local("Arial Bold"), local("Arial"); size-adjust: 104%; ascent-override: 88%; descent-override: 22%; }
@font-face { font-family: "Atkinson Fallback"; src: local("Verdana"), local("Arial"); size-adjust: 96%; }

/* ---------- Tokens ---------- */
:root {
  /* colour */
  --ink: #033938;          /* primary, text */
  --teal: #02746E;         /* secondary, painted blocks, links */
  --teal-deep: #025a55;
  --amber: #DC8802;        /* accent: backgrounds + marker only (fails as text) */
  --amber-ink: #8F5800;    /* amber that passes as small text on light */
  --amber-soft: #F6DDB0;
  --paper: #FDFEFE;        /* page */
  --linen: #F4EEE2;        /* paper blocks */
  --linen-deep: #EADFCB;
  --mint: #D9EAE4;         /* soft panels */
  --white: #fff;
  --muted: #335f5d;        /* secondary text on light, 7:1 on paper */
  --line: rgba(3, 57, 56, .16);
  --line-strong: rgba(3, 57, 56, .32);
  --on-dark-muted: #cfe3de;
  --marker: rgba(220, 136, 2, .42);
  --marker-dark: rgba(220, 136, 2, .55);
  --error: #A3261B;
  --ok: #02746E;

  /* type */
  --f-display: "Archivo", "Archivo Fallback", "Arial Black", sans-serif;
  --f-body: "Atkinson Next", "Atkinson Fallback", Verdana, sans-serif;
  --stretch: 118%;
  --fs-hero: clamp(2.3rem, 1.2rem + 4vw, 4.5rem);
  --fs-h1: clamp(2.2rem, 1.2rem + 4.2vw, 4.6rem);
  --fs-h2: clamp(1.85rem, 1.15rem + 2.9vw, 3.5rem);
  --fs-h3: clamp(1.2rem, 1rem + .75vw, 1.6rem);
  --fs-lead: clamp(1.08rem, 1rem + .4vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-tiny: .8125rem;

  /* space */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem; --s-9: 6.5rem; --s-10: 9rem;
  --gutter: clamp(16px, 4.2vw, 48px);
  --wrap: 1280px;
  --section: clamp(4rem, 2.6rem + 6vw, 8.5rem);

  /* shape */
  --r-s: 10px; --r-m: 18px; --r-l: 28px; --r-pill: 999px;
  --e: 24px;                        /* brush edge allowance (padding inside painted boxes) */
  --sh-lift: 0 22px 44px -26px rgba(3, 57, 56, .45);
  --sh-note: 0 1px 0 rgba(3,57,56,.06), 0 14px 26px -18px rgba(3, 57, 56, .5);

  /* motion */
  --ease-out: cubic-bezier(.2, .75, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .25, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .5, 1);
  --d-1: .18s; --d-2: .34s; --d-3: .7s; --d-4: 1.1s;

  --header-h: 68px;
  color-scheme: light;
}
@media (min-width: 1024px) { :root { --header-h: 80px; --e: 28px; } }

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper) url("../img/paper.webp");
  background-blend-mode: multiply;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
img { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p, ul, ol, dl, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--f-display);
  font-stretch: var(--stretch);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.022em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); line-height: 1.02; }
h3 { font-size: var(--fs-h3); line-height: 1.12; letter-spacing: -.012em; font-weight: 750; }
h4 { font-size: 1.05rem; letter-spacing: 0; font-weight: 700; line-height: 1.25; }
p { text-wrap: pretty; }
strong, b { font-weight: 750; }
em, i, cite { font-style: normal; }  /* no italics anywhere, by design */
::selection { background: var(--amber); color: var(--ink); }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: #FFC764; }
[hidden] { display: none !important; }

/* Links: own underline that draws */
a { color: var(--teal); text-decoration: none; }
.prose a, .link {
  color: var(--teal-deep);
  font-weight: 650;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat,
              linear-gradient(var(--marker), var(--marker)) 0 100% / 0% 45% no-repeat;
  transition: background-size var(--d-2) var(--ease-out);
  padding-bottom: 1px;
}
.prose a:hover, .link:hover { background-size: 100% 1.5px, 100% 45%; }
.on-dark .prose a, .on-dark .link { color: #fff; }

/* Marker highlight (never italics) */
.mark {
  background: linear-gradient(transparent 56%, var(--marker) 0);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding: 0 .06em;
}
.on-dark .mark, .mark--dark { background: linear-gradient(transparent 60%, var(--marker-dark) 0); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 12px; top: 10px; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-pill);
  font-weight: 700; transform: translateY(-160%); transition: transform var(--d-2) var(--ease-out);
}
.skip-link:focus-visible { transform: none; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(820px + var(--gutter) * 2); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--flush-top { padding-top: 0; }
.stack > * + * { margin-top: var(--flow, 1rem); }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--muted); max-width: 60ch; }
.on-dark .lead { color: var(--on-dark-muted); }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }
.tiny { font-size: var(--fs-tiny); }
.center { text-align: center; }
.on-dark, a.on-dark, li.on-dark { color: #fff; }
.on-dark .tile--teal { background: #fff; color: var(--teal); }

.section-head { display: grid; gap: var(--s-4); margin-bottom: clamp(2rem, 1.2rem + 3vw, 4rem); max-width: 62rem; }
.section-head--split { max-width: none; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.15fr .85fr; align-items: end; gap: var(--s-7); }
}

/* ---------- Brush-painted surfaces ---------- */
.brush {
  /* Marker-scribbled box traced from the reference sketch (see _tools/make-brush.mjs).
     The SVG has no viewBox, so it is drawn at the box's real size: edges never stretch. */
  position: relative;
  -webkit-mask: url("../img/brush/box-a.svg") 0 0 / 100% 100% no-repeat;
          mask: url("../img/brush/box-a.svg") 0 0 / 100% 100% no-repeat;
}
.brush--b { -webkit-mask-image: url("../img/brush/box-b.svg"); mask-image: url("../img/brush/box-b.svg"); }
.brush--c { -webkit-mask-image: url("../img/brush/box-c.svg"); mask-image: url("../img/brush/box-c.svg"); }
.brush--d { -webkit-mask-image: url("../img/brush/box-d.svg"); mask-image: url("../img/brush/box-d.svg"); }
.paint { background-image: url("../img/paper.webp"); background-blend-mode: multiply; }
.paint--teal { background-color: var(--teal); color: #fff; }
.paint--ink { background-color: var(--ink); color: #fff; }
.paint--linen { background-color: var(--linen); }
.paint--mint { background-color: var(--mint); }
.paint--amber { background-color: var(--amber); color: var(--ink); }
.paint--white { background-color: #fff; }

/* Torn band: rough top and bottom only, full bleed */
.torn {
  -webkit-mask:
    url("../img/brush/tear-top.svg") 0 0 / 600px 30px repeat-x,
    url("../img/brush/tear-bottom.svg") -220px 100% / 600px 30px repeat-x,
    linear-gradient(#000 0 0) 0 28px / 100% calc(100% - 56px) no-repeat;
          mask:
    url("../img/brush/tear-top.svg") 0 0 / 600px 30px repeat-x,
    url("../img/brush/tear-bottom.svg") -220px 100% / 600px 30px repeat-x,
    linear-gradient(#000 0 0) 0 28px / 100% calc(100% - 56px) no-repeat;
}
.torn--top {
  -webkit-mask: url("../img/brush/tear-top.svg") 0 0 / 600px 30px repeat-x, linear-gradient(#000 0 0) 0 28px / 100% calc(100% - 28px) no-repeat;
          mask: url("../img/brush/tear-top.svg") 0 0 / 600px 30px repeat-x, linear-gradient(#000 0 0) 0 28px / 100% calc(100% - 28px) no-repeat;
}

/* Brushed photo frame */
.photo { position: relative; overflow: hidden; background: var(--linen-deep); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--zoom img { transition: transform var(--d-4) var(--ease-out); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--amber); --fg: var(--ink); --bd: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: .8rem 1.5rem; border-radius: var(--r-pill);
  background: var(--bg); color: var(--fg); border: 2px solid var(--bd);
  font-family: var(--f-display); font-stretch: 108%; font-weight: 750; font-size: 1rem; letter-spacing: -.005em;
  line-height: 1.1; text-align: center; text-decoration: none;
  transition: transform var(--d-2) var(--ease-spring), background-color var(--d-2) var(--ease-out), color var(--d-2) var(--ease-out), box-shadow var(--d-2) var(--ease-out);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; transition: transform var(--d-2) var(--ease-out); }
.btn:active { transform: translateY(1px) scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -14px rgba(3, 57, 56, .7); }
  .btn:hover svg { transform: translateX(3px); }
  .btn--primary:hover { --bg: #ef9a12; }
  .btn--teal:hover { --bg: var(--teal-deep); }
  .btn--ghost:hover { --bg: rgba(255,255,255,.12); }
  .btn--outline:hover { --bg: var(--ink); --fg: #fff; }
}
.btn--teal { --bg: var(--teal); --fg: #fff; }
.btn--ink { --bg: var(--ink); --fg: #fff; }
.btn--ghost { --bg: transparent; --fg: #fff; --bd: rgba(255,255,255,.9); }
.btn--outline { --bg: transparent; --fg: var(--ink); --bd: var(--ink); }
.btn--sm { min-height: 44px; padding: .55rem 1.1rem; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn[aria-busy="true"] { pointer-events: none; }
.btn .spinner { width: 1.1em; height: 1.1em; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.text-link {
  display: inline-flex; align-items: center; gap: .45em; min-height: 44px;
  font-weight: 700; color: var(--ink);
  /* A real underline: it sits under the text on every line, whatever the box height or wrapping */
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: currentColor;
  transition: text-decoration-color var(--d-2) var(--ease-out), text-underline-offset var(--d-2) var(--ease-out), gap var(--d-2) var(--ease-out);
}
.text-link svg { width: 1.05em; height: 1.05em; }
@media (hover: hover) and (pointer: fine) { .text-link:hover { text-decoration-color: transparent; text-underline-offset: 10px; gap: .7em; } }
.on-dark .text-link { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(253, 254, 254, .97);
  border-bottom: 1px solid transparent;
  transition: border-color var(--d-2) var(--ease-out), box-shadow var(--d-2) var(--ease-out);
  view-transition-name: site-header;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -22px rgba(3,57,56,.6); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); height: var(--header-h); }
.logo { display: inline-flex; align-items: center; color: var(--ink); flex: none; min-height: 44px; }
.logo__img { display: block; width: auto; height: 44px; max-width: none; }
@media (min-width: 1024px) { .logo__img { height: 52px; } }
.site-footer .logo__img { height: 56px; }

.nav { display: none; }
.nav ul { display: flex; gap: clamp(.6rem, 1.6vw, 1.8rem); list-style: none; margin: 0; padding: 0; }
.nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  color: var(--ink); font-weight: 650; font-size: .98rem;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 3px; border-radius: 3px;
  background: var(--amber); transform: scaleX(0); transform-origin: right;
  transition: transform var(--d-2) var(--ease-out);
}
.nav a:hover::after, .nav a[aria-current="page"]::after, .nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
.header-cta { display: none; }
@media (min-width: 1100px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-btn { display: none !important; }
}

.menu-btn {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 46px; padding: 0 1rem 0 .85rem;
  border-radius: var(--r-pill); border: 2px solid var(--ink); background: transparent; color: var(--ink);
  font-weight: 750; font-size: .95rem;
}
.menu-btn__icon { position: relative; width: 20px; height: 14px; }
.menu-btn__icon span { position: absolute; left: 0; width: 100%; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform var(--d-2) var(--ease-out), opacity var(--d-1); }
.menu-btn__icon span:nth-child(1) { top: 0; }
.menu-btn__icon span:nth-child(2) { top: 5.75px; }
.menu-btn__icon span:nth-child(3) { bottom: 0; }
.menu-btn[aria-expanded="true"] .menu-btn__icon span:nth-child(1) { transform: translateY(5.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__icon span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-btn__icon span:nth-child(3) { transform: translateY(-5.75px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 55;
  background: var(--teal) url("../img/paper.webp"); background-blend-mode: multiply; color: #fff;
  padding: var(--s-6) var(--gutter) calc(var(--s-6) + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: var(--s-6); overflow-y: auto; overscroll-behavior: contain;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path var(--d-3) var(--ease-io), visibility 0s linear var(--d-3);
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path var(--d-3) var(--ease-io), visibility 0s; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; display: grid; }
.mobile-menu li + li { border-top: 1px solid rgba(255,255,255,.22); }
.mobile-menu a:not(.btn) {
  display: flex; align-items: center; justify-content: space-between; min-height: 60px;
  color: #fff; font-family: var(--f-display); font-stretch: 115%; font-weight: 780; font-size: clamp(1.4rem, 1rem + 2vw, 2rem);
}
.mobile-menu a:not(.btn) svg { width: 22px; height: 22px; opacity: .7; }
.mobile-menu__foot { margin-top: auto; display: grid; gap: var(--s-4); }
.mobile-menu__foot p { color: var(--on-dark-muted); font-size: var(--fs-small); }
body.menu-open { overflow: hidden; }

/* ---------- Breadcrumbs ---------- */
.crumbs { padding-top: var(--s-5); font-size: var(--fs-small); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; list-style: none; margin: 0; padding: 0; }
.crumbs li { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); }
.crumbs li + li::before { content: ""; width: 6px; height: 6px; border-right: 2px solid var(--line-strong); border-top: 2px solid var(--line-strong); transform: rotate(45deg); }
.crumbs a { color: var(--ink); font-weight: 650; display: inline-flex; min-height: 32px; align-items: center; }
.crumbs a:hover { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- Icons ---------- */
.ico { width: 24px; height: 24px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; color: #fff; flex: none; }
.tile svg { width: 26px; height: 26px; }
.tile--teal { background: var(--teal); }
.tile--amber { background: var(--amber); color: #fff; }
.tile--bolt { border-radius: 16px 6px 6px 6px; }
.tile--drop { border-radius: 6px 16px 6px 6px; }
.tile--spark { border-radius: 6px 6px 6px 16px; }
.tile--wave { border-radius: 6px 6px 16px 6px; }
.tile--roller { border-radius: 16px 6px 16px 6px; }
.tiles { display: inline-flex; gap: 5px; }

/* ==========================================================================
   HOME HERO
   ========================================================================== */
.hero { position: relative; padding-top: clamp(1rem, .5rem + 2vw, 2.5rem); padding-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); position: relative; }
.hero__block {
  grid-row: 1; padding: calc(var(--e) + clamp(1.4rem, .8rem + 3vw, 3.6rem)) calc(var(--e) + clamp(1rem, .5rem + 3vw, 3.4rem));
  padding-bottom: calc(var(--e) + clamp(1.6rem, 1rem + 3vw, 3.6rem));
  z-index: 1;
}
.hero__title { font-size: var(--fs-hero); line-height: .94; letter-spacing: -.03em; max-width: 13ch; }
.hero__title .mark { background: linear-gradient(transparent 62%, var(--marker-dark) 0); }
.hero__sub { margin-top: var(--s-5); font-size: var(--fs-lead); line-height: 1.5; max-width: 34rem; color: #e6f2ef; }
.hero__actions { margin-top: var(--s-6); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
.hero__photo {
  grid-row: 2; margin-top: calc(var(--e) * -1.6); margin-inline: 6% -2%;
  aspect-ratio: 4 / 3; z-index: 2;
}
.hero__photo .photo { height: 100%; }
.hero__photo img { object-position: 50% 40%; }
.hero__mark { position: absolute; z-index: 3; width: 74px; height: 74px; right: 4%; bottom: -26px; filter: drop-shadow(0 10px 14px rgba(3,57,56,.28)); }
.hero__mark svg { width: 100%; height: 100%; overflow: visible; }

/* Lost-in-translation note */
.note {
  grid-row: 3; justify-self: start; z-index: 4;
  position: relative; margin: -1.6rem 0 0 4%; max-width: 22rem; padding: 1rem 1.2rem 1.05rem;
  background: var(--linen) url("../img/paper.webp"); background-blend-mode: multiply; color: var(--ink);
  border-radius: 4px 4px 16px 4px; box-shadow: var(--sh-note); transform: rotate(-1.6deg);
}
.note::before { /* tape */
  content: ""; position: absolute; top: -10px; left: 22px; width: 64px; height: 20px;
  background: rgba(246, 221, 176, .85); transform: rotate(-4deg); border-radius: 2px;
}
.note__es { position: relative; display: inline; font-size: .98rem; color: var(--muted); }
.note__es::after {
  content: ""; position: absolute; left: -2px; right: -2px; top: 52%; height: 2.5px; border-radius: 2px;
  background: var(--amber-ink); transform: scaleX(0); transform-origin: left;
  animation: strike .8s var(--ease-out) 1.25s forwards;
}
.note__en { display: block; margin-top: .5rem; font-family: var(--f-display); font-stretch: 112%; font-weight: 780; font-size: 1.12rem; line-height: 1.2; opacity: 0; transform: translateY(6px); animation: rise .6s var(--ease-out) 1.9s forwards; }
@keyframes strike { to { transform: scaleX(1); } }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero-points { margin-top: clamp(2rem, 1rem + 3vw, 3.2rem); display: grid; gap: var(--s-3); list-style: none; padding: 0; }
.hero-points li { display: flex; align-items: center; gap: .8rem; font-weight: 700; }
.hero-points .ico { width: 26px; height: 26px; color: var(--teal); }

@media (min-width: 640px) {
  .hero-points { grid-template-columns: repeat(3, auto); justify-content: start; gap: var(--s-4) var(--s-6); }
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .hero__block { grid-column: 1 / span 8; grid-row: 1; min-height: min(calc(100vh - var(--header-h) - 120px), 640px); display: flex; flex-direction: column; justify-content: center; padding-right: calc(var(--e) + 9%); }
  .hero__photo { grid-column: 8 / span 5; grid-row: 1; margin: 0; aspect-ratio: 4 / 5; margin-top: 9%; margin-right: calc(var(--gutter) * -.4); }
  .hero__photo img { object-position: 30% 50%; }
  .hero__mark { left: auto; right: 1%; top: 3%; bottom: auto; width: 96px; height: 96px; }
  .hero__title { max-width: 16ch; }
  .note { position: absolute; grid-row: auto; left: calc(66.66% - 14rem); bottom: -2.2rem; margin: 0; max-width: 18.5rem; transform: rotate(2.2deg); }
}

/* ==========================================================================
   SERVICE PAGE HERO (split: painted block + quote form)
   ========================================================================== */
.phero { padding-top: var(--s-4); padding-bottom: var(--section); }
.phero__grid { display: grid; gap: var(--s-5); align-items: start; }
.phero__block { padding: calc(var(--e) + clamp(1.4rem, .8rem + 2.6vw, 3.2rem)) calc(var(--e) + clamp(1rem, .6rem + 2.4vw, 3rem)); }
.phero__block h1 { font-size: var(--fs-h1); max-width: 14ch; line-height: .96; letter-spacing: -.028em; }
.phero__block .lead { color: #e6f2ef; margin-top: var(--s-5); }
.phero__tiles { display: flex; gap: 6px; margin-bottom: var(--s-5); }
.phero__points { margin-top: var(--s-6); display: grid; gap: .7rem; list-style: none; padding: 0; }
.phero__points li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 650; }
.phero__points .ico { color: var(--amber); margin-top: 1px; }
.phero__urgency { margin-top: var(--s-5); display: inline-flex; gap: .6rem; align-items: center; padding: .55rem .9rem; border-radius: var(--r-pill); background: rgba(255,255,255,.12); font-weight: 700; font-size: var(--fs-small); }
.phero__photo { margin-top: var(--s-5); aspect-ratio: 16 / 10; }
.phero__photo .photo { height: 100%; }
.phero__form { position: relative; }
@media (min-width: 1024px) {
  .phero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(1.5rem, 3vw, 3rem); }
  .phero__form { margin-top: clamp(2rem, 6vw, 5rem); }
}

/* ==========================================================================
   QUOTE FORM
   ========================================================================== */
.form-card { padding: calc(var(--e) + clamp(1.2rem, .8rem + 1.5vw, 2.2rem)) calc(var(--e) + clamp(1rem, .6rem + 1.5vw, 2rem)); }
.form-card__title { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.form-card__intro { margin-top: .5rem; color: var(--muted); font-size: var(--fs-small); }
.qform { margin-top: var(--s-5); display: grid; gap: 1.05rem; }
.qform__row { display: grid; gap: 1.05rem; }
@media (min-width: 640px) { .qform__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .4rem; align-content: start; }
.field label, .field legend { font-weight: 750; font-size: .95rem; }
.field .req { color: var(--amber-ink); font-weight: 800; }
.field .opt { color: var(--muted); font-weight: 500; font-size: .85rem; }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: .8rem 1rem; border-radius: 12px;
  border: 2px solid var(--line-strong); background: #fff; color: var(--ink); font-size: 1rem; line-height: 1.3;
  transition: border-color var(--d-1) var(--ease-out), box-shadow var(--d-1) var(--ease-out);
  -webkit-appearance: none; appearance: none;
}
.textarea { min-height: 112px; resize: vertical; }
.select { padding-right: 2.6rem; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23033938' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right .85rem center / 20px no-repeat; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(2,116,110,.2); }
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea { border-color: var(--error); }
.field.is-valid .input { border-color: var(--teal); }
.field__error { display: flex; gap: .4rem; align-items: flex-start; color: var(--error); font-size: .9rem; font-weight: 650; min-height: 0; }
.field__error:empty { display: none; }
.field__error::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: var(--error) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 4v5M8 11.5v.5' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.field.is-invalid .field__error { animation: nudge .32s var(--ease-out); }
@keyframes nudge { 0%,100% { transform: none; } 30% { transform: translateX(-4px); } 60% { transform: translateX(3px); } }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: .45rem; }
.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1rem; border-radius: var(--r-pill);
  border: 2px solid var(--line-strong); background: #fff; font-weight: 650; font-size: .95rem;
  transition: background-color var(--d-1) var(--ease-out), border-color var(--d-1), color var(--d-1), transform var(--d-2) var(--ease-spring);
}
.choice input:hover + span { border-color: var(--ink); }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.choice input:active + span { transform: scale(.96); }
.check { display: grid; grid-template-columns: 26px 1fr; gap: .75rem; align-items: start; font-size: .95rem; line-height: 1.5; }
.check input {
  -webkit-appearance: none; appearance: none; width: 26px; height: 26px; margin: 0; border-radius: 7px;
  border: 2px solid var(--ink); background: #fff; display: grid; place-items: center; cursor: pointer;
  transition: background-color var(--d-1) var(--ease-out);
}
.check input { position: relative; }
.check input::before { content: ""; position: absolute; inset: -10px; }
.check input::after { content: ""; width: 12px; height: 7px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: translateY(-2px) rotate(-45deg) scale(0); transition: transform var(--d-2) var(--ease-spring); }
.check input:checked { background: var(--teal); border-color: var(--teal); }
.check input:checked::after { transform: translateY(-2px) rotate(-45deg) scale(1); }
.check label { cursor: pointer; }
.field.is-invalid .check input { border-color: var(--error); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.privacy-layer {
  font-size: .84rem; line-height: 1.5; color: var(--muted); padding: .9rem 1rem; border-radius: 12px;
  background: rgba(3,57,56,.045); border: 1px dashed var(--line-strong);
}
.privacy-layer dl { display: grid; grid-template-columns: auto 1fr; gap: .15rem .6rem; }
.privacy-layer dt { font-weight: 750; color: var(--ink); }
.privacy-layer dd { margin: 0; }
.form-status { display: flex; gap: .7rem; align-items: flex-start; padding: .9rem 1rem; border-radius: 12px; font-weight: 650; }
.form-status:empty { display: none; }
.form-status--error { background: #fbe9e6; color: var(--error); }
.form-status--ok { background: var(--mint); color: var(--ink); }
.qform__submit { display: grid; gap: .6rem; }
.qform__submit .tiny { color: var(--muted); text-align: center; }

/* ==========================================================================
   HOME: SERVICES (asymmetric trio)
   ========================================================================== */
.svc-grid { display: grid; gap: var(--s-5); }
.svc { display: flex; flex-direction: column; padding: calc(var(--e) + 1.5rem) calc(var(--e) + 1.25rem); color: inherit; }
.svc__photo { margin: calc(var(--e) * -.4) calc(var(--e) * -.4) var(--s-5); aspect-ratio: 16 / 10; }
.svc__photo .photo { height: 100%; }
.svc__head { display: flex; align-items: center; gap: var(--s-3) var(--s-4); flex-wrap: wrap; }
.svc-grid > * { min-width: 0; }
.svc h3 { font-size: clamp(1.45rem, 1.1rem + 1.3vw, 2.2rem); }
.svc p { margin-top: var(--s-3); max-width: 40ch; }
.svc ul { margin-top: var(--s-4); display: grid; gap: .45rem; list-style: none; padding: 0; }
.svc li { display: flex; gap: .6rem; align-items: baseline; font-weight: 650; }
.svc li::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 2px 2px 2px 6px; background: var(--amber); transform: translateY(-1px); }
.svc ul { margin-bottom: var(--s-5); }
/* No padding on the link itself: its underline is drawn 9px above the box's bottom edge, so extra padding pushed it through the text */
.svc .text-link { margin-top: auto; align-self: flex-start; }
.svc--ac p, .svc--ac li { color: #e6f2ef; }
@media (hover: hover) and (pointer: fine) {
  .svc .photo img { transition: transform var(--d-4) var(--ease-out); }
  .svc:hover .photo img { transform: scale(1.045); }
}
/* Four services: one column on phones, 2 x 2 from large phones / tablets up */
.svc--painting li::before { background: var(--ink); }
@media (min-width: 640px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 640px) and (max-width: 899px) {
  .svc { padding: calc(var(--e) + 1.1rem) calc(var(--e) + .8rem); }
  .svc h3 { font-size: 1.35rem; }
}

/* ==========================================================================
   HOW IT WORKS (horizontal track)
   ========================================================================== */
.how { overflow: clip; }
.how__track {
  display: flex; gap: var(--s-4); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding-bottom: var(--s-4); scrollbar-width: thin; scrollbar-color: var(--teal) transparent;
  overscroll-behavior-x: contain;
}
.how__card {
  flex: 0 0 min(84vw, 380px); scroll-snap-align: start; min-height: 360px;
  display: flex; flex-direction: column; padding: calc(var(--e) + 1.6rem) calc(var(--e) + 1.3rem);
}
.how__num { font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: 4.2rem; line-height: .8; color: var(--amber); letter-spacing: -.04em; }
.how__card h3 { margin-top: var(--s-5); font-size: clamp(1.45rem, 1.1rem + 1vw, 1.95rem); color: #fff; }
.how__card p { margin-top: var(--s-3); color: #e6f2ef; }
.how__card .btn { margin-top: auto; align-self: flex-start; }
.how__card--end { background-color: var(--amber); color: var(--ink); }
.how__card--end h3, .how__card--end p { color: var(--ink); }
.how__card--end .how__num { color: var(--ink); }
.how__hint { margin-top: var(--s-3); display: flex; align-items: center; gap: .5rem; font-size: var(--fs-small); color: var(--muted); }
.how__hint svg { width: 18px; height: 18px; }
@media (min-width: 1024px) {
  .how.is-pinned .how__track { overflow: visible; scroll-snap-type: none; width: max-content; padding-right: 20vw; }
  .how.is-pinned .how__hint { display: none; }
  .how__card { flex-basis: 410px; min-height: 420px; }
  .how__card:nth-child(even) { margin-top: 3.5rem; }
}

/* Static 3-step (service pages) */
.steps { display: grid; gap: var(--s-5); counter-reset: step; list-style: none; padding: 0; }
.steps li { position: relative; padding-top: var(--s-5); border-top: 3px solid var(--ink); }
.steps li::before { counter-increment: step; content: counter(step); font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: 3rem; line-height: 1; color: var(--amber-ink); display: block; margin-bottom: var(--s-3); }
.steps h3 { font-size: 1.3rem; }
.steps p { margin-top: .5rem; color: var(--muted); }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); } }

/* ==========================================================================
   WHY US (photo + mint panel)
   ========================================================================== */
.why { display: grid; gap: var(--s-5); align-items: stretch; }
.why__photo { aspect-ratio: 4 / 3; }
.why__photo .photo { height: 100%; }
.why__panel { padding: calc(var(--e) + clamp(1.4rem, 1rem + 2vw, 3rem)) calc(var(--e) + clamp(1.2rem, .8rem + 2vw, 2.8rem)); }
.why__list { margin-top: var(--s-6); display: grid; gap: var(--s-5); list-style: none; padding: 0; }
.why__list li { display: grid; grid-template-columns: 34px 1fr; gap: .9rem; }
.why__list h3 { font-size: 1.18rem; }
.why__list p { margin-top: .25rem; color: var(--muted); }
.why__list .check-ico { width: 34px; height: 34px; color: var(--teal); }
@media (min-width: 1024px) {
  .why { grid-template-columns: 5fr 7fr; }
  .why__photo { aspect-ratio: auto; height: 100%; min-height: 520px; margin-block: 3rem -1rem; }
  .why__panel { margin-left: -3rem; }
}

/* ==========================================================================
   WHO PAYS? (interactive)
   ========================================================================== */
.whopays { display: grid; gap: var(--s-6); }
.whopays > div:first-child > * + * { margin-top: var(--s-5); }
.whopays__issues { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; padding: 0; margin: 0; }
.issue-btn {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 46px; padding: .55rem 1rem .55rem .7rem;
  border-radius: var(--r-pill); border: 2px solid var(--ink); background: #fff; color: var(--ink);
  font-weight: 700; font-size: .95rem; text-align: left;
  transition: background-color var(--d-1) var(--ease-out), color var(--d-1), transform var(--d-2) var(--ease-spring);
}
.issue-btn svg { width: 22px; height: 22px; color: var(--teal); flex: none; }
.issue-btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.issue-btn[aria-pressed="true"] svg { color: var(--amber); }
@media (hover: hover) and (pointer: fine) { .issue-btn:hover { transform: translateY(-2px); } }
.issue-btn:active { transform: scale(.96); }
.verdict-wrap { perspective: 1400px; }
.verdict {
  min-height: 300px; padding: calc(var(--e) + 1.6rem) calc(var(--e) + 1.4rem);
  transform-style: preserve-3d; transform-origin: 50% 50%;
}
.verdict.is-flipping { animation: flip .62s var(--ease-io); }
@keyframes flip { 0% { transform: rotateY(0); } 50% { transform: rotateY(88deg); } 51% { transform: rotateY(-88deg); } 100% { transform: rotateY(0); } }
.verdict__label { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .85rem; border-radius: var(--r-pill); font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: .95rem; background: #fff; color: var(--ink); }
.verdict__label[data-who="landlord"] { background: var(--amber); }
.verdict__label[data-who="you"] { background: #fff; }
.verdict__label[data-who="lease"] { background: var(--mint); }
.verdict h3 { margin-top: var(--s-5); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem); color: #fff; }
.verdict p { margin-top: var(--s-3); color: #e6f2ef; max-width: 52ch; }
.verdict__tip { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid rgba(255,255,255,.25); font-size: var(--fs-small); }
.whopays__note { font-size: var(--fs-small); color: var(--muted); max-width: 60ch; }
@media (min-width: 1024px) {
  .whopays { grid-template-columns: 1fr 1.05fr; align-items: start; gap: var(--s-7); }
  .verdict-wrap { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* ==========================================================================
   PCS HIGHLIGHT
   ========================================================================== */
.pcs { display: grid; gap: var(--s-6); align-items: center; }
.pcs h2 { font-size: clamp(2.3rem, 1.2rem + 5vw, 5.4rem); line-height: .94; letter-spacing: -.03em; }
.pcs__text p { margin-top: var(--s-5); max-width: 46ch; font-size: var(--fs-lead); }
.pcs__actions { margin-top: var(--s-6); display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); align-items: center; }
.pcs__photo { aspect-ratio: 5 / 4; }
.pcs__photo .photo { height: 100%; }
.pcs__tag { position: absolute; z-index: 2; left: -8px; bottom: 12%; padding: .7rem 1rem; background: var(--ink); color: #fff; font-weight: 750; font-size: .95rem; border-radius: 4px 14px 4px 4px; transform: rotate(-3deg); box-shadow: var(--sh-note); max-width: 15rem; line-height: 1.3; }
@media (min-width: 1024px) { .pcs { grid-template-columns: 1.1fr .9fr; gap: var(--s-8); } }

/* ==========================================================================
   GUIDE CARDS
   ========================================================================== */
.guide-grid { display: grid; gap: var(--s-5); }
.gcard { position: relative; display: flex; flex-direction: column; color: var(--ink); }
.gcard__img { aspect-ratio: 16 / 10; border-radius: var(--r-m); overflow: hidden; background: var(--linen-deep); }
.gcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--d-4) var(--ease-out); }
.gcard__body { padding-top: var(--s-4); display: grid; gap: .5rem; }
.gcard h3 { font-size: clamp(1.2rem, 1rem + .7vw, 1.5rem); }
.gcard h3 a { color: inherit; }
.gcard h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-m); }
.gcard p { color: var(--muted); font-size: var(--fs-small); }
.gcard__meta { font-size: var(--fs-tiny); color: var(--muted); font-weight: 650; display: flex; gap: .8rem; }
.gcard__more { display: inline-flex; gap: .4rem; align-items: center; font-weight: 750; font-size: .95rem; margin-top: .3rem; }
.gcard__more svg { width: 18px; height: 18px; transition: transform var(--d-2) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .gcard { transition: transform var(--d-2) var(--ease-out); }
  .gcard:hover { transform: translateY(-3px); }
  .gcard:hover .gcard__img img { transform: scale(1.05); }
  .gcard:hover .gcard__more svg { transform: translateX(4px); }
}
.gcard:focus-within { outline: 3px solid var(--amber); outline-offset: 6px; border-radius: var(--r-m); }
.gcard:focus-within h3 a:focus-visible { outline: none; }
@media (min-width: 768px) { .guide-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .guide-grid--home { grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: var(--s-5) var(--s-7); }
  .guide-grid--home .gcard:first-child { grid-row: span 2; }
  .guide-grid--home .gcard:first-child .gcard__img { aspect-ratio: 4 / 3; }
  .guide-grid--home .gcard:not(:first-child) { display: grid; grid-template-columns: 44% 1fr; gap: var(--s-5); align-items: start; }
  .guide-grid--home .gcard:not(:first-child) .gcard__img { aspect-ratio: 1 / 1; }
  .guide-grid--home .gcard:not(:first-child) .gcard__body { padding-top: 0; }
  .guide-grid--all { grid-template-columns: repeat(3, 1fr); }
  .guide-grid--all .gcard:first-child { grid-column: span 2; }
  .guide-grid--all .gcard:first-child .gcard__img { aspect-ratio: 2 / 1; }
}

/* ==========================================================================
   SERVICE AREA (coast map)
   ========================================================================== */
.area { padding: calc(var(--e) + clamp(1.6rem, 1rem + 3vw, 3.6rem)) calc(var(--e) + clamp(1.2rem, .8rem + 3vw, 3.4rem)); display: grid; gap: var(--s-6); }
.area h2 { color: #fff; }
.area__count { display: flex; align-items: baseline; gap: .8rem; margin-top: var(--s-5); }
.area__count b { font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: clamp(4rem, 3rem + 4vw, 7rem); line-height: .8; color: var(--amber); font-variant-numeric: tabular-nums; }
.area__count span { font-weight: 700; max-width: 12ch; line-height: 1.25; }
.area__towns { margin-top: var(--s-5); display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; }
.area__towns li { padding: .45rem .9rem; border-radius: var(--r-pill); border: 1.5px solid rgba(255,255,255,.5); font-weight: 650; font-size: .95rem; }
.map { position: relative; border-radius: var(--r-m); overflow: hidden; background: #0b5f5a; aspect-ratio: 4 / 3; }
.map > svg { width: 100%; height: 100%; }
.map__facade .ico { width: 18px; height: 18px; }
.area .lead { margin-top: var(--s-4); }
.map .coast { fill: none; stroke: #e9f4f1; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.map .land { fill: rgba(255,255,255,.06); }
.map .road { fill: none; stroke: rgba(255,255,255,.28); stroke-width: 1.5; stroke-dasharray: 4 6; }
.map .pin circle { fill: var(--amber); stroke: #033938; stroke-width: 2; }
.map .pin text { fill: #fff; font-family: var(--f-body); font-weight: 700; font-size: 15px; }
.map .sea-label { fill: rgba(255,255,255,.45); font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: 13px; letter-spacing: .18em; }
.map__facade { position: absolute; left: 12px; bottom: 12px; max-width: min(330px, calc(100% - 24px)); padding: .9rem 1rem; border-radius: 12px; background: rgba(3,57,56,.92); display: grid; gap: .6rem; }
.map__facade p { font-size: .84rem; color: var(--on-dark-muted); line-height: 1.45; }
.map__facade .actions { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (min-width: 1024px) { .area { grid-template-columns: .9fr 1.1fr; align-items: center; gap: var(--s-7); } .map { aspect-ratio: 5 / 4; } }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-layout { display: grid; gap: var(--s-6); }
@media (min-width: 1024px) { .faq-layout { grid-template-columns: .8fr 1.2fr; gap: var(--s-8); } .faq-layout__head { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 36px; gap: var(--s-4); align-items: center;
  padding: 1.2rem 0; min-height: 56px; font-family: var(--f-display); font-stretch: 108%; font-weight: 750; font-size: clamp(1.05rem, .98rem + .35vw, 1.25rem); line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; width: 36px; height: 36px; border-radius: 50%; background: var(--mint); transition: background-color var(--d-2) var(--ease-out), transform var(--d-2) var(--ease-out); }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2.5px; margin: -1.25px 0 0 -7px; background: var(--ink); border-radius: 2px; transition: transform var(--d-2) var(--ease-out); }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm { background: var(--amber); }
.faq details[open] summary .pm::after { transform: rotate(0); }
@media (hover: hover) and (pointer: fine) { .faq summary:hover .pm { transform: scale(1.08); } }
.faq__a { padding: 0 3rem 1.4rem 0; color: var(--muted); }
.faq__a p + p { margin-top: .7rem; }
.faq__a a { color: var(--teal-deep); font-weight: 700; text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ==========================================================================
   CLOSING CTA (amber torn band + form)
   ========================================================================== */
.close { position: relative; padding-top: var(--section); }
.close__band { padding: clamp(3.4rem, 2.4rem + 4vw, 6rem) 0 clamp(9rem, 7rem + 6vw, 12rem); }
.close__text h2 { font-size: clamp(2.1rem, 1.2rem + 4.2vw, 4.8rem); line-height: .96; max-width: 16ch; letter-spacing: -.03em; }
.close__text p { margin-top: var(--s-4); max-width: 46ch; font-size: var(--fs-lead); }
.close__picks { margin-top: var(--s-5); display: flex; flex-wrap: wrap; gap: .5rem; }
.pick {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 46px; padding: .5rem 1.1rem .5rem .6rem;
  border-radius: var(--r-pill); background: #fff; color: var(--ink); border: 2px solid var(--ink); font-weight: 750;
  transition: transform var(--d-2) var(--ease-spring), background-color var(--d-1);
}
.pick .tile { width: 30px; height: 30px; border-radius: 50%; }
.pick .tile svg { width: 18px; height: 18px; }
.pick[aria-pressed="true"] { background: var(--ink); color: #fff; }
@media (hover: hover) and (pointer: fine) { .pick:hover { transform: translateY(-2px) rotate(-1deg); } }
.close__band { padding-bottom: clamp(3.4rem, 2.4rem + 4vw, 6rem); }
.close__inner { display: grid; gap: var(--s-6); }
.close__inner > *, .phero__grid > * { min-width: 0; }
.close__form { position: relative; z-index: 2; }
@media (min-width: 1024px) {
  .close__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 600px); gap: var(--s-7); align-items: start; }
  .close__text { position: sticky; top: calc(var(--header-h) + 32px); padding-top: var(--s-5); }
}

/* ==========================================================================
   EDITORIAL LIST (electricians & plumbers)
   ========================================================================== */
.elist { border-top: 2px solid var(--ink); list-style: none; margin: 0; padding: 0; }
.elist__item { position: relative; display: grid; grid-template-columns: 1fr; gap: var(--s-3); padding: var(--s-5) 0; border-bottom: 1px solid var(--line-strong); }
.elist__thumb { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-s); overflow: hidden; background: var(--linen-deep); }
.elist__thumb img { width: 100%; height: 100%; object-fit: cover; }
.elist__item h3 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.75rem); }
.elist__item p { color: var(--muted); max-width: 58ch; }
.elist__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; list-style: none; padding: 0; }
.elist__tags li { font-size: .84rem; font-weight: 700; padding: .25rem .65rem; border-radius: var(--r-pill); background: var(--mint); }
.elist__item > .tiles { align-self: start; }
@media (min-width: 768px) {
  .elist__item { grid-template-columns: 64px 1fr 220px; gap: var(--s-5); align-items: center; padding: var(--s-6) var(--s-4); }
  .elist__thumb { aspect-ratio: 4 / 3; }
}
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .elist__item { transition: background-color var(--d-2) var(--ease-out), padding var(--d-2) var(--ease-out); border-radius: 0; }
  .elist__item:hover { background: var(--mint); padding-inline: var(--s-5); }
  .elist__thumb { opacity: .0; transform: scale(.9) rotate(-2deg); transition: opacity var(--d-2) var(--ease-out), transform var(--d-3) var(--ease-spring); }
  .elist__item:hover .elist__thumb, .elist__item:focus-within .elist__thumb { opacity: 1; transform: none; }
}

/* ==========================================================================
   BENTO (cleaning services)
   ========================================================================== */
.bento { display: grid; gap: var(--s-4); }
.bento__item { padding: calc(var(--e) + 1.3rem) calc(var(--e) + 1.1rem); display: flex; flex-direction: column; gap: .6rem; min-height: 220px; }
.bento__item h3 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.7rem); }
.bento__item p { color: inherit; opacity: .92; }
.bento__item .text-link, .bento__item .btn { margin-top: auto; align-self: flex-start; }
.bento__photo { margin: calc(var(--e) * -.3) calc(var(--e) * -.3) .6rem; aspect-ratio: 16 / 9; border-radius: var(--r-s); overflow: hidden; }
.bento__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) { .bento { grid-template-columns: repeat(6, 1fr); } .bento__item { grid-column: span 3; } .bento__item--wide { grid-column: span 6; } }
@media (min-width: 1024px) {
  .bento__item--a { grid-column: span 4; grid-row: span 2; }
  .bento__item--b { grid-column: span 2; }
  .bento__item--c { grid-column: span 2; }
  .bento__item--d, .bento__item--e { grid-column: span 3; }
}

/* ==========================================================================
   ACCORDION WITH IMAGE (AC services)
   ========================================================================== */
.acc-img { display: grid; gap: var(--s-6); align-items: start; }
.acc-img__media { position: relative; aspect-ratio: 4 / 3; display: none; }
.acc-img__media .photo { position: absolute; inset: 0; opacity: 0; transition: opacity var(--d-3) var(--ease-out); }
.acc-img__media .photo.is-active { opacity: 1; }
.acc-list { border-top: 2px solid var(--ink); }
.acc-item { border-bottom: 1px solid var(--line-strong); }
.acc-item h3 { margin: 0; }
.acc-item button {
  width: 100%; display: grid; grid-template-columns: 46px 1fr 32px; gap: var(--s-4); align-items: center; text-align: left;
  min-height: 72px; padding: var(--s-4) 0; background: none; border: 0; color: var(--ink);
  font-family: var(--f-display); font-stretch: 112%; font-weight: 780; font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); line-height: 1.15;
}
.acc-item button .chev { width: 32px; height: 32px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; transition: transform var(--d-2) var(--ease-out), background-color var(--d-2); }
.acc-item button .chev svg { width: 16px; height: 16px; }
.acc-item button[aria-expanded="true"] .chev { transform: rotate(180deg); background: var(--amber); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--d-3) var(--ease-out); }
.acc-panel > div { overflow: hidden; }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel__inner { padding: 0 0 var(--s-5) calc(46px + var(--s-4)); color: var(--muted); }
.acc-panel__inner ul { margin-top: .6rem; padding-left: 1.1rem; }
.acc-panel__inner li + li { margin-top: .25rem; }
.acc-panel__photo { margin-top: var(--s-4); aspect-ratio: 16 / 9; border-radius: var(--r-s); overflow: hidden; }
.acc-panel__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) {
  .acc-img { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
  .acc-img__media { display: block; position: sticky; top: calc(var(--header-h) + 24px); }
  .acc-panel__photo { display: none; }
}

/* ==========================================================================
   COMPARISON TABLE (AC in Spain vs US)
   ========================================================================== */
.table-wrap { overflow-x: auto; border-radius: var(--r-m); border: 2px solid var(--ink); background: #fff; }
.ctable { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .98rem; }
.ctable caption { text-align: left; padding: 1rem 1.2rem; font-weight: 700; color: var(--muted); caption-side: bottom; font-size: var(--fs-small); border-top: 1px solid var(--line); }
.ctable th, .ctable td { padding: .95rem 1.2rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.ctable thead th { background: var(--ink); color: #fff; font-family: var(--f-display); font-stretch: 112%; font-weight: 780; }
.ctable tbody th { font-weight: 750; width: 22%; }
.ctable tbody tr:nth-child(even) { background: rgba(217, 234, 228, .45); }

/* ==========================================================================
   TIMELINE (PCS) horizontal
   ========================================================================== */
.tl { overflow: clip; }
.tl__track { display: flex; gap: var(--s-4); margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) var(--s-4); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; }
.tl__step { flex: 0 0 min(82vw, 360px); scroll-snap-align: start; position: relative; padding-top: 3.4rem; }
.tl__step::before { content: ""; position: absolute; top: 1.05rem; left: 0; right: calc(var(--s-4) * -1); height: 3px; background: var(--ink); }
.tl__step:last-child::before { right: 30%; }
.tl__dot { position: absolute; top: 0; left: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--amber); border: 3px solid var(--ink); }
.tl__when { font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: clamp(1.7rem, 1.2rem + 1.5vw, 2.5rem); line-height: 1; letter-spacing: -.02em; }
.tl__card { margin-top: var(--s-4); padding: calc(var(--e) + 1.1rem) calc(var(--e) + 1rem); }
.tl__card ul { display: grid; gap: .5rem; padding-left: 1.1rem; }
@media (min-width: 1024px) {
  .tl.is-pinned .tl__track { overflow: visible; width: max-content; scroll-snap-type: none; padding-right: 18vw; }
  .tl__step { flex-basis: 420px; }
}

/* ==========================================================================
   ROOMS CHECKLIST (move-out)
   ========================================================================== */
.rooms { display: grid; gap: var(--s-4); list-style: none; padding: 0; }
.room { padding: calc(var(--e) + 1.2rem) calc(var(--e) + 1rem); }
.room h3 { display: flex; align-items: center; gap: .7rem; font-size: 1.3rem; }
.room h3 .ico { color: var(--teal); width: 28px; height: 28px; }
.room ul { margin-top: var(--s-4); display: grid; gap: .45rem; list-style: none; padding: 0; }
.room li { display: grid; grid-template-columns: 20px 1fr; gap: .6rem; font-size: .98rem; }
.room li::before { content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 5px; border: 2px solid var(--ink); background: linear-gradient(#fff, #fff); }
@media (min-width: 768px) { .rooms { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .rooms { grid-template-columns: repeat(3, 1fr); } .room:nth-child(3n+2) { margin-top: 2rem; } }

/* ==========================================================================
   SPLIT TEXT + PHOTO
   ========================================================================== */
.split { display: grid; gap: var(--s-6); align-items: center; }
.split__photo { aspect-ratio: 4 / 3; }
.split__photo .photo { height: 100%; }
.split__text > * + * { margin-top: var(--s-4); }
.split__text h2 + p { margin-top: var(--s-5); }
@media (min-width: 1024px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
  .split--rev .split__photo { order: 2; }
  .split--wide-text { grid-template-columns: 1.2fr .8fr; }
}
.band { padding: calc(var(--e) + clamp(1.8rem, 1rem + 3vw, 3.6rem)) calc(var(--e) + clamp(1.2rem, .8rem + 3vw, 3.4rem)); }

/* Other services cards */
.others { display: grid; gap: var(--s-4); }
.other {
  display: grid; grid-template-columns: 1fr auto; gap: var(--s-4); align-items: center; color: var(--ink);
  padding: calc(var(--e) + 1.1rem) calc(var(--e) + 1rem);
}
.other h3 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.7rem); }
.other p { margin-top: .3rem; color: var(--muted); }
.other .arrow { width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; transition: transform var(--d-2) var(--ease-spring); }
.other .arrow svg { width: 22px; height: 22px; }
@media (hover: hover) and (pointer: fine) { .other:hover .arrow { transform: rotate(-35deg) scale(1.06); } }
@media (min-width: 768px) { .others { grid-template-columns: 1fr 1fr; } }

/* Season strip (AC) */
.season { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; margin-top: var(--s-5); }
.season span { display: block; text-align: center; padding: .6rem 0; font-size: .78rem; font-weight: 750; background: rgba(3,57,56,.08); border-radius: 4px; }
.season .is-best { background: var(--teal); color: #fff; }
.season .is-peak { background: var(--amber); color: var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: var(--s-3); font-size: var(--fs-small); }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-right: .4rem; vertical-align: -2px; }
.legend .k-best { background: var(--teal); }
.legend .k-peak { background: var(--amber); }
@media (max-width: 479px) { .season span { font-size: .62rem; letter-spacing: -.02em; } }

/* ==========================================================================
   PROSE (guides, legal)
   ========================================================================== */
.prose { font-size: 1.09rem; line-height: 1.72; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); margin-top: 2.2em; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.45rem); margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--amber-ink); font-weight: 800; }
.prose blockquote, .prose .callout { padding: 1.2rem 1.4rem; border-left: 5px solid var(--amber); background: var(--linen); border-radius: 0 12px 12px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .98rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: .7rem .9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose thead th { background: var(--ink); color: #fff; }
.prose .table-note { font-size: var(--fs-small); color: var(--muted); }
.article { display: grid; gap: var(--s-7); }
.article__meta { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: var(--s-5); color: var(--muted); font-size: var(--fs-small); font-weight: 650; }
.article__meta time { color: var(--ink); }
.toc { padding: calc(var(--e) + 1rem) calc(var(--e) + .9rem); }
.toc h2 { font-size: 1.1rem; font-stretch: 112%; }
.toc ol { margin-top: .8rem; padding-left: 1.2rem; display: grid; gap: .3rem; font-size: .98rem; }
.toc a { color: var(--ink); font-weight: 650; display: inline-block; padding: .62rem 0; line-height: 1.3; }
.toc a:hover { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.inline-cta { padding: calc(var(--e) + 1.4rem) calc(var(--e) + 1.2rem); display: grid; gap: var(--s-4); margin-block: 2.2em; }
.inline-cta h2, .inline-cta h3 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); margin: 0 !important; color: #fff; }
.inline-cta p { color: #e6f2ef; margin: 0 !important; }
.inline-cta .btn { justify-self: start; }
@media (min-width: 1024px) {
  .article { grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s-8); align-items: start; }
  .article__aside { position: sticky; top: calc(var(--header-h) + 24px); order: 2; }
  .article__main { max-width: 72ch; }
}
.article__hero { aspect-ratio: 21 / 9; margin-top: var(--s-6); }
.article__hero .photo { height: 100%; }

/* Legal pages */
.legal-head { padding: var(--s-6) 0 var(--s-7); }
.legal-head h1 { max-width: 18ch; }
.draft-flag { display: inline-flex; align-items: center; gap: .5rem; margin-top: var(--s-5); padding: .5rem .9rem; border-radius: var(--r-pill); background: var(--amber-soft); color: var(--ink); font-weight: 750; font-size: var(--fs-small); }
.cookie-table { width: 100%; border-collapse: collapse; }
.legal-card { padding: calc(var(--e) + 1.2rem) calc(var(--e) + 1.1rem); }
.legal-card dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.2rem; }
.legal-card dt { font-weight: 750; }
.legal-card dd { margin: 0; }
@media (max-width: 520px) { .legal-card dl { grid-template-columns: 1fr; } .legal-card dd { margin-bottom: .5rem; } }

/* Thank-you / 404 */
.result { min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); display: grid; align-items: center; padding-block: var(--s-8); }
.result__card { padding: calc(var(--e) + clamp(1.8rem, 1rem + 3vw, 4rem)) calc(var(--e) + clamp(1.3rem, .8rem + 3vw, 3.6rem)); display: grid; gap: var(--s-5); }
.result__card h1 { font-size: clamp(1.9rem, 1rem + 4.2vw, 4.8rem); line-height: .95; max-width: 14ch; }
.result__check { width: 86px; height: 86px; }
.result__check circle { fill: var(--amber); }
.result__check path { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .7s var(--ease-out) .35s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.next-steps { display: grid; gap: var(--s-4); list-style: none; padding: 0; counter-reset: ns; }
.next-steps li { display: grid; grid-template-columns: 42px 1fr; gap: var(--s-4); align-items: start; }
.next-steps li::before { counter-increment: ns; content: counter(ns); width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-family: var(--f-display); font-weight: 900; }
.big-404 { font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: clamp(4.6rem, 2.6rem + 10vw, 14rem); line-height: .8; letter-spacing: -.05em; color: var(--amber); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { position: relative; margin-top: var(--section); padding: calc(var(--section) * .9) 0 calc(var(--s-6) + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; gap: var(--s-7); }
.footer-brand p { margin-top: var(--s-4); color: var(--on-dark-muted); max-width: 34ch; }
.footer-brand .logo { color: #fff; }
.site-footer h2 { font-size: 1rem; font-stretch: 112%; letter-spacing: 0; color: var(--amber); margin-bottom: var(--s-4); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .15rem; }
.site-footer a:not(.btn), .footer-link-btn {
  display: inline-flex; align-items: center; min-height: 40px; color: #fff; font-weight: 600;
  background: linear-gradient(var(--amber), var(--amber)) 0 calc(100% - 8px) / 0 2px no-repeat;
  transition: background-size var(--d-2) var(--ease-out);
}
.site-footer a:not(.btn):hover, .footer-link-btn:hover { background-size: 100% 2px; }
.footer-link-btn { border: 0; padding: 0; font: inherit; font-weight: 600; cursor: pointer; background-color: transparent; }
.footer-towns { color: var(--on-dark-muted); line-height: 1.7; }
.footer-bottom { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid rgba(255,255,255,.18); display: grid; gap: var(--s-4); font-size: var(--fs-small); color: var(--on-dark-muted); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0 1.4rem; }
.footer-legal .site-credit { margin: 0; font-size: inherit; color: inherit; max-width: none; }
.disclaimer { padding: 1rem 1.1rem; border: 1px solid rgba(255,255,255,.28); border-radius: 12px; color: #e6f2ef; font-size: .9rem; line-height: 1.55; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } .footer-brand { grid-column: span 3; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }

/* ==========================================================================
   MOBILE ACTION BAR
   ========================================================================== */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(253,254,254,.97); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform var(--d-3) var(--ease-out);
}
.action-bar.is-visible { transform: none; }
.action-bar .btn { width: 100%; min-height: 50px; }
@media (min-width: 1024px) { .action-bar { display: none; } }
@media (max-width: 1023px) { body.has-action-bar .site-footer { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); } }

/* ==========================================================================
   COOKIE BANNER
   ========================================================================== */
.cookie {
  position: fixed; z-index: 90; left: var(--gutter); right: var(--gutter); bottom: calc(12px + env(safe-area-inset-bottom));
  max-width: 560px; margin-left: auto;
  padding: 1.2rem 1.2rem 1.1rem; border-radius: var(--r-m); background: var(--ink); color: #fff;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.6);
  transform: translateY(16px); opacity: 0; transition: transform var(--d-3) var(--ease-out), opacity var(--d-2);
  max-height: calc(100vh - var(--header-h) - 24px); overflow-y: auto;
}
.cookie.is-in { transform: none; opacity: 1; }
.cookie h2 { font-size: 1.15rem; font-stretch: 112%; color: #fff; }
.cookie p { margin-top: .5rem; font-size: .9rem; line-height: 1.5; color: var(--on-dark-muted); }
.cookie p a { color: #fff; text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 3px; }
.cookie__actions { margin-top: .9rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
.cookie__actions .btn { min-height: 46px; padding: .5rem .6rem; font-size: .92rem; --bg: #fff; --fg: var(--ink); --bd: #fff; }
.cookie__prefs { margin-top: .9rem; display: grid; gap: .7rem; }
.cookie__prefs .pref { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; align-items: center; padding: .7rem .8rem; border-radius: 12px; background: rgba(255,255,255,.07); }
.cookie__prefs .pref p { grid-column: 1 / -1; margin: 0; font-size: .84rem; }
.cookie__prefs label { font-weight: 750; font-size: .95rem; }
.switch { position: relative; width: 50px; height: 30px; }
.switch input { -webkit-appearance: none; appearance: none; margin: 0; width: 50px; height: 30px; border-radius: 30px; background: rgba(255,255,255,.25); cursor: pointer; transition: background-color var(--d-2); }
.switch input::after { content: ""; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform var(--d-2) var(--ease-spring); }
.switch input:checked { background: var(--amber); }
.switch input:checked::after { transform: translateX(20px); }
.switch input:disabled { opacity: .6; cursor: not-allowed; }
@media (max-width: 1023px) { body.has-action-bar .cookie { bottom: calc(76px + env(safe-area-inset-bottom)); } }
@media (max-width: 420px) { .cookie__actions { grid-template-columns: 1fr 1fr; } .cookie__actions .btn:last-child { grid-column: span 2; } }

/* ==========================================================================
   MOTION HELPERS
   ========================================================================== */
.split-line { display: inline-block; overflow: hidden; vertical-align: top; padding: .12em 0 .14em; margin: -.12em 0 -.14em; }
.split-line > span { display: inline-block; }
.split-line > .mark { padding: 0 .04em; }
.js .reveal-mark .mark { background-size: 0 100%; background-repeat: no-repeat; transition: background-size 1s var(--ease-out) .5s; }
.js .reveal-mark.is-in .mark { background-size: 100% 100%; }
[data-tilt] { transform-style: preserve-3d; will-change: transform; }

/* View transitions between pages */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in .42s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .note__es::after { transform: scaleX(1); }
  .note__en { opacity: 1; transform: none; }
  .js .reveal-mark .mark { background-size: 100% 100%; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .elist__thumb { opacity: 1 !important; transform: none !important; }
}

/* Small utilities and page bits */
.mt-4 { margin-top: var(--s-5); }
.others-title, .steps-title { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); margin-bottom: var(--s-6); }
.footer-h2-gap { margin-top: var(--s-6); }
.h3-like { font-size: 1.18rem; font-stretch: 112%; letter-spacing: -.01em; }
.contact-grid { display: grid; gap: var(--s-7); align-items: start; }
.contact-intro h1 { font-size: var(--fs-h1); line-height: .95; }
.contact-intro .lead { margin-top: var(--s-5); }
.contact-note { margin-top: var(--s-6); max-width: 46ch; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: .85fr 1.15fr; gap: var(--s-8); } .contact-intro { position: sticky; top: calc(var(--header-h) + 32px); } }
.hero-mark-svg .t1, .hero-mark-svg .t4, .hero-mark-svg path { transform-box: fill-box; transform-origin: 50% 50%; }
.whopays__fallback { display: none; }
.no-js .whopays__fallback { display: block; }
abbr[title] { text-decoration: none; }
.on-dark-muted { color: var(--on-dark-muted); }
.next-steps p { margin-top: .2rem; }
.thanks-links, .nf-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.nf-links { gap: var(--s-3); }
@media (min-width: 768px) { .nf-links { grid-template-columns: 1fr 1fr; } }
.nf .other { padding: calc(var(--e) + .7rem) calc(var(--e) + .8rem); }
.nf .other .arrow { width: 44px; height: 44px; }
.guides-h1, .article-h1 { font-size: var(--fs-h1); line-height: .96; max-width: 18ch; }
.article-h1 { max-width: 22ch; }
.prose th[scope="row"] { width: 26%; font-weight: 750; background: rgba(217,234,228,.45); }
.prose code { font-size: .92em; background: var(--linen); padding: .1em .35em; border-radius: 5px; }
.article__intro p { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink); }
.result .section--tight { padding-block: var(--s-7) 0; }

/* Print */
@media print {
  .site-header, .site-footer, .action-bar, .cookie, .close, .mobile-menu { display: none !important; }
  .brush, .torn { -webkit-mask: none; mask: none; }
  body { background: #fff; }
}
.faq-layout__head .lead { margin-top: var(--s-4); }
a[href^="mailto:"], .footer-towns { overflow-wrap: anywhere; }
.article > *, .split > *, .phero__grid > *, .contact-grid > *, .faq-layout > *, .why > *, .pcs > *, .whopays > * { min-width: 0; }
.toc ol { gap: 0; }
.result > .wrap, .result__card > * { min-width: 0; }
.legal-head .lead { margin-top: var(--s-4); }

/* ==========================================================================
   QUOTE FORM v2: groups, conditional blocks, uploads
   ========================================================================== */
.qgroup { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 1.05rem; }
.qgroup + .qgroup { padding-top: 1.2rem; border-top: 1px dashed var(--line-strong); }
.qgroup__title { padding: 0; margin-bottom: .2rem; font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: 1.08rem; letter-spacing: -.01em; color: var(--ink); }
.qcond { border: 0; margin: 0; padding: 1rem 1rem 1.1rem; min-width: 0; display: grid; gap: 1rem; border-radius: 14px; background: rgba(255,255,255,.65); border-left: 4px solid var(--amber); }
.qcond__title { display: flex; align-items: center; gap: .5rem; padding: 0; float: left; width: 100%; font-weight: 800; font-size: .98rem; color: var(--ink); }
.qcond__title + * { clear: both; }
.qcond__title .ico { width: 20px; height: 20px; color: var(--teal); }
.qcond:not([hidden]) { animation: rise .45s var(--ease-out) both; }
.qform__row--3 { display: grid; gap: .8rem; grid-template-columns: 1fr 1fr; }
.qform__row--3 > :last-child { grid-column: span 2; }
@media (min-width: 640px) { .qform__row--3 { grid-template-columns: 1fr 1fr 1.2fr; } .qform__row--3 > :last-child { grid-column: auto; } }
.field__label { font-weight: 750; font-size: .95rem; }
.rent-tip { display: flex; gap: .55rem; align-items: flex-start; margin-top: .4rem; padding: .7rem .85rem; border-radius: 12px; background: var(--amber-soft); font-size: .9rem; line-height: 1.45; }
.rent-tip .ico { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--amber-ink); }
.rent-tip:not([hidden]) { animation: rise .35s var(--ease-out) both; }
.upload { display: grid; gap: .55rem; }
.upload__input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.upload__btn {
  display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 64px; padding: .8rem 1rem;
  border: 2px dashed var(--ink); border-radius: 14px; background: #fff; cursor: pointer; font-weight: 750;
  transition: background-color var(--d-1) var(--ease-out), transform var(--d-2) var(--ease-spring);
}
.upload__btn .ico { width: 26px; height: 26px; color: var(--teal); }
.upload__btn:hover { background: var(--mint); }
.upload__btn:active { transform: scale(.98); }
.upload__input:focus-visible + .upload__btn { outline: 3px solid var(--amber); outline-offset: 3px; }
.upload.is-full .upload__btn { opacity: .5; pointer-events: none; }
.upload__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.upload__item { display: grid; grid-template-columns: 52px 1fr 44px; gap: .7rem; align-items: center; padding: .4rem; border-radius: 12px; background: #fff; border: 1px solid var(--line); animation: rise .35s var(--ease-out) both; }
.upload__thumb { width: 52px; height: 52px; border-radius: 8px; overflow: hidden; background: var(--mint); display: grid; place-items: center; color: var(--teal); }
.upload__thumb img { width: 100%; height: 100%; object-fit: cover; }
.upload__thumb .ico { width: 24px; height: 24px; }
.upload__name { font-size: .9rem; font-weight: 650; overflow-wrap: anywhere; line-height: 1.3; }
.upload__size { display: block; font-size: .8rem; color: var(--muted); font-weight: 500; }
.upload__remove { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); display: grid; place-items: center; }
.upload__remove:hover { background: #fbe9e6; color: var(--error); }
.upload__remove .ico { width: 20px; height: 20px; }
.upload-progress { height: 8px; border-radius: 8px; background: rgba(3,57,56,.12); overflow: hidden; }
.upload-progress__bar { display: block; height: 100%; width: 100%; background: var(--teal); transform-origin: left; transform: scaleX(0); transition: transform .2s linear; }
.hero__promise { display: block; margin-bottom: .35rem; font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: 1.15em; color: #fff; line-height: 1.25; }
/* Without JS every conditional block stays visible so the form still works */
.no-js .qcond[hidden], .no-js [data-wall][hidden], .no-js [data-inspection][hidden], .no-js [data-rent-tip][hidden] { display: grid !important; }

/* =====================================================================
   "I'm not a robot" check
   ===================================================================== */
.human__box {
  position: relative; display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap;
  padding: .85rem 1rem; border: 2px solid var(--line-strong); border-radius: 12px; background: #fff;
  transition: border-color var(--d-1) var(--ease-out), box-shadow var(--d-1) var(--ease-out);
}
.human__input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.human__label { display: inline-flex; align-items: center; gap: .8rem; min-height: 44px; font-weight: 700; cursor: pointer; flex: 1 1 auto; }
.human__tick {
  flex: none; width: 30px; height: 30px; border-radius: 8px; border: 2px solid var(--ink); background: #fff;
  display: grid; place-items: center; color: #fff;
  transition: background-color var(--d-1) var(--ease-out), border-color var(--d-1) var(--ease-out);
}
.human__tick .ico { width: 20px; height: 20px; stroke-width: 3; transform: scale(0); transition: transform var(--d-2) var(--ease-spring); }
.human__input:checked + .human__label .human__tick { background: var(--teal); border-color: var(--teal); }
.human__input:checked + .human__label .human__tick .ico { transform: scale(1); }
.human__input:focus-visible + .human__label .human__tick { outline: 3px solid var(--amber); outline-offset: 3px; }
.human__badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 650; color: var(--ink); opacity: .7; }
.human__badge .ico { width: 18px; height: 18px; }
.human.is-verified .human__box { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(2,116,110,.14); }
.human.is-verified .human__badge { color: var(--teal); opacity: 1; }
.field.is-invalid .human__box { border-color: var(--error); }
.field.is-invalid .human__tick { border-color: var(--error); }

/* =====================================================================
   "Request sent" pop-up
   ===================================================================== */
.sent {
  border: 0; padding: 0; background: transparent; color: inherit; overflow: visible;
  width: min(560px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px);
}
.sent::backdrop { background: rgba(3, 57, 56, .62); backdrop-filter: blur(3px); }
.sent__card { padding: calc(var(--e, 18px) + 2rem) calc(var(--e, 18px) + 1.6rem); text-align: center; display: grid; justify-items: center; gap: var(--s-4); }
.sent__check { width: 78px; height: 78px; }
.sent__check circle { fill: var(--amber); }
.sent__check path { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; }
.sent[open] .sent__check path { animation: draw .7s var(--ease-out) .25s forwards; }
.sent__title { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); color: #fff; }
.sent__text { font-size: 1.05rem; line-height: 1.6; max-width: 42ch; }
.sent__small { font-size: .9rem; opacity: .85; max-width: 42ch; }
.sent .btn { margin-top: var(--s-2); }
.sent[open] { animation: sent-in .45s var(--ease-out); }
.sent[open]::backdrop { animation: fade-in .3s var(--ease-out); }
@keyframes sent-in { from { opacity: 0; transform: translateY(18px) scale(.96); } }
@keyframes fade-in { from { opacity: 0; } }
body.dialog-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .sent[open], .sent[open]::backdrop { animation: none; }
  .sent__check path { stroke-dashoffset: 0; }
}

/* =====================================================================
   MOVE-OUT PACKAGE (move-out page)
   ===================================================================== */
.pkg { padding: calc(var(--e) + clamp(1.8rem, 1rem + 3vw, 3.4rem)) calc(var(--e) + clamp(1.1rem, .7rem + 3vw, 3.2rem)); display: grid; gap: var(--s-6); }
.pkg__head { display: grid; gap: var(--s-4); max-width: 52rem; }
.pkg__head .lead { color: #e6f2ef; }
.pkg__steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-4); counter-reset: none; }
.pkg__step { position: relative; display: flex; flex-direction: column; gap: var(--s-3); padding: calc(var(--e) + 1.2rem) calc(var(--e) + 1rem); color: var(--ink); }
.pkg__step h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.pkg__step p { color: var(--muted); }
.pkg__step .text-link { margin-top: auto; align-self: flex-start; }
.pkg__num { position: absolute; top: calc(var(--e) + .6rem); right: calc(var(--e) + .9rem); font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: 3.4rem; line-height: .8; color: var(--amber); }
.pkg__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4) var(--s-6); }
.pkg__note { display: flex; gap: .6rem; align-items: flex-start; max-width: 46ch; color: #e6f2ef; font-weight: 650; }
.pkg__note .ico { flex: none; width: 22px; height: 22px; color: var(--amber); margin-top: .1rem; }
/* Light cards inside the dark block: undo the on-dark link and tile colours */
.pkg__step .text-link { color: var(--ink); }
.pkg__step .tile--teal { background: var(--teal); color: #fff; }
@media (min-width: 900px) { .pkg__steps { grid-template-columns: repeat(3, 1fr); } }

/* Repairs -> painting -> cleaning sequence (painting page) */
.order { list-style: none; padding: 0; margin: var(--s-5) 0; display: flex; flex-wrap: wrap; gap: .6rem; counter-reset: ord; }
.order li { counter-increment: ord; display: grid; grid-template-columns: auto 1fr; column-gap: .6rem; align-items: center; padding: .7rem 1rem; border-radius: 12px; background: #fff; border: 2px solid var(--line); }
.order li::before { content: counter(ord); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 900; }
.order b { font-size: 1rem; }
.order span { font-size: .85rem; color: var(--muted); }

/* Text-only painted band */
.band__text { max-width: 62ch; display: grid; gap: var(--s-4); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }

/* Package parts in the form: same box, a teal edge so they read as sub-sections */
.qcond--part { border-left-color: var(--teal); }

