/* ==========================================================================
   Signature Detailing, main.css
   A refined, editorial system: warm near-black, paper light sections,
   Space Grotesk display + Inter text, a single restrained red accent.
   --------------------------------------------------------------------------
   0. Tokens          5. Buttons         10. Process / steps   15. Forms
   1. Reset & base    6. Section header  11. Portfolio         16. Footer
   2. Layout          7. Hero            12. Testimonials      17. Blog
   3. Header / nav    8. Media / ph      13. FAQ               18. Reveal
   4. Typography      9. Services        14. Calculator        19. Responsive
   ========================================================================== */

/* 0. TOKENS ─────────────────────────────────────────────────────────────── */
:root {
    --ink:        #0b0b0c;
    --ink-2:      #101013;
    --ink-3:      #17171b;
    --ink-4:      #1e1e23;
    --paper:      #f3f0e9;
    --paper-2:    #e9e5db;
    --paper-ink:  #16150f;

    --text:       #eceae6;
    --muted:      #9a978f;
    --muted-2:    #6f6d67;
    --line:       rgba(255, 255, 255, .10);
    --line-soft:  rgba(255, 255, 255, .06);

    --accent:     #e11d2a;
    --accent-2:   #b7141f;
    --accent-tint:rgba(225, 29, 42, .12);

    --font-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-text:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --shell:      1240px;
    --gutter:     clamp(1.25rem, 5vw, 3rem);
    --section:    clamp(5rem, 10vw, 9rem);

    --radius:     3px;
    --radius-lg:  6px;

    --ease:       cubic-bezier(.22, 1, .36, 1);
    --ease-out:   cubic-bezier(.16, 1, .3, 1);
    --dur:        .6s;
}

/* 1. RESET & BASE ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-text);
    background: var(--ink);
    color: var(--text);
    font-size: 1rem;
    line-height: 1.65;
    letter-spacing: -0.006em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }

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

.skip-link {
    position: fixed; top: -60px; left: 1rem; z-index: 200;
    background: var(--accent); color: #fff;
    padding: .7rem 1.2rem; border-radius: var(--radius);
    transition: top .25s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* 2. LAYOUT ─────────────────────────────────────────────────────────────── */
.shell {
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.shell--narrow { max-width: 780px; }
.shell--mid    { max-width: 1000px; }

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3.5rem, 7vw, 6rem); }

