/*
Theme Name: keetelsv2
Theme URI: https://keetelsv2.test.bluect.nl
Author: BlueCT Site Factory
Description: Maatwerk klassiek PHP-thema voor Installatiebedrijf H. Keetels B.V. Inhoud via SCF-velden.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: keetelsv2
*/

/* Concept: An immersive, image-led vakmanschap site where full-bleed foto's van echt
   werk in de regio het vertrouwen dragen, met een diep marineblauw scrim en een warme
   amber-telefoon-CTA die overal het oog naar het nummer trekt. */

/* ============================================================= TOKENS */
:root {
  /* palette */
  --navy: #1A3A5C;
  --navy-deep: #12293f;
  --surface: #F5F4F1;
  --surface-tint: #ecebe6;
  --ink: #1C1C1C;
  --ink-soft: #3d434a;
  --white: #FFFFFF;
  --cream: #F5F4F1;
  --accent: #F5A623;          /* amber signal — fills, icons, large only */
  --accent-strong: #d98a00;   /* darker amber for hover fills */
  --accent-text: #8a5300;     /* amber-derived text that clears 4.5:1 on light */
  --line: #d9d7cf;            /* hairline on light */
  --line-dark: rgba(255,255,255,.16);

  /* button tokens */
  --btn-fill: var(--accent);
  --btn-fill-hover: var(--accent-strong);
  --btn-label: #1C1C1C;       /* dark ink on amber ~ 8:1 */

  /* type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1.0625rem, 1.02rem + 0.2vw, 1.125rem);
  --step-1:  clamp(1.2rem, 1.13rem + 0.35vw, 1.4rem);
  --step-2:  clamp(1.45rem, 1.33rem + 0.6vw, 1.85rem);
  --step-3:  clamp(1.75rem, 1.55rem + 1vw, 2.4rem);
  --step-4:  clamp(2.0rem, 1.7rem + 1.6vw, 3.1rem);
  --step-5:  clamp(2.15rem, 1.6rem + 2.9vw, 4.25rem);

  /* spacing */
  --space-xs: .5rem;
  --space-sm: .75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 7rem;

  --radius: 10px;
  --radius-lg: 18px;
  --container: 1280px;
  --measure: 760px;
  --shadow-sm: 0 1px 3px rgba(18,41,63,.08), 0 6px 20px rgba(18,41,63,.06);
  --shadow-md: 0 10px 40px rgba(18,41,63,.14);
}

/* ============================================================= RESET */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
/* keep inline glyphs on the same line as their text */
a > svg, button > svg, p svg, li > a svg, .chip svg, .btn svg {
  display: inline-block; vertical-align: middle;
}
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  overflow-wrap: anywhere;
  margin: 0 0 var(--space-md);
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
p { margin: 0 0 var(--space-md); overflow-wrap: anywhere; }
ul, ol { margin: 0 0 var(--space-md); padding-left: 1.2em; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

/* ============================================================= LAYOUT */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2rem);
}
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.bg-surface { background: var(--surface); }
.bg-tint { background: var(--surface-tint); }
.bg-white { background: var(--white); }
.is-dark { background: var(--navy); color: var(--white); }
.is-dark h1, .is-dark h2, .is-dark h3, .is-dark h4 { color: var(--white); }
.is-dark a { color: var(--white); }
.is-dark p { color: rgba(255,255,255,.9); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 var(--space-sm);
}
.is-dark .eyebrow { color: var(--accent); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); }

.lead { font-size: var(--step-1); color: var(--ink-soft); }
.is-dark .lead { color: rgba(255,255,255,.9); }
.section-head { max-width: 46rem; margin-bottom: var(--space-2xl); }

/* skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--navy); color: var(--white);
  padding: .8rem 1.2rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ============================================================= BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--step-0);
  line-height: 1.1;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--btn-fill); color: var(--btn-label); box-shadow: 0 8px 22px rgba(245,166,35,.35); }
.btn--primary:hover { background: var(--btn-fill-hover); color: var(--btn-label); }
/* outline on dark backgrounds */
.btn--outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn--outline:hover { background: rgba(255,255,255,.12); color: var(--white); border-color: var(--white); }
/* outline on light backgrounds */
.btn--line { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--line:hover { background: var(--navy); color: var(--white); }
.btn--lg { padding: 1.1rem 2rem; font-size: var(--step-1); }
.btn svg { width: 20px; height: 20px; }

.microcopy { font-size: var(--step--1); color: var(--ink-soft); margin: .75rem 0 0; }
.is-dark .microcopy { color: rgba(255,255,255,.82); }

/* ============================================================= HEADER */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.1) blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: 74px;
}
.brand { display: inline-flex; flex-direction: column; gap: 2px; text-decoration: none; flex: 0 0 auto; }
.brand img { height: clamp(34px, 4vw, 46px); width: auto; max-width: 200px; object-fit: contain; }
.brand .wordmark { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--navy); letter-spacing: -.02em; }
.brand .slogan { font-size: .72rem; color: var(--ink-soft); font-weight: 600; letter-spacing: .02em; }

.header-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.primary-nav { display: flex; }
.nav-menu { display: flex; align-items: center; gap: clamp(.75rem, 1.8vw, 1.6rem); list-style: none; margin: 0; padding: 0; }
.nav-menu > li { position: relative; }
.nav-menu a:not(.btn) {
  display: inline-flex; align-items: center; gap: .3rem;
  font-weight: 600; font-size: var(--step-0);
  color: var(--ink); text-decoration: none; white-space: nowrap;
  padding: .5rem 0; position: relative;
}
.nav-menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--accent); transition: right .22s ease;
}
.nav-menu a:not(.btn):hover::after,
.nav-menu a:not(.btn):focus-visible::after,
.nav-menu .current-menu-item > a::after,
.nav-menu .current_page_item > a::after { right: 0; }

/* dropdown / flyout */
.has-flyout > .submenu-wrap { display: none; }
.submenu {
  list-style: none; margin: 0; padding: .5rem;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  min-width: 230px;
}
.submenu a { display: block; padding: .6rem .8rem; border-radius: 6px; font-weight: 600; color: var(--ink); text-decoration: none; }
.submenu a:hover { background: var(--surface); }

.primary-nav > .btn { display: none; } /* in-drawer CTA: mobile only */
.header-cta { display: inline-flex; align-items: center; gap: .8rem; }
.header-phone {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: var(--navy); text-decoration: none; white-space: nowrap;
}
.header-phone svg { width: 18px; height: 18px; color: var(--accent-text); }

/* nav toggle + drawer bits (hidden on desktop) */
.nav-toggle, .nav-close, .nav-overlay { display: none; }

/* ============================================================= HERO */
.hero {
  position: relative;
  min-height: clamp(520px, 78vh, 760px);
  display: flex; align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(18,41,63,.55) 0%, rgba(18,41,63,.35) 40%, rgba(18,41,63,.75) 100%),
    linear-gradient(90deg, rgba(18,41,63,.9) 0%, rgba(18,41,63,.55) 55%, rgba(18,41,63,.25) 100%);
}
.hero__inner { position: relative; z-index: 2; padding-block: clamp(3rem, 8vw, 5rem); }
.hero__content { max-width: 44rem; }
.hero h1 { color: var(--white); margin-bottom: var(--space-md); }
.hero__sub { font-size: var(--step-1); color: rgba(255,255,255,.94); max-width: 40rem; }
.hero__area {
  display: inline-flex; align-items: flex-start; gap: .5rem;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px; padding: .5rem 1rem;
  font-size: var(--step--1); font-weight: 600; color: #fff;
  margin-bottom: var(--space-lg); max-width: 100%;
}
.hero__area svg { width: 18px; height: 18px; color: var(--accent); flex: 0 0 auto; margin-top: 2px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: var(--space-lg); }
.hero__trust { display: flex; flex-wrap: wrap; gap: 1.2rem 1.8rem; margin-top: var(--space-xl); }
.hero__trust .t-item { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--step--1); font-weight: 600; color: #fff; }
.hero__trust svg { width: 18px; height: 18px; color: var(--accent); }

