/*
Theme Name: qabrandlogic48
Theme URI: https://brandlogic.nl
Author: BlueCT Site Factory
Description: Maatwerk classic PHP theme voor Brandlogic. Content leeft in SCF-velden; layout is volledig eigendom van de templates.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: qabrandlogic48
*/

/* Concept: "Engineered clarity" - een architectonisch licht canvas (papierwit + violet-getint oppervlak),
   inkt-tekst, diep violet als structurele kleur en signaal-oranje voor de enige actie. Space Grotesk (display)
   tegen Inter (body), haarlijnen, oversized index-cijfers en een consequente cut-corner shapetaal. */

/* ============================================================ TOKENS */
:root {
  /* palette */
  --paper: #ffffff;
  --surface: #f4f1f8;
  --surface-2: #ece6f4;
  --ink: #17141c;
  --ink-soft: #4a4552;
  --brand: #5c2d91;
  --brand-strong: #47216f;
  --accent: #f26522;
  --accent-strong: #e0641f;
  --accent-text: #a83c08;      /* small orange text on light - clears 4.5:1 */
  --line: #e2dcec;
  --line-strong: #cfc6de;

  /* dark band */
  --ink-bg: #1b1430;
  --ink-bg-2: #2a1c47;
  --on-dark: #ffffff;
  --on-dark-soft: #cdc4dd;

  /* button */
  --btn-fill: var(--accent);
  --btn-fill-hover: var(--accent-strong);
  --btn-label: #1a1420;

  /* type */
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --step--1: clamp(0.86rem, 0.82rem + 0.2vw, 0.94rem);
  --step-0:  clamp(1.0625rem, 1rem + 0.25vw, 1.125rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
  --step-2:  clamp(1.45rem, 1.3rem + 0.7vw, 1.85rem);
  --step-3:  clamp(1.75rem, 1.5rem + 1.2vw, 2.5rem);
  --step-4:  clamp(2rem, 1.7rem + 1.8vw, 3.15rem);
  --step-5:  clamp(2.15rem, 1.65rem + 3vw, 4.25rem);

  /* spacing */
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-8: 7rem;

  /* shape */
  --cut: 12px;
  --radius: 4px;
  --maxw: 1280px;
  --prose: 760px;
}

/* ============================================================ 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(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
/* icons stay inline with their text */
a > svg, button > svg, p svg, li > a svg, .btn svg, .chip svg {
  display: inline-block; vertical-align: middle;
}
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 0.6em; overflow-wrap: anywhere; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
:where(h1) { font-size: var(--step-5); }
:where(h2) { font-size: var(--step-4); }
:where(h3) { font-size: var(--step-2); }

/* ============================================================ LAYOUT */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 5vw, 2rem); }
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--surface { background: var(--surface); }
.section--surface-2 { background: var(--surface-2); }
.section--dark { background: linear-gradient(155deg, var(--ink-bg), var(--ink-bg-2)); color: var(--on-dark); }
main { display: block; }

.prose--longform { max-width: var(--prose); margin-inline: auto; text-align: left; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-size: var(--step--1); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text);
  margin: 0 0 var(--space-3);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; flex: 0 0 auto; }
.section--dark .eyebrow { color: #ffb488; }

.lead { font-size: var(--step-1); color: var(--ink-soft); }
.section--dark .lead { color: var(--on-dark-soft); }
.section__head { max-width: 62ch; margin-bottom: var(--space-6); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--ink); color: #fff; padding: 0.75rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* focus */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ============================================================ BUTTONS */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.85rem 1.6rem;
  font-family: var(--font-display); font-size: var(--step-0); font-weight: 600;
  line-height: 1.1; text-decoration: none; cursor: pointer;
  border: 0; background: transparent; color: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
  transition: transform 0.2s ease, color 0.2s ease;
}
.btn--primary { background: var(--btn-fill); color: var(--btn-label); }
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-fill-hover); transform: translateX(-100%);
  transition: transform 0.32s ease;
}
.btn--primary:hover::before, .btn--primary:focus-visible::before { transform: translateX(0); }
.btn--primary:hover { color: var(--btn-label); }

