/* Gatto Services — site-novo base stylesheet. Owner: B7 → B13 (28/09/2026).
   Tokens: B1 §4.4 (contrast computed there). Fonts: Saira (headings) + Inter (text), self-hosted since
   02/10/2026 (variable woff2, latin subset from @fontsource-variable 5.3.0, SIL OFL 1.1 — licenses in
   assets/fonts/); no external font requests.
   Breakpoints: ≤560 · 561–1024 · ≥1025. */

@font-face {
  font-family: "Saira";
  src: url("/assets/fonts/saira-latin-variable.woff2") format("woff2-variations"), url("/assets/fonts/saira-latin-variable.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 50% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-variable.woff2") format("woff2-variations"), url("/assets/fonts/inter-latin-variable.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy-950: #07101F;
  --navy-900: #0D1A2D;
  --navy-800: #14243B;
  --ink: #F7F9FD;
  --muted-dark: #AEB9CA;
  --silver: #C7C9CD;
  --red-600: #C8101E;
  --red-700: #B00D1A;
  --blue-brand: #0150E5;
  --blue-300: #6FB4FF;
  --surface-light: #F2F5F9;
  --white: #FFFFFF;
  --ink-dark: #091426;
  --muted-light: #526076;
  --line-light: #D5DCE6;
  --line-dark: #22344F;

  --font-head: "Saira", "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s8: 64px; --s10: 80px; --s12: 96px;
  --radius: 10px;
  --maxw: 1200px;
  --header-h: 72px;
  --sticky-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-dark);
  background: var(--white);
  padding-bottom: var(--sticky-h);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 var(--s2); letter-spacing: -0.01em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); font-stretch: 112%; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-stretch: 108%; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 var(--s2); }
ul, ol { margin: 0 0 var(--s2); }

:focus-visible { outline: 3px solid var(--blue-brand); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .sticky-call :focus-visible { outline-color: var(--blue-300); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--white); color: var(--ink-dark); padding: 10px 16px; border-radius: 6px; font-weight: 700; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s3); }
.narrow { max-width: 820px; }

/* ---------- Surfaces ---------- */
.dark { background: var(--navy-950); color: var(--ink); }
.dark a:not(.btn) { color: var(--blue-300); }
.dark .muted, .dark .lead, .dark .lead-sm { color: var(--muted-dark); }
.light { background: var(--surface-light); }
.section { padding: var(--s12) 0; }
.section-head { max-width: 760px; margin-bottom: var(--s5); }
.section-head p:not(.eyebrow) { color: var(--muted-light); }
.dark .section-head p:not(.eyebrow) { color: var(--muted-dark); }
.section-foot { margin-top: var(--s4); }
.eyebrow { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .14em; font-size: .8125rem; font-weight: 700; color: var(--blue-brand); margin-bottom: var(--s1); }
.dark .eyebrow { color: var(--silver); }
.lead { font-size: 1.1875rem; color: var(--muted-light); max-width: 62ch; }
.lead-sm { font-size: 1.0625rem; }
.muted { color: var(--muted-light); }
.prose p { max-width: 68ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn .icon { flex: none; }
.btn-call { background: var(--red-600); color: var(--white); }
.btn-call:hover { background: var(--red-700); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(247,249,253,.55); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(255,255,255,.06); }
.btn-secondary { background: var(--white); color: var(--blue-brand); border-color: var(--blue-brand); }
.btn-secondary:hover { background: var(--blue-brand); color: var(--white); }
.btn-lg { min-height: 56px; padding: 14px 30px; font-size: 1.125rem; }
.btn-block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin: var(--s3) 0 var(--s2); }
.cta-row-center { justify-content: center; }
.microcopy { font-size: .9375rem; color: var(--muted-light); }
.dark .microcopy { color: var(--muted-dark); }
.sms-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.text-link { font-weight: 600; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.link-arrow::after { content: "→"; margin-left: 8px; transition: transform .15s ease; }
.link-arrow:hover::after { transform: translateX(3px); }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy-950); color: var(--ink); border-bottom: 1px solid var(--line-dark); }
.header-inner { display: flex; align-items: center; gap: var(--s3); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; min-height: 44px; }
.logo-symbol { width: 44px; height: 44px; }
.logo-wordmark { width: 150px; height: auto; }
.primary-nav { margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem;
  background: none; border: 0; border-radius: 6px; font-family: var(--font-body); cursor: pointer;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { background: var(--navy-800); }
.nav-link[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--red-600); }
.caret { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s ease; }
.mega-toggle[aria-expanded="true"] .caret { transform: rotate(-135deg) translateY(-2px); }
.header-actions { display: flex; align-items: center; gap: var(--s1); }
.header-call { min-height: 46px; padding: 10px 16px; }
.hc-short { display: none; }
.menu-toggle { display: none; }

