/* ============================================================
   MSM GROUP design system - tokens, chrome & shared components
   Palette v7 "Navy + Signal Cyan": brand cyan #01B5D9 as luminous
   accent on navy darks, orange reserved for conversion CTAs.
   Type: Archivo variable (wdth 62-125, wght 100-900), single family.
   Signature: the roof pitch. One angle (4deg), exactly twice per page.
   ============================================================ */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('../fonts/archivo-variable.woff2') format('woff2-variations');
}

:root {
  --navy-900: #0E2A47;   /* leisteen navy: header, footer, hero, CTA bands */
  --navy-800: #143B63;
  --blue-700: #045468;   /* cyan-700: strong brand text on white/tints */
  --cyan-600: #0090AD;   /* focus rings, icons on white, progress fill */
  --cyan-100: #D9F4FA;   /* brand tint: icon tiles, chips, premies wash */
  --link:     #00758F;   /* links on white/mist, AA */
  --cta-bright:#F15B26;  /* logo orange: retired from CTAs (client decision 2026-07-12), lives on in the logo only */
  --deep:     #081C31;   /* navy-950: utility bar, gradient deep stop */
  --sky-500:  #01B5D9;   /* THE required brand cyan: icons and small highlights, never long text */
  --cta:      #01B5D9;   /* client decision 2026-07-12: logo-cyan CTAs; ALWAYS with navy ink (5.98:1 AA), NEVER white text (2.44:1 fails) */
  --cta-ink:  #0E2A47;   /* button text on cyan */
  --cta-hover:#33C4E1;
  --cta-hover-ink:#081C31; /* 7.06:1 on the hover tint */
  --ink:      #16222E;
  --slate:    #44566B;
  --paper:    #FFFFFF;
  --mist:     #F3F6FA;   /* cool alternating section background */
  --line:     #DBE3EC;
  --ok:       #1F8153;
  --gold:     #F5B301;   /* review stars only */
  --radius:   10px;
  --radius-lg: 16px;
  --shadow-card: 0 1px 2px rgba(8,28,49,.06), 0 8px 24px rgba(8,28,49,.08);
  --shadow-pop:  0 4px 12px rgba(8,28,49,.12), 0 16px 40px rgba(8,28,49,.16);
  --pitch: 4deg;         /* the one roof angle */
  --wrap: 1180px;
  color-scheme: only light;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  font-variation-settings: 'wdth' 100;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
img, svg { max-width: 100%; display: block; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--paper); color: var(--ink); font-weight: 640;
  padding: .8rem 1.2rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }
.screen-reader-text {
  border: 0; clip-path: inset(50%); height: 1px; width: 1px;
  margin: -1px; overflow: hidden; padding: 0; position: absolute;
}

/* ---------- type roles ---------- */
h1, h2, h3, .display {
  font-stretch: 116%;
  font-variation-settings: 'wdth' 116;
  font-weight: 740;
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; line-height: 1.25; }
p  { margin: 0 0 1em; color: var(--slate); }
strong { color: var(--ink); }
a { color: var(--link); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-stretch: 110%; font-variation-settings: 'wdth' 110;
  font-weight: 640; font-size: .8rem;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--blue-700); margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--sky-500); border-radius: 2px; }
.on-dark .eyebrow, .eyebrow.light { color: #93DDF5; }

/* ---------- layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2rem); }
.section { padding: clamp(3.4rem, 7vw, 5.5rem) 0; }
.section.mist { background: var(--mist); }
.section.dark { background: var(--navy-900); }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark p { color: #C6D6E8; }

/* the signature roof pitch edge */
.pitch-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4.5vw), 0 100%); }
.pitch-top    { clip-path: polygon(0 4.5vw, 100% 0, 100% 100%, 0 100%); }

/* ---------- scroll reveal (site.js adds .in) ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .4s ease, transform .4s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 640; font-stretch: 106%;
  font-variation-settings: 'wdth' 106;
  padding: .95rem 1.7rem; border-radius: var(--radius);
  border: 0; cursor: pointer; text-decoration: none;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--cta); color: var(--cta-ink); box-shadow: 0 8px 24px rgba(1,181,217,.35); }
.btn-primary:hover { background: var(--cta-hover); color: var(--cta-hover-ink); transform: translateY(-1px); }
/* the default cyan focus ring vanishes on a cyan button: navy ring with a
   white inner ring so it reads on both navy and white sections */