/* outline with cut-corner: border drawn via layered-gradient ::after (no border prop on clipped el) */
.btn--outline { background: transparent; color: var(--brand); }
.btn--outline::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  --bw: 2px; --bc: var(--brand);
  background:
    linear-gradient(var(--bc), var(--bc)) top left / 100% var(--bw) no-repeat,
    linear-gradient(var(--bc), var(--bc)) top left / var(--bw) 100% no-repeat,
    linear-gradient(var(--bc), var(--bc)) top right / var(--bw) calc(100% - var(--cut) + var(--bw) * 0.4) no-repeat,
    linear-gradient(var(--bc), var(--bc)) bottom left / calc(100% - var(--cut) + var(--bw) * 0.4) var(--bw) no-repeat,
    linear-gradient(-45deg, transparent calc(50% - var(--bw) * 0.72), var(--bc) calc(50% - var(--bw) * 0.72), var(--bc) calc(50% + var(--bw) * 0.72), transparent calc(50% + var(--bw) * 0.72)) bottom right / var(--cut) var(--cut) no-repeat;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}
.btn--outline:hover { color: #fff; background: var(--brand); }
.btn--ghost { background: transparent; color: var(--brand); padding-inline: 0.4rem; clip-path: none; }
.btn--ghost::after { content: ""; position: absolute; left: 0.4rem; right: 0.4rem; bottom: 0.55rem; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; }
.btn--ghost:hover::after, .btn--ghost:focus-visible::after { transform: scaleX(1); }
.btn:hover { transform: translateY(-2px); }
.btn--block { display: flex; width: 100%; }

/* dark-band button variants */
.section--dark .btn--outline, .site-footer .btn--outline { color: var(--on-dark); }
.section--dark .btn--outline::after, .site-footer .btn--outline::after { --bc: rgba(255,255,255,0.6); }
.section--dark .btn--outline:hover, .site-footer .btn--outline:hover { background: #fff; color: var(--ink); }
.section--dark .btn--ghost { color: #ffb488; }

/* reassert button label over any scoped descendant link colour */
.site-footer .btn, .section--dark .btn { }
.site-footer .btn--primary, .section--dark .btn--primary { color: var(--btn-label); }

/* ============================================================ CHIPS / BADGES / PILLS */
.chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: var(--step--1); font-weight: 600; font-family: var(--font-display);
  padding: 0.4rem 0.8rem; background: var(--surface); color: var(--ink);
  border-radius: 999px; line-height: 1.2;
}
.chip--area { white-space: normal; align-items: flex-start; }
.chip--area svg { margin-top: 2px; flex: 0 0 auto; }
.section--dark .chip { background: rgba(255,255,255,0.1); color: var(--on-dark); }
.badge {
  display: inline-flex; align-items: center; font-family: var(--font-display); font-weight: 700;
  font-size: var(--step--1); padding: 0.25rem 0.6rem; background: var(--accent);
  color: var(--btn-label); border-radius: 999px; letter-spacing: 0.02em;
}

/* ============================================================ HEADER */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255,255,255,0.92); backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 74px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand-lockup 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: var(--step-1); letter-spacing: -0.02em; }
.brand-slogan { display: block; font-family: var(--font-body); font-size: 0.72rem; font-weight: 500; color: var(--ink-soft); letter-spacing: 0.02em; }

.primary-nav { display: flex; align-items: center; gap: 1.5rem; }
.nav-menu { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a:not(.btn) {
  position: relative; text-decoration: none; color: var(--ink); font-weight: 500;
  white-space: nowrap; padding: 0.4rem 0; font-size: var(--step-0);
}
.nav-menu a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.22s ease; }
.nav-menu a:not(.btn):hover::after, .nav-menu a:not(.btn):focus-visible::after, .nav-menu .current-menu-item > a::after { transform: scaleX(1); }
.nav-menu .current-menu-item > a { color: var(--brand); }
/* sub-menu (present only if a menu ever nests) */
.nav-menu .sub-menu { list-style: none; margin: 0; padding: 0.5rem 0; }

.header-cta .cta-label-short { display: none; }
.nav-toggle, .drawer-close { display: none; }