/* Paper (light) section, inverts the palette for editorial rhythm */
.section--paper {
    background: var(--paper);
    color: var(--paper-ink);
}
.section--paper .eyebrow { color: var(--accent-2); }
.section--paper .eyebrow::before { background: var(--accent-2); }
.section--paper .muted,
.section--paper .lede { color: #565247; }
.section--paper hr,
.section--paper .rule { border-color: rgba(22, 21, 15, .14); }

.divider { border: 0; border-top: 1px solid var(--line); }

/* 3. HEADER / NAV ───────────────────────────────────────────────────────── */
.masthead {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
    border-bottom: 1px solid transparent;
}
.masthead.is-stuck {
    background: rgba(11, 11, 12, .78);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    border-bottom-color: var(--line-soft);
}
.masthead__inner {
    display: flex; align-items: center; gap: 2rem;
    height: 84px;
}
.brand img { height: 38px; width: auto; }

.nav {
    display: flex; align-items: center; gap: .35rem;
    margin-left: auto;
}
.nav__link {
    position: relative;
    font-size: .82rem; font-weight: 500;
    letter-spacing: .02em;
    color: var(--muted);
    padding: .55rem .85rem;
    transition: color .3s var(--ease);
}
.nav__link::after {
    content: ''; position: absolute; left: .85rem; right: .85rem; bottom: .35rem;
    height: 1px; background: var(--accent);
    transform: scaleX(0); transform-origin: left;
    transition: transform .35s var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after { transform: scaleX(1); }

.masthead__cta { margin-left: .5rem; }

/* Dropdown (Diensten) */
.nav__item { position: relative; display: flex; align-items: center; }
.nav__item--menu > .nav__link { display: inline-flex; align-items: center; gap: .35rem; }
.nav__chev { transition: transform .3s var(--ease); }
.nav__item--menu:hover .nav__chev,
.nav__item--menu:focus-within .nav__chev { transform: rotate(180deg); }
.nav__menu {
    position: absolute; top: 100%; left: -.4rem;
    min-width: 310px; padding: .5rem;
    background: rgba(16, 16, 19, .97);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
    display: grid; gap: .1rem;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
    z-index: 60;
}
.nav__item--menu:hover .nav__menu,
.nav__item--menu:focus-within .nav__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__menu-link { display: grid; gap: .15rem; padding: .7rem .8rem; border-radius: var(--radius); transition: background .25s var(--ease); }
.nav__menu-link:hover { background: rgba(255, 255, 255, .05); }
.nav__menu-title { font-size: .92rem; font-weight: 500; color: var(--text); }
.nav__menu-sub { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.nav__menu-link:hover .nav__menu-sub { color: var(--accent); }
.nav__menu-all {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .75rem .8rem; margin-top: .2rem;
    font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--accent);
    border-top: 1px solid var(--line-soft);
}
.nav__menu-all svg { transition: transform .3s var(--ease); }
.nav__menu-all:hover svg { transform: translateX(3px); }

.burger {
    display: none;
    width: 44px; height: 44px;
    margin-left: auto;
    position: relative;
}
.burger span {
    position: absolute; left: 11px; right: 11px; height: 1.5px;
    background: var(--text); transition: transform .35s var(--ease), opacity .3s;
}
.burger span:first-child { top: 18px; }
.burger span:last-child  { bottom: 18px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { transform: translateY(-4px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
    position: fixed; inset: 0 0 0 auto; z-index: 120;
    width: min(400px, 88vw);
    background: var(--ink-2);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform .5s var(--ease);
    overflow-y: auto;
    padding: 1.6rem var(--gutter) 2.5rem;
}
.drawer.is-open { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.drawer__head .brand img { height: 34px; }
.drawer__close {
    width: 44px; height: 44px; flex: none;
    display: grid; place-items: center;
    border: 1px solid var(--line); border-radius: 50%;
    color: var(--text); transition: border-color .3s, color .3s, transform .3s var(--ease);
}
.drawer__close:hover { border-color: var(--accent); color: var(--accent); transform: rotate(90deg); }
.drawer__nav { display: flex; flex-direction: column; gap: .2rem; }
.drawer__link {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 0; font-size: 1.35rem;
    font-family: var(--font-display); font-weight: 400;
    border-bottom: 1px solid var(--line-soft);
    color: var(--text);
    transition: color .3s, padding-left .35s var(--ease);
}
.drawer__link svg { color: var(--muted-2); transition: transform .35s var(--ease), color .3s; }
.drawer__link:hover { padding-left: .5rem; }
.drawer__link:hover svg,
.drawer__link.is-active svg { color: var(--accent); transform: translateX(4px); }
.drawer__sub { display: grid; padding: .5rem 0 1rem; }
.drawer__sublink {
    padding: .6rem 0 .6rem 1.1rem; margin-left: .1rem;
    color: var(--muted); font-size: 1.02rem;
    border-left: 1px solid var(--line);
    transition: color .25s, border-color .25s, padding-left .3s var(--ease);
}
.drawer__sublink:hover { color: var(--text); border-color: var(--accent); padding-left: 1.4rem; }
.drawer__meta { margin-top: 2rem; display: flex; flex-direction: column; gap: .5rem; color: var(--muted); font-size: .9rem; }
.drawer-scrim {
    position: fixed; inset: 0; z-index: 110;
    background: rgba(0, 0, 0, .55);
    opacity: 0; transition: opacity .4s var(--ease);
}
.drawer-scrim.is-open { opacity: 1; }

/* 4. TYPOGRAPHY ─────────────────────────────────────────────────────────── */
.display {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -0.03em;
    text-wrap: balance;
}
.display--xl { font-size: clamp(2.9rem, 8vw, 6.2rem); font-weight: 400; }
.display--lg { font-size: clamp(2.3rem, 5.5vw, 4.2rem); }
.display--md { font-size: clamp(1.9rem, 3.6vw, 3rem); }
/* Space Grotesk has no italic, emphasis is carried by colour + weight */
.display em, .accent { font-style: normal; color: var(--accent); font-weight: 500; }
.display--paper em { color: var(--accent-2); }

.eyebrow {
    display: inline-flex; align-items: center; gap: .7rem;
    font-size: .74rem; font-weight: 600;
    letter-spacing: .22em; text-transform: uppercase;
    color: var(--accent);
}
.eyebrow::before {
    content: ''; width: 26px; height: 1px; background: var(--accent);
}
.eyebrow--plain::before { display: none; }

.lede {
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    line-height: 1.6; color: var(--muted);
    font-weight: 400; letter-spacing: -0.01em;
    max-width: 46ch;
}
.muted { color: var(--muted); }
.prose p { color: var(--muted); }
.prose p + p { margin-top: 1.1rem; }

/* 5. BUTTONS ────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: .6rem;
    font-size: .82rem; font-weight: 600; letter-spacing: .04em;
    padding: .95rem 1.6rem;
    border-radius: var(--radius);
    position: relative; overflow: hidden;
    transition: transform .3s var(--ease), color .3s var(--ease), background .3s var(--ease), border-color .3s;
    white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--solid { background: var(--accent); color: #fff; }
.btn--solid:hover { background: var(--accent-2); }

.btn--line {
    border: 1px solid var(--line); color: var(--text);
}
.btn--line:hover { border-color: var(--text); background: rgba(255, 255, 255, .04); }
.section--paper .btn--line { border-color: rgba(22, 21, 15, .22); color: var(--paper-ink); }
.section--paper .btn--line:hover { border-color: var(--paper-ink); background: rgba(22, 21, 15, .05); }

.btn--ghost { color: var(--text); padding-inline: .4rem; }
.btn--ghost::after {
    content: ''; position: absolute; left: .4rem; right: .4rem; bottom: .7rem;
    height: 1px; background: currentColor; transform: scaleX(.0); transform-origin: left;
    transition: transform .4s var(--ease);
}
.btn--ghost:hover::after { transform: scaleX(1); }
.section--paper .btn--ghost { color: var(--paper-ink); }

.btn--block { width: 100%; justify-content: center; }
.btn--lg { padding: 1.1rem 2rem; font-size: .88rem; }

.actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* 6. SECTION HEADER ─────────────────────────────────────────────────────── */
.s-head { max-width: 640px; }
.s-head .eyebrow { margin-bottom: 1.4rem; }
.s-head .display { margin-bottom: 1.4rem; }
.s-head--split {
    display: grid; grid-template-columns: 1fr auto;
    align-items: end; gap: 2rem; max-width: none;
}
.s-head--center { max-width: 720px; margin-inline: auto; text-align: center; }
.s-head--center .eyebrow { justify-content: center; }
.s-head--center .lede { margin-inline: auto; }

/* 7. HERO ───────────────────────────────────────────────────────────────── */
.hero {
    position: relative; min-height: 100svh;
    display: flex; align-items: flex-end;
    padding-top: 84px;
    isolation: isolate; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img, .hero__media .ph {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, rgba(11,11,12,.55) 0%, rgba(11,11,12,.15) 30%, rgba(11,11,12,.75) 82%, var(--ink) 100%),
        linear-gradient(90deg, rgba(11,11,12,.8) 0%, rgba(11,11,12,.2) 55%, transparent 100%);
}
.hero__inner { width: 100%; padding-block: clamp(3rem, 8vh, 7rem); }
.hero .eyebrow { margin-bottom: 1.8rem; }
.hero__title { margin-bottom: 1.8rem; max-width: 15ch; }
.hero__lede { margin-bottom: 2.4rem; }
.hero__meta {
    display: flex; flex-wrap: wrap; gap: 1.4rem 2.4rem; align-items: center;
    margin-top: 3.2rem; padding-top: 1.8rem;
    border-top: 1px solid var(--line);
    color: var(--muted); font-size: .85rem;
}
.hero__meta strong { color: var(--text); font-weight: 600; }
.stars { color: var(--accent); letter-spacing: .1em; }

/* Page hero (interior pages) */
.phero { padding-top: calc(84px + clamp(3rem, 8vw, 6rem)); padding-bottom: clamp(2.5rem, 5vw, 4rem); position: relative; }
.phero__index { font-family: var(--font-display); font-size: clamp(3rem,7vw,5rem); color: var(--line); line-height: 1; margin-bottom: 1rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .78rem; color: var(--muted-2); margin-bottom: 2rem; }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs span[aria-current] { color: var(--muted); }
.breadcrumbs .sep { color: var(--line); }

/* 8. MEDIA / PLACEHOLDER ────────────────────────────────────────────────── */
.media {
    position: relative; overflow: hidden;
    background: var(--ink-2); border-radius: var(--radius-lg);
}
.media > img, .media > .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--3x2 { aspect-ratio: 3 / 2; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--3x4 { aspect-ratio: 3 / 4; }
.media--16x9 { aspect-ratio: 16 / 9; }

.media--zoom img { transition: transform 1.1s var(--ease); }
.media--zoom:hover img { transform: scale(1.06); }

/* Before / after slider */
.ba {
    position: relative; aspect-ratio: 16 / 9; overflow: hidden;
    border-radius: var(--radius-lg); user-select: none; touch-action: none;
    cursor: ew-resize; background: var(--ink-2);
}
.ba__after, .ba__before { position: absolute; inset: 0; }
.ba__after img, .ba__after .ph, .ba__before img, .ba__before .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__before { clip-path: inset(0 50% 0 0); }
.ba__tag {
    position: absolute; top: 1rem; z-index: 2;
    font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
    background: rgba(11,11,12,.72); backdrop-filter: blur(8px);
    color: var(--text); padding: .45rem .8rem; border-radius: var(--radius);
}
.ba__tag--before { left: 1rem; }
.ba__tag--after { right: 1rem; }
.ba__handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--accent); z-index: 3; transform: translateX(-50%); }
.ba__handle span {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--accent); border: 3px solid #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,.45);
    display: grid; place-items: center;
}
.ba__handle span::before, .ba__handle span::after { content: ''; width: 0; height: 0; border-block: 5px solid transparent; position: absolute; }
.ba__handle span::before { border-right: 7px solid #fff; left: 9px; }
.ba__handle span::after { border-left: 7px solid #fff; right: 9px; }

/* Graceful placeholder, reads as an intentional panel, never "broken" */
.ph {
    display: grid; place-items: center; width: 100%; height: 100%;
    background:
        radial-gradient(120% 100% at 50% 0%, rgba(255,255,255,.04), transparent 60%),
        repeating-linear-gradient(135deg, rgba(255,255,255,.015) 0 2px, transparent 2px 9px),
        linear-gradient(150deg, #16161a 0%, #0e0e11 100%);
    color: rgba(255,255,255,.14);
    position: relative;
}
.ph__mark {
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(1.6rem, 4vw, 2.6rem); letter-spacing: .1em;
    color: rgba(255,255,255,.12);
}
.ph__label {
    position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center;
    font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
    color: rgba(255,255,255,.22);
}
.section--paper .ph { background:
        repeating-linear-gradient(135deg, rgba(0,0,0,.02) 0 2px, transparent 2px 9px),
        linear-gradient(150deg, #e4e0d5 0%, #d9d4c7 100%); }
.section--paper .ph__mark { color: rgba(22,21,15,.16); }
.section--paper .ph__label { color: rgba(22,21,15,.35); }

/* 9. SERVICES ───────────────────────────────────────────────────────────── */
.svc-list { border-top: 1px solid var(--line); margin-top: clamp(2.5rem, 5vw, 4rem); }
.svc-row {
    display: grid; grid-template-columns: auto 1.1fr 1.4fr auto;
    gap: clamp(1rem, 4vw, 3rem); align-items: center;
    padding: clamp(1.8rem, 3.5vw, 2.8rem) 0;
    border-bottom: 1px solid var(--line);
    transition: padding-left .5s var(--ease);
}
.svc-row:hover { padding-left: clamp(.5rem, 1.5vw, 1.4rem); }
.svc-row__idx { font-family: var(--font-display); font-size: 1.1rem; color: var(--muted-2); }
.svc-row__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.1; letter-spacing: -0.01em; }
.svc-row__title span { display: block; font-family: var(--font-text); font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: .7rem; }
.svc-row__desc { color: var(--muted); font-size: .98rem; max-width: 42ch; }
.svc-row__go {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 50%;
    color: var(--muted); transition: all .4s var(--ease);
}
.svc-row:hover .svc-row__go { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(-45deg); }
.svc-row__go svg { width: 20px; height: 20px; }

/* Service benefit / feature cards (used on service pages, why section) */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.feature {
    background: var(--ink); padding: clamp(1.6rem, 2.6vw, 2.4rem);
    transition: background .4s var(--ease);
}
.feature:hover { background: var(--ink-2); }
.feature__idx { font-size: .74rem; letter-spacing: .2em; color: var(--muted-2); margin-bottom: 1.6rem; }
.feature h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; line-height: 1.15; margin-bottom: .7rem; }
.feature p { color: var(--muted); font-size: .95rem; }
.section--paper .feature-grid { background: rgba(22,21,15,.12); border-color: rgba(22,21,15,.12); }
.section--paper .feature { background: var(--paper); }
.section--paper .feature:hover { background: var(--paper-2); }
.section--paper .feature p { color: #565247; }

/* Editorial two-col intro block */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.split--wide-media { grid-template-columns: 1.15fr 1fr; }
.split__media { position: relative; }
.split__tag {
    position: absolute; bottom: 1rem; left: 1rem;
    background: rgba(11,11,12,.7); backdrop-filter: blur(8px);
    color: var(--text); font-size: .72rem; letter-spacing: .15em; text-transform: uppercase;
    padding: .5rem .9rem; border-radius: var(--radius);
}

.stat-row { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 5vw, 3.5rem); margin-top: 2.5rem; }
.stat { }
.stat__num { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; letter-spacing: -0.02em; }
.stat__num .unit { color: var(--accent); }
.stat__label { color: var(--muted); font-size: .82rem; margin-top: .5rem; letter-spacing: .02em; }

/* Included list (checklist) */
.checklist { display: grid; gap: .9rem; }
.checklist li { display: flex; gap: .9rem; align-items: flex-start; color: var(--muted); }
.checklist svg { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: .15rem; }
.checklist li strong { color: var(--text); font-weight: 500; }
.section--paper .checklist li { color: #565247; }
.section--paper .checklist li strong { color: var(--paper-ink); }

/* Meta chips (duration / price / warranty) */
.chips { display: flex; flex-wrap: wrap; gap: .8rem; }
.chip {
    display: inline-flex; flex-direction: column; gap: .2rem;
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: .8rem 1.1rem; min-width: 130px;
}
.chip span { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); }
.chip strong { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; }
.section--paper .chip { border-color: rgba(22,21,15,.16); }

/* 10. PROCESS / STEPS ───────────────────────────────────────────────────── */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
    display: grid; grid-template-columns: auto 1fr; gap: clamp(1.2rem, 3vw, 2.4rem);
    padding: clamp(1.6rem, 3vw, 2.2rem) 0;
    border-top: 1px solid var(--line);
    align-items: baseline;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num {
    counter-increment: step;
    font-family: var(--font-display); font-size: 1rem; color: var(--accent);
    font-variant-numeric: tabular-nums;
}
.step__num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin-bottom: .5rem; }
.step p { color: var(--muted); max-width: 54ch; }
.section--paper .step p { color: #565247; }

/* 11. PORTFOLIO ─────────────────────────────────────────────────────────── */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.2rem, 3vw, 2.4rem); }
.work {
    display: block; position: relative;
}
.work__media { margin-bottom: 1.2rem; }
.work__cat { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.work__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.1; margin: .5rem 0 .4rem; transition: color .3s; }
.work:hover .work__title { color: var(--accent); }
.work__vehicle { color: var(--muted); font-size: .9rem; }
.work__foot { display: flex; justify-content: space-between; align-items: center; margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted-2); }
.work:nth-child(3n+1) { grid-column: span 2; }
.work:nth-child(3n+1) .work__media { aspect-ratio: 21 / 9; }

/* Project gallery */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(.8rem, 2vw, 1.4rem); }
.gallery > * { grid-column: span 6; }
.gallery > *:first-child { grid-column: span 12; }

/* 12. TESTIMONIALS ──────────────────────────────────────────────────────── */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 1.8rem); }
.quote {
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: clamp(1.6rem, 3vw, 2.2rem);
    display: flex; flex-direction: column; gap: 1.4rem;
    transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.quote:hover { border-color: rgba(255,255,255,.2); transform: translateY(-4px); }
.quote__stars { color: var(--accent); font-size: .95rem; letter-spacing: .1em; }
.quote__text { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.4; color: var(--text); }
.quote__by { display: flex; align-items: center; gap: .9rem; margin-top: auto; }
.quote__avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent); font-weight: 600; font-size: 1rem; flex: none; }
.quote__by strong { display: block; font-weight: 600; font-size: .92rem; }
.quote__by span { color: var(--muted-2); font-size: .8rem; }
.section--paper .quote { border-color: rgba(22,21,15,.14); }
.section--paper .quote__text { color: var(--paper-ink); }

