/* =========================================================================
   Centre Auto VIP — Stylesheet
   Modern minimal aesthetic. Red/black brand accent, generous whitespace.
   ======================================================================== */

:root {
    /* Brand */
    --red:         #c8102e;
    --red-dark:    #9c0c24;
    --red-soft:    #fff0f2;

    /* Neutrals */
    --ink:         #0f0f10;
    --ink-2:       #2a2a2e;
    --muted:       #6b6b70;
    --line:        #e6e6e9;
    --surface:     #ffffff;
    --surface-2:   #f7f7f8;
    --surface-3:   #eceef1;

    /* Type */
    --f-sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --f-display: "Manrope", "Inter", system-ui, sans-serif;

    /* Layout */
    --container: 1200px;
    --gutter: 24px;
    --radius: 14px;
    --radius-sm: 8px;

    /* Shadow */
    --shadow-sm: 0 1px 2px rgba(15,15,16,.06), 0 1px 1px rgba(15,15,16,.04);
    --shadow:    0 6px 24px rgba(15,15,16,.08), 0 2px 6px rgba(15,15,16,.04);
    --shadow-lg: 0 24px 60px -12px rgba(15,15,16,.22);

    /* Motion */
    --ease: cubic-bezier(.2,.7,.2,1);
    --dur: 280ms;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--f-sans);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }

h1, h2, h3, h4 {
    font-family: var(--f-display);
    line-height: 1.15;
    margin: 0 0 .4em;
    letter-spacing: -.01em;
    color: var(--ink);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }

p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--ink-2); line-height: 1.55; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 16px;
}
.eyebrow::before {
    content: "";
    display: inline-block; width: 24px; height: 2px; background: var(--red);
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* skip-link */
.skip-link {
    position: absolute; left: -9999px;
    background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 6px;
    z-index: 9999;
}
.skip-link:focus { left: 12px; top: 12px; color: #fff; }

/* =========================================================================
   Buttons
   ======================================================================== */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 24px;
    font-family: var(--f-sans); font-weight: 600; font-size: .95rem;
    line-height: 1;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform var(--dur) var(--ease), background var(--dur), color var(--dur), border-color var(--dur), box-shadow var(--dur);
    white-space: nowrap;
}
.btn-primary {
    background: var(--red); color: #fff;
    box-shadow: 0 8px 20px -8px rgba(200,16,46,.5);
}
.btn-primary:hover { background: var(--red-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost {
    background: transparent; color: var(--ink); border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); color: #fff; transform: translateY(-1px); }

.btn svg { stroke: currentColor; }

/* =========================================================================
   Header / Nav
   ======================================================================== */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--dur), background var(--dur), box-shadow var(--dur);
}
.site-header.scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 4px 20px rgba(0,0,0,.04);
}

.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px;
    min-height: 76px;
}

.brand {
    display: flex; align-items: center; gap: 12px;
    flex-shrink: 0;
}
.brand img {
    width: 48px; height: 48px; object-fit: contain;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--f-display); font-weight: 800; font-size: 1rem; letter-spacing: -.01em; }
.brand-name strong { color: var(--red); }
.brand-sub { font-size: .72rem; color: var(--muted); max-width: 240px; }