/* ============================================================ MOBILE DRAWER */
@media (max-width: 900px) {
  .primary-nav {
    position: fixed; inset: 0 0 0 auto; width: min(88vw, 360px);
    height: 100dvh; overflow-y: auto; overscroll-behavior: contain;
    background: linear-gradient(160deg, var(--ink-bg), var(--ink-bg-2)); color: var(--on-dark);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 5rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom));
    transform: translateX(100%); transition: transform 0.28s ease; z-index: 1001;
  }
  body.nav-open .primary-nav { transform: translateX(0); }
  body.nav-open .site-header { z-index: 1000; }
  .nav-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-menu li { border-bottom: 1px solid rgba(255,255,255,0.12); }
  .nav-menu a:not(.btn) { display: flex; align-items: center; min-height: 52px; color: var(--on-dark); }
  .nav-menu a:not(.btn)::after { display: none; }
  .nav-menu .current-menu-item > a { color: #ffb488; }
  .primary-nav .header-cta { margin-top: 1.25rem; }

  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; min-width: 44px; min-height: 44px;
    background: transparent; border: 0; color: var(--ink); cursor: pointer; z-index: 1002;
  }
  .drawer-close {
    display: inline-flex; align-items: center; justify-content: center;
    position: absolute; top: 1rem; right: 1rem; width: 48px; height: 48px;
    background: rgba(255,255,255,0.08); border: 0; color: var(--on-dark); cursor: pointer;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  }
  .nav-overlay {
    position: fixed; inset: 0; background: rgba(15,10,25,0.55);
    opacity: 0; visibility: hidden; transition: opacity 0.28s ease, visibility 0.28s ease; z-index: 990;
  }
  body.nav-open .nav-overlay { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
}

/* ============================================================ HERO */
.hero { position: relative; overflow: hidden; }
.hero--dark { background: linear-gradient(150deg, var(--ink-bg) 0%, var(--ink-bg-2) 60%, #3a2660 100%); color: var(--on-dark); }
.hero__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.hero--split .hero__grid { grid-template-columns: 1.1fr 0.9fr; }
.hero__title { font-size: var(--step-5); margin-bottom: 1rem; }
.hero--dark .hero__title { color: #fff; }
.hero__intro { font-size: var(--step-1); color: var(--on-dark-soft); max-width: 52ch; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.5rem 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.75rem; }
.hero__microcopy { margin-top: 1rem; font-size: var(--step--1); color: var(--on-dark-soft); display: flex; align-items: center; gap: 0.5rem; }
.hero__media { position: relative; }
.hero__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%); }
.hero__stat { display: inline-flex; flex-direction: column; gap: 0.15rem; }
.hero__proofrow { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,0.15); }
.hero__proofrow strong { font-family: var(--font-display); font-size: var(--step-2); display: block; color: #fff; }
.hero__proofrow span { font-size: var(--step--1); color: var(--on-dark-soft); }

/* light hero variant (inner pages) */
.pagehero { padding-block: clamp(3rem, 7vw, 5.5rem); border-bottom: 1px solid var(--line); }
.pagehero__title { font-size: var(--step-4); max-width: 20ch; }
.pagehero__intro { font-size: var(--step-1); color: var(--ink-soft); max-width: 60ch; }

/* ============================================================ GRIDS / CARDS */
.grid { display: grid; gap: var(--space-4); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

.card {
  position: relative; background: var(--paper); padding: var(--space-5);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -24px rgba(28,16,54,0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex; flex-direction: column;
}
.section--surface .card, .section--surface-2 .card { background: var(--paper); }
.card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 var(--line-strong), 0 24px 48px -28px rgba(28,16,54,0.5); }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; background: var(--surface); color: var(--brand);
  margin-bottom: var(--space-3);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}
.card h3 { font-size: var(--step-2); margin-bottom: 0.4rem; }
.card p { color: var(--ink-soft); margin-bottom: var(--space-3); }
.card__link { margin-top: auto; }
/* whole-card link (stretched) */
.card--link { }
.card--link .stretched { position: absolute; inset: 0; z-index: 1; }
.card--link .card__link { position: relative; z-index: 2; pointer-events: none; }
.card--link:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }

/* numbered "how we work" */
.numrow { counter-reset: step; display: grid; gap: var(--space-5); grid-template-columns: repeat(3, 1fr); }
.num-card { position: relative; padding-top: 0.5rem; }
.num-card__index { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 5rem); font-weight: 700; line-height: 1; color: var(--accent); opacity: 0.9; letter-spacing: -0.04em; }
.section--dark .num-card__index { color: #ff8a4d; }
.num-card h3 { font-size: var(--step-2); margin: 0.5rem 0 0.4rem; }
.num-card p { color: var(--ink-soft); }
.section--dark .num-card p { color: var(--on-dark-soft); }

/* proof / testimonials */
.quote {
  position: relative; background: var(--paper); padding: var(--space-5);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
  box-shadow: 0 10px 30px -24px rgba(28,16,54,0.45); display: flex; flex-direction: column; gap: var(--space-3);
}
.quote__text { font-size: var(--step-1); line-height: 1.5; color: var(--ink); }
.quote__mark { font-family: var(--font-display); font-size: 3rem; line-height: 0.6; color: var(--accent); height: 1.2rem; }
.quote__author { margin-top: auto; }
.quote__author strong { font-family: var(--font-display); display: block; }
.quote__author span { color: var(--ink-soft); font-size: var(--step--1); }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.stat { padding: var(--space-4); border-top: 3px solid var(--accent); background: var(--paper); }
.stat__num { font-family: var(--font-display); font-size: var(--step-3); font-weight: 700; color: var(--brand); display: block; }
.stat__label { color: var(--ink-soft); font-size: var(--step--1); }
.section--dark .stat { background: rgba(255,255,255,0.06); }
.section--dark .stat__num { color: #fff; }
.section--dark .stat__label { color: var(--on-dark-soft); }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.15rem 2.5rem 1.15rem 0; position: relative; font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); min-height: 44px; display: flex; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 0.25rem; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--ink-soft); padding: 0 2.5rem 1.25rem 0; margin: 0; }

