/* Steven Wood Plumbing & Heating: preview site. Tokens follow ../DESIGN.md */
@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@800&family=Public+Sans:wght@400;600&display=swap");

:root {
  --ink: #1B1F23;
  --charcoal: #23282E;
  --charcoal-2: #2E343B;
  --paper: #FFFFFF;
  --tint: #F5F1EC;
  --line: #DDD6CD;
  --muted: #5A616A;
  --copper: #A84A14;
  --copper-hover: #8E3E10;
  --copper-light: #F0A06A;
  --on-dark-muted: #B9C0C7;
  --success: #1E6B3A;
  --error: #B3261E;

  --font-display: "Archivo", "Arial Black", system-ui, sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* 4/8 spacing scale */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --gutter: var(--s4);
  --section: var(--s8);
  --max: 1200px;
  --header-h: 64px;
  --r-sm: 4px; --r-md: 8px; --r-full: 9999px;

  /* Motion (Emil / tasteskill numbers) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-enter: cubic-bezier(0.22, 1, 0.36, 1);
  --t-in: 150ms; --t-out: 120ms; --t-press: 90ms; --t-panel: 200ms;
}
@media (min-width: 861px) {
  :root { --gutter: var(--s6); --section: var(--s9); --header-h: 72px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--s4)); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; border-radius: var(--r-sm); }
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .hero :focus-visible { outline-color: var(--copper-light); }

/* ---------- Type levels ---------- */
h1, h2, .display { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
.display { font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.05; }
h1 { font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.1; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.25rem); line-height: 1.15; }
h3 { font-family: var(--font-body); font-weight: 600; font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.3; margin: 0; }
p { margin: 0; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.25rem); line-height: 1.6; }
.small { font-size: 15px; line-height: 1.5; }
.label { font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.2; }
.muted { color: var(--muted); }
.measure { max-width: 64ch; }
.stack > * + * { margin-top: var(--s4); }
.stack-lg > * + * { margin-top: var(--s5); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tint { background: var(--tint); }
.section--dark { background: var(--charcoal); color: var(--paper); }
.section--dark .muted { color: var(--on-dark-muted); }
.section-head { display: grid; gap: var(--s3); margin-bottom: var(--s7); max-width: 720px; }
.section-head .label { color: var(--copper); }
.section--dark .section-head .label { color: var(--copper-light); }
.grid { display: grid; gap: var(--s5); }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.split { display: grid; gap: var(--s7); align-items: center; }
@media (min-width: 861px) { .split { grid-template-columns: 1fr 1fr; gap: var(--s8); } .split--wide-text { grid-template-columns: 7fr 5fr; } }

.skip-link {
  position: absolute; left: var(--s4); top: -100px; z-index: 100;
  background: var(--paper); color: var(--ink); padding: var(--s3) var(--s4); border-radius: var(--r-md); font-weight: 600;
}
.skip-link:focus { top: var(--s2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: var(--s3) var(--s5); border-radius: var(--r-md);
  font: 600 17px/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; white-space: nowrap;
  transition: background-color var(--t-out) ease, border-color var(--t-out) ease, color var(--t-out) ease, transform var(--t-out) var(--ease-out);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--copper); color: var(--paper); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.on-dark .btn--secondary, .hero .btn--secondary, .section--dark .btn--secondary { color: var(--paper); border-color: var(--paper); }
.btn--lg { min-height: 56px; font-size: 18px; padding-inline: var(--s6); }
.btn:active { transform: translateY(1px) scale(0.985); transition-duration: var(--t-press); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); transition-duration: var(--t-in); }
  .btn--primary:hover { background: var(--copper-hover); }
  .btn--secondary:hover { background: rgba(27, 31, 35, 0.06); }
  .hero .btn--secondary:hover, .section--dark .btn--secondary:hover { background: rgba(255, 255, 255, 0.1); }
  .btn:active { transform: translateY(1px) scale(0.985); }
}
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* Links in running text: hairline at rest, line draws on hover */
.link {
  color: var(--copper); font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat,
              linear-gradient(rgba(168, 74, 20, 0.3), rgba(168, 74, 20, 0.3)) 0 100% / 100% 1px no-repeat;
  transition: background-size var(--t-out) var(--ease-out);
  padding-bottom: 2px;
}
@media (hover: hover) and (pointer: fine) { .link:hover { background-size: 100% 1px, 100% 1px; transition-duration: var(--t-in); } }
.section--dark .link { color: var(--copper-light); }
.tel { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--charcoal); color: var(--paper); border-bottom: 1px solid rgba(255,255,255,0.08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: var(--header-h); }
.brand { display: grid; text-decoration: none; line-height: 1; gap: var(--s1); padding-block: var(--s2); }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.01em; }
.brand__sub { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-muted); }
.nav { display: none; }
.nav ul { display: flex; gap: var(--s2); list-style: none; margin: 0; padding: 0; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--s3);
  text-decoration: none; font-weight: 600; font-size: 16px; color: var(--on-dark-muted); position: relative;
  transition: color var(--t-out) ease;
}
.nav a::after {
  content: ""; position: absolute; left: var(--s3); right: var(--s3); bottom: 8px; height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-out) var(--ease-out);
}
.nav a[aria-current="page"] { color: var(--paper); }
.nav a[aria-current="page"]::after { transform: scaleX(1); background: var(--copper-light); }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--paper); transition-duration: var(--t-in); }
  .nav a:hover::after { transform: scaleX(1); transition-duration: var(--t-in); }
}
.header-actions { display: flex; align-items: center; gap: var(--s3); }
.header-phone {
  display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px;
  color: var(--copper-light); font-weight: 600; font-size: 18px; text-decoration: none;
}
.header-phone svg { width: 18px; height: 18px; }
.header-call { display: none; }
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-right: calc(-1 * var(--s3));
  background: none; border: 0; color: var(--paper); cursor: pointer; border-radius: var(--r-md);
}
.menu-btn svg { width: 26px; height: 26px; }
.menu-btn .i-close { display: none; }
.menu-open .menu-btn .i-open { display: none; }
.menu-open .menu-btn .i-close { display: block; }
@media (max-width: 400px) { .header-phone__num { font-size: 16px; } .brand__name { font-size: 19px; } }
@media (min-width: 861px) {
  .nav { display: block; }
  .menu-btn { display: none; }
  .header-call { display: inline-flex; min-height: 44px; padding-block: var(--s2); }
}
/* Below 1180px on desktop the plain number hides and the Call button carries it, so nothing overflows */
@media (min-width: 861px) and (max-width: 1179px) { .header-phone { display: none; } }