.has-mega { position: static; }
.mega {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--navy-900); border-bottom: 1px solid var(--line-dark); box-shadow: 0 18px 40px rgba(0,0,0,.35);
  padding: var(--s4) max(var(--s3), calc((100vw - var(--maxw)) / 2 + var(--s3)));
}
.mega-toggle[aria-expanded="true"] + .mega { display: block; }
.no-js .has-mega:hover .mega, .no-js .has-mega:focus-within .mega { display: block; }
.mega-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s3); }
.mega-head { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--silver); margin-bottom: var(--s1); }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li a { display: flex; align-items: center; min-height: 40px; color: var(--ink); text-decoration: none; font-size: .96rem; }
.mega li a:hover { color: var(--blue-300); text-decoration: underline; }
.mega-foot { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s3); padding-top: var(--s2); border-top: 1px solid var(--line-dark); }
.mega-foot a { color: var(--blue-300); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Breadcrumb ---------- */
.breadcrumb ol { list-style: none; margin: 0 0 var(--s3); padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; }
.breadcrumb li { color: var(--muted-dark); }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--muted-dark); }
.breadcrumb a { color: var(--blue-300); }
.breadcrumb [aria-current] { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: var(--s10) 0 var(--s8); }
.hero-inner { padding: var(--s5) 0 var(--s6); }
.hero-plain { padding: var(--s8) 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s6); align-items: center; }
.hero-grid-inner { grid-template-columns: 1.2fr .8fr; }
.hero-copy h1 { margin-bottom: var(--s3); }
.hero .lead { color: var(--muted-dark); }
.hero-price { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--ink); margin: 0; }
.proof-inline { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; margin: var(--s5) 0 var(--s1); padding: var(--s2) 0 0; border-top: 1px solid var(--line-dark); }
.proof-inline li { font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.proof-inline li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--red-600); transform: rotate(45deg); }
.proof-caption { font-size: .9375rem; color: var(--muted-dark); margin: 0; }

/* ---------- One-Day component ---------- */
.oneday { border-left: 4px solid var(--red-600); padding: 12px 16px; margin: var(--s3) 0; background: var(--white); border-radius: 0 8px 8px 0; color: var(--ink-dark); }
.oneday-title { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; margin: 0 0 4px; }
.oneday-note { font-size: .875rem; line-height: 1.5; margin: 0; color: var(--muted-light); }
/* Fine print (Evandro 28/09): small, no emphasis, AA contrast — #526076 on white 6.38:1; #AEB9CA on navy ≥ 8.8:1 */
.oneday-scope { font-size: .75rem; line-height: 1.45; margin: 4px 0 0; font-weight: 400; color: var(--muted-light); }
.oneday-dark .oneday-scope, .dark .oneday .oneday-scope, .calc-result .oneday-scope { color: var(--muted-dark); }
.oneday-dark, .dark .oneday { background: var(--navy-900); color: var(--ink); }
.oneday-dark .oneday-note, .dark .oneday .oneday-note { color: var(--muted-dark); }
.oneday-compact { margin: var(--s2) 0 0; padding: 8px 12px; }
.oneday-compact .oneday-title { font-size: 1rem; }

