/* Machine Tool Refabrication and Sales cc — site styles v1.0.0
   Built by TSA Online. Hand-coded, no framework. */

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

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;
  --ink: #1c2126;          /* cast-iron graphite */
  --ink-2: #4a535c;        /* machined steel */
  --muted: #5d666f;
  --line: #d3d8dc;
  --paper: #f2f3f1;        /* workshop floor, swept */
  --surface: #ffffff;
  --raised: #e8ebe8;
  --orange: #f07a1a;       /* safety orange — CTA fill only */
  --orange-hover: #ff8f33;
  --on-orange: #1c2126;
  --orange-ink: #a5480a;   /* orange as text on light */
  --green: #a9c4a2;        /* machinery green, from the restored Kearns & Hulse */
  --green-soft: #dfe9db;
  --green-ink: #33513a;
  --dark: #1c2126;
  --dark-2: #262c32;
  --on-dark: #eef0f1;
  --on-dark-muted: #b7bfc6;
  --focus: #2f7de1;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.65rem;
  --step-3: clamp(1.75rem, 1.4rem + 1.5vw, 2.1rem);
  --step-4: clamp(2rem, 1.5rem + 2.4vw, 2.75rem);
  --step-5: clamp(2.35rem, 1.6rem + 3.6vw, 3.9rem);

  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --wrap: 1240px;
  --r-s: 4px;
  --r-m: 10px;
  --shadow: 0 1px 0 rgba(28, 33, 38, .06), 0 10px 30px -14px rgba(28, 33, 38, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8ebed;
    --ink-2: #c3cad0;
    --muted: #a3acb4;
    --line: #353d44;
    --paper: #14181b;
    --surface: #1c2126;
    --raised: #232a30;
    --orange-ink: #f8a35b;
    --green-soft: #22302a;
    --green-ink: #b9d3b2;
    --dark: #0f1215;
    --dark-2: #1a1f24;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 12px 30px -14px rgba(0, 0, 0, .7);
    --focus: #79b0ff;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@view-transition { navigation: auto; }

body {
  margin: 0;
  overflow-x: clip;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  font-stretch: 100%;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: lining-nums;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { padding-left: 1.2em; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.06;
  font-weight: 800;
  font-stretch: 118%;
  letter-spacing: -.012em;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); font-stretch: 125%; font-weight: 850; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); font-stretch: 110%; font-weight: 750; line-height: 1.15; }