/* 13. FAQ ───────────────────────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
    width: 100%; text-align: left;
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
    padding: clamp(1.3rem, 2.5vw, 1.8rem) 0;
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.25;
    transition: color .3s;
}
.faq__q:hover { color: var(--accent); }
.faq__icon { flex: none; width: 26px; height: 26px; position: relative; }
.faq__icon::before, .faq__icon::after { content: ''; position: absolute; top: 50%; left: 50%; width: 13px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .4s var(--ease); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__q[aria-expanded="true"] { color: var(--accent); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq__a { overflow: hidden; max-height: 0; transition: max-height .5s var(--ease); }
.faq__a p { color: var(--muted); max-width: 68ch; padding-bottom: clamp(1.3rem, 2.5vw, 1.8rem); }
.section--paper .faq__a p { color: #565247; }

/* 14. CALCULATOR ────────────────────────────────────────────────────────── */
.calc {
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    background: var(--ink-2); overflow: hidden;
    max-width: 940px; margin-inline: auto;
}
.calc__head {
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1.4rem clamp(1.2rem, 3vw, 2.2rem);
    border-bottom: 1px solid var(--line);
}
.stepper { display: flex; align-items: center; gap: .6rem; }
.stepper__dot { display: flex; align-items: center; gap: .55rem; color: var(--muted-2); font-size: .78rem; }
.stepper__dot b { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: .72rem; font-weight: 600; transition: all .3s var(--ease); }
.stepper__dot.is-active { color: var(--text); }
.stepper__dot.is-active b { background: var(--accent); border-color: var(--accent); color: #fff; }
.stepper__dot.is-done b { background: var(--text); border-color: var(--text); color: var(--ink); }
.stepper__dot .lbl { display: none; }
.stepper__line { width: 22px; height: 1px; background: var(--line); }
.stepper__line.is-done { background: var(--accent); }
.calc__price { text-align: right; }
.calc__price span { display: block; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); }
.calc__price strong { font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; color: var(--accent); }