.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    background: transparent; border: none; cursor: pointer;
    flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    padding: 0;
}
.nav-toggle span {
    display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
    transition: transform var(--dur) var(--ease), opacity var(--dur);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav {
    display: flex; align-items: center; gap: 32px;
    flex: 1; justify-content: flex-end;
}
.nav-list {
    display: flex; align-items: center; gap: 4px;
    list-style: none; margin: 0; padding: 0;
}
.nav-list > li { position: relative; }
.nav-list > li > a {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 14px; border-radius: 8px;
    font-size: .95rem; font-weight: 500;
    transition: background var(--dur), color var(--dur);
}
.nav-list > li > a:hover,
.nav-list > li > a[aria-current="page"] {
    background: var(--surface-2); color: var(--ink);
}
.nav-list > li > a[aria-current="page"] { color: var(--red); }

.has-sub-toggle svg { transition: transform var(--dur) var(--ease); }
.has-sub:hover .has-sub-toggle svg,
.has-sub:focus-within .has-sub-toggle svg { transform: rotate(180deg); }

.sub-nav {
    position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
    min-width: 320px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 10px;
    list-style: none; margin: 0;
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translate(-50%, 8px);
    transition: opacity var(--dur), transform var(--dur), visibility var(--dur);
    z-index: 10;
}
.has-sub:hover .sub-nav,
.has-sub:focus-within .sub-nav {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translate(-50%, 0);
}
.sub-nav li a {
    display: block; padding: 10px 12px; border-radius: 8px;
    font-size: .92rem; font-weight: 500; color: var(--ink-2);
    transition: background var(--dur), color var(--dur);
}
.sub-nav li a:hover,
.sub-nav li a[aria-current="page"] {
    background: var(--surface-2); color: var(--red);
}

.nav-side { display: flex; align-items: center; gap: 14px; }

.nav-phone {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 600; font-size: .9rem;
    color: var(--ink);
}
.nav-phone svg { color: var(--red); }
.nav-phone:hover { color: var(--red); }

.lang-toggle {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .8rem; font-weight: 700; letter-spacing: .04em;
    color: var(--ink);
    transition: border-color var(--dur), color var(--dur), background var(--dur);
}
.lang-toggle:hover { border-color: var(--red); color: var(--red); background: var(--red-soft); }
.lang-current { color: var(--red); }
.lang-sep { color: var(--muted); font-weight: 400; }
.lang-other { color: var(--muted); }

/* =========================================================================
   Home Hero
   ======================================================================== */
.hero {
    position: relative; overflow: hidden;
    padding: clamp(60px, 10vh, 120px) 0 clamp(80px, 12vh, 160px);
    background: linear-gradient(180deg, #0f0f10 0%, #1a1a1e 100%);
    color: #fff;
    isolation: isolate;
}
.hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image: url('/assets/img/hero-main.jpg');
    background-size: cover; background-position: center;
    opacity: .35;
    z-index: -2;
}
.hero::after {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 30%, rgba(200,16,46,.25) 0%, transparent 60%),
        linear-gradient(180deg, rgba(15,15,16,.3) 0%, rgba(15,15,16,.85) 100%);
    z-index: -1;
}

.hero-inner { display: grid; gap: 24px; max-width: 860px; }
.hero h1 { color: #fff; }
.hero h1 strong { color: var(--red); font-weight: 800; }
.hero-subtitle {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    color: rgba(255,255,255,.85);
    max-width: 640px;
    margin: 0;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.hero .eyebrow { color: var(--red); }
.hero .eyebrow::before { background: var(--red); }

.hero-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,.12);
    max-width: 600px;
}
.hero-stat-n { font-family: var(--f-display); font-size: 2rem; font-weight: 800; color: #fff; line-height: 1; }
.hero-stat-l { font-size: .82rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .08em; margin-top: 6px; }

/* =========================================================================
   Sections
   ======================================================================== */
section { padding: clamp(72px, 10vh, 120px) 0; }
section.tight { padding: clamp(48px, 7vh, 80px) 0; }

.section-head {
    max-width: 720px; margin: 0 auto clamp(40px, 6vh, 64px); text-align: center;
}
.section-head .eyebrow { justify-content: center; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* =========================================================================
   Services Grid
   ======================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.service-card {
    position: relative;
    padding: 32px 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform var(--dur) var(--ease), border-color var(--dur), box-shadow var(--dur);
    display: flex; flex-direction: column; gap: 14px;
    overflow: hidden;
    isolation: isolate;
}
.service-card::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(200,16,46,.04), transparent 60%);
    opacity: 0; transition: opacity var(--dur);
    z-index: -1;
}
.service-card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: var(--shadow);
}
.service-card:hover::before { opacity: 1; }
.service-card:hover .service-icon { background: var(--red); }
.service-card:hover .service-icon img { filter: brightness(0) invert(1); }
.service-card:hover .service-arrow { transform: translateX(4px); color: var(--red); }

.service-icon {
    width: 56px; height: 56px;
    background: var(--surface-2);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--dur);
}
.service-icon img { width: 30px; height: 30px; transition: filter var(--dur); }
.service-card h3 { margin: 0; font-size: 1.2rem; }
.service-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.service-arrow {
    margin-top: auto;
    display: inline-flex; align-items: center; gap: 6px;
    font-weight: 600; font-size: .9rem;
    color: var(--ink-2);
    transition: transform var(--dur) var(--ease), color var(--dur);
}

/* =========================================================================
   About
   ======================================================================== */
.about { background: var(--surface-2); }
.about-grid {
    display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center;
}
.about-media {
    position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-lg);
}
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(200,16,46,.15));
}
.about-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}
.stat-n { font-family: var(--f-display); font-size: 1.85rem; font-weight: 800; color: var(--red); line-height: 1; }
.stat-l { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 6px; }