/* ---------- Placeholders ---------- */
.ph {
  position: relative; width: 100%; display: flex; align-items: flex-end; overflow: hidden;
  border-radius: var(--radius); border: 2px dashed #8B97AA;
  background-color: #E6EBF2;
  background-image: repeating-linear-gradient(135deg, rgba(9,20,38,.05) 0 12px, transparent 12px 24px);
}
.dark .ph { background-color: var(--navy-900); border-color: #50627E; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 12px, transparent 12px 24px); }
.ph-label { display: block; margin: 12px; padding: 6px 10px; background: var(--white); color: var(--ink-dark); font-size: .875rem; font-weight: 600; line-height: 1.35; border-radius: 6px; }
.ph-thumb .ph-label, .ph-card .ph-label { font-size: .8125rem; }
.ph-gallery { min-height: 180px; }
.ph-reserved { align-items: center; justify-content: center; }

/* ---------- Proof strip ---------- */
.proof-strip { background: var(--navy-900); color: var(--ink); padding: var(--s4) 0; border-top: 1px solid var(--line-dark); }
.proof-list { list-style: none; margin: 0 0 var(--s2); padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
.proof-list li { display: flex; flex-direction: column; border-left: 3px solid var(--red-600); padding-left: 14px; }
.proof-list strong { font-family: var(--font-head); font-size: 1.3rem; }
.proof-list span { color: var(--muted-dark); font-size: .95rem; }

/* ---------- Cards ---------- */
.card {
  display: flex; flex-direction: column; background: var(--white); color: var(--ink-dark);
  border: 1px solid var(--line-light); border-radius: 12px; overflow: hidden; text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; height: 100%;
}
.card:hover { border-color: var(--blue-brand); box-shadow: 0 10px 28px rgba(9,20,38,.12); transform: translateY(-2px); }
.card:focus-visible { outline: 3px solid var(--blue-brand); outline-offset: 3px; }
.card .ph { border-radius: 0; border-width: 0 0 2px 0; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: var(--s3); flex: 1; }
.card-title { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; line-height: 1.2; }
.card-text { color: var(--muted-light); font-size: .98rem; }
.card-from { font-weight: 700; color: var(--ink-dark); font-size: .95rem; }
.card-more { margin-top: auto; color: var(--blue-brand); font-weight: 700; }
.grid-feature { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--s3); }
.card-feature .card-title { font-size: 1.4rem; }
.card-pricing { background: var(--navy-950); color: var(--ink); border-color: var(--navy-950); }
.card-pricing .card-text { color: var(--muted-dark); }
.card-pricing .card-more { color: var(--blue-300); }
.card-price-visual { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; padding: var(--s4) var(--s3) var(--s2); background: linear-gradient(135deg, var(--navy-900), var(--navy-800)); aspect-ratio: 4/3; align-content: center; }
.cpv-cap { order: -1; width: 100%; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--silver); }
.cpv-num { font-family: var(--font-head); font-weight: 800; font-size: 4.5rem; line-height: 1; }
.cpv-unit { font-size: 1.25rem; color: var(--muted-dark); }

.svc-group { margin-top: var(--s6); }
.svc-group:first-of-type { margin-top: 0; }
.svc-group-title { font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-light); border-bottom: 1px solid var(--line-light); padding-bottom: var(--s1); margin-bottom: var(--s3); }
.grid-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); }
.card-service .card-body { padding: var(--s2) var(--s3) var(--s3); }
.card-service .card-title { font-size: 1.08rem; }
.card-service .ph { aspect-ratio: 16/7 !important; }
.grid-systems { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.side-links { margin-top: var(--s5); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.side-links p { margin: 0; padding: var(--s3); background: var(--surface-light); border-radius: var(--radius); }
.side-links .link-arrow { display: flex; }

/* ---------- Bands ---------- */
.band { padding: var(--s6) 0; }
.band-blue { background: var(--blue-brand); color: var(--white); }
.band-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; gap: var(--s3); align-items: center; }
.band-title { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 0; }
.band-text { margin: 0; }
.link-light { color: var(--white) !important; }

/* ---------- Lists / steps ---------- */
.check-list { list-style: none; padding: 0; margin: var(--s3) 0 0; display: grid; gap: var(--s2); }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--red-600); box-shadow: inset 0 0 0 6px var(--red-600), inset 0 0 0 20px var(--white); }
.why-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: var(--s6); align-items: center; }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: var(--s2); }
.steps li { counter-increment: step; position: relative; padding: 14px 16px 14px 64px; background: var(--white); border: 1px solid var(--line-light); border-radius: var(--radius); }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 16px; top: 12px; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--blue-brand); }
.steps-dark li { background: var(--navy-900); border-color: var(--line-dark); color: var(--ink); }
.steps-dark li::before { color: var(--blue-300); }
.process-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--s6); align-items: start; }
.process-media { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); position: sticky; top: calc(var(--header-h) + 24px); }
.note-box { margin-top: var(--s3); padding: var(--s2) var(--s3); border: 1px solid var(--line-dark); border-radius: var(--radius); }
.cure-list { padding-left: 1.2em; }
.cure-list li { margin-bottom: 8px; }