.calc__body { padding: clamp(1.4rem, 3.5vw, 2.6rem); position: relative; }
.calc__panel { display: none; animation: fade .5s var(--ease); }
.calc__panel.is-active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes shake { 10%,90%{transform:translateX(-1px);} 30%,70%{transform:translateX(3px);} 50%{transform:translateX(-4px);} }
.calc__panel.shake { animation: shake .42s var(--ease); }
.calc__ptitle { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.3rem, 2.4vw, 1.8rem); margin-bottom: .4rem; }
.calc__psub { color: var(--muted); font-size: .92rem; margin-bottom: 1.6rem; }

.opt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; margin-top: 1.4rem; }
.opt-grid--list { grid-template-columns: 1fr; }
@media (min-width: 620px) { .opt-grid--list { grid-template-columns: 1fr 1fr; } }
.opt {
    text-align: left; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .35rem;
    transition: border-color .3s, background .3s, transform .2s;
    position: relative;
}
.opt:hover { border-color: rgba(255,255,255,.24); }
.opt.is-selected { border-color: var(--accent); background: var(--accent-tint); }
.opt__icon { color: var(--muted); margin-bottom: .5rem; }
.opt.is-selected .opt__icon { color: var(--accent); }
.opt strong { font-weight: 600; font-size: .95rem; }
.opt small { color: var(--muted-2); font-size: .8rem; }
.opt__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.opt__price { font-family: var(--font-display); font-size: 1.15rem; color: var(--text); }
.opt__price small { color: var(--muted-2); font-size: .7rem; }
.opt__tag { position: absolute; top: -1px; right: -1px; background: var(--accent); color: #fff; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; padding: .25rem .55rem; border-radius: 0 var(--radius) 0 var(--radius); }
.opt__check { width: 20px; height: 20px; border: 1px solid var(--line); border-radius: 4px; display: grid; place-items: center; flex: none; transition: all .3s; }
.opt.is-selected .opt__check { background: var(--accent); border-color: var(--accent); }
.opt.is-selected .opt__check::after { content: ''; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-1px); }
.opt--row { flex-direction: row; align-items: center; gap: 1rem; }
.opt--row > div { flex: 1; }