/* about person */
.person { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.person__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%); }
.person__name { font-size: var(--step-3); }

/* atmosphere / split image */
.media-frame img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%); }

/* Werk cases */
.case { position: relative; padding: var(--space-6) 0; border-top: 1px solid var(--line); }
.case:first-child { border-top: 0; }
.case__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.case__label { font-family: var(--font-display); font-size: var(--step--1); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-text); margin-bottom: 0.3rem; }
.case__block { margin-bottom: var(--space-4); }
.case__block p { color: var(--ink-soft); margin: 0; }
.case__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%); }
.case__quote { margin-top: var(--space-4); padding: var(--space-4); background: var(--surface); border-left: 0; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%); }
.case__quote p { font-size: var(--step-1); font-style: italic; color: var(--ink); }
.case__quote cite { font-style: normal; font-family: var(--font-display); font-weight: 600; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; align-items: flex-start; gap: 0.9rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); min-height: 44px; }
.contact-list a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--brand); }
.contact-list svg { color: var(--brand); margin-top: 2px; flex: 0 0 auto; }
.contact-list .contact-list__label { display: block; font-size: var(--step--1); color: var(--ink-soft); }
.form-promise { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.9rem 1.1rem; background: var(--surface); color: var(--ink); font-weight: 600; margin-bottom: var(--space-4); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%); }
.form-promise svg { color: var(--accent-text); }
.form-placeholder { padding: var(--space-5); background: var(--surface); border: 1px dashed var(--line-strong); color: var(--ink-soft); }

/* points list */
.points { list-style: none; margin: var(--space-4) 0; padding: 0; display: grid; gap: 0.75rem; }
.points li { display: flex; align-items: flex-start; gap: 0.7rem; }
.points svg { color: var(--accent); margin-top: 4px; flex: 0 0 auto; }

/* trust badges near CTA */
.trustrow { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }

/* ============================================================ CTA BAND */
.cta-band { text-align: left; }
.cta-band__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.cta-band h2 { font-size: var(--step-4); color: #fff; margin-bottom: 0.5rem; }
.cta-band p { color: var(--on-dark-soft); margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: flex-start; }

/* ============================================================ PROSE (long-form / block editor pages) */
.prose h2 { font-size: var(--step-3); margin-top: 1.8em; }
.prose h3 { font-size: var(--step-2); margin-top: 1.5em; }
.prose h4, .prose h5, .prose h6 { font-family: var(--font-display); margin-top: 1.3em; }
.prose p, .prose li { color: var(--ink); }
.prose ul { list-style: none; padding-left: 1.4em; }
.prose ul > li { position: relative; }
.prose ul > li::before { content: ""; position: absolute; left: -1.2em; top: 0.65em; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.prose ul ul > li::before { background: transparent; border: 2px solid var(--accent); }
.prose ol { list-style: none; counter-reset: li; padding-left: 1.8em; }
.prose ol > li { position: relative; counter-increment: li; }
.prose ol > li::before { content: counter(li); position: absolute; left: -1.8em; top: 0; font-family: var(--font-display); font-weight: 700; color: var(--accent-text); }
.prose ol ol { list-style: lower-alpha; }
.prose ol ol > li::before { content: none; }
.prose blockquote { margin: 1.5em 0; padding: 1rem 1.5rem; background: var(--surface); font-style: italic; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%); }
.prose a { color: var(--brand); text-decoration: underline; }
.prose img, .prose figure { margin: 1.5em 0; }
.prose figcaption { font-size: var(--step--1); color: var(--ink-soft); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface); padding: 0.15em 0.4em; border-radius: 3px; font-size: 0.9em; }
.prose table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.prose th, .prose td { text-align: left; padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; word-break: break-word; }
.prose th { font-family: var(--font-display); border-bottom: 2px solid var(--ink); }
.table-scroll { overflow-x: auto; margin: 1.5em 0; }
.table-scroll table { margin: 0; }

