/* BAZ Sealing Solutions — site styles
   VOICE   work: an engineering service company talking to well and production engineers
   IDEA    a well integrity schematic: the site is organised around where in the well the leak is
   PICTURE a cut-away well, Xmas tree to reservoir, with clickable leak points (home, services)
   COLOUR  white ground, charcoal ink from the logo, safety yellow as large flat fields, leak red only on leak points
   TYPE    Archivo (display) + Inter (text), both self-hosted
   LAYOUT  laptop: yellow hero, text + leak card left, well cut-away bleeding off the right edge
           phone: title, well, leak picker, then content; call/email/enquire bar fixed at the bottom */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-var.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-var.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #ffffff;
  --paper: #f3f3ee;
  --ink: #151e1d;
  --ink-2: #3c4746;
  --muted: #5d6766;
  --line: #dcddd5;
  --yellow: #fdd604;
  --yellow-2: #ffe14d;
  --ground: #1c2625;
  --leak: #e8452c;
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --text: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --gutter: max(20px, (100% - 1240px) / 2);
  --r: 14px;
}

*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--text); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 0.45em; font-weight: 750; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.0; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.01em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.band-ink :focus-visible, .site-footer :focus-visible { outline-color: var(--yellow); }

.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.28rem); line-height: 1.5; color: var(--ink-2); max-width: 58ch; }
.muted { color: var(--muted); }
.label { display: block; font-size: 0.95rem; font-weight: 600; color: var(--ink-2); margin-bottom: 0.6rem; }

/* ---------- Buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 999px; border: 2px solid transparent; font: 600 1rem/1 var(--text); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--yellow-2); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--yellow); padding-bottom: 2px; }
.more::after { content: "→"; transition: transform .15s; }
.more:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
/* No backdrop-filter here: it would trap the fixed mobile menu inside the header box. */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { width: 44px; height: 44px; border-radius: 8px; }
.brand-name { font: 750 1.1rem/1.05 var(--display); letter-spacing: -0.01em; }
.brand-name small { display: block; font: 500 0.78rem/1.3 var(--text); color: var(--muted); letter-spacing: 0; }

.site-nav { flex: 1; }
.site-nav > ul { list-style: none; display: flex; align-items: center; gap: 4px; }
.site-nav > ul > li { position: relative; display: flex; align-items: center; flex: none; }
.nav-link { white-space: nowrap; }
.nav-link { display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 550; font-size: 1rem; color: var(--ink); }
.nav-link:hover { background: var(--paper); }
.nav-link[aria-current="page"] { background: var(--yellow); }
.mega-toggle { display: grid; place-items: center; width: 30px; height: 30px; margin-left: -10px; border: 0; background: none; border-radius: 50%; cursor: pointer; color: var(--ink); }
.mega-toggle:hover { background: var(--paper); }
.mega-toggle svg { width: 16px; height: 16px; transition: transform .15s; }
.mega-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.mega { position: absolute; top: calc(100% + 14px); left: -12px; width: 560px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 40px -12px rgba(21, 30, 29, 0.25); display: none; }
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.has-mega:hover .mega, .has-mega:focus-within .mega, .mega.open { display: block; }
.mega ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mega a { display: block; padding: 14px 16px; border-radius: 12px; text-decoration: none; }
.mega a:hover { background: var(--paper); }
.mega strong { display: block; font: 700 1.02rem/1.2 var(--display); margin-bottom: 4px; }
.mega span { display: block; font-size: 0.9rem; line-height: 1.4; color: var(--muted); }
.mega .mega-all { margin-top: 4px; grid-column: 1 / -1; display: flex; justify-content: space-between; background: var(--paper); font-weight: 600; }
.mega .mega-all:hover { background: var(--yellow); }