.calc__summary { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 1.8rem; }
.calc__summary .row { background: var(--ink-2); padding: 1rem 1.2rem; }
.calc__summary .row--wide { grid-column: 1 / -1; }
.calc__summary .row--total { grid-column: 1 / -1; background: var(--accent-tint); display: flex; justify-content: space-between; align-items: baseline; }
.calc__summary .k { display: block; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); margin-bottom: .3rem; }
.calc__summary .v { font-weight: 500; }
.calc__summary .row--total .v { font-family: var(--font-display); font-size: 1.5rem; color: var(--accent); }

.calc__foot { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem clamp(1.4rem, 3.5vw, 2.6rem); border-top: 1px solid var(--line); }

/* 15. FORMS ─────────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.1rem; }
.field label { font-size: .78rem; letter-spacing: .04em; color: var(--muted); }
.field input, .field textarea {
    background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
    padding: .9rem 1rem; color: var(--text); width: 100%;
    transition: border-color .3s, background .3s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--ink-2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-note { font-size: .82rem; color: var(--muted-2); margin-top: 1rem; }
.form-msg { margin-top: 1rem; padding: 1rem 1.2rem; border-radius: var(--radius); font-size: .9rem; display: none; }
.form-msg.is-visible { display: block; }
.form-msg--ok { background: rgba(46, 160, 90, .12); color: #6ee7a0; border: 1px solid rgba(46,160,90,.3); }
.form-msg--err { background: var(--accent-tint); color: #ff8b93; border: 1px solid rgba(225,29,42,.3); }
.section--paper .field input, .section--paper .field textarea { background: #fff; border-color: rgba(22,21,15,.16); color: var(--paper-ink); }

/* Contact meta list */
.contact-list { display: grid; gap: 1.4rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: .2rem; }
.contact-list .k { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); margin-bottom: .2rem; }
.contact-list a:hover { color: var(--accent); }
.hours { display: grid; gap: .5rem; }
.hours .row { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line-soft); font-size: .92rem; }
.hours .row span:first-child { color: var(--muted); }
.map-frame { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05) brightness(.85); }