.btn-primary:focus-visible { outline: 3px solid var(--navy-900); outline-offset: 2px; box-shadow: 0 0 0 2px #fff, 0 8px 24px rgba(1,181,217,.35); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--blue-700); }
.on-dark .btn-ghost, .btn-ghost.light { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.45); }
.on-dark .btn-ghost:hover, .btn-ghost.light:hover { box-shadow: inset 0 0 0 2px #fff; background: rgba(255,255,255,.08); }
.btn-phone { background: var(--navy-900); color: #fff; }
.header .btn-phone { background: rgba(255,255,255,.10); box-shadow: inset 0 0 0 2px rgba(255,255,255,.40); }
.header .btn-phone:hover { background: rgba(255,255,255,.18); }
.btn-phone:hover { background: var(--navy-800); }
:focus-visible { outline: 3px solid var(--cyan-600); outline-offset: 2px; border-radius: 4px; }

/* microcopy row under CTAs */
.cta-assurance { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: .9rem; font-size: .86rem; color: var(--slate); }
.cta-assurance span::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: .38rem; }
.on-dark .cta-assurance { color: #C6D6E8; }
.on-dark .cta-assurance span::before { color: var(--sky-500); }

/* ---------- cards ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
a.card { text-decoration: none; color: inherit; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); }

/* chips (subservice links, region towns) */
.chip {
  display: inline-block; padding: .28rem .75rem; border-radius: 999px;
  background: var(--cyan-100); border: 1px solid rgba(1,181,217,.35);
  font-size: .82rem; font-weight: 560; color: var(--blue-700); text-decoration: none;
}
.chip:hover { background: #C8EEF7; border-color: var(--cyan-600); }

/* review stars */
.stars { color: var(--gold); letter-spacing: .1em; }

/* google badge (utility bar + hero) */
.gbadge {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .84rem; font-weight: 600; text-decoration: none;
}

/* ---------- photo placeholder (until the client shoot) ----------
   Duotone navy + tile pattern + label; each label doubles as a
   shot-list item for the photographer. */
.ph {
  position: relative; overflow: hidden; border-radius: inherit;
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(1,181,217,.20), transparent 55%),
    repeating-linear-gradient(115deg, rgba(1,181,217,.07) 0 2px, transparent 2px 26px),
    repeating-linear-gradient(25deg, rgba(255,255,255,.03) 0 2px, transparent 2px 18px),
    linear-gradient(135deg, #1A4066 0%, #0E2A47 55%, #081C31 100%);
  display: flex; align-items: flex-end;
  min-height: 120px;
}
.ph-label {
  margin: .8rem; padding: .3rem .7rem; border-radius: 6px;
  background: rgba(8,28,49,.74); color: #A9C7E2;
  font-size: .72rem; font-weight: 560; letter-spacing: .04em;
  backdrop-filter: blur(2px);
}
.ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- forms ---------- */
.field label { display: block; font-size: .86rem; font-weight: 620; margin-bottom: .35rem; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .8rem .95rem; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: #fff; transition: border-color .12s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cyan-600); outline: none; box-shadow: 0 0 0 4px rgba(1,181,217,.28); }

/* ---------- utility bar + header ---------- */
.utility { background: var(--deep); color: #C6D6E8; font-size: .84rem; }
.utility .wrap { display: flex; align-items: center; gap: 1.4rem; min-height: 38px; }
.utility a { color: #fff; text-decoration: none; font-weight: 600; }
.utility .gbadge { margin-left: auto; color: #fff; }
.header { position: sticky; top: 0; z-index: 50; background: rgba(14,42,71,.96); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,.10); }
.header .wrap { display: flex; align-items: center; gap: 1.6rem; min-height: 92px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo-img { height: 74px; width: auto; }
.footer .logo-img { height: 104px; }
@media (max-width: 900px) { .logo-img { height: 56px; } .header .wrap { min-height: 74px; } }
.nav { display: flex; gap: 1.35rem; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; color: #fff; font-weight: 560; font-size: .95rem; }
.nav a:hover { color: #93DDF5; }
.nav a[aria-current="page"] { color: #fff; box-shadow: 0 2px 0 var(--sky-500); }
.header .btn { padding: .68rem 1.25rem; }
.hamburger { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: .5rem; }

/* ---------- mobile nav panel ---------- */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 70;
  background: rgba(8,28,49,.97); backdrop-filter: blur(6px);
  padding: 1.2rem clamp(1.1rem, 4vw, 2rem) 2rem;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; flex-direction: column; }
.mobile-nav .mn-top { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.mobile-nav .logo-img { height: 48px; }
.mn-close { background: none; border: 0; cursor: pointer; color: #fff; padding: .6rem; }
.mobile-nav nav { display: flex; flex-direction: column; margin: 1.6rem 0; }
.mobile-nav nav a {
  color: #fff; text-decoration: none; font-size: 1.35rem; font-weight: 680;
  font-stretch: 112%; font-variation-settings: 'wdth' 112;
  padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.12);
}
.mobile-nav nav a[aria-current="page"] { color: #93DDF5; }
.mobile-nav .mn-ctas { display: grid; gap: .7rem; margin-top: auto; }
.mobile-nav .mn-note { color: #C6D6E8; font-size: .88rem; margin: 1rem 0 0; }
body.nav-open { overflow: hidden; }

/* ---------- sticky mobile CTA bar ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; gap: 1px; background: var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -6px 24px rgba(8,28,49,.18);
}
.sticky-cta a { flex: 1; display: flex; align-items: center; justify-content: center; gap: .5rem; padding: 1rem; font-weight: 680; text-decoration: none; font-size: 1rem; }
.sticky-cta .call { background: var(--navy-900); color: #fff; }
.sticky-cta .quote { background: var(--cta); color: var(--cta-ink); }

/* ---------- breadcrumb ---------- */
.crumbs { font-size: .84rem; color: var(--slate); padding: .9rem 0; }
.crumbs a { color: var(--slate); text-decoration: none; }
.crumbs a:hover { color: var(--blue-700); }
.crumbs span[aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- footer ---------- */
.footer { background: var(--navy-900); color: #C6D6E8; font-size: .92rem; }
.footer a { color: #CFE9F0; text-decoration: none; }
.footer a:hover { color: #93DDF5; text-decoration: underline; }
.footer .foot-h { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; font-weight: 680; margin: 0 0 .9rem; }
.footer address { font-style: normal; line-height: 1.9; }
.footer .grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 2.4rem; padding: 3.4rem 0 2.6rem; }
.footer .legal { border-top: 1px solid rgba(255,255,255,.14); padding: 1.1rem 0; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .8rem; color: #8AA3BD; }

/* ---------- generic content pages (legacy + juridische paginas) ---------- */
.page-hero { background: var(--navy-900); padding: clamp(2.6rem, 5vw, 4rem) 0; }
.page-hero h1 { color: #fff; margin-bottom: .2em; }
.page-hero .lede { color: #C6D6E8; font-size: 1.1rem; max-width: 38em; margin: 0; }
.prose { max-width: 760px; }
.prose img { border-radius: var(--radius-lg); }
.prose ul, .prose ol { color: var(--slate); padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose > h2:first-child { margin-top: 0; }

/* two-column media + prose (legacy content sections) */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split.media-right > img { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.media-right > img { order: 0; } }

/* generic FAQ accordion (details/summary) */
.faq-list details {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: .8rem; overflow: hidden;
}
.faq-list summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 1.3rem; font-weight: 660; color: var(--ink); font-size: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; flex: none; width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--line); color: var(--blue-700);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 1.05rem; transition: transform .15s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details > div, .faq-list details > p { padding: 0 1.3rem 1.15rem; margin: 0; font-size: .95rem; color: var(--slate); }

/* generic step cards (legacy 'steps' repeater) */
.step-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.3rem; }
.step-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem 1.4rem 1.6rem; }
.step-card .step-num { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 11px; background: var(--navy-900); color: #fff; font-weight: 760; font-stretch: 116%; font-variation-settings: 'wdth' 116; font-size: 1.15rem; margin-bottom: 1rem; }
.step-card h3 { font-size: 1.06rem; margin-bottom: .35em; }
.step-card p { font-size: .92rem; margin: 0; }

/* generic linked-card grid (legacy 'offerings' repeater, related services) */
.link-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.3rem; }
.link-card { display: block; padding: 1.4rem 1.4rem 1.5rem; }
.link-card h2, .link-card h3 { font-size: 1.08rem; margin-bottom: .3em; color: var(--blue-700); }
.link-card p { font-size: .93rem; margin: 0; }

/* CTA band shared by generic pages */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 20em; margin-left: auto; margin-right: auto; }
.cta-band p { max-width: 34em; margin: 0 auto 1.8rem; }
.cta-band .btn-row { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; }
.cta-band .cta-assurance { justify-content: center; }

@media (max-width: 900px) {
  .nav, .utility .hours { display: none; }
  .hamburger { display: block; }
  .header .btn { margin-left: auto; }
  .hamburger { margin-left: 0; }
  .sticky-cta { display: flex; }
  .footer .grid { grid-template-columns: 1fr 1fr; }
  body { padding-bottom: 64px; } /* room for sticky bar */
}
@media (max-width: 560px) { .footer .grid { grid-template-columns: 1fr; } }

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