/* ============================================================ FOOTER */
.site-footer { background: linear-gradient(155deg, var(--ink-bg), var(--ink-bg-2)); color: var(--on-dark-soft); padding-block: clamp(3rem, 7vw, 5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(1.5rem, 4vw, 3rem); }
.footer-brand__name { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); color: #fff; }
.footer-brand p { color: var(--on-dark-soft); max-width: 34ch; }
.footer-col h3 { font-family: var(--font-display); font-size: var(--step-0); text-transform: uppercase; letter-spacing: 0.08em; color: #fff; margin-bottom: var(--space-3); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0; }
.site-footer a { color: var(--on-dark-soft); text-decoration: none; }
.footer-col a, .footer-nap a, .footer-nap span { display: flex; align-items: center; gap: 0.5rem; min-height: 44px; }
.footer-col a:hover, .footer-nap a:hover { color: #fff; }
.footer-nap { list-style: none; margin: 0; padding: 0; }
.footer-nap svg { color: #ff8a4d; flex: 0 0 auto; }
.footer-socials { display: flex; gap: 0.6rem; margin-top: var(--space-3); }
.footer-socials a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: rgba(255,255,255,0.08); color: #fff; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%); }
.footer-socials a:hover { background: var(--accent); color: var(--btn-label); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid rgba(255,255,255,0.14); font-size: var(--step--1); }
.site-footer .btn--primary { color: var(--btn-label); }

/* ============================================================ FORMINATOR */
.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: max(16px, var(--step-0));
  color: var(--ink); background: #fff; border: 1.5px solid var(--line-strong);
  border-radius: var(--radius); padding: 0.8rem 1rem; min-height: 48px;
}
.forminator-custom-form textarea { min-height: 140px; }
.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(242,101,34,0.2);
}
.forminator-custom-form label, .forminator-custom-form .forminator-label { font-weight: 600; color: var(--ink); }
.forminator-custom-form .forminator-button,
.forminator-custom-form button[type=submit] {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.85rem 1.6rem; font-family: var(--font-display); font-weight: 600;
  background: var(--btn-fill); color: var(--btn-label); border: 0; cursor: pointer;
  border-radius: 999px; transition: background 0.2s ease;
}
.forminator-custom-form .forminator-button:hover,
.forminator-custom-form button[type=submit]:hover { background: var(--btn-fill-hover); color: var(--btn-label); }

/* ============================================================ ENTRANCE ANIMATIONS (sanctioned pattern) */
.anim-in { opacity: 1; transform: none; }
.anim-pending { opacity: 0; transform: translateY(14px); transition: opacity 0.45s ease-out, transform 0.45s ease-out; }
.anim-pending.anim-done { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .anim-pending { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover { transform: none; }
  .card:hover { transform: none; }
}

/* ============================================================ 404 */
.notfound { text-align: center; padding-block: clamp(4rem, 10vw, 8rem); }
.notfound__code { font-family: var(--font-display); font-size: clamp(4rem, 15vw, 9rem); font-weight: 700; color: var(--brand); line-height: 1; }

/* ============================================================ RESPONSIVE */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .numrow, .grid--3, .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero--split .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 460px; }
  .split, .person, .case__grid, .contact-grid, .cta-band__inner { grid-template-columns: 1fr; }
  .person__media, .case__media { max-width: 440px; }
  .cta-band__actions { justify-content: flex-start; }
}
@media (max-width: 599px) {
  .grid--2, .grid--3, .numrow, .stats, .footer-grid { grid-template-columns: 1fr; align-items: stretch; }
  .section { padding-block: clamp(3rem, 12vw, 4.5rem); }
  .hero__grid { padding-block: clamp(2.5rem, 12vw, 4rem); }
  .hero__title { text-align: left; }
  .hero__actions .btn { width: 100%; }
  .hero__media { max-width: 100%; }
  /* decorative absolutely-positioned frames off on mobile - none used, but guard */
  .card::before, .quote::before { display: none; }
}
@media (max-width: 380px) {
  .header-cta { display: none; }
}

/* header CTA short label on the mobile bar */
@media (max-width: 900px) and (min-width: 381px) {
  .header-cta.header-cta { min-height: 44px; padding: 0.6rem 1rem; }
  .header-cta .cta-label-full { display: none; }
  .header-cta .cta-label-short { display: inline; }
}