/* CTA band */
.cta-band {
    display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
    padding: clamp(2.5rem, 5vw, 4rem);
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    background: radial-gradient(120% 160% at 100% 0%, rgba(225,29,42,.1), transparent 55%), var(--ink-2);
}
.cta-band h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.05; letter-spacing: -0.02em; max-width: 18ch; }

/* 16. FOOTER ────────────────────────────────────────────────────────────── */
.footer { background: var(--ink-2); border-top: 1px solid var(--line); padding-block: clamp(3.5rem, 6vw, 5.5rem) 2rem; }
.footer__top { display: grid; grid-template-columns: 1.4fr 2fr; gap: clamp(2rem, 5vw, 4rem); padding-bottom: 3rem; border-bottom: 1px solid var(--line); }
.footer__brand img { height: 44px; margin-bottom: 1.4rem; }
.footer__tag { color: var(--muted); max-width: 30ch; margin-bottom: 1.6rem; }
.footer__social { display: flex; gap: .7rem; }
.footer__social a { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: all .3s var(--ease); }
.footer__social a:hover { border-color: var(--accent); color: var(--accent); }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer__col h3 { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 1.2rem; }
.footer__col a, .footer__col span { display: block; color: var(--muted); font-size: .92rem; padding: .35rem 0; transition: color .3s; }
.footer__col a:hover { color: var(--text); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding-top: 2rem; color: var(--muted-2); font-size: .82rem; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer__legal a:hover { color: var(--text); }

/* WhatsApp float */
.whatsapp-fab {
    position: fixed; right: clamp(1rem, 3vw, 1.8rem); bottom: clamp(1rem, 3vw, 1.8rem); z-index: 90;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25d366; color: #fff;
    display: grid; place-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,.4);
    transition: transform .35s var(--ease);
}
.whatsapp-fab:hover { transform: scale(1.08) translateY(-2px); }