/* ============================================================= PAGE HERO */
.page-hero { position: relative; padding-block: clamp(3rem, 7vw, 5.5rem); }
.page-hero .lead { max-width: 46rem; }
.page-hero .hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: var(--space-lg); }
.page-hero .crumbs { font-size: var(--step--1); color: rgba(255,255,255,.75); margin-bottom: var(--space-sm); }
.page-hero .crumbs a { color: rgba(255,255,255,.75); }

/* ============================================================= PROOF STRIP */
.proof-strip { border-bottom: 1px solid var(--line); }
.proof-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 4vw, 3rem);
  text-align: center;
}
.proof-item .num { font-family: var(--font-display); font-weight: 700; font-size: var(--step-4); color: var(--navy); line-height: 1; }
.proof-item .num span { color: var(--accent-text); }
.proof-item .lbl { font-weight: 600; color: var(--ink-soft); margin-top: .4rem; }

/* ============================================================= SPLIT / SERVICES */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--flip .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.split__media .frame {
  content: ""; position: absolute; inset: 22px -18px -18px 22px; z-index: -1;
  border: 2px solid var(--accent); border-radius: var(--radius-lg);
}

.service-list { display: grid; gap: var(--space-md); margin: var(--space-lg) 0 0; padding: 0; list-style: none; }
.service-row {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start;
  padding: 1.1rem 0; border-top: 1px solid var(--line);
}
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row .idx { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--accent-text); min-width: 2ch; }
.service-row h3 { font-size: var(--step-1); margin: 0 0 .2rem; }
.service-row p { margin: 0; color: var(--ink-soft); font-size: var(--step-0); }
.service-row a.more { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: var(--navy); text-decoration: none; margin-top: .4rem; font-size: var(--step--1); }
.service-row a.more svg { width: 16px; height: 16px; }

/* card grid (services page) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(1rem, 2.5vw, 1.6rem); }
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .idx { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--accent); display: block; margin-bottom: .5rem; }
.card .icon { width: 44px; height: 44px; color: var(--navy); margin-bottom: .8rem; }
.card .icon svg { width: 44px; height: 44px; }
.card h3 { font-size: var(--step-1); margin-bottom: .5rem; }
.card p { color: var(--ink-soft); margin: 0; }

/* ============================================================= PROCESS (numbered) */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(1.5rem, 4vw, 2.5rem); }
.step { position: relative; padding-top: 1.5rem; }
.step .step-num {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(3.2rem, 7vw, 5rem);
  line-height: .8; color: transparent;
  -webkit-text-stroke: 2px var(--accent); text-stroke: 2px var(--accent);
  display: block; margin-bottom: .5rem;
}
.step h3 { font-size: var(--step-1); margin-bottom: .4rem; }
.step p { color: var(--ink-soft); margin: 0; }
.is-dark .step p { color: rgba(255,255,255,.85); }

/* ============================================================= AREA */
.area-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.area-places { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: var(--space-md); padding: 0; list-style: none; }
.area-places li {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px; padding: .45rem .9rem; font-weight: 600; font-size: var(--step--1); color: #fff;
}
.area-places svg { width: 15px; height: 15px; color: var(--accent); }

/* ============================================================= REGISTRATIONS */
.reg-band .reg-head { text-align: center; margin-bottom: var(--space-xl); }
.reg-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem); align-items: center; justify-items: center;
}
.reg-item { display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center; }
.reg-item img { height: 62px; width: auto; max-width: 160px; object-fit: contain; filter: none; }
.reg-item .reg-name { font-size: var(--step--1); font-weight: 600; color: var(--ink-soft); }

/* ============================================================= CTA BAND */
.cta-band { text-align: center; }
.cta-band .cta-inner { max-width: 44rem; margin-inline: auto; }
.cta-band h2 { margin-bottom: var(--space-md); }
.cta-band .cta-actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: var(--space-lg); }

/* ============================================================= FAQ */
.faq-list { max-width: 52rem; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item > summary {
  list-style: none; cursor: pointer; padding: 1.2rem 2.5rem 1.2rem 0; position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); color: var(--ink);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; color: var(--accent-text); line-height: 1;
}
.faq-item[open] > summary::after { content: "\2212"; }
.faq-item .faq-a { padding: 0 0 1.3rem; color: var(--ink-soft); }
.faq-item .faq-a p:last-child { margin-bottom: 0; }