/* ---------- Pricing summaries ---------- */
.tier-row { list-style: none; padding: 0; margin: 0 0 var(--s3); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.tier-mini { background: var(--white); border: 1px solid var(--line-light); border-top: 4px solid var(--blue-brand); border-radius: var(--radius); padding: var(--s3); display: flex; flex-direction: column; gap: 6px; }
.tier-name { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .9rem; color: var(--muted-light); }
.tier-range { font-family: var(--font-head); font-weight: 800; font-size: 2rem; }
.tier-range small { font-size: 1rem; color: var(--muted-light); font-weight: 600; }
.tier-sys { color: var(--muted-light); font-size: .95rem; }
.price-min { font-size: 1.05rem; }
.price-strip { border: 1px solid var(--line-light); border-left: 6px solid var(--blue-brand); border-radius: var(--radius); padding: var(--s4); }
.price-line { font-size: 1.15rem; }

/* ---------- Areas ---------- */
.areas-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--s6); align-items: start; }
.area-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.area-list li { background: var(--white); border: 1px solid var(--line-light); border-radius: var(--radius); padding: var(--s2) var(--s3); }
.area-confirm { border-style: dashed !important; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-light); }
.faq-item { border-bottom: 1px solid var(--line-light); }
.faq-q { margin: 0; font-size: 1.1rem; }
.faq-toggle {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--s2);
  min-height: 56px; padding: 14px 0; background: none; border: 0; text-align: left; cursor: pointer;
  font: inherit; font-family: var(--font-head); font-weight: 700; color: var(--ink-dark);
}
.faq-icon { flex: none; width: 14px; height: 14px; position: relative; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: currentColor; transition: transform .15s ease; }
.faq-icon::after { transform: rotate(90deg); }
.faq-toggle[aria-expanded="true"] .faq-icon::after { transform: rotate(0deg); }
.faq-a { padding: 0 0 var(--s3); max-width: 70ch; }
.faq-a[hidden] { display: none; }

/* ---------- Related / lists ---------- */
.related { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); }
.related a { display: flex; align-items: center; min-height: 56px; padding: 12px 16px; background: var(--white); border: 1px solid var(--line-light); border-radius: var(--radius); font-weight: 700; text-decoration: none; }
.related a:hover { border-color: var(--blue-brand); text-decoration: underline; }
.link-list { padding-left: 1.2em; }
.link-list li { margin-bottom: 6px; }
.link-list a { display: inline-flex; min-height: 44px; align-items: center; }

/* ---------- Final CTA ---------- */
.cta-final { padding: var(--s12) 0; text-align: center; background: radial-gradient(ellipse at top, var(--navy-800), var(--navy-950) 70%); }
.cta-final-inner { max-width: 760px; }
.cta-final p { color: var(--muted-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--muted-dark); padding: var(--s10) 0 var(--s3); border-top: 4px solid var(--red-600); }
.site-footer a { color: var(--ink); }
.footer-top { display: grid; grid-template-columns: 1fr 2fr; gap: var(--s6); }
.f-logo img { width: 180px; height: auto; margin-bottom: var(--s2); }
.f-contact { margin: 0 0 4px; }
.f-sms a { color: var(--blue-300); }
.f-hours { color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.f-sab, .f-areas { font-size: .95rem; }
.f-social { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; margin: var(--s2) 0; padding: 0; }
.f-social a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: none; }
.f-social a:hover { text-decoration: underline; }
.f-social .icon { color: var(--blue-300); }
.f-areas a { color: var(--blue-300); }
.f-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
.f-head { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--silver); }
.f-col ul { list-style: none; margin: 0; padding: 0; }
.f-col a { display: inline-flex; min-height: 36px; align-items: center; text-decoration: none; font-size: .95rem; }
.f-col a:hover { text-decoration: underline; }
.f-phone-only { display: none; }
.t-short { display: none; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s6); padding-top: var(--s3); border-top: 1px solid var(--line-dark); font-size: .9rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { display: inline-flex; min-height: 44px; align-items: center; }

/* ---------- Sticky mobile call ---------- */
.sticky-call { display: none; }