/* Mobile menu: full screen sheet */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: var(--charcoal); color: var(--paper);
  padding: var(--s6) var(--gutter); display: flex; flex-direction: column; gap: var(--s5);
  opacity: 0; transform: translateY(-6px); visibility: hidden;
  transition: opacity var(--t-out) ease, transform var(--t-out) var(--ease-out), visibility 0s linear var(--t-out);
}
.menu-open .mobile-menu { opacity: 1; transform: none; visibility: visible; transition: opacity var(--t-panel) var(--ease-out), transform var(--t-panel) var(--ease-out), visibility 0s; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; display: grid; }
.mobile-menu li a {
  display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid rgba(255,255,255,0.1);
  font-family: var(--font-display); font-weight: 800; font-size: 28px; text-decoration: none;
}
.mobile-menu li a[aria-current="page"] { color: var(--copper-light); }
.mobile-menu .btn { width: 100%; }
@media (min-width: 861px) { .mobile-menu { display: none; } }
body.menu-open { overflow: hidden; }

/* Floating call button (phones) */
.fab {
  position: fixed; right: var(--s4); bottom: calc(var(--s4) + env(safe-area-inset-bottom)); z-index: 40;
  display: inline-flex; align-items: center; gap: var(--s2); min-height: 56px; padding: 0 var(--s5) 0 var(--s4);
  background: var(--copper); color: var(--paper); border-radius: var(--r-full); text-decoration: none;
  font-weight: 600; font-size: 18px; box-shadow: 0 8px 24px rgba(27, 31, 35, 0.28);
  transition: transform var(--t-out) var(--ease-out), background-color var(--t-out) ease;
}
.fab svg { width: 22px; height: 22px; }
.fab:active { transform: scale(0.97); transition-duration: var(--t-press); }
@media (min-width: 861px) { .fab { display: none; } }
@media (max-width: 860px) { body { padding-bottom: 88px; } .menu-open .fab { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--charcoal); color: var(--paper); overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(35,40,46,0.72) 0%, rgba(35,40,46,0.86) 55%, rgba(35,40,46,0.96) 100%);
}
.hero .wrap { min-height: calc(100svh - var(--header-h)); display: flex; flex-direction: column; justify-content: flex-end; padding-block: var(--s7) var(--s7); }
.hero__copy { display: grid; gap: var(--s5); max-width: 640px; }
.hero__copy .label { color: var(--copper-light); }
.hero__lead { color: #E6E9EC; }
.hero__note { display: flex; align-items: center; gap: var(--s2); color: var(--on-dark-muted); font-size: 15px; }
.hero__note svg { width: 18px; height: 18px; color: var(--copper-light); flex: none; }
@media (max-width: 639px) { .hero .btn-row .btn { width: 100%; } }
@media (min-width: 861px) {
  .hero .wrap { min-height: min(calc(100svh - var(--header-h)), 820px); display: grid; grid-template-columns: 7fr 5fr; gap: var(--s8); align-items: center; padding-block: var(--s8); }
  .hero__media { position: relative; inset: auto; z-index: auto; order: 2; height: 100%; min-height: 560px; max-height: 680px; border-radius: var(--r-md); overflow: hidden; }
  .hero__media::after { display: none; }
}
.hero--page .wrap { min-height: 0; padding-block: var(--s8); display: block; }
.hero--page .hero__copy { max-width: 760px; }
@media (min-width: 861px) { .hero--page .wrap { padding-block: var(--s9) var(--s8); } }

/* Hero entrance: once, on load */
.js [data-enter] > * { opacity: 0; transform: translateY(12px); }
.js.ready [data-enter] > * {
  opacity: 1; transform: none;
  transition: opacity 500ms var(--ease-enter), transform 600ms var(--ease-enter);
}
.js.ready [data-enter] > *:nth-child(2) { transition-delay: 70ms; }
.js.ready [data-enter] > *:nth-child(3) { transition-delay: 130ms; }
.js.ready [data-enter] > *:nth-child(4) { transition-delay: 180ms; }
.js.ready [data-enter] > *:nth-child(5) { transition-delay: 220ms; }
.js .hero__media img { transform: scale(1.04); }
.js.ready .hero__media img { transform: scale(1); transition: transform 1100ms var(--ease-enter); }

/* ---------- Trust bar ---------- */
.trust { background: var(--paper); border-bottom: 1px solid var(--line); }
.trust ul { list-style: none; margin: 0; padding: var(--s6) 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s5) var(--s4); }
@media (min-width: 861px) { .trust ul { grid-template-columns: repeat(4, 1fr); padding-block: var(--s7); } }
.trust li { display: grid; gap: var(--s1); align-content: start; padding-left: var(--s3); border-left: 3px solid var(--copper); }
.trust strong { font-size: 18px; line-height: 1.3; }
.trust span { font-size: 15px; color: var(--muted); line-height: 1.4; }