/* =========================================================================
   CTA Banner
   ======================================================================== */
.cta-banner {
    position: relative; padding: clamp(56px, 8vh, 88px) 0;
    background: var(--ink);
    color: #fff;
    overflow: hidden; isolation: isolate;
}
.cta-banner::before {
    content: ""; position: absolute; inset: 0;
    background-image: url('/assets/img/hero-cta.jpg');
    background-size: cover; background-position: center;
    opacity: .25;
    z-index: -2;
}
.cta-banner::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, var(--ink) 10%, rgba(15,15,16,.5) 70%, rgba(15,15,16,.2) 100%);
    z-index: -1;
}
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner .lead { color: rgba(255,255,255,.8); }
.cta-banner-inner { max-width: 720px; display: flex; flex-direction: column; gap: 16px; }
.cta-banner-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.cta-banner .btn-primary { background: var(--red); }
.cta-banner .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.cta-banner .btn-ghost:hover { border-color: #fff; color: #fff; }

/* =========================================================================
   Contact
   ======================================================================== */
.contact-grid {
    display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px;
    align-items: start;
}
.contact-info-card {
    background: var(--surface-2);
    padding: 36px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}
.contact-info-block { padding: 18px 0; border-top: 1px solid var(--line); }
.contact-info-block:first-of-type { border-top: none; padding-top: 0; }
.contact-info-h { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; margin-bottom: 6px; font-family: var(--f-sans); }
.contact-info-v { font-size: 1.05rem; font-weight: 500; color: var(--ink); }
.contact-info-v a { color: var(--ink); }
.contact-info-v a:hover { color: var(--red); }
.contact-hours-list { margin: 0; padding: 0; list-style: none; color: var(--ink-2); font-size: .95rem; }
.contact-hours-list li { padding: 2px 0; }

.contact-map {
    margin-top: 20px; height: 220px; border-radius: var(--radius-sm); overflow: hidden;
    border: 1px solid var(--line);
}
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Form */
.contact-form {
    background: #fff;
    padding: 36px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-row.single { grid-template-columns: 1fr; }
.form-field { position: relative; }
.form-field label {
    display: block;
    font-size: .82rem; font-weight: 600; color: var(--ink-2);
    margin-bottom: 6px;
}
.form-field label .req { color: var(--red); margin-left: 2px; }
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font: inherit; color: var(--ink);
    transition: border-color var(--dur), box-shadow var(--dur);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(200,16,46,.15);
}
.form-hp { position: absolute; left: -9999px; }

.form-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.form-hint { font-size: .82rem; color: var(--muted); margin: 0; }

.form-status {
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: .95rem; font-weight: 500;
}
.form-status.success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-status.error   { background: var(--red-soft); color: var(--red-dark); border: 1px solid #fecdd3; }

/* =========================================================================
   Service page (internal)
   ======================================================================== */
.service-hero {
    position: relative;
    padding: clamp(80px, 14vh, 140px) 0 clamp(56px, 9vh, 96px);
    color: #fff;
    isolation: isolate;
    background-color: var(--ink);
}
.service-hero::before {
    content: ""; position: absolute; inset: 0;
    background-image: var(--hero-img);
    background-size: cover; background-position: center;
    opacity: .4;
    z-index: -2;
}
.service-hero-overlay {
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(15,15,16,.55) 0%, rgba(15,15,16,.85) 100%);
}
.service-hero h1 { color: #fff; }
.service-hero-subtitle {
    font-size: 1.15rem; color: rgba(255,255,255,.85);
    margin: 0; max-width: 720px;
}
.service-hero-content { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.service-hero-icon {
    width: 64px; height: 64px;
    background: var(--red);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
}
.service-hero-icon img { filter: brightness(0) invert(1); width: 32px; height: 32px; }

.breadcrumbs {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    font-size: .88rem; color: rgba(255,255,255,.75);
}
.breadcrumbs a { color: rgba(255,255,255,.75); }
.breadcrumbs a:hover { color: #fff; }

.service-body { padding: clamp(60px, 9vh, 96px) 0; }
.service-body-grid {
    display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px;
    align-items: start;
}
.service-body-main .lead { font-size: 1.25rem; color: var(--ink); }
.service-body-main p { font-size: 1.05rem; color: var(--ink-2); line-height: 1.7; }

.service-list-h { margin-top: 40px; margin-bottom: 20px; font-size: 1.3rem; }
.service-list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 12px; }
.service-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; color: var(--ink-2); }
.service-list .check { flex-shrink: 0; margin-top: 3px; }

.service-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

.service-sidebar { display: grid; gap: 20px; position: sticky; top: 100px; }
.card {
    background: var(--surface-2);
    border: 1px solid var(--line);
    padding: 24px;
    border-radius: var(--radius);
}
.card h3 { font-size: 1rem; font-family: var(--f-sans); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin-bottom: 12px; }
.card p { font-size: .95rem; color: var(--ink-2); margin: 0; }
.card ul { margin: 0; padding: 0; list-style: none; }
.hours-list li { padding: 3px 0; font-size: .95rem; color: var(--ink-2); }
.related-list li { padding: 8px 0; border-top: 1px solid var(--line); }
.related-list li:first-child { border-top: none; padding-top: 0; }
.related-list a { font-weight: 500; color: var(--ink-2); display: flex; justify-content: space-between; align-items: center; }
.related-list a::after {
    content: "→";
    color: var(--muted);
    transition: transform var(--dur) var(--ease), color var(--dur);
}
.related-list a:hover { color: var(--red); }
.related-list a:hover::after { color: var(--red); transform: translateX(3px); }

/* =========================================================================
   Footer
   ======================================================================== */
.site-footer {
    background: var(--ink);
    color: rgba(255,255,255,.7);
    padding: 64px 0 32px;
    margin-top: 0;
}
.footer-grid {
    display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 48px;
}
.footer-col h4 {
    color: #fff;
    font-family: var(--f-sans);
    font-size: .82rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em;
    margin-bottom: 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: rgba(255,255,255,.7); font-size: .92rem; transition: color var(--dur); }
.footer-col a:hover { color: var(--red); }

.footer-brand .footer-logo {
    display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.footer-brand .footer-logo img { width: 56px; height: 56px; object-fit: contain; background: rgba(255,255,255,.06); border-radius: 12px; padding: 6px; }
.footer-brand .footer-logo span { font-family: var(--f-display); font-weight: 800; font-size: 1.05rem; color: #fff; }
.footer-tagline { font-size: .9rem; line-height: 1.6; max-width: 300px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
    width: 36px; height: 36px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--dur), border-color var(--dur), color var(--dur);
}
.footer-social a:hover { background: var(--red); border-color: var(--red); color: #fff; }

.footer-contact p { margin: 0 0 10px; font-size: .92rem; }
.footer-contact a { color: rgba(255,255,255,.9); }
.footer-hours { margin-top: 14px !important; gap: 4px !important; font-size: .88rem; }

.footer-payments {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.payments-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.5); font-weight: 600; }
.footer-payments img {
    height: 28px; width: auto;
    background: #fff; padding: 5px 8px; border-radius: 5px;
    filter: none;
}

.footer-bottom {
    margin-top: 24px; padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.1);
    text-align: center;
    font-size: .85rem;
    color: rgba(255,255,255,.5);
}
.footer-bottom p { margin: 0; }

/* =========================================================================
   Reveal on scroll
   ======================================================================== */
.reveal {
    opacity: 0; transform: translateY(20px);
    transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* =========================================================================
   Responsive
   ======================================================================== */
@media (max-width: 960px) {
    .brand-sub { display: none; }
    .about-grid, .contact-grid, .service-body-grid { grid-template-columns: 1fr; gap: 40px; }
    .service-sidebar { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .hero-stats { max-width: none; }
}

@media (max-width: 820px) {
    .nav-toggle { display: flex; order: 2; }
    .primary-nav {
        position: fixed; inset: 76px 0 0 0;
        background: #fff;
        padding: 24px var(--gutter) 80px;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 16px;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform var(--dur) var(--ease);
        border-top: 1px solid var(--line);
    }
    .primary-nav.open { transform: translateX(0); }
    .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-list > li { border-bottom: 1px solid var(--line); }
    .nav-list > li > a { padding: 16px 4px; font-size: 1.05rem; }
    .has-sub-toggle svg { margin-left: auto; }
    .sub-nav {
        position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
        box-shadow: none; border: none; background: var(--surface-2); border-radius: 8px;
        padding: 6px; margin: 0 0 10px; min-width: 0;
        display: none;
    }
    .has-sub.open .sub-nav { display: block; }
    .nav-side { flex-wrap: wrap; margin-top: 16px; justify-content: space-between; }
    .nav-phone { font-size: 1rem; }
}

@media (max-width: 640px) {
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .about-stats { grid-template-columns: 1fr 1fr; }
    .contact-form, .contact-info-card { padding: 24px; }
    .brand-text { display: none; }
}