/* ================= Tablet 561–1024 ================= */
@media (max-width: 1024px) {
  :root { --header-h: 64px; --sticky-h: 76px; }
  .section { padding: var(--s10) 0; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 8px; min-height: 46px; min-width: 46px; padding: 8px 12px;
    background: transparent; color: var(--ink); border: 1px solid var(--line-dark); border-radius: 8px; font: inherit; font-weight: 700; cursor: pointer;
  }
  .menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform .15s ease; }
  .menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
  .menu-bars::before { top: -6px; } .menu-bars::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .header-actions { margin-left: auto; }
  .primary-nav {
    display: none; position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; overflow-y: auto;
    background: var(--navy-950); padding: var(--s2) var(--s3) calc(var(--sticky-h) + var(--s4)); margin: 0; border-top: 1px solid var(--line-dark);
  }
  .no-js .primary-nav { position: static; display: block; padding: 0; }
  .nav-open .primary-nav { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--line-dark); }
  .nav-link { width: 100%; justify-content: space-between; min-height: 52px; font-size: 1.05rem; padding: 12px 4px; }
  .mega { position: static; box-shadow: none; border: 0; padding: 0 4px var(--s2); background: transparent; }
  .mega-grid { grid-template-columns: 1fr 1fr; gap: var(--s2); }
  .hero-grid, .hero-grid-inner, .why-grid, .process-grid, .areas-grid, .footer-top { grid-template-columns: 1fr; }
  .process-media { position: static; }
  .grid-feature { grid-template-columns: 1fr 1fr; }
  .grid-feature > :first-child { grid-column: 1 / -1; }
  .grid-services, .grid-systems { grid-template-columns: 1fr 1fr; }
  .proof-list { grid-template-columns: 1fr 1fr; }
  .band-inner { grid-template-columns: 1fr; }
  .related { grid-template-columns: 1fr 1fr; }
  .f-cols { grid-template-columns: 1fr 1fr; }
  .sticky-call {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 12px var(--s2) calc(12px + env(safe-area-inset-bottom)); background: rgba(7,16,31,.96); border-top: 1px solid var(--line-dark);
  }
  .sticky-call .btn { min-height: 52px; font-size: 1.05rem; }
  .sticky-call { transition: transform .2s ease, visibility .2s; }
  /* Hidden by site.js while the hero call button or a One-Day disclaimer is on screen.
     Without JS the class is never set, so the bar stays visible. body keeps padding-bottom
     = --sticky-h at all times (no layout shift), so the bar never covers the end of the page. */
  .sticky-call-hidden .sticky-call { transform: translateY(110%); visibility: hidden; }
  .ph-hero { aspect-ratio: 16/9 !important; }
}

/* ================= Phone ≤560 ================= */
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 var(--s2); }
  .section { padding: var(--s8) 0; }
  .hero { padding: var(--s5) 0 var(--s6); }
  .logo-wordmark { width: 112px; }
  .logo-symbol { width: 38px; height: 38px; }
  .hc-num { display: none; }
  .hc-short { display: inline; }
  .header-call { padding: 10px 14px; }
  .menu-label { display: none; }
  .cta-row .btn { width: 100%; }
  .grid-feature, .grid-services, .grid-systems, .tier-row, .side-links, .related, .mega-grid { grid-template-columns: 1fr; }
  .proof-list { grid-template-columns: 1fr 1fr; gap: var(--s2); }
  .proof-list strong { font-size: 1.1rem; }
  .ph-hero { aspect-ratio: 4/5 !important; }
  .f-cols { grid-template-columns: 1fr 1fr; }
  .price-strip { padding: var(--s3); }
  .steps li { padding-left: 56px; }
}

@media (min-width: 1025px) {
  .sticky-call { display: none !important; }
}

/* ================= Gate 5 drafts: [PENDENTE: Q-0x …] markers (local/staging only) ================= */
/* The generator wraps every marker in <mark class="pending" data-pending="1">; production refuses them.
   #3A2A00 on #FFF1A8 ≈ 13:1 (AA/AAA); the dashed border keeps it identifiable in dark sections too. */
mark.pending {
  background: #FFF1A8; color: #3A2A00; font-family: var(--font-body); font-style: normal;
  font-weight: 600; font-size: max(.875em, 14px); line-height: 1.45;
  padding: 1px 6px; border: 1px dashed #9A7400; border-radius: 4px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ================= P23 Service areas ================= */
.hero-copy-narrow { max-width: 780px; }
.region-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
.region-card { background: var(--white); border: 1px solid var(--line-light); border-top: 4px solid var(--blue-brand); border-radius: var(--radius); padding: var(--s3); }
.region-confirm { border-style: dashed; border-top: 4px solid var(--silver); }
.region-name { font-size: 1.25rem; margin-bottom: 6px; }
.region-note { color: var(--muted-light); margin: 0 0 var(--s1); font-size: .98rem; }
.region-confirm .region-note { margin: var(--s2) 0 0; }
.city-list { list-style: none; margin: var(--s1) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.city-list li { padding: 6px 12px; border-radius: 999px; background: var(--surface-light); border: 1px solid var(--line-light); font-weight: 600; font-size: .95rem; }
.areas-map-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--s6); align-items: center; }
.ph-map { align-items: center; justify-content: center; }
.related.related-3 { grid-template-columns: repeat(3, 1fr); }

/* ================= Home on phones (Gate 2 review, 28/09: shorter page) ================= */
.steps-compact li { padding-top: 12px; padding-bottom: 12px; }