/* ---------- Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden; text-decoration: none; color: inherit;
  transition: transform var(--t-out) var(--ease-out), border-color var(--t-out) ease, box-shadow var(--t-out) ease;
}
.card__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease-out); }
.card__body { display: grid; gap: var(--s2); padding: var(--s5); align-content: start; flex: 1; }
.card__body p { color: var(--muted); }
.card__more { margin-top: auto; padding: 0 var(--s5) var(--s5); color: var(--copper); font-weight: 600; display: inline-flex; align-items: center; gap: var(--s2); }
.card__more svg { width: 18px; height: 18px; transition: transform var(--t-out) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  a.card:hover { transform: translateY(-2px); border-color: #C9C0B5; box-shadow: 0 8px 24px rgba(27,31,35,0.08); transition-duration: 180ms; }
  a.card:hover .card__img img { transform: scale(1.03); transition-duration: 600ms; }
  a.card:hover .card__more svg { transform: translateX(3px); transition-duration: var(--t-in); }
}
a.card:active { transform: scale(0.99); transition-duration: var(--t-press); }
.group-title { display: flex; align-items: baseline; gap: var(--s3); margin: 0 0 var(--s5); }
.group-title h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 2.4vw, 1.75rem); }
.group + .group { margin-top: var(--s7); }

/* ---------- Owner block ---------- */
.owner__photo { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 5; }
.owner__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.quote { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.15; margin: 0; }
.quote::before { content: "\201C"; color: var(--copper); }
.quote::after { content: "\201D"; color: var(--copper); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: var(--s3); align-items: start; }
.checks svg { width: 24px; height: 24px; color: var(--copper); margin-top: 1px; }
.section--dark .checks svg { color: var(--copper-light); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s1); }
@media (min-width: 861px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery figure { margin: 0; aspect-ratio: 1; overflow: hidden; background: var(--charcoal-2); border-radius: var(--r-sm); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .gallery figure:hover img { transform: scale(1.03); transition-duration: 600ms; } }

/* ---------- Testimonials ---------- */
.reviews { display: grid; gap: var(--s5); }
@media (min-width: 861px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s5); display: flex; flex-direction: column; gap: var(--s4); }
.review blockquote { margin: 0; font-size: 18px; line-height: 1.55; }
.review figcaption { margin-top: auto; font-size: 15px; color: var(--muted); }
.review figcaption strong { color: var(--ink); font-weight: 600; }