h4 { font-size: var(--step-1); font-stretch: 105%; font-weight: 700; line-height: 1.2; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: .5rem; z-index: 100; background: var(--surface); padding: .6rem 1rem; border-radius: var(--r-s); }
.skip:focus { left: .5rem; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--orange); --fg: var(--on-orange);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7rem 1.25rem;
  font-weight: 700; font-stretch: 108%; font-size: 1rem; line-height: 1.1;
  color: var(--fg); background: var(--bg);
  border: 2px solid var(--bg); border-radius: var(--r-s);
  text-decoration: none; cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), transform .12s var(--ease);
}
.btn:hover { --bg: var(--orange-hover); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: currentColor; }
.btn--ghost:hover { --bg: transparent; background: color-mix(in srgb, var(--ink) 8%, transparent); }
:is(.on-dark, .section--dark) .btn--ghost { --fg: var(--on-dark); }
:is(.on-dark, .section--dark) .btn--ghost:hover { background: rgba(255,255,255,.08); }
.btn--wa { --bg: #1a7a43; --fg: #fff; }
.btn--wa:hover { --bg: #145f34; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.textlink { font-weight: 700; color: var(--orange-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .25em; }

/* ---------- Utility bar + header ---------- */
.util { background: var(--dark); color: var(--on-dark-muted); font-size: var(--step--1); }
.util .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; }
.util a { color: var(--on-dark); text-decoration: none; display: inline-flex; align-items: center; gap: .4em; padding: .4rem 0; }
.util a:hover { text-decoration: underline; }
.util svg { width: 1em; height: 1em; }
.util__links { display: flex; gap: 1.5rem; }
.util__breakdown { color: #ffb37a !important; font-weight: 700; }
@media (max-width: 760px) { .util { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 1081px) {
  .site-header { backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
}
@media (max-width: 1080px) { .site-header { background: var(--surface); } }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.brand { display: block; flex: none; }
.brand img { width: 250px; height: auto; }
.brand .logo-light { display: none; }
@media (prefers-color-scheme: dark) { .brand .logo-dark { display: none; } .brand .logo-light { display: block; } }
@media (max-width: 420px) { .brand img { width: 200px; } }

.nav { margin-left: auto; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.nav__list > li { position: relative; }
.nav a, .nav__drop {
  display: inline-flex; align-items: center; gap: .3em;
  min-height: 44px; padding: .5rem .7rem; border-radius: var(--r-s);
  font-weight: 600; font-size: .98rem; text-decoration: none; color: var(--ink);
  background: none; border: 0; cursor: pointer;
}
.nav a:hover, .nav__drop:hover { background: var(--raised); }
.nav a[aria-current="page"], .nav__drop.is-current { box-shadow: inset 0 -3px 0 var(--orange); border-radius: var(--r-s) var(--r-s) 0 0; }
.nav__drop svg { width: .8em; height: .8em; transition: transform .2s var(--ease); }
.nav__drop[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__sub {
  position: absolute; top: calc(100% + 6px); left: -.5rem; min-width: 320px;
  list-style: none; margin: 0; padding: .5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow);
  display: none;
}
.nav__sub.is-open { display: block; animation: drop .18s var(--ease); }
.nav__sub a { display: flex; flex-direction: column; align-items: flex-start; gap: 0; width: 100%; padding: .55rem .75rem; }
.nav__sub small { font-weight: 400; color: var(--muted); font-size: .82rem; }
@keyframes drop { from { opacity: 0; transform: translateY(-4px); } }
.nav__cta { margin-left: .5rem; }
.nav .nav__cta .btn { background: var(--orange); color: var(--on-orange); padding: .6rem 1.1rem; font-weight: 700; }
.nav .nav__cta .btn:hover { background: var(--orange-hover); }
@media (max-width: 1080px) { .nav .nav__cta .btn { justify-content: center; } }
.nav-toggle { display: none; margin-left: auto; min-width: 48px; min-height: 48px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-s); cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav {
    position: fixed; inset: 72px 0 0 0; z-index: 49;
    background: var(--surface); overflow-y: auto;
    padding: 1rem var(--gutter) 7rem;
    transform: translateX(100%); visibility: hidden;
    transition: transform .25s var(--ease), visibility 0s linear .25s;
  }
  .nav.is-open { transform: none; visibility: visible; transition: transform .25s var(--ease); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-bottom: 1px solid var(--line); }
  .nav a, .nav__drop { width: 100%; justify-content: space-between; min-height: 56px; font-size: 1.1rem; }
  .nav__sub { position: static; box-shadow: none; border: 0; padding: 0 0 .5rem .5rem; min-width: 0; }
  .nav__cta { margin: 1rem 0 0; border: 0 !important; }
  .nav__cta .btn { width: 100%; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 2rem + 6vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4rem); }
.section--surface { background: var(--surface); }
.section--dark, .on-dark { background: var(--dark); color: var(--on-dark); }
.section--dark .lead, .section--dark .muted { color: var(--on-dark-muted); }
.section-head { display: grid; gap: .5rem 3rem; margin-bottom: clamp(2rem, 1rem + 3vw, 3.25rem); }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1.1fr 1fr; align-items: end; } }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; }

/* ---------- Hero (home) ---------- */
.hero { padding-block: clamp(2rem, 1rem + 4vw, 4.5rem) clamp(3rem, 2rem + 4vw, 5rem); background: var(--surface); border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; gap: clamp(2rem, 1rem + 3vw, 3.5rem); align-items: center; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.hero h1 { margin-bottom: .35em; }
.hero .lead { margin-bottom: 1.75rem; }
.hero__facts { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.hero__facts li { font-size: .9rem; font-weight: 600; padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 99px; background: var(--paper); }

/* Before / after comparison — the signature element */
.compare { position: relative; margin: 0; }
.compare__frame {
  position: relative; overflow: hidden; border-radius: var(--r-m);
  aspect-ratio: 880 / 500; background: var(--raised);
  --pos: 50%;
  touch-action: pan-y;
}
.compare__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__after { clip-path: inset(0 0 0 var(--pos)); }
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px;
  background: var(--orange); pointer-events: none;
}
.compare__handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; translate: -50% -50%;
  border-radius: 50%; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c2126' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 24px no-repeat;
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.compare__range:focus-visible + .compare__handle::after { outline: 3px solid var(--focus); outline-offset: 3px; }
.compare__tag {
  position: absolute; bottom: .75rem; padding: .25rem .6rem; border-radius: var(--r-s);
  font-size: .82rem; font-weight: 700; pointer-events: none;
}
.compare__tag--before { left: .75rem; background: rgba(28,33,38,.82); color: #fff; }
.compare__tag--after { right: .75rem; background: var(--green); color: #1c2126; }
.compare figcaption { margin-top: .75rem; font-size: var(--step--1); color: var(--muted); }

/* ---------- Route chooser (who are you / what do you need) ---------- */
.routes { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
@media (min-width: 820px) { .routes { grid-template-columns: repeat(3, 1fr); } }
.route { background: var(--surface); padding: clamp(1.4rem, 1rem + 1.5vw, 2rem); display: flex; flex-direction: column; gap: .5rem; }
.route h3 { font-size: var(--step-1); margin: 0; }
.route p { margin: 0 0 .75rem; color: var(--ink-2); }
.route .btn-row { margin-top: auto; }
.route--urgent { background: color-mix(in srgb, var(--orange) 9%, var(--surface)); }
.route__icon { width: 40px; height: 40px; color: var(--ink-2); }

/* ---------- Service index (rows, not cards) ---------- */
.svc-list { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.svc {
  display: grid; gap: .75rem 2rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line);
  grid-template-columns: 1fr;
}
@media (min-width: 860px) { .svc { grid-template-columns: 200px minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; } }
.svc img { border-radius: var(--r-s); aspect-ratio: 3/2; object-fit: cover; width: 100%; }
@media (max-width: 859px) { .svc img { display: none; } }
.svc h3 { margin: 0 0 .35rem; font-size: var(--step-2); }
.svc h3 a { text-decoration: none; }
.svc h3 a:hover { text-decoration: underline; }
.svc p { margin: 0; color: var(--ink-2); }
.svc ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.svc li { font-size: .88rem; padding: .2rem .55rem; background: var(--raised); border-radius: var(--r-s); }

/* ---------- Feature: slide-way grinder ---------- */
.feature { position: relative; overflow: hidden; }
.feature__img { position: absolute; inset: 0; }
.feature__img img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.feature__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--dark) 30%, rgba(28,33,38,.55) 100%); }
.feature .wrap { position: relative; display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .feature .wrap { grid-template-columns: 1.2fr 1fr; align-items: center; } }
.spec { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.spec th, .spec td { text-align: left; padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.16); vertical-align: top; }
.spec th { font-weight: 500; color: var(--on-dark-muted); width: 46%; padding-right: 1rem; }
.spec td { font-weight: 800; font-stretch: 115%; font-size: var(--step-1); }
.spec--light th, .spec--light td { border-color: var(--line); }
.spec--light th { color: var(--muted); }

/* ---------- Story sequence (real sequence → numbered) ---------- */
.seq { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 700px) { .seq { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .seq { grid-template-columns: repeat(4, 1fr); } }
.seq li { counter-increment: step; position: relative; }
.seq figure { margin: 0; }
.seq img { border-radius: var(--r-s); width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.seq h3 { font-size: var(--step-1); margin: .9rem 0 .3rem; display: flex; gap: .6rem; align-items: baseline; }
.seq h3::before { content: counter(step); font-variant-numeric: tabular-nums; color: var(--orange-ink); font-weight: 800; }
.seq p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.seq-bar { height: 3px; background: var(--line); margin: 0 0 1.5rem; border-radius: 3px; overflow: hidden; }
.seq-bar span { display: block; height: 100%; background: var(--orange); transform-origin: left; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .seq-bar span { animation: fill linear both; animation-timeline: view(); animation-range: entry 10% cover 55%; }
    @keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }
}

/* ---------- Machine cards ---------- */
.machines { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .machines { grid-template-columns: repeat(2, 1fr); } }
.machine { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; display: flex; flex-direction: column; }
.machine__main { position: relative; display: block; padding: 0; border: 0; background: var(--raised); cursor: zoom-in; width: 100%; }
.machine__main img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.machine__count { position: absolute; right: .6rem; bottom: .6rem; background: rgba(28,33,38,.85); color: #fff; font-size: .8rem; font-weight: 600; padding: .2rem .5rem; border-radius: var(--r-s); }
.machine__thumbs { display: flex; gap: 4px; padding: 4px; background: var(--raised); overflow-x: auto; }
.machine__thumbs button { flex: 0 0 72px; padding: 0; border: 2px solid transparent; border-radius: 3px; cursor: zoom-in; background: none; }
.machine__thumbs button:hover { border-color: var(--orange); }
.machine__thumbs img { aspect-ratio: 3/2; object-fit: cover; border-radius: 2px; }
.machine__body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.machine__body h3 { margin: 0; font-size: var(--step-2); }
.machine__type { font-weight: 600; color: var(--green-ink); margin: 0; }
.machine__body .btn-row { margin-top: auto; padding-top: .75rem; }
.machine dl { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; margin: .25rem 0 0; font-size: .95rem; }
.machine dt { color: var(--muted); }
.machine dd { margin: 0; font-weight: 600; }

/* ---------- Generic grids & panels ---------- */
.grid-2 { display: grid; gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: start; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-2--wide-left { grid-template-columns: 1.3fr 1fr; } }
.grid-3 { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.panel h3 { font-size: var(--step-1); margin-bottom: .4rem; }
.panel p:last-child { margin-bottom: 0; }
.panel--green { background: var(--green-soft); border-color: transparent; }
.checks { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .55rem; }
.checks li { position: relative; padding-left: 1.75rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 1.05rem; height: 1.05rem; border-radius: 2px;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c2126' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 72% no-repeat;
}
.cols-2 { columns: 2 260px; column-gap: 2.5rem; }
.cols-2 li { break-inside: avoid; }
.figure { margin: 0; }
.figure img { border-radius: var(--r-m); width: 100%; }
.figure figcaption { font-size: var(--step--1); color: var(--muted); margin-top: .6rem; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.photo-pair img { border-radius: var(--r-s); aspect-ratio: 3/2; object-fit: cover; width: 100%; }

/* Industries */
.ind-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 2.5rem; }
@media (min-width: 760px) { .ind-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ind-list { grid-template-columns: repeat(3, 1fr); } }
.ind-list li { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.ind-list h3 { font-size: var(--step-1); margin: 0 0 .25rem; }
.ind-list p { margin: 0; color: var(--ink-2); font-size: .97rem; }
:is(.on-dark, .section--dark) .ind-list li { border-color: rgba(255,255,255,.16); }
:is(.on-dark, .section--dark) .ind-list p { color: var(--on-dark-muted); }

/* Proof strip */
.proof-band { border-bottom: 1px solid var(--line); background: var(--paper); }
.proof { display: grid; grid-template-columns: 1fr 1fr; }
@media (min-width: 1040px) { .proof { grid-template-columns: repeat(4, 1fr); } }
.proof > div { padding: 1.4rem 1.25rem 1.4rem 0; }
@media (min-width: 1040px) { .proof > div + div { border-left: 1px solid var(--line); padding-left: 1.5rem; } }
@media (max-width: 1039px) { .proof > div:nth-child(n+3) { border-top: 1px solid var(--line); } .proof > div:nth-child(even) { border-left: 1px solid var(--line); padding-left: 1rem; } }
.proof strong { display: block; font-size: var(--step-2); font-stretch: 120%; font-weight: 800; line-height: 1.1; margin-bottom: .2rem; font-variant-numeric: tabular-nums; }
.proof span { color: var(--ink-2); font-size: .95rem; }

/* People */
.people { display: grid; gap: 1.25rem; }
@media (min-width: 820px) { .people { grid-template-columns: repeat(3, 1fr); } }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.person h3 { margin: 0; font-size: var(--step-1); }
.person__role { margin: 0; color: var(--green-ink); font-weight: 600; }
.person .btn-row { margin-top: auto; padding-top: .5rem; }
.person .btn { min-height: 44px; padding: .5rem .9rem; font-size: .95rem; }

/* FAQ */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.15rem 2.5rem 1.15rem 0; position: relative;
  font-weight: 700; font-stretch: 105%; font-size: var(--step-1); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 50%; translate: 0 -50%; font-size: 1.6rem; font-weight: 400; transition: rotate .2s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details > div { padding: 0 0 1.25rem; color: var(--ink-2); }

/* Page hero (inner pages) */
.page-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: clamp(1.75rem, 1rem + 3vw, 3.5rem) clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.page-hero__grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 960px) { .page-hero__grid--img { grid-template-columns: 1.25fr 1fr; } }
.page-hero h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); }
.page-hero .lead { margin-bottom: 1.5rem; }
.page-hero__img img { border-radius: var(--r-m); width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.crumbs { font-size: var(--step--1); color: var(--muted); margin-bottom: 1.25rem; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: .35rem; color: var(--line); }
.crumbs a { color: var(--muted); }

/* CTA band */
.cta-band { background: var(--orange); color: var(--on-orange); }
.cta-band .wrap { display: grid; gap: 1.5rem; padding-block: clamp(2.5rem, 1.5rem + 3vw, 3.75rem); align-items: center; }
@media (min-width: 900px) { .cta-band .wrap { grid-template-columns: 1.4fr auto; } }
.cta-band h2 { font-size: var(--step-3); margin: 0 0 .35rem; }
.cta-band p { margin: 0; }
.cta-band .btn { --bg: var(--ink); --fg: #fff; }
.cta-band .btn:hover { --bg: #000; }
.cta-band .btn--ghost { --bg: transparent; --fg: var(--on-orange); border-color: var(--on-orange); }
@media (prefers-color-scheme: dark) { .cta-band .btn { --bg: #1c2126; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1rem; }
.form__row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .35rem; }
.field label, .field legend { font-weight: 600; font-size: .95rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .7rem .85rem;
  background: var(--surface); border: 1.5px solid color-mix(in srgb, var(--ink) 35%, transparent); border-radius: var(--r-s);
  font-size: 16px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--focus); outline: 2px solid color-mix(in srgb, var(--focus) 35%, transparent); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: #c62828; }
.field__err { color: #c62828; font-size: .88rem; min-height: 0; }
@media (prefers-color-scheme: dark) { .field__err { color: #ff8a80; } .field [aria-invalid="true"] { border-color: #ff8a80; } }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .93rem; }
.consent input { width: 22px; height: 22px; margin-top: .15rem; flex: none; accent-color: var(--orange); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__status { padding: .9rem 1rem; border-radius: var(--r-s); font-weight: 600; display: none; }
.form__status.is-ok { display: block; background: var(--green-soft); color: var(--green-ink); }
.form__status.is-err { display: block; background: color-mix(in srgb, #c62828 12%, var(--surface)); color: #b71c1c; }
@media (prefers-color-scheme: dark) { .form__status.is-err { color: #ff8a80; } }
.btn.is-busy { opacity: .75; pointer-events: none; }
.btn.is-busy::after { content: ""; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: clamp(1.25rem, 1rem + 2vw, 2.25rem); box-shadow: var(--shadow); }

/* Contact */
.branches { display: grid; gap: 1rem; }
.branch { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.branch h3 { font-size: var(--step-1); margin: 0 0 .2rem; }
.branch address { font-style: normal; color: var(--ink-2); margin-bottom: .5rem; }
.map { position: relative; aspect-ratio: 16/10; border-radius: var(--r-m); overflow: hidden; background: var(--raised); border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__load { position: absolute; inset: 0; display: grid; place-content: center; gap: .75rem; text-align: center; padding: 1rem;
  background: repeating-linear-gradient(135deg, var(--raised) 0 14px, var(--paper) 14px 28px); }

/* ---------- Lightbox ---------- */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox::backdrop { background: rgba(10, 12, 14, .96); }
.lightbox__inner { position: relative; height: 100%; display: grid; place-items: center; padding: 4rem 1rem 5rem; }
.lightbox img { max-width: min(100%, 960px); max-height: 100%; width: auto; border-radius: var(--r-s); image-rendering: auto; }
.lightbox__cap { position: absolute; left: 0; right: 0; bottom: 1.25rem; text-align: center; color: #e8ebed; font-size: .95rem; padding: 0 5rem; }
.lightbox button { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255,255,255,.24); }
.lightbox button svg { width: 24px; height: 24px; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 1rem; top: 50%; translate: 0 -50%; }
.lightbox[open] img { animation: lbin .2s var(--ease); }
@keyframes lbin { from { opacity: 0; scale: .98; } }

/* Gallery grid */
.gallery { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.gallery button { padding: 0; border: 0; background: var(--raised); border-radius: var(--r-s); overflow: hidden; cursor: zoom-in; }
.gallery img { width: 100%; aspect-ratio: 3/2; object-fit: cover; transition: scale .3s var(--ease); }
.gallery button:hover img { scale: 1.04; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--on-dark-muted); padding: clamp(3rem, 2rem + 3vw, 4.5rem) 0 6.5rem; font-size: .95rem; }
@media (min-width: 761px) { .site-footer { padding-bottom: 2rem; } }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-footer h2 { font-size: 1rem; font-stretch: 110%; color: var(--on-dark); margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer address { font-style: normal; }
.footer-logo { width: 240px; margin-bottom: 1rem; }
.footer-legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); display: grid; gap: 1rem; font-size: .85rem; }
.footer-legal p { max-width: none; margin: 0; }
.footer-legal details summary { cursor: pointer; color: var(--on-dark); }
.footer-legal details p { margin-top: .5rem; max-width: 90ch; }

/* ---------- Mobile action bar + floating WhatsApp ---------- */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 1px;
  background: var(--line); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.actionbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 60px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: .8rem; font-weight: 700;
}
.actionbar a svg { width: 22px; height: 22px; }
.actionbar a.is-primary { background: var(--orange); color: var(--on-orange); }
@media (min-width: 761px) { .actionbar { display: none; } }

.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60;
  display: none; align-items: center; gap: .5rem;
  background: #1a7a43; color: #fff; text-decoration: none; font-weight: 700;
  padding: .8rem 1.1rem .8rem .9rem; border-radius: 99px; box-shadow: 0 8px 24px -6px rgba(0,0,0,.45);
  transition: transform .2s var(--ease);
}
.wa-float:hover { transform: translateY(-2px); }
.wa-float svg { width: 26px; height: 26px; }
@media (min-width: 761px) { .wa-float { display: inline-flex; } }

/* ---------- Misc ---------- */
.prose h2 { font-size: var(--step-3); margin-top: 2.25rem; }
.prose h3 { margin-top: 1.75rem; }
.prose li { margin-bottom: .35rem; }
.stack > * + * { margin-top: 1rem; }
.notfound { min-height: 60vh; display: grid; align-content: center; }
.tag { display: inline-block; font-size: .82rem; font-weight: 700; padding: .2rem .55rem; border-radius: var(--r-s); background: var(--green-soft); color: var(--green-ink); }
.related { display: grid; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.related a { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); text-decoration: none; font-weight: 700; }
.related a:hover { border-color: var(--orange); }
.related svg { width: 1.2em; height: 1.2em; flex: none; color: var(--orange-ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  @view-transition { navigation: none; }
}
@media print {
  .util, .site-header, .actionbar, .wa-float, .cta-band, .site-footer { display: none !important; }
  body { background: #fff; color: #000; }
}
.mt-2 { margin-top: 2rem; }
.mt-1 { margin-top: 1.5rem; }
.mt-s { margin-top: .9rem; }
.h-form { font-size: var(--step-3); }
ol.checks { counter-reset: s; }
ol.checks li { counter-increment: s; }
ol.checks li::before { content: counter(s); background: var(--ink); color: var(--paper); font-size: .75rem; font-weight: 800; display: grid; place-items: center; border-radius: 50%; top: .25em; width: 1.25rem; height: 1.25rem; }
.footer-legal a { text-decoration: underline; }