@media (max-width: 1024px) {
  .region-grid, .areas-map-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .section { padding: var(--s6) 0; }
  .section-head { margin-bottom: var(--s3); }
  .cta-final { padding: var(--s8) 0; }
  .band { padding: var(--s3) 0; }
  .band-inner { gap: var(--s1); }
  .f-logo img { width: 128px; }
  .f-col-services { display: none; }
  .f-phone-only { display: list-item; }
  .f-cols { grid-template-columns: 1fr; }
  .f-cols .f-col ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s2); }
  .f-col a { min-height: 44px; }
  .site-footer { padding-top: var(--s6); }
  .footer-top { gap: var(--s4); }

  /* Hero image position: wide band instead of 4:5 on the home. */
  .hero-home .ph-hero { aspect-ratio: 16/9 !important; }
  .hero-home .hero-grid { gap: var(--s3); }

  /* Focus cards: horizontal, small thumbnail. */
  .home-focus .grid-feature { gap: var(--s2); }
  .home-focus .card-feature { flex-direction: row; align-items: stretch; }
  .home-focus .card-feature .ph { width: 112px; flex: none; aspect-ratio: auto !important; border-width: 0 2px 0 0; }
  .home-focus .card-feature .ph-label { margin: 6px; padding: 4px 6px; font-size: .75rem; }
  .home-focus .card-body { padding: var(--s2); gap: 4px; }
  .home-focus .card-feature .card-title { font-size: 1.1rem; }
  .home-focus .card-text { font-size: .9375rem; }
  .home-focus .card-price-visual { width: 112px; flex: none; aspect-ratio: auto; padding: var(--s2) 10px; }
  .home-focus .cpv-num { font-size: 2.2rem; }
  .home-focus .cpv-unit { font-size: .95rem; }
  .home-focus .cpv-cap { font-size: .6875rem; letter-spacing: .08em; }

  /* Portfolio: compact list (name + "from"), no thumbnails or summaries on phones. */
  .home-portfolio .svc-group { margin-top: var(--s3); }
  .home-portfolio .svc-group-title { margin-bottom: var(--s1); font-size: .875rem; }
  .home-portfolio .grid-services { gap: 8px; grid-template-columns: 1fr 1fr; }
  .home-portfolio .t-long { display: none; }
  .home-portfolio .t-short { display: inline; }
  .home-portfolio .card-service { flex-direction: row; border-radius: 8px; }
  .home-portfolio .card-service .ph, .home-portfolio .card-service .card-text { display: none; }
  .home-portfolio .card-service .card-body { padding: 10px 12px; min-height: 56px; justify-content: center; gap: 2px; }
  .home-portfolio .card-service .card-title { font-size: 1rem; }
  .home-portfolio .card-from { font-size: .875rem; font-weight: 600; color: var(--muted-light); }

  /* Why + reserved reviews space: smaller reserved block. */
  .home-why .ph-reserved { aspect-ratio: auto !important; min-height: 96px; }
  .home-why .check-list { gap: 12px; }

  /* Price tiers: compact rows. */
  .home-price .tier-row { gap: 8px; }
  .home-price .tier-mini { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 2px; padding: 12px 14px; border-top-width: 1px; border-left: 4px solid var(--blue-brand); align-items: baseline; }
  .home-price .tier-range { font-size: 1.4rem; text-align: right; }
  .home-price .tier-sys { grid-column: 1 / -1; font-size: .875rem; }

  .home-areas .area-list { gap: 8px; }
  .home-areas .area-list li { padding: 10px 14px; font-size: .95rem; }

  .region-card { padding: var(--s2); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .card:hover { transform: none; }
}

/* Grid children may shrink below their min-content width (prevents horizontal overflow on phones). */
.hero-grid > *, .why-grid > *, .process-grid > *, .areas-grid > *, .footer-top > *, .grid-feature > *,
.grid-services > *, .grid-systems > *, .tier-row > *, .band-inner > *, .f-cols > *, .related > *,
.region-grid > *, .areas-map-grid > * { min-width: 0; }
h1, h2, h3, .card-title { overflow-wrap: break-word; }

/* ================= Gates 3/4 (B16, 30/09/2026): real photos ================= */
/* <picture class="media"> from tools/lib/media.mjs. Crop per position and breakpoint: aspect-ratio + object-fit:
   cover + object-position from the individual focal point (custom properties set inline on the <picture>). */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.media { display: block; }