/* 17. BLOG / ARTICLE ────────────────────────────────────────────────────── */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 3vw, 2.2rem); }
.post-card { display: flex; flex-direction: column; }
.post-card__media { margin-bottom: 1.2rem; }
.post-card__meta { display: flex; gap: .8rem; align-items: center; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: .7rem; }
.post-card__cat { color: var(--accent); }
.post-card__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.15; margin-bottom: .6rem; transition: color .3s; }
.post-card:hover .post-card__title { color: var(--accent); }
.post-card__excerpt { color: var(--muted); font-size: .92rem; }
.post-card--lead { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.post-card--lead .post-card__media { margin-bottom: 0; aspect-ratio: 16/10; }
.post-card--lead .post-card__title { font-size: clamp(1.7rem, 3vw, 2.6rem); }

.article { max-width: 720px; margin-inline: auto; }
.article__body { font-size: 1.08rem; line-height: 1.8; }
.article__body p { color: #cdccc7; margin-bottom: 1.5rem; }
.article__body h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; margin: 2.6rem 0 1rem; letter-spacing: -0.01em; }
.article__body ul { margin: 0 0 1.5rem; display: grid; gap: .7rem; }
.article__body ul li { position: relative; padding-left: 1.5rem; color: #cdccc7; }
.article__body ul li::before { content: ''; position: absolute; left: 0; top: .65em; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }
.article__body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article__body strong { color: var(--text); }

/* 18. REVEAL ────────────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* 19. RESPONSIVE ────────────────────────────────────────────────────────── */
@media (min-width: 720px) {
    .stepper__dot .lbl { display: inline; }
}

@media (max-width: 1000px) {
    .nav, .masthead__cta { display: none; }
    .burger { display: block; }
    .split, .split--wide-media { grid-template-columns: 1fr; gap: clamp(2rem, 6vw, 2.5rem); }
    .footer__top { grid-template-columns: 1fr; }
    .cta-band { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .svc-row { grid-template-columns: auto 1fr auto; }
    .svc-row__desc { display: none; }
    .quotes { grid-template-columns: 1fr; }
    .post-grid { grid-template-columns: 1fr; }
    .post-card--lead { grid-template-columns: 1fr; }
    .post-card--lead .post-card__media { aspect-ratio: 16/9; }
    .work-grid { grid-template-columns: 1fr; }
    .work:nth-child(3n+1) { grid-column: auto; }
    .work:nth-child(3n+1) .work__media { aspect-ratio: 3/2; }
    .s-head--split { grid-template-columns: 1fr; align-items: start; gap: 1.4rem; }
    .field-row { grid-template-columns: 1fr; }
    .calc__summary { grid-template-columns: 1fr; }
    .gallery > * { grid-column: span 12 !important; }
}

/* ── Phones ─────────────────────────────────────────────── */
@media (max-width: 560px) {
    :root { --section: clamp(3.5rem, 12vw, 5rem); }

    .masthead__inner { height: 68px; }
    .brand img { height: 32px; }

    /* Rein in oversized display type on small screens */
    .display--xl { font-size: clamp(2.6rem, 13vw, 3.4rem); }
    .display--lg { font-size: clamp(2.1rem, 10vw, 2.8rem); }
    .display--md { font-size: clamp(1.7rem, 8vw, 2.2rem); }

    .hero { min-height: 88svh; padding-top: 68px; }
    .hero__title { max-width: 100%; }
    .hero__meta { flex-direction: column; align-items: flex-start; gap: .7rem; margin-top: 2.2rem; padding-top: 1.4rem; }

    .phero { padding-top: calc(68px + clamp(2rem, 9vw, 3.5rem)); }
    .phero__index { font-size: clamp(2.4rem, 14vw, 3.4rem); }

    .actions { gap: .7rem; }
    .actions .btn { flex: 1 1 auto; justify-content: center; }
    .btn { padding: .9rem 1.2rem; }
    .btn--lg { padding: 1rem 1.3rem; }

    .feature { padding: 1.4rem 1.3rem; }
    .stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 1.2rem; }
    .cta-band { padding: 2rem 1.5rem; text-align: left; }

    .calc__head { gap: 1rem; }
    .stepper { gap: .4rem; }
    .stepper__line { width: 12px; }
    .calc__price { text-align: left; }
    .calc__price strong { font-size: 1.5rem; }

    .footer__cols { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .footer__bottom { flex-direction: column; align-items: flex-start; gap: .8rem; }
    .whatsapp-fab { width: 52px; height: 52px; }
}

@media (max-width: 380px) {
    .footer__cols { grid-template-columns: 1fr; }
    .chip { min-width: 0; flex: 1 1 100%; }
}

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