/* K9Belgium.com — site.css
   Graphite / amber. Mobile first. No framework. */

:root {
  --sticky: 136px;
  --bg: #ffffff;
  --bg2: #f5f5f3;
  --ink: #161717;
  --tx: #33353a;
  --mute: #5f6269;
  --line: #e4e4e0;
  --acc: #c8791a;
  --acc-ink: #a25f0c;
  --dark: #161717;
  --r: 2px;
  --wrap: 1280px;
  --gutter: clamp(20px, 5vw, 96px);
  --section: clamp(64px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--sticky); }
@media (prefers-reduced-motion: reduce) { html, .switcher .wrap { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--tx);
  font: 400 17px/1.6 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(38px, 6vw, 78px); line-height: 1.02; font-weight: 600; letter-spacing: -.03em; }
h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.06; font-weight: 600; letter-spacing: -.025em; }
h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
h4 { font-size: 17px; font-weight: 600; }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; border-radius: var(--r); }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--acc-ink); }
.mute { color: var(--mute); }
.lead { font-size: clamp(17px, 1.3vw, 19px); }
section { padding-block: var(--section); }
.grid { display: grid; gap: 40px 32px; }
.grid > *, .svc-layout > *, .cards > *, .blocks > * { min-width: 0; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 5fr 7fr; } .grid-eq { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.list li { padding-left: 22px; position: relative; }
.list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 2px; background: var(--acc); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border-radius: var(--r); font-weight: 600; font-size: 15px; background: var(--acc-ink); color: #fff; border: 1px solid var(--acc-ink); cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { background: #874f09; border-color: #874f09; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-line { background: transparent; border-color: #cfcfca; color: var(--ink); }
.btn-line:hover { background: var(--bg2); border-color: var(--ink); }
.btn-sm { min-height: 44px; padding: 9px 18px; font-size: 14px; }
.arrow { font-weight: 600; color: var(--acc-ink); display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.arrow svg { transition: transform .15s; } .arrow:hover svg { transform: translateX(3px); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 48px; width: auto; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--line); background: #fff; border-radius: var(--r); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
.nav { display: none; }
.nav a { font-weight: 500; color: var(--ink); }
.nav a[aria-current="page"] { color: var(--acc-ink); }
.nav a.btn, .nav a.btn:hover { color: #fff; }
.nav-open .nav { display: flex; flex-direction: column; gap: 4px; position: absolute; inset: 72px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px; }
.nav-open .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); min-height: 48px; display: flex; align-items: center; }
.nav-open .nav .btn { margin-top: 12px; border: 1px solid var(--acc); }
@media (min-width: 900px) {
  .site-header .wrap { height: 84px; }
  .brand img { height: 54px; }
  .nav-toggle { display: none; }
  .nav { display: flex !important; position: static; align-items: center; gap: 36px; }
  .nav a { padding: 0; border: 0; }
  .nav a.btn { padding: 9px 18px; border: 1px solid var(--acc-ink); }
}

/* hero — split: dark text panel + photo at native scale (no stretched full-bleed) */
.hero { display: grid; grid-template-columns: 1fr; background: var(--dark); color: #fff; padding: 0; }
.hero h1 { font-size: clamp(38px, 5vw, 68px); }
.hero-text { display: flex; align-items: center; padding-block: clamp(48px, 6vw, 88px); }
.hero-in { display: flex; flex-direction: column; gap: 24px; max-width: 640px; }
.hero h1 { color: #fff; }
.hero p { color: rgba(255,255,255,.88); }
.hero .eyebrow { color: var(--acc); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { position: relative; min-height: 260px; }
.hero-media picture, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 45%; }
@media (max-width: 899px) {
  .hero-media { order: -1; aspect-ratio: 4 / 3; min-height: 0; }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 640px; }
  .hero-text .wrap { width: min(100% - 2 * var(--gutter), calc(var(--wrap) / 2)); margin-inline: auto 0; padding-right: clamp(32px, 4vw, 64px); }
}
@media (min-width: 1700px) {
  .hero { grid-template-columns: 1fr 1060px; }
}

/* trust strip */
.refs { background: var(--bg2); border-block: 1px solid var(--line); padding: 28px 0; }
.refs .wrap { display: flex; align-items: center; gap: 28px 44px; flex-wrap: wrap; }
.refs img { height: 56px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.refs img:hover { filter: none; opacity: 1; }
@media (min-width: 900px) { .refs img { height: 72px; } .refs .wrap { gap: 56px; } }

/* cards */
.cards { display: grid; gap: 28px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.card > picture img, .card > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 26px; display: flex; flex-direction: column; gap: 18px; flex: 1; }
.card-body .arrow { margin-top: auto; }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(36px, 4vw, 56px); }
@media (min-width: 900px) { .section-head { grid-template-columns: 5fr 7fr; gap: 32px; } }

/* dark band */
.dark { background: var(--dark); color: rgba(255,255,255,.82); }
.dark h2, .dark h3, .dark h4 { color: #fff; }
.dark .eyebrow { color: rgba(255,255,255,.6); }
.dark .block { border-top: 1px solid rgba(255,255,255,.14); padding-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.dark .btn-line { border-color: rgba(255,255,255,.35); color: #fff; }
.dark .btn-line:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.dark .list li::before { background: var(--acc); }
.blocks { display: grid; gap: 40px; }
@media (min-width: 700px) { .blocks { grid-template-columns: 1fr 1fr; gap: 48px 40px; } }

/* image + text */
.media { border-radius: var(--r); width: 100%; object-fit: cover; }
.media-tall { aspect-ratio: 4 / 5; object-position: 50% 30%; }
.media-team { aspect-ratio: 4 / 3; object-position: 55% 50%; }
@media (min-width: 900px) { .grid-2 .media-tall { height: 520px; aspect-ratio: auto; } }

/* CTA band */
.cta { background: var(--bg2); border-top: 1px solid var(--line); }
.cta .wrap { padding-block: clamp(48px, 5vw, 72px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 48px; }
.cta p a { display: inline-block; padding: 10px 0; }
.cta h2 { font-size: clamp(26px, 3vw, 36px); }

/* footer */
.site-footer { background: var(--dark); color: rgba(255,255,255,.7); font-size: 15px; }
.site-footer .wrap { padding: clamp(48px, 5vw, 64px) 0 32px; }
.foot-cols { display: grid; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.14); }
@media (min-width: 700px) { .foot-cols { grid-template-columns: 2fr 1fr 1fr; gap: 48px; } }
.foot-h { color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.foot-cols ul { list-style: none; display: flex; flex-direction: column; }
.foot-cols li a { display: inline-block; padding: 10px 0; min-width: 44px; }
.foot-cols a:hover { color: #fff; }
.foot-bottom { padding-top: 24px; font-size: 13px; color: rgba(255,255,255,.5); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* services + contact shared */
.page-head { padding-block: clamp(48px, 6vw, 96px) 0; }
.page-head .grid { align-items: end; }
.prose { display: flex; flex-direction: column; gap: 18px; }
.prose .list { gap: 12px; }

/* contact page */
.contact-rows { display: flex; flex-direction: column; }
.contact-rows > div { display: flex; flex-direction: column; gap: 6px; padding: 20px 0; border-top: 1px solid var(--line); }
.contact-rows > div:last-child { border-bottom: 1px solid var(--line); }
.contact-rows .big { font-size: clamp(20px, 2vw, 24px); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.contact-rows .big a { display: inline-block; padding: 10px 0; color: var(--ink); }
.contact-rows .big a:hover { color: var(--acc-ink); }
.form { display: grid; gap: 18px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 15px; color: var(--ink); }
.form input, .form textarea, .form select { font: inherit; padding: 12px 14px; border: 1px solid #cfcfca; border-radius: var(--r); background: #fff; color: var(--ink); min-height: 48px; }
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--ink); outline: 0; box-shadow: 0 0 0 3px rgba(200,121,26,.25); }
.form .row { display: grid; gap: 18px; } @media (min-width: 600px) { .form .row { grid-template-columns: 1fr 1fr; } }
.form .hp { position: absolute; left: -9999px; }
.form-note { font-size: 14px; color: var(--mute); }
.form-note a { display: inline-block; padding: 12px 0; font-weight: 600; color: var(--ink); }
.alert { padding: 14px 16px; border-radius: var(--r); border: 1px solid; font-size: 15px; }
.alert-ok { border-color: #8bbf8a; background: #f0f8ef; color: #1e4d1e; }
.alert-err { border-color: #d99a9a; background: #fbf0f0; color: #6b1c1c; }
.map { aspect-ratio: 16 / 10; border: 0; width: 100%; border-radius: var(--r); background: var(--bg2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== services page v2 ===== */
.svc-hero { padding-top: clamp(48px, 6vw, 96px); }
.svc-hero > .wrap:first-child { display: grid; gap: 16px; }
.svc-hero h1, .svc-hero .lead { max-width: 900px; }
.svc-hero .lead { margin-top: 8px; }
.tiles { display: grid; gap: 16px; margin-top: clamp(32px, 4vw, 56px); }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.tile { position: relative; display: block; border-radius: var(--r); overflow: hidden; isolation: isolate; aspect-ratio: 4 / 3; background: var(--dark); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, opacity .3s; opacity: .85; }
.tile:hover img { transform: scale(1.03); opacity: 1; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,23,23,0) 40%, rgba(22,23,23,.85) 100%); }
.tile-n, .tile-t { position: absolute; z-index: 1; color: #fff; }
.tile-n { top: 16px; left: 18px; font-size: 13px; font-weight: 600; letter-spacing: .1em; color: rgba(255,255,255,.75); }
.tile-t { left: 18px; right: 18px; bottom: 18px; font-size: clamp(20px, 2vw, 24px); font-weight: 600; letter-spacing: -.01em; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tile-t svg { flex: none; }

.switcher { position: sticky; top: 72px; z-index: 40; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-block: 1px solid var(--line); margin-top: clamp(40px, 5vw, 72px); }
.switcher .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; }
@media (max-width: 899px) {
  .switcher .wrap { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 36px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 36px), transparent 100%); padding-right: 24px; }
}
.switcher .wrap::-webkit-scrollbar { display: none; }
.switcher a { flex: none; padding: 16px 14px; font-size: 15px; font-weight: 500; color: var(--mute); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.switcher a.on { color: var(--ink); border-color: var(--acc); }
@media (min-width: 900px) { :root { --sticky: 160px; } .switcher { top: 84px; } .switcher .wrap { gap: 32px; } .switcher a { padding: 20px 0; } }

.svc { padding-block: var(--section); display: flex; flex-direction: column; gap: clamp(32px, 4vw, 48px); }
.svc + .svc { border-top: 1px solid var(--line); }

.svc-head { display: grid; gap: 28px; align-items: start; }
.svc-num { font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--acc-ink); margin: 0 0 14px; }
.svc-alt .svc-num { color: #8f540b; }
.svc-head h2 { font-size: clamp(32px, 4vw, 52px); }
.svc-head .lead { margin-top: 18px; max-width: 60ch; }
.svc-img .media { aspect-ratio: 3 / 2; }
@media (min-width: 900px) {
  .svc-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 56px; }
  .svc-head .lead { max-width: 56ch; }
}
.caps { list-style: none; display: grid; gap: 14px; }
@media (min-width: 700px) { .caps { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 28px 40px; } }
.caps li { padding: 18px 0 0; font-size: 16px; line-height: 1.55; border-top: 1px solid var(--ink); }
.caps li strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 6px; letter-spacing: -.01em; }
.svc-sub { display: flex; flex-direction: column; gap: 22px; }
.svc-sub > h3, .sub-intro h3 { font-size: clamp(22px, 2.4vw, 28px); }
.sub-intro { display: flex; flex-direction: column; gap: 8px; max-width: 60ch; }
.cols3 { display: grid; gap: 28px; }
@media (min-width: 900px) { .cols3 { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.cols3 > div { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 1px solid var(--ink); }
.cols3 h3 { font-size: 20px; }
.svc-close { max-width: 72ch; font-size: 17px; color: var(--mute); }
.svc-cta { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); }
.svc-cta .svc-close { padding-top: 24px; }
.svc-cta .btn { margin-top: 24px; }

.tc { scroll-margin-top: 8px; }
.tc-intro { display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 900px) { .tc-intro { position: sticky; top: 150px; align-self: start; } }
.tc-list { display: flex; flex-direction: column; }
.tc { border-top: 1px solid rgba(255,255,255,.16); }
.tc:last-child { border-bottom: 1px solid rgba(255,255,255,.16); }
.tc summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 44px 1fr 32px; align-items: center; gap: 12px; padding: 22px 0; }
.tc summary::-webkit-details-marker { display: none; }
.tc summary h3 { font-size: clamp(19px, 2vw, 24px); }
.tc-n { font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--acc); }
.tc-ico { width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; position: relative; justify-self: end; }
.tc-ico::before, .tc-ico::after { content: ""; position: absolute; background: #fff; left: 50%; top: 50%; transform: translate(-50%,-50%); }
.tc-ico::before { width: 12px; height: 1.5px; } .tc-ico::after { width: 1.5px; height: 12px; transition: transform .2s; }
.tc[open] .tc-ico::after { transform: translate(-50%,-50%) scaleY(0); }
.tc-body { padding: 0 0 28px 56px; font-size: 16px; }
@media (max-width: 699px) { .tc-body { padding-left: 0; } }
.tc-body .list li::before { background: var(--acc); }

.clients-band { background: var(--bg2); border-top: 1px solid var(--line); padding-block: clamp(48px, 6vw, 88px); }
.clients-band h2 { margin-bottom: 32px; }
.clients { list-style: none; display: grid; gap: 16px; }
@media (min-width: 700px) { .clients { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.clients li { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; grid-template-columns: 72px 1fr; gap: 20px; align-items: start; }
.clients img { width: 72px; height: 64px; object-fit: contain; }
.clients img.flag { height: 44px; object-fit: cover; border: 1px solid var(--line); margin-top: 6px; }
.clients div { display: flex; flex-direction: column; gap: 6px; }
.clients h3 { font-size: 20px; }
.clients p { font-size: 15px; color: var(--tx); }
.clients span { font-size: 13px; color: var(--mute); }

/* leak-detection cards with photos */
.caps li.has-img { padding-top: 0; display: flex; flex-direction: column; gap: 16px; }
.caps li.has-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-top: 18px; }

/* print + motion */
@media print { .site-header, .switcher, .nav-toggle, .cta, .form, .skip { display: none !important; } body { font-size: 12pt; } .hero::after { display: none; } .hero { color: var(--ink); min-height: 0; } .hero h1, .hero p { color: var(--ink); } .dark { background: #fff; color: var(--tx); } .dark h2, .dark h3 { color: var(--ink); } a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 90%; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