.media img { width: 100%; height: auto; aspect-ratio: var(--ar-d, auto); object-fit: cover; object-position: var(--fp-d, 50% 50%); background: #D9DFE8; }
.dark .media img { background: var(--navy-900); }
@media (max-width: 1024px) { .media img { aspect-ratio: var(--ar-t, var(--ar-d, auto)); object-position: var(--fp-t, var(--fp-d, 50% 50%)); } }
@media (max-width: 560px) { .media img { aspect-ratio: var(--ar-m, var(--ar-t, auto)); object-position: var(--fp-m, var(--fp-t, 50% 50%)); } }

.hero-media .media img { border-radius: var(--radius); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
/* Pages without a photo of their own service (§5.2.1 item 6): the hero is text only, no placeholder. */
.hero-grid > :only-child, .process-grid > :only-child, .two-col > :only-child, .why-grid > :only-child, .areas-map-grid > :only-child { grid-column: 1 / -1; max-width: 860px; }
.hero-grid-inner > .hero-copy:only-child { max-width: 900px; }

/* Cards with a photo (home focus, service thumbnails, P03 systems) */
.card .card-media img { border-radius: 0; }
.card-service.card-text-only, .card-system.card-text-only { background: var(--navy-900); color: var(--ink); border-color: var(--navy-900); border-top: 4px solid var(--blue-300); }
.card-text-only .card-text { color: var(--muted-dark); }
.card-text-only .card-from { color: var(--ink); }
.card-text-only .card-more { color: var(--blue-300); }
.card-text-only:hover { border-color: var(--blue-300); }
.grid-systems-text { margin-top: var(--s3); }
.card-system.card-text-only .card-body { padding: var(--s3); }

/* Home "Recent projects" (B15 decision 6) */
.card-project .card-area, .pc-area { font-size: .9375rem; color: var(--muted-light); }
.grid-projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.grid-projects > * { min-width: 0; }

/* Process photos (P03) and single figures */
.process-media .photo-figure:first-child { grid-column: 1 / -1; }
.photo-figure { margin: 0; }
.photo-figure img { border-radius: var(--radius); }
.photo-figure figcaption { font-size: .9375rem; color: var(--muted-light); margin-top: 8px; }
.dark .photo-figure figcaption { color: var(--muted-dark); }
.photo-figure .pc-zoom { display: block; border-radius: var(--radius); }

/* Reserved non-photo spaces (C-06 reviews, P23 map): same look as before, not a photo position. */
.ph-reserved-box { align-items: center; justify-content: center; }

@media (max-width: 1024px) {
  .grid-projects { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .home-focus .card-feature .card-media { width: 112px; flex: none; }
  .home-focus .card-feature .card-media img { height: 100%; aspect-ratio: auto; }
  .home-portfolio .card-service .card-media { display: none; }
  .home-portfolio .card-service.card-text-only { background: var(--white); color: var(--ink-dark); border: 1px solid var(--line-light); }
  .home-portfolio .card-service.card-text-only .card-from { color: var(--muted-light); }
  .home-why .ph-reserved-box { aspect-ratio: auto !important; min-height: 96px; }
  .grid-projects { grid-template-columns: 1fr; gap: var(--s2); }
  .home-projects .card-project { flex-direction: row; }
  .home-projects .card-project .card-media { width: 120px; flex: none; }
  .home-projects .card-project .card-media img { height: 100%; aspect-ratio: auto; }
  .home-projects .card-project .card-body { padding: var(--s2); gap: 4px; }
  .home-projects .card-project .card-title { font-size: 1.05rem; }
}
.use-card .photo-figure { margin-bottom: var(--s2); }
.use-card .photo-figure figcaption { color: var(--muted-light); }
/* Without JS the drawer is rendered open inside the header; a sticky header would then cover the phone screen. */
@media (max-width: 1024px) { .no-js .site-header { position: static; } }
/* Header with "Projects" (6 items, 30/09): no wrapping between 1025 and 1240 px. */
.nav-link, .header-call { white-space: nowrap; }
@media (min-width: 1025px) and (max-width: 1240px) {
  .header-inner { gap: var(--s2); }
  .nav-link { padding: 8px 9px; font-size: .94rem; }
  .logo-wordmark { width: 128px; }
  .header-call .hc-num { display: none; }
  .header-call .hc-short { display: inline; }
}

/* ================= Gate 3 review (Evandro, 01/10/2026) ================= */
/* Home: horizontal photo (EP-06) as a full-bleed background with the copy over it (≥561 px).
   The section is its own stacking context, so the photo (z -2) and the overlay (z -1) sit above the
   section background and below the copy. */
@media (min-width: 561px) {
  .hero-home { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: clamp(560px, 80vh, 780px); }
  .hero-home > .hero-grid { display: block; width: 100%; }
  .hero-home .hero-copy { max-width: 700px; }
  .hero-home .hero-media { position: absolute; inset: 0; z-index: -2; }
  .hero-home .hero-media .media, .hero-home .hero-media .media img { width: 100%; height: 100%; }
  .hero-home .hero-media .media img { aspect-ratio: auto; object-position: var(--fp-d, 50% 50%); border-radius: 0; box-shadow: none; }
  .hero-home::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
      linear-gradient(90deg, rgba(7,16,31,.93) 0%, rgba(7,16,31,.82) 36%, rgba(7,16,31,.3) 62%, rgba(7,16,31,0) 85%),
      linear-gradient(0deg, rgba(7,16,31,.45) 0%, rgba(7,16,31,0) 30%);
  }
  .hero-home .lead, .hero-home .microcopy { color: #D5DCE6; }
  .hero-home h1, .hero-home .lead { text-shadow: 0 1px 3px rgba(0,0,0,.35); }
}
@media (min-width: 561px) and (max-width: 1024px) {
  .hero-home .hero-media .media img { object-position: var(--fp-t, var(--fp-d, 50% 50%)); }
  .hero-home { min-height: 0; }
  .hero-home::before { background: linear-gradient(90deg, rgba(7,16,31,.86) 0%, rgba(7,16,31,.62) 55%, rgba(7,16,31,.15) 100%); }
}

/* Smaller hours/estimate line everywhere in the hero (kept on the page). */
.hero .microcopy { font-size: .8125rem; }

/* Phones: title → subtitle → photo → price → buttons → line → One-Day. The copy column is flattened
   (display: contents) so the photo can sit between the subtitle and the buttons; DOM order is unchanged
   for screen readers. Only heroes that have a photo. */
@media (max-width: 560px) {
  .hero { padding: var(--s3) 0 var(--s5); }
  .hero .eyebrow { font-size: .6875rem; letter-spacing: .08em; margin-bottom: 6px; }
  .hero h1 { font-size: 2.375rem; line-height: 1.04; margin-bottom: var(--s2); }
  .hero .lead { font-size: 1rem; line-height: 1.5; }
  .hero-grid:has(> .hero-media) { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero-grid:has(> .hero-media) > .hero-copy { display: contents; }
  .hero-grid:has(> .hero-media) > .hero-copy > * { order: 9; }
  .hero-grid:has(> .hero-media) > .hero-copy > .eyebrow { order: 1; }
  .hero-grid:has(> .hero-media) > .hero-copy > h1 { order: 2; }
  .hero-grid:has(> .hero-media) > .hero-copy > .pc-area-lead { order: 2; }
  .hero-grid:has(> .hero-media) > .hero-copy > .lead { order: 3; }
  .hero-grid:has(> .hero-media) > .hero-media { order: 4; margin: var(--s1) 0 var(--s2); }
  .hero-grid:has(> .hero-media) > .hero-copy > .hero-price { order: 5; font-size: 1.0625rem; }
  .hero-grid:has(> .hero-media) > .hero-copy > .cta-row { order: 6; margin-top: var(--s1); }
  .hero-grid:has(> .hero-media) > .hero-copy > .microcopy { order: 7; }
  .hero-grid:has(> .hero-media) > .hero-copy > .oneday { order: 8; }
  /* Moderate photo: 16:9 band with the tablet focal point (the 4:5 phone crop was a tall portrait). */
  .hero-media .media img { aspect-ratio: 16 / 9; object-position: var(--fp-m, var(--fp-t, 50% 50%)); }
  .hero-inner .hero-media .media img { object-position: var(--fp-t, var(--fp-d, 50% 50%)); }
  /* Portrait masters (P05 ED-04, P08 MM-01): a 16:9 band only shows floor; 4:3 keeps the room. */
  .hero-inner .hero-media .media-portrait img { aspect-ratio: 4 / 3; }
}

/* Gate 4/5 answers (Evandro, 02/10/2026): home "Why" block without the reserved reviews box —
   the list spans the full width in two columns from tablet up. */
.why-full { grid-template-columns: 1fr; }
.why-full > :only-child { max-width: none; }
@media (min-width: 761px) {
  .why-full .check-list { grid-template-columns: 1fr 1fr; column-gap: var(--s6); row-gap: var(--s3); }
}

/* Gate 7 QA (02/10/2026): .side-links cards are light (--surface-light) but inherited the light text of
   .section.dark (P13 "Coating systems", P16 "The rest of the property": contrast 1.04:1). Cards keep dark ink. */
.side-links p { color: var(--ink-dark); }
.side-links p a, .dark .side-links p a:not(.btn) { color: var(--blue-brand); }

/* Service-area map (02/10/2026, round 2): Google Maps capture with the "about 2 hours' drive" circle. */
.areas-map .area-map-fig { margin: var(--s4) 0 0; }
.areas-map .area-map-fig img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line-light); background: #AADAFF; }
.areas-map .area-map-fig figcaption { color: var(--muted-light); font-size: .875rem; margin-top: 8px; }