/* ============================================================= PROSE */
.prose { font-size: var(--step-0); }
.prose h2 { margin-top: var(--space-xl); }
.prose h3 { margin-top: var(--space-lg); }
.prose a { color: var(--navy); font-weight: 600; }
.prose--longform { max-width: var(--measure); margin-inline: auto; text-align: left; }
.prose ul li { margin-bottom: .4rem; }

/* contact layout */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-facts { display: grid; gap: 1.2rem; margin: 0; padding: 0; list-style: none; }
.contact-facts li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-facts .ci { flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; background: var(--surface); border-radius: 10px; color: var(--navy); }
.contact-facts .ci svg { width: 22px; height: 22px; }
.contact-facts strong { display: block; font-family: var(--font-display); }
.contact-facts a { color: var(--navy); font-weight: 600; text-decoration: none; }
.contact-card { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); }
.promise-line {
  display: flex; gap: .6rem; align-items: center;
  background: rgba(245,166,35,.12); border: 1px solid rgba(245,166,35,.4);
  border-radius: var(--radius); padding: .8rem 1rem; margin-bottom: var(--space-lg);
  font-weight: 600; color: var(--ink);
}
.promise-line svg { width: 20px; height: 20px; color: var(--accent-text); flex: 0 0 auto; }

/* ============================================================= FOOTER */
.site-footer { background: var(--navy); color: rgba(255,255,255,.86); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); padding-block: clamp(3rem, 6vw, 4.5rem); }
.site-footer h4 { color: var(--white); font-family: var(--font-display); font-size: 1.1rem; margin-bottom: var(--space-md); }
.site-footer a { color: rgba(255,255,255,.86); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-brand img { height: 46px; width: auto; max-width: 190px; margin-bottom: var(--space-md); filter: brightness(0) invert(1); }
.footer-brand .wordmark { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1.4rem; }
.footer-brand p { color: rgba(255,255,255,.8); }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-nap { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-nap li { display: flex; gap: .55rem; align-items: flex-start; }
.footer-nap svg { width: 17px; height: 17px; color: var(--accent); flex: 0 0 auto; margin-top: 4px; }
.footer-phone-cta { margin-top: var(--space-md); }
/* re-assert button label over footer link colour (cascade guard) */
.site-footer .btn--primary { color: var(--btn-label); }
.site-footer .btn--outline { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--line-dark); padding-block: 1.3rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; align-items: center;
  font-size: var(--step--1); color: rgba(255,255,255,.7);
}
.footer-bottom a { color: rgba(255,255,255,.7); }

/* ============================================================= STICKY CALL (mobile) */
.sticky-call { display: none; }

/* ============================================================= FORMINATOR */
.forminator-custom-form .forminator-label,
.forminator-custom-form label { font-family: var(--font-body); font-weight: 600; color: var(--ink); }
.forminator-custom-form input[type=text],
.forminator-custom-form input[type=email],
.forminator-custom-form input[type=tel],
.forminator-custom-form input[type=url],
.forminator-custom-form input[type=number],
.forminator-custom-form textarea,
.forminator-custom-form select {
  width: 100%; font-family: var(--font-body); font-size: var(--step-0);
  color: var(--ink); background: var(--white);
  border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: .8rem 1rem; line-height: 1.4;
}
.forminator-custom-form textarea { min-height: 130px; }
.forminator-custom-form input:focus,
.forminator-custom-form textarea:focus,
.forminator-custom-form select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245,166,35,.25);
}
.forminator-custom-form .forminator-button,
.forminator-custom-form button[type=submit] {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 700; font-size: var(--step-0);
  background: var(--btn-fill); color: var(--btn-label);
  border: none; border-radius: 999px; padding: .95rem 1.8rem; cursor: pointer;
  box-shadow: 0 8px 22px rgba(245,166,35,.35);
  transition: background-color .18s ease, transform .18s ease;
}
.forminator-custom-form .forminator-button:hover,
.forminator-custom-form button[type=submit]:hover { background: var(--btn-fill-hover); color: var(--btn-label); transform: translateY(-2px); }
.form-placeholder { padding: 1.2rem; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--ink-soft); background: var(--white); }