/* ---------- Emergency band ---------- */
.cta-band { background: var(--charcoal); color: var(--paper); }
.cta-band .wrap { display: grid; gap: var(--s5); padding-block: var(--s8); }
.cta-band h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
.cta-band__phone { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 5vw, 3rem); color: var(--copper-light); text-decoration: none; line-height: 1.1; }
@media (min-width: 861px) { .cta-band .wrap { grid-template-columns: 1fr auto; align-items: center; gap: var(--s8); } }

/* ---------- Service detail rows ---------- */
.svc-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.svc { display: grid; gap: var(--s2); padding: var(--s5) 0; border-bottom: 1px solid var(--line); }
@media (min-width: 861px) { .svc { grid-template-columns: 5fr 7fr; gap: var(--s6); } }
.svc p { color: var(--muted); }
.svc-photo { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 5; }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.photo-pair .svc-photo { aspect-ratio: 3 / 4; }
@media (min-width: 861px) { .sticky-col { position: sticky; top: calc(var(--header-h) + var(--s5)); align-self: start; } }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; margin: 0; padding: 0; }
.chips li { padding: var(--s2) var(--s3); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-full); font-size: 15px; }
.section--tint .chips li { background: var(--paper); }

/* ---------- Contact form ---------- */
.form { display: grid; gap: var(--s5); }
.field { display: grid; gap: var(--s2); }
.field label { font-weight: 600; font-size: 16px; }
.field .hint { font-size: 15px; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: var(--s3) var(--s4); font: 400 17px/1.4 var(--font-body); color: var(--ink);
  background: var(--paper); border: 2px solid var(--muted); border-radius: var(--r-md);
  transition: border-color var(--t-out) ease;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 3px solid var(--copper); outline-offset: 1px; border-color: var(--copper); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field .error { color: var(--error); font-size: 15px; font-weight: 600; }
.field .error:empty { display: none; }
.form-success {
  display: grid; gap: var(--s3); padding: var(--s5); border-radius: var(--r-md); background: #EAF3ED; color: var(--success);
  border: 2px solid var(--success);
}
.form-success[hidden] { display: none; }
.form-success p { color: var(--ink); }
.call-first { display: grid; gap: var(--s3); padding: var(--s5); border-radius: var(--r-md); background: var(--charcoal); color: var(--paper); }
.call-first a.tel-big { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.75rem, 4vw, 2.25rem); color: var(--copper-light); text-decoration: none; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); }
.info-list li { display: grid; gap: var(--s1); }
.info-list .label { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding-block: var(--s8) var(--s6); }
.footer-grid { display: grid; gap: var(--s6); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 4fr 3fr 3fr 3fr; } }
.site-footer h2 { font-family: var(--font-body); font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: var(--s3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s1); }
.site-footer a { text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
@media (hover: hover) and (pointer: fine) { .site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; } }
.site-footer .footer-phone { font-family: var(--font-display); font-weight: 800; font-size: 28px; color: var(--copper-light); min-height: 44px; }
.site-footer p { color: var(--on-dark-muted); font-size: 15px; }
.footer-legal { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid rgba(255,255,255,0.12); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); justify-content: space-between; color: var(--on-dark-muted); font-size: 14px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation: none !important; }
  .js [data-enter] > *, .js .hero__media img { opacity: 1 !important; transform: none !important; }
  .mobile-menu { transform: none !important; }
}

/* ---------- Fixes from the 375px test ---------- */
/* 1. hidden form must really hide (display:grid was overriding [hidden]) */
.form[hidden] { display: none; }
/* 2. brand stays on two short lines, never wraps into four */
.brand { white-space: nowrap; min-height: 44px; align-content: center; }
@media (max-width: 400px) { .brand__sub { font-size: 11px; letter-spacing: 0.06em; } .header-actions { gap: var(--s1); } }
/* 3. 44px tap targets outside running text */
.site-footer a { min-height: 44px; }
.chips a.link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s2); background: none; }
.chips li:has(a) { padding: 0 var(--s2); }
.info-list a { display: inline-flex; align-items: center; min-height: 44px; }
/* Call band: number is its own line, button below it with the stack's 16px gap */
.cta-band__phone { display: flex; align-items: center; width: fit-content; min-height: 48px; }

/* Floating call button waits until the page's own call button has scrolled away, so it never covers the first screen */
.fab { transition: opacity var(--t-panel) var(--ease-out), transform var(--t-panel) var(--ease-out), background-color var(--t-out) ease, visibility 0s; }
.fab.is-hidden { opacity: 0; transform: translateY(12px) scale(0.96); visibility: hidden; pointer-events: none;
  transition: opacity var(--t-out) ease, transform var(--t-out) var(--ease-out), visibility 0s linear var(--t-out); }