.header-cta { display: flex; align-items: center; gap: 18px; flex: none; }
.header-phone { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.header-phone svg { width: 18px; height: 18px; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 22px; height: 22px; margin: auto; }

@media (max-width: 1280px) {
  .header-phone span { display: none; }
  .header-row { gap: 16px; }
  .nav-link { padding-inline: 10px; }
  .has-mega .nav-link { padding-right: 16px; }
  .has-mega .mega-toggle { margin-left: -12px; }
}
@media (max-width: 1100px) {
  .header-row { gap: 12px; }
  .nav-toggle { display: grid; margin-left: auto; }
  .header-cta .btn { display: none; }
  .header-phone { width: 46px; height: 46px; justify-content: center; border: 1px solid var(--line); border-radius: 12px; }
  .site-nav { position: fixed; inset: 76px 0 0 0; background: #fff; padding: 12px 20px 120px; overflow-y: auto; display: none; }
  .site-nav.open { display: block; }
  .no-js .site-nav { display: block; position: static; padding: 0 0 16px; }
  .no-js .header-row { height: auto; flex-wrap: wrap; padding-top: 14px; }
  .no-js .nav-toggle { display: none; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav > ul > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-link { flex: 1; padding: 16px 4px; font: 700 1.35rem/1.2 var(--display); border-radius: 0; }
  .nav-link:hover { background: none; }
  .nav-link[aria-current="page"] { background: none; box-shadow: inset 4px 0 0 var(--yellow); padding-left: 14px; }
  .mega-toggle { display: none; }
  .mega { position: static; display: block; width: 100%; padding: 0 0 12px; border: 0; box-shadow: none; }
  .mega::before { display: none; }
  .mega ul { grid-template-columns: 1fr; }
  .mega a { padding: 10px 12px; }
  .mega span { display: none; }
  .mega strong { font: 500 1.02rem/1.3 var(--text); }
  .mega .mega-all { display: none; }
}

/* ---------- Hero with well explorer ---------- */
.hero { background: var(--yellow); display: grid; grid-template-columns: var(--gutter) minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: ". text pic" ". card pic"; grid-template-rows: auto 1fr; column-gap: clamp(24px, 4vw, 64px); }
.hero-text { grid-area: text; padding-top: clamp(40px, 6vw, 80px); }
.hero-text .lead { color: var(--ink); }
.hero-card { grid-area: card; padding: 28px 0 clamp(40px, 5vw, 72px); }
.hero-pic { grid-area: pic; align-self: stretch; padding-top: clamp(24px, 3vw, 44px); }

.leak-card { background: #fff; border-radius: var(--r); padding: 24px 26px 26px; }
.leak-card h2 { font-size: 1.45rem; margin-bottom: 4px; }
.leak-card > p { color: var(--muted); font-size: 0.95rem; margin-bottom: 16px; }
.leak-chips { list-style: none; display: none; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font: 600 0.9rem/1 var(--text); color: var(--ink); cursor: pointer; }
.chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--leak); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.leak { display: none; border-top: 1px solid var(--line); padding-top: 18px; }
.leak.is-active { display: block; animation: rise .25s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.leak h3 { font-size: 1.3rem; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.leak h3::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--leak); box-shadow: 0 0 0 4px rgba(232, 69, 44, 0.18); flex: none; }
.leak p { margin-bottom: 14px; color: var(--ink-2); }
.leak dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0 0 18px; font-size: 0.95rem; }
.leak dt { font-weight: 700; }
.leak dd { margin: 0; color: var(--ink-2); }

/* The cut-away: strata are CSS bands so the ground runs to the screen edge; the SVG draws the well. */
/* --wh is the well's drawn height (it is square), so the CSS strata line up with the SVG. */
.cutaway { position: relative; height: 100%; container-type: inline-size; --wh: min(100cqw, 640px); }
.cutaway::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--wh);
  background: linear-gradient(to bottom, transparent 0 31.667%, #2c3736 31.667% 38.333%, #222c2b 38.333% 51.667%, #293332 51.667% 66.667%, #1f2827 66.667% 83.333%, #3a3a1f 83.333% 95.833%, #1a2221 95.833%); }
.cutaway::after { content: ""; position: absolute; left: 0; right: 0; top: var(--wh); bottom: 0; background: #1a2221; }
.well { position: relative; z-index: 1; width: var(--wh); aspect-ratio: 1 / 1; margin-inline: auto; }
.hero .well { margin-left: max(0px, (100cqw - var(--wh)) / 2 - 60px); margin-right: 0; }
.well > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.reservoir { position: absolute; z-index: 1; left: 0; right: 0; top: calc(var(--wh) * 0.83333); height: calc(var(--wh) * 0.125); background-image: radial-gradient(rgba(253, 214, 4, 0.4) 1.2px, transparent 1.7px); background-size: 14px 14px; pointer-events: none; }
.stratum-label { position: absolute; z-index: 1; right: 20px; font-size: 0.82rem; font-weight: 600; color: rgba(255, 255, 255, 0.6); pointer-events: none; }
.stratum-label.res { top: calc(var(--wh) * 0.83333 + 10px); color: var(--yellow); }
.stratum-label.surf { top: calc(var(--wh) * 0.31667 + 10px); right: auto; left: 20px; }

.marker { position: absolute; transform: translate(-50%, -50%); width: 44px; height: 44px; display: grid; place-items: center; text-decoration: none; color: var(--ink); z-index: 2; }
.marker .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--leak); border: 3px solid #fff; box-shadow: 0 0 0 0 rgba(232, 69, 44, 0.6); }
.marker.is-active .dot, .marker:hover .dot { animation: ping 1.6s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(232, 69, 44, 0.7); } 100% { box-shadow: 0 0 0 16px rgba(232, 69, 44, 0); } }
.marker .tag { position: absolute; top: 50%; transform: translateY(-50%); white-space: nowrap; padding: 6px 12px; border-radius: 999px; background: #fff; font: 600 0.88rem/1.2 var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); }
.marker.left .tag { right: 46px; }
.marker.right .tag { left: 46px; }
.marker.is-active .tag { background: var(--ink); color: #fff; }
.marker.dim .dot { background: #8c9593; border-color: #c9cfcd; }
.marker.dim .tag { opacity: 0.55; }
.marker.dim { pointer-events: none; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "pic" "card"; padding: 0; }
  .hero-text { padding: 40px 20px 32px; }
  .hero-card { padding: 0; background: var(--ground); }
  .leak-card { border-radius: 0; padding: 24px 20px 32px; }
  .leak-chips { display: flex; }
  .no-js .leak-chips { display: none; }
  .well { margin-inline: auto; }
}
@media (max-width: 700px) {
  .marker .tag { display: none; }
  .stratum-label { display: none; }
}

/* ---------- Page head (inner pages) ---------- */
.page-head { background: var(--yellow); }
.page-head .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: end; padding-block: clamp(36px, 6vw, 72px); }
.page-head h1 { font-size: clamp(2.3rem, 4.8vw, 3.9rem); max-width: 16ch; }
.page-head .lead { color: var(--ink); }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.92rem; margin-bottom: 18px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.5; }
.crumbs a { text-decoration: none; font-weight: 550; }
.crumbs a:hover { text-decoration: underline; }
.head-aside { background: #fff; border-radius: var(--r); padding: 24px 26px; }
.head-aside h2 { font-size: 1.25rem; }
.head-aside ul { list-style: none; display: grid; gap: 10px; }
.head-aside a { font-weight: 600; text-decoration: none; }
.head-aside a:hover { text-decoration: underline; }
.head-photo { border-radius: var(--r); overflow: hidden; align-self: stretch; }
.head-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* Service pages: head with a static cut-away on the right */
.page-head.with-well .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; padding-bottom: 0; }
.page-head.with-well .head-text { padding-bottom: clamp(36px, 6vw, 72px); align-self: end; }
.page-head.with-well .cutaway { --wh: min(100cqw, 540px); border-radius: var(--r) var(--r) 0 0; overflow: hidden; background: transparent; }
.page-head.with-well .well { margin-inline: auto; }

.subnav { border-bottom: 1px solid var(--line); background: #fff; }
.subnav ul { list-style: none; display: flex; gap: 6px; overflow-x: auto; padding-block: 12px; scrollbar-width: none; }
.subnav li { flex: none; }
.subnav a { display: block; padding: 9px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 0.95rem; white-space: nowrap; background: var(--paper); }
.subnav a:hover { background: var(--line); }
.subnav a[aria-current="page"] { background: var(--ink); color: #fff; }

/* ---------- Sections ---------- */
.band { padding-block: clamp(56px, 8vw, 104px); }
.band-paper { background: var(--paper); }
.band-ink { background: var(--ground); color: #fff; }
.band-ink .lead, .band-ink .muted { color: #c3ccca; }
.band-yellow { background: var(--yellow); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2 { margin: 0; max-width: 18ch; }
.section-head p { margin: 0; color: var(--ink-2); max-width: 52ch; }
.section-head.single { grid-template-columns: minmax(0, 1fr); }

/* Service index: full-width rows */
.svc-index { list-style: none; border-top: 2px solid var(--ink); }
.svc-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) 56px; gap: 32px; align-items: center; padding: 30px 8px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: background-color .15s; }
.svc-row:hover { background: var(--yellow); }
.svc-row h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 0 0 6px; }
.svc-row .sum { margin: 0; color: var(--ink-2); }
.svc-row .covers { margin: 0; color: var(--ink-2); font-size: 0.97rem; line-height: 1.55; }
.svc-row .arrow { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; transition: background-color .15s, color .15s; }
.svc-row:hover .arrow { background: var(--ink); color: var(--yellow); }
.svc-row .arrow svg { width: 22px; height: 22px; }

/* Process route */
.route { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; }
.route::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 6px; background: var(--ink); border-radius: 3px; }
.band-ink .route::before { background: #46524f; }
.route li { position: relative; padding-right: 40px; }
.route .node { position: relative; width: 50px; height: 50px; border-radius: 50%; background: var(--yellow); border: 6px solid var(--ground); outline: 2px solid var(--yellow); margin-bottom: 24px; display: grid; place-items: center; color: var(--ink); }
.route .node svg { width: 20px; height: 20px; }
.route h3 { font-size: 1.6rem; }
.route p { color: #c3ccca; }
.route .tools { font-size: 0.92rem; color: #fff; }

/* Split rows */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split figure { margin: 0; }
.split figure img { border-radius: var(--r); }
.split figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 10px; }
.facts { list-style: none; display: grid; gap: 0; margin: 24px 0 28px; border-top: 1px solid var(--line); }
.facts li { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; }
.facts strong { font-family: var(--display); font-weight: 700; }
.facts span { color: var(--ink-2); }

/* Photo band (bleeds to the left edge) */
.photo-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--bg); }
.photo-band .photo { min-height: 420px; }
.photo-band .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.photo-band .copy { padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(48px, 7vw, 96px) clamp(32px, 6vw, 88px); align-self: center; max-width: 720px; }

.photo-band.paper { background: var(--paper); }
.photo-band.dark { background: var(--ground); color: #fff; }
.photo-band.dark .lead, .photo-band.dark p { color: #c3ccca; }
.photo-band.dark :focus-visible { outline-color: var(--yellow); }
.photo-band .photo img.obj-team { object-position: 50% 40%; }
.photo-band .photo img.obj-mid, .head-photo img.obj-mid { object-position: 50% 50%; }
.head-photo img.obj-team { object-position: 50% 45%; }
.band-tight { padding-block: clamp(44px, 6vw, 72px); }

/* Field photo gallery */
.field-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.field-grid figure { margin: 0; }
.field-grid img { width: 100%; height: clamp(300px, 34vw, 440px); object-fit: cover; border-radius: var(--r); }
.field-grid figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 10px; max-width: 46ch; }

/* Clients */
.clients { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.client { display: flex; flex-direction: column; height: 100%; padding: 22px 22px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.client:hover { border-color: var(--ink); box-shadow: 0 12px 28px rgba(21, 30, 29, 0.08); transform: translateY(-2px); }
.client-logo { height: 100px; display: grid; place-items: center; margin-bottom: 18px; border-bottom: 1px solid var(--line); padding-bottom: 16px; box-sizing: content-box; }
.client-logo img { width: auto; height: auto; max-width: min(100%, 210px); max-height: 88px; }
.client-logo .wordmark { font: 800 2rem/1 var(--display); letter-spacing: 0.08em; color: var(--ink); }
.client-name { flex: 1; font: 700 1.05rem/1.3 var(--display); }
.client-name small { display: block; margin-top: 4px; font: 500 0.85rem/1.4 var(--text); color: var(--muted); }
.client-visit { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 0.92rem; font-weight: 600; color: var(--ink-2); }
.client-visit svg { width: 16px; height: 16px; transition: transform .15s; }
.client:hover .client-visit { color: var(--ink); }
.client:hover .client-visit svg { transform: translate(2px, -2px); }
.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; }

/* Products (placeholder range) */
.products { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.product { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; scroll-margin-top: 100px; }
.product:target { border-color: var(--ink); box-shadow: 0 0 0 3px var(--yellow); }
.product-pic { aspect-ratio: 4 / 3; background: var(--paper); }
.product-pic img { width: 100%; height: 100%; object-fit: cover; }
.product-ph { height: 100%; display: grid; place-content: center; justify-items: center; gap: 10px; color: #a3aaa2; font-size: 0.88rem; font-weight: 600; }
.product-ph svg { width: 56px; height: 56px; }
.product-body { flex: 1; display: flex; flex-direction: column; padding: 22px 24px 24px; }
.product-body h3 { font-size: 1.3rem; }
.product-body .sum { font-weight: 600; color: var(--ink); }
.product-body p { color: var(--ink-2); font-size: 0.97rem; }
.product-body .more { margin-top: auto; align-self: flex-start; }
.mega#mega-products { width: 520px; }

/* Statements, values */
.statements { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.statement { background: #fff; border-radius: var(--r); padding: clamp(24px, 3vw, 40px); }
.statement p { font: 500 clamp(1.2rem, 1.8vw, 1.5rem)/1.4 var(--display); letter-spacing: -0.01em; margin: 0; }
.values { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; border-top: 2px solid var(--ink); padding-top: 28px; }
.values p { color: var(--ink-2); margin: 0; }

/* Service detail */
.includes { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 2px solid var(--ink); }
.includes li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.includes strong { display: block; font: 700 1.12rem/1.3 var(--display); margin-bottom: 4px; }
.includes span { color: var(--ink-2); font-size: 0.97rem; }
.groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.groups h3 { font-size: 1.2rem; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.groups ul { list-style: none; }
.groups li { padding: 11px 0; border-bottom: 1px solid var(--line); font-weight: 550; }

.related { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.related a { display: flex; flex-direction: column; height: 100%; padding: 24px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); text-decoration: none; transition: border-color .15s, background-color .15s; }
.related a:hover { background: var(--yellow); border-color: var(--yellow); }
.related strong { font: 700 1.2rem/1.2 var(--display); margin-bottom: 8px; }
.related span { color: var(--ink-2); font-size: 0.95rem; flex: 1; }
.related em { font-style: normal; font-weight: 600; margin-top: 16px; }

/* CTA panel */
.cta { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: center; background: var(--yellow); border-radius: 22px; padding: clamp(28px, 5vw, 56px); }
.cta h2 { margin-bottom: 10px; }
.cta p { margin: 0; font-size: 1.1rem; }
.cta .actions { justify-content: flex-end; }

/* Offices */
.offices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.office { border: 1px solid var(--line); border-radius: var(--r); padding: 26px; background: #fff; }
.office h3 { font-size: 1.15rem; }
.office address { font-style: normal; color: var(--ink-2); }
.office a { font-weight: 600; text-decoration: none; }
.office a:hover { text-decoration: underline; }
.office ul { list-style: none; display: grid; gap: 6px; }
.tnum { font-variant-numeric: tabular-nums; white-space: nowrap; }

.cta + .offices { margin-top: 16px; }
img.rounded { border-radius: var(--r); width: 100%; }
.head-aside p { color: var(--ink-2); }
.head-aside .btn { margin-top: 4px; }
.page-head .actions { margin-top: 8px; }

/* ---------- Contact form ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field label small { font-weight: 400; color: var(--muted); font-size: 0.88rem; }
.field input, .field select, .field textarea { font: 400 16px/1.4 var(--text); color: var(--ink); width: 100%; padding: 13px 14px; border: 1.5px solid #c9cbc2; border-radius: 10px; background: #fff; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(253, 214, 4, 0.7); }
.topics { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.topics legend { font-weight: 600; font-size: 0.95rem; margin-bottom: 8px; padding: 0; }
.topics label { position: relative; }
.topics input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.topics span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1.5px solid #c9cbc2; border-radius: 999px; font-size: 0.93rem; font-weight: 550; }
.topics input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.topics input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.88rem; color: var(--muted); margin: 0; }
.alert { padding: 14px 16px; border-radius: 10px; background: #fdecea; color: #8a1c13; border: 1px solid #f3c2bc; font-weight: 600; margin-bottom: 18px; }
.alert[hidden] { display: none; }
.direct { background: var(--ground); color: #fff; border-radius: 18px; padding: 30px; position: sticky; top: 100px; }
.direct h2 { font-size: 1.5rem; }
.direct dl { margin: 0; display: grid; gap: 18px; }
.direct dt { font-size: 0.9rem; color: #c3ccca; margin-bottom: 4px; }
.direct dd { margin: 0; }
.direct a { color: #fff; font-weight: 600; text-decoration: none; }
.direct a:hover { color: var(--yellow); }
.direct address { font-style: normal; color: #e3e8e6; }
.map { margin-top: 24px; border-radius: 18px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ground); color: #c3ccca; font-size: 0.95rem; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: 64px 48px; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-name small { color: #9aa5a3; }
.site-footer h2 { font: 700 1rem/1.2 var(--display); color: #fff; letter-spacing: 0; margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.site-footer a { color: #e3e8e6; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer address { font-style: normal; }
.site-footer address + address { margin-top: 6px; }
.footer-addr { margin-top: 18px; }
.mega-all-li { grid-column: 1 / -1; }
.footer-about p { margin: 18px 0; max-width: 34ch; }
.social { display: flex; gap: 10px; }
.social a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #3a4645; border-radius: 50%; }
.social a:hover { border-color: var(--yellow); }
.social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid #33403f; padding-block: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 0.88rem; color: #9aa5a3; }

/* Mobile action bar */
.action-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 68px; }
  .action-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--ink); padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)); gap: 8px; }
  .action-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 12px; color: #fff; text-decoration: none; font-weight: 600; font-size: 0.95rem; }
  .action-bar a.primary { background: var(--yellow); color: var(--ink); }
  .action-bar svg { width: 18px; height: 18px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .page-head .wrap, .page-head.with-well .wrap, .split, .contact-layout, .cta, .statements { grid-template-columns: minmax(0, 1fr); }
  .page-head.with-well .head-text { padding-bottom: 8px; }
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .svc-row { grid-template-columns: minmax(0, 1fr) 52px; gap: 8px 20px; }
  .svc-row .covers { grid-column: 1; grid-row: 2; }
  .svc-row .arrow { grid-row: 1 / span 2; grid-column: 2; }
  .photo-band { grid-template-columns: minmax(0, 1fr); }
  .photo-band .photo { min-height: 0; aspect-ratio: 16 / 10; }
  .photo-band .copy { padding: 40px 20px 56px; }
  .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-about { grid-column: 1 / -1; }
  .cta .actions { justify-content: flex-start; }
  .offices, .related, .groups, .clients, .products { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .direct { position: static; }
  .field-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .field-grid .wide { grid-column: 1 / -1; }
  .field-grid img { height: auto; aspect-ratio: 4 / 5; }
  .field-grid .wide img { aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  .field-grid, .products { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .clients { gap: 10px; }
  .client { padding: 16px 14px; }
  .client-logo { height: 72px; padding-bottom: 12px; margin-bottom: 12px; }
  .client-logo img { max-height: 64px; }
  .client-logo .wordmark { font-size: 1.4rem; }
  .client-name { font-size: 0.95rem; }
}
@media (max-width: 760px) {
  .route { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .route::before { left: 22px; right: auto; top: 0; bottom: 0; width: 6px; height: auto; }
  .route li { padding: 0 0 0 76px; }
  .route .node { position: absolute; left: 0; top: 0; }
  .values, .includes, .offices, .related, .groups, .form-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .values { gap: 24px; }
  .offices, .related { gap: 12px; }
  .groups { gap: 28px; }
  .facts li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .actions .btn { flex: 1 1 100%; }
  .svc-row { padding: 22px 4px; }
  .svc-row .covers { display: none; }
  .svc-row .arrow { width: 42px; height: 42px; }
  .brand-name small { display: none; }
}

@media print {
  .site-header, .action-bar, .map, .nav-toggle { display: none !important; }
  body { padding: 0; }
}