/* ============================================================= REVEAL (progressive) */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================= 404 */
.error-404 { text-align: center; padding-block: clamp(4rem, 10vw, 8rem); }
.error-404 .code { font-family: var(--font-display); font-size: clamp(4rem, 14vw, 8rem); color: var(--accent); line-height: 1; }

/* ============================================================= RESPONSIVE */
@media (max-width: 980px) {
  .header-nav { gap: 1rem; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px;
    background: var(--white); color: var(--navy); cursor: pointer;
  }
  .nav-toggle svg { width: 24px; height: 24px; }
  .nav-toggle .icon-close { display: none; }
  .header-cta .header-phone { display: none; }
  .header-cta-btn { display: none; }
  .primary-nav > .btn { display: inline-flex; }

  .primary-nav {
    position: fixed; inset: 0 0 0 auto; z-index: 1001;
    width: min(360px, 88vw); height: 100dvh;
    background: var(--white); box-shadow: var(--shadow-md);
    transform: translateX(100%); transition: transform .28s ease;
    display: block; overflow-y: auto; overscroll-behavior: contain;
    padding: 5rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom));
  }
  body.nav-open .primary-nav { transform: translateX(0); }
  body.nav-open .site-header { z-index: 1000; }
  .nav-close {
    display: inline-flex; align-items: center; justify-content: center;
    position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px;
    border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--navy); cursor: pointer;
  }
  .nav-close svg { width: 24px; height: 24px; }
  .nav-overlay {
    display: block; position: fixed; inset: 0; z-index: 990;
    background: rgba(18,41,63,.5); opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility .28s ease;
  }
  body.nav-open .nav-overlay { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }

  .nav-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-menu > li { border-bottom: 1px solid var(--line); }
  .primary-nav .nav-menu a:not(.btn) { display: flex; justify-content: space-between; padding: .9rem 0; font-size: 1.1rem; }
  .primary-nav .nav-menu a:not(.btn)::after { display: none; }
  .primary-nav .btn { width: 100%; margin-top: 1rem; }
  .has-flyout > .submenu-wrap { display: none; padding-left: .8rem; }
  .has-flyout.is-open > .submenu-wrap { display: block; }
  .submenu { border: none; box-shadow: none; padding: 0 0 .5rem; min-width: 0; }
  .flyout-toggle { background: none; border: none; padding: .3rem; cursor: pointer; color: var(--navy); }

  .split { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
  .area-inner, .contact-grid { grid-template-columns: 1fr; }
}

@media (min-width: 981px) {
  /* desktop flyout reveal — desktop only */
  .has-flyout:hover > .submenu-wrap,
  .has-flyout:focus-within > .submenu-wrap,
  .has-flyout.is-open > .submenu-wrap {
    display: block; position: absolute; top: 100%; left: 0; padding-top: .6rem;
  }
  .flyout-toggle { display: none; }
}

@media (max-width: 720px) {
  .proof-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .footer-top { grid-template-columns: 1fr; }
  .contact-facts { gap: 1rem; }
}

@media (max-width: 599px) {
  .hero { min-height: clamp(460px, 80vh, 560px); text-align: left; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .hero__area { white-space: normal; }
  .split__media .frame { display: none; }  /* decorative frame off on mobile */
  .card-grid, .process-grid, .reg-grid { grid-template-columns: 1fr; align-items: stretch; }
  .cta-band .cta-actions { flex-direction: column; }
  .cta-band .cta-actions .btn { width: 100%; }

  /* sticky tap-to-call (opt-in via markup presence) */
  .sticky-call {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
    padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom));
    background: var(--navy); box-shadow: 0 -4px 18px rgba(0,0,0,.2);
  }
  .sticky-call a {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    background: var(--btn-fill); color: var(--btn-label); font-weight: 700;
    padding: .9rem; border-radius: 999px; text-decoration: none;
  }
  .sticky-call a svg { width: 20px; height: 20px; }
  body.has-sticky-call { padding-bottom: 4.5rem; }
}

/* ============================================================= REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .btn:hover, .card:hover { transform: none; }
}
