/* ==========================================================
   1 Stop Auto Center — stylesheet
   Hand-written CSS. No build step: edit and upload.
   Sections: tokens, reset, layout, header, hero, cards,
             forms, footer, utilities, responsive
   ========================================================== */

/* ---------- Design tokens ---------- */
:root {
    /* Brand */
    --color-brand: #d92b2b;
    --color-brand-dark: #a81f1f;
    --color-ink: #101418;
    --color-ink-soft: #4a545e;
    --color-line: #e2e6ea;
    --color-surface: #ffffff;
    --color-surface-alt: #f5f7f9;
    --color-inverse: #ffffff;

    /* Type scale (fluid) */
    --font-sans: "Saira", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-display: "Saira", "Arial Narrow", Impact, var(--font-sans);
    --font-heading: "Saira", var(--font-sans);
    --step--1: clamp(0.86rem, 0.83rem + 0.15vw, 0.94rem);
    --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
    --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
    --step-2: clamp(1.6rem, 1.4rem + 1vw, 2.15rem);
    --step-3: clamp(2.1rem, 1.7rem + 2vw, 3.25rem);
    /* Type steps used only by the sections below the hero. */
    --body-lower: clamp(1rem, 0.97rem + 0.2vw, 1.1rem);
    --small-lower: clamp(0.94rem, 0.9rem + 0.18vw, 1rem);
    --h2-lower: clamp(1.8rem, 1.45rem + 1.5vw, 2.7rem);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 0.875rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4.5rem;

    /* Shape and depth */
    --radius: 10px;
    --radius-lg: 18px;
    --shadow-sm: 0 1px 2px rgba(16, 20, 24, 0.08);
    --shadow-md: 0 12px 32px rgba(16, 20, 24, 0.12);

    --container: 1180px;
    --header-h: 76px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);

    /* Lucide "check", used as a CSS mask so list ticks colour with the brand
       and cost no markup. Keep the URL single-quoted: the data URI has none. */
    --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--step-0);
    line-height: 1.65;
    color: var(--color-ink);
    background: var(--color-surface);
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 var(--space-sm);
    font-family: var(--font-heading);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
}
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
h4 { font-size: var(--step-0); }

p { margin: 0 0 var(--space-sm); }

a { color: var(--color-brand); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { margin: 0 0 var(--space-sm); padding-left: 1.25rem; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--color-brand); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    /* Looping decoration is switched off outright, not sped up. */
    .hero__star,
    .hero__badge,
    .call-fab { animation: none !important; }
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--space-md);
}

/* Sections below the hero. Generous, fluid rhythm so each block reads as its
   own chapter on phone, tablet and desktop alike. */
.section {
    position: relative;
    padding-block: clamp(3rem, 7vw, 6rem);
    font-size: var(--body-lower);
}

/* Tinted band with a hairline top and bottom: the clearest, cheapest divider
   between two stacked sections. */
.section--alt {
    background: var(--color-surface-alt);
    border-block: 1px solid var(--color-line);
}

/* Faint diagonal texture keeps the tinted band from reading as flat grey. */
.section--alt::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: repeating-linear-gradient(
        -45deg,
        rgba(16, 20, 24, 0.022) 0 2px,
        transparent 2px 11px
    );
}
.section--alt > * { position: relative; }

/* Seam between two plain white blocks: a rule that fades out at both ends,
   broken in the middle by a small brand diamond. */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100% - 2 * var(--space-md), var(--container));
    margin-inline: auto;
    margin-block: clamp(1rem, 3vw, 2rem);
}

.section-divider::before,
.section-divider::after {
    content: "";
    flex: 1;
    height: 1px;
}
.section-divider::before {
    background: linear-gradient(90deg, transparent, var(--color-line));
}
.section-divider::after {
    background: linear-gradient(90deg, var(--color-line), transparent);
}

.section-divider__mark {
    flex: none;
    width: 10px;
    height: 10px;
    margin-inline: var(--space-sm);
    border-radius: 2px;
    background: linear-gradient(135deg, var(--color-brand), var(--color-brand-dark));
    transform: rotate(45deg);
}

.section__head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head h2 { font-size: var(--h2-lower); }

/* Red rule under every section title — the repeating cue that a new block
   has started. */
.section__head h2::after {
    content: "";
    display: block;
    width: 74px;
    height: 4px;
    margin-top: 0.7rem;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--color-brand), var(--color-brand-dark));
}
.section__head--center h2::after { margin-inline: auto; }

.section__eyebrow {
    display: inline-block;
    margin-bottom: var(--space-xs);
    font-size: var(--step--1);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-brand);
}

.section__lead {
    color: var(--color-ink-soft);
    font-size: clamp(1.02rem, 0.97rem + 0.35vw, 1.2rem);
    line-height: 1.7;
    text-wrap: pretty;
}

.grid { display: grid; gap: var(--space-md); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ---------- Header ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-line);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    min-height: var(--header-h);
}

.logo { display: flex; align-items: center; }
.logo img { height: 46px; width: auto; }

.nav { display: flex; align-items: center; gap: var(--space-md); }
.nav a { color: var(--color-ink); font-weight: 600; font-size: var(--step--1); }
.nav a:hover { color: var(--color-brand); text-decoration: none; }
.nav .btn { color: var(--color-inverse); }

.nav-toggle {
    display: none;
    padding: 0.55rem;
    background: none;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--color-ink); }
.nav-toggle span + span { margin-top: 5px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.8rem 1.5rem;
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: var(--step--1);
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background-color 0.2s var(--ease),
                color 0.2s var(--ease),
                transform 0.2s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn--primary { background: var(--color-brand); color: var(--color-inverse); }
.btn--primary:hover { background: var(--color-brand-dark); }

.btn--light { background: var(--color-inverse); color: var(--color-ink); }
.btn--light:hover { background: var(--color-line); }

.btn--ghost { border-color: currentColor; color: var(--color-ink); background: transparent; }
.btn--ghost:hover { background: var(--color-ink); color: var(--color-inverse); }

/* ---------- Hero (flyer layout) ----------
   The photo backs the stage only (logo, offer badge, tagline). The band
   below overlaps the stage bottom with a white sheet that starts
   transparent, so the two halves blend the way they do on the flyer. */
.hero { position: relative; }

.hero__stage {
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: center;
    /* Extra bottom padding covers the band's negative overlap. */
    padding-block: clamp(2rem, 5vw, 4rem) clamp(5rem, 11vw, 9rem);
    padding-inline: var(--space-md);
    text-align: center;
    overflow: hidden;
}

/* Photo on its own layer, under a light white wash that softens it
   without touching the logo or type. */
.hero__stage::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.35)),
        url("../images/bg-3.jpeg");
    /* Y offset picks the crop: 0% pins the sky, 100% the asphalt. */
    background-position: center, center 88%;
    background-size: cover, cover;
    background-repeat: no-repeat, no-repeat;
    pointer-events: none;
}

/* White fade over the bottom of the photo so the band below merges into
   it. Negative z keeps it above the stage's background, under the content. */
.hero__stage::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: -1;
    height: clamp(90px, 20%, 260px);
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.35) 35%,
        rgba(255, 255, 255, 0.55) 68%,
        var(--color-surface) 100%
    );
    pointer-events: none;
}

/* Nudged down inside the stage so the logo/tagline sit lower on the photo. */
.hero__inner {
    position: relative;
    text-align: center;
    margin-top: clamp(0.5rem, 2.5vw, 2rem);
}

.hero__logo {
    width: min(65%, 400px);
    /* margin: 0 auto clamp(1rem, 3vw, 2rem); */
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
}

/* Angled "CSUN Special" flag, top-right of the photo. */
.hero__badge {
    position: absolute;
    top: clamp(2rem, 5vw, 4.5rem);
    right: clamp(3rem, 8vw, 8rem);
    z-index: 2;
    margin: 0;
    /* Padding in rem, not em: box (and its background image) grows without
       dragging the text size along. */
    padding: clamp(1rem, 3vw, 2.1rem) clamp(1.4rem, 4vw, 2.9rem);
    max-width: 56%;
    font-family: var(--font-display);
    font-size: clamp(0.9rem, 2.4vw, 1.6rem);
    font-weight: 600;
    line-height: 1.02;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: var(--color-inverse);
    background: url("../images/promotion-bg.webp") center / 100% 100% no-repeat;
    transform-origin: top right;
    /* Flag drops in on load, then keeps a slow sway so the offer stays noticed. */
    animation: badge-drop 0.7s var(--ease) both,
               badge-sway 4.5s var(--ease) 0.7s infinite;
}
/* Only the wording tilts — the flag artwork behind it stays square. */
.hero__badge-text {
    display: block;
    transform: rotate(350deg);
}

@keyframes badge-drop {
    from { opacity: 0; transform: translateY(-24px) scale(0.86); }
    60%  { opacity: 1; transform: translateY(4px) scale(1.04); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes badge-sway {
    0%, 100% { transform: rotate(0deg) scale(1); }
    35%      { transform: rotate(-2.5deg) scale(1.03); }
    70%      { transform: rotate(2deg) scale(1); }
}
.hero__badge span span { display: block; }

.hero__tagline {
    margin-top: 30px;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 800;
    font-size: clamp(1.7rem, 4.4vw, 3rem);
    line-height: 1.02;
    letter-spacing: 0;
    color: var(--color-inverse);
    text-shadow:
        0 2px 0 rgba(0, 0, 0, 0.55),
        0 10px 26px rgba(0, 0, 0, 0.45);
        text-align: left;
}
/* The "1" is the flyer's hero character: oversized, white, red-outlined. */
.hero__tagline em {
    font-style: italic;
    font-size: 1.9em;
    font-weight: 800;
    line-height: 0;
    color: var(--color-inverse);
    -webkit-text-stroke: 7px var(--color-brand);
    paint-order: stroke fill;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

/* Translucent white sheet: transparent at the top so the photo shows
   through and the seam disappears, near-solid by the time content starts. */
.hero__band {
    position: relative;
    margin-top: clamp(-5rem, -8vw, -2.5rem);
    padding-block: clamp(4rem, 9vw, 7rem) clamp(1.5rem, 4vw, 2.75rem);
    text-align: center;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.75) 14%,
        rgba(255, 255, 255, 0.97) 30%,
        var(--color-surface) 45%,
        var(--color-surface) 100%
    );
}

.hero__services {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.2em 0.5em;
    margin: 0 0 var(--space-xs);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.45rem, 3.8vw, 2.5rem);
    line-height: 1.05;
    text-transform: uppercase;
    color: var(--color-ink);
}
/* Separator star: scales with the line, brand-coloured, with a soft glow. */
.hero__star {
    width: 0.58em;
    height: 0.58em;
    flex: none;
    fill: var(--color-brand);
    filter: drop-shadow(0 1px 2px rgba(217, 43, 43, 0.35));
    transform-origin: 50% 50%;
    animation: star-twinkle 2.6s var(--ease) infinite;
}
/* Short offset so the flash rolls left-to-right as a wave, not in lockstep. */
.hero__star:nth-of-type(2) { animation-delay: 0.35s; }

@keyframes star-twinkle {
    0%, 55%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.9;
        filter: drop-shadow(0 1px 2px rgba(217, 43, 43, 0.35));
    }
    22% {
        transform: scale(1.35) rotate(72deg);
        opacity: 1;
        filter: drop-shadow(0 0 10px rgba(217, 43, 43, 0.85));
    }
}

/* Rules either side of the promise line, as on the flyer. */
.hero__promise {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin: 0;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 800;
    font-size: clamp(0.85rem, 2.1vw, 1.25rem);
    text-transform: uppercase;
    color: var(--color-brand);
}
.hero__promise::before,
.hero__promise::after {
    content: "";
    flex: 0 1 clamp(1.5rem, 8vw, 5rem);
    height: 3px;
    background: var(--color-brand);
}

.hero__intro {
    max-width: 75ch;
    margin: var(--space-md) auto 0;
    color: var(--color-ink);
    text-wrap: balance;
    font-size: 1.2rem;
}
.hero__intro mark { background: none; color: var(--color-brand); font-weight: 700; }

/* ----- Flyer service cards ----- */
.svc-grid {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-top: var(--space-lg);
    text-align: left;
}

.svc {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.svc__head {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    color: var(--color-inverse);
    background: linear-gradient(135deg, var(--color-brand), var(--color-brand-dark));
}
.svc--dark .svc__head { background: linear-gradient(135deg, #232e3a, var(--color-ink)); }

/* Hairline in the header's own colour keeps the card edge from looking cut off. */
.svc { border-top-color: var(--color-brand); }
.svc--dark { border-top-color: var(--color-ink); }

/* Lucide icons (lucide.dev, ISC licence) are stroke-drawn on a 24x24 grid. */
.icon {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* The icon sits in a translucent badge punched out of the header gradient.
   Padding on the <svg> itself saves a wrapper element in the markup. */
.svc__icon {
    flex: none;
    width: 46px;
    height: 46px;
    padding: 10px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.svc__head h3 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.02rem, 1.8vw, 1.22rem);
    line-height: 1.12;
    text-transform: uppercase;
    letter-spacing: 0.015em;
}

.svc__list {
    list-style: none;
    margin: 0;
    padding: var(--space-xs) var(--space-md) var(--space-md);
    font-size: var(--small-lower);
    color: var(--color-ink-soft);
}

/* Each row: a tick in a tinted disc, then the text. Hairlines between rows
   give the list a spec-sheet rhythm instead of a loose bullet stack. */
.svc__list li {
    position: relative;
    padding: 0.62rem 0 0.62rem 2.1rem;
    line-height: 1.45;
}
.svc__list li + li { border-top: 1px solid var(--color-line); }

.svc__list li::before,
.svc__list li::after {
    content: "";
    position: absolute;
    left: 0;
}
.svc__list li::before {
    top: 0.72rem;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: rgba(217, 43, 43, 0.11);
}
/* Lucide "check" as a mask so the glyph takes the brand colour without an
   extra <svg> on all twenty list items. */
.svc__list li::after {
    top: 1.06rem;
    left: 5px;
    width: 11px;
    height: 11px;
    background: var(--color-brand);
    -webkit-mask: var(--icon-check) center / contain no-repeat;
    mask: var(--icon-check) center / contain no-repeat;
}

.svc--dark .svc__list li::before { background: rgba(16, 20, 24, 0.08); }
.svc--dark .svc__list li::after { background: var(--color-ink); }

/* ----- Contact strip (phone / address / website) ----- */
.hero__contact {
    list-style: none;
    margin: var(--space-lg) 0 0;
    padding: var(--space-md) 0 0;
    display: grid;
    gap: var(--space-md);
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    border-top: 1px solid var(--color-line);
    font-weight: 700;
}
.hero__contact li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    text-align: left;
}
.hero__contact a { color: var(--color-ink); }
.hero__contact a:hover { color: var(--color-brand); }

.hero__contact-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-brand);
    color: var(--color-inverse);
}
.hero__contact-icon svg { width: 20px; height: 20px; }

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

/* ---------- Cards ---------- */
.card {
    padding: var(--space-md);
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card p { color: var(--color-ink-soft); }
.card p:last-child { margin-bottom: 0; }

.card__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-sm);
    font-size: 1.5rem;
    border-radius: var(--radius);
    background: rgba(217, 43, 43, 0.1);
}

/* ---------- Contact ---------- */
.form { display: grid; gap: var(--space-sm); }

.form__row {
    display: grid;
    gap: var(--space-sm);
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.field { display: grid; gap: 0.35rem; }
.field label { font-size: var(--step--1); font-weight: 600; }

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    transition: border-color 0.2s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--color-brand); }
.field textarea { min-height: 130px; resize: vertical; }

.form .btn { justify-self: start; }

.info-list {
    list-style: none;
    padding: 0;
    display: grid;
    align-content: start;
    gap: var(--space-md);
}
.info-list strong {
    display: block;
    font-size: var(--step--1);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-ink-soft);
}

/* ---------- Our Work (before / after) ---------- */
.section__head--center {
    max-width: 720px;
    margin-inline: auto;
    text-align: center;
}

.work-grid {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.work {
    margin: 0;
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.work:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.work img-comparison-slider {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    /* Divider line, brand red. */
    --divider-width: 2px;
    --divider-color: var(--color-brand);
    --default-handle-opacity: 0.95;
    outline: none;
}
.work img-comparison-slider img { width: 100%; height: 100%; object-fit: cover; }
.work img-comparison-slider:focus-visible { outline: 3px solid var(--color-brand); outline-offset: 2px; }

/* Round grab handle riding the divider. */
.work__handle {
    display: grid;
    grid-auto-flow: column;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-brand);
    box-shadow: 0 4px 14px rgba(16, 20, 24, 0.35);
    cursor: ew-resize;
}
.work__handle::before,
.work__handle::after {
    content: "";
    width: 0;
    height: 0;
    border-block: 5px solid transparent;
}
.work__handle::before { border-right: 7px solid #fff; margin-right: 3px; }
.work__handle::after { border-left: 7px solid #fff; margin-left: 3px; }

.work figcaption {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem var(--space-md);
    font-weight: 600;
    font-size: var(--small-lower);
    color: var(--color-ink);
    border-top: 1px solid var(--color-line);
}
/* Small red pip so each caption is visibly tied to the brand. */
.work figcaption::before {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-brand);
}

/* Before / after corner tags, so the comparison reads without instructions. */
.work img-comparison-slider { position: relative; }
.work img-comparison-slider::before,
.work img-comparison-slider::after {
    position: absolute;
    bottom: 12px;
    z-index: 2;
    padding: 0.2em 0.7em;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-inverse);
    background: rgba(16, 20, 24, 0.72);
    pointer-events: none;
}
.work img-comparison-slider::before { content: "Before"; left: 12px; }
.work img-comparison-slider::after { content: "After"; right: 12px; background: var(--color-brand); }

/* ---------- Testimonials ---------- */
.testimonials { padding-bottom: var(--space-lg); }
.testimonials .swiper-slide { height: auto; }

.quote {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    height: 100%;
    margin: 0;
    padding: clamp(1.25rem, 3vw, 2rem);
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.quote__stars { margin: 0; color: #f5a623; letter-spacing: 0.15em; font-size: 1.05rem; }
.quote__text {
    flex: 1;
    margin: 0;
    color: var(--color-ink-soft);
    font-size: var(--body-lower);
    line-height: 1.7;
}

/* Oversized quote mark, watermarked in the corner. */
.quote::before {
    content: "\201C";
    position: absolute;
    top: -0.15em;
    right: 0.35em;
    font-size: 6rem;
    line-height: 1;
    font-weight: 800;
    color: rgba(217, 43, 43, 0.09);
    pointer-events: none;
}

.quote__by {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--color-line);
}
.quote__by cite { font-style: normal; font-weight: 700; }

/* Reviewer photo. Fixed square so the circle never squashes, and a soft ring
   so light-background portraits still read against the card. */
.quote__avatar {
    width: 48px;
    height: 48px;
    flex: none;
    border-radius: 50%;
    object-fit: cover;
    background: var(--color-surface-alt);
    box-shadow: 0 0 0 2px var(--color-surface), 0 0 0 3px var(--color-line);
}

.testimonials .swiper-pagination-bullet-active { background: var(--color-brand); }

/* ---------- Why choose us + enquiry ---------- */
.why-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }

/* This heading lives outside .section__head, so it repeats its treatment. */
.why h2 { font-size: var(--h2-lower); }
.why h2::after {
    content: "";
    display: block;
    width: 74px;
    height: 4px;
    margin-top: 0.7rem;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--color-brand), var(--color-brand-dark));
}

.why__grid {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    margin-top: var(--space-lg);
}

.feature {
    padding: var(--space-md);
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
                transform 0.25s var(--ease);
}
.feature:hover {
    border-color: rgba(217, 43, 43, 0.35);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.feature h3 { margin-bottom: 0.3rem; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); }
.feature p { margin: 0; color: var(--color-ink-soft); font-size: var(--small-lower); line-height: 1.6; }

.feature__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-sm);
    border-radius: 14px;
    background: linear-gradient(135deg, var(--color-brand), var(--color-brand-dark));
    color: var(--color-inverse);
    box-shadow: 0 6px 16px rgba(217, 43, 43, 0.28);
}
.feature__icon svg { width: 24px; height: 24px; }

.why__contact {
    list-style: none;
    margin: var(--space-lg) 0 0;
    padding: var(--space-md) 0 0;
    display: grid;
    gap: var(--space-md);
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    border-top: 1px solid var(--color-line);
}
.why__contact li { display: flex; align-items: center; gap: var(--space-sm); }
.why__contact a {
    display: block;
    font-weight: 700;
    font-size: clamp(1.05rem, 1rem + 0.4vw, 1.28rem);
    color: var(--color-ink);
}
.why__contact a:hover { color: var(--color-brand); }
.why__contact small { display: block; color: var(--color-ink-soft); font-size: var(--small-lower); }

.enquiry {
    /* The Jotform iframe carries its own inner gutter, so the box itself stays
       tight. --form-gutter matches that gutter and indents the heading to line
       up with the form's first field. */
    --form-gutter: 24px;
    align-self: start;
    padding: var(--space-lg) 0;
    background: var(--color-surface-alt);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.enquiry h3 {
    margin-bottom: var(--space-sm);
    padding-inline: var(--form-gutter);
    font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
}
/* main.js sizes this to the form's real height via Jotform's resize message,
   so the whole form is visible with no inner scrollbar. */
.enquiry iframe {
    display: block;
    width: 100%;
    min-height: 760px;
    border: 0;
}

/* ---------- Map ---------- */
.map { line-height: 0; }
.map iframe {
    display: block;
    width: 100%;
    height: clamp(300px, 42vw, 460px);
    border: 0;
    filter: grayscale(0.15);
}

/* ---------- Footer ---------- */
.footer {
    padding-block: clamp(2.25rem, 5vw, 3.5rem);
    background: var(--color-ink);
    color: rgba(255, 255, 255, 0.75);
    font-size: var(--small-lower);
    /* Brand hairline across the very top of the footer. */
    border-top: 4px solid var(--color-brand);
}
.footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.footer a:hover { color: var(--color-inverse); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-xs); }

.footer h4 {
    margin: 0 0 var(--space-sm);
    font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-inverse);
}
/* Short brand rule under each column heading. */
.footer h4::after {
    content: "";
    display: block;
    width: 34px;
    height: 3px;
    margin-top: 0.55rem;
    border-radius: 2px;
    background: var(--color-brand);
}

.footer__grid {
    display: grid;
    gap: var(--space-lg);
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.footer__logo { width: 150px; margin-bottom: var(--space-sm); }
.footer__tagline,
.footer__follow { margin: 0 0 var(--space-sm); max-width: 34ch; color: rgba(255, 255, 255, 0.68); }

/* Icon-led lists: icon in its own column so wrapped text stays aligned. */
.footer__list li {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 0.6rem;
    align-items: start;
    line-height: 1.5;
}
.footer__icon {
    width: 18px;
    height: 18px;
    margin-top: 0.15em;
    color: var(--color-brand);
}
.footer__list a { transition: color 0.2s var(--ease); }

/* Scoped with .footer so it outranks the .footer ul grid rule above. */
.footer .footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}
.footer__social a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer__social svg { width: 19px; height: 19px; }
.footer__social a:hover,
.footer__social a:focus-visible {
    background: var(--color-brand);
    border-color: var(--color-brand);
    color: var(--color-inverse);
    transform: translateY(-2px);
}
.footer__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: var(--space-sm);
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    background: var(--color-brand);
    color: var(--color-inverse);
    font-weight: 600;
    transition: background 0.2s var(--ease);
}
.footer__cta svg { width: 17px; height: 17px; }
.footer__cta:hover { background: var(--color-brand-dark); color: var(--color-inverse); }

.footer__bottom {
    text-align: center;
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: var(--step--1);
}
.footer__bottom p { margin: 0; }

/* ---------- Utilities ---------- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Skip link becomes visible on keyboard focus */
.skip-link:focus {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 60;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0.6rem 1rem;
    clip: auto;
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- Error page ---------- */
.page-404 {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.page-404 main { flex: 1; display: grid; place-items: center; }
.page-404 .footer__bottom { margin-top: 0; padding-top: 0; border-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {

    .nav-toggle { display: block; }

    .nav {
        position: absolute;
        inset: var(--header-h) 0 auto;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: var(--space-sm) var(--space-md) var(--space-md);
        background: var(--color-surface);
        border-bottom: 1px solid var(--color-line);
        box-shadow: var(--shadow-md);
    }
    .nav[data-open="true"] { display: flex; }
    .nav a { padding-block: 0.7rem; border-bottom: 1px solid var(--color-line); }
    .nav .btn { margin-top: var(--space-sm); border-bottom: 0; }

    /* Badge sits inline under the logo once the photo gets narrow. */
    .hero__badge {
        position: static;
        display: inline-block;
        max-width: none;
        margin-bottom: var(--space-md);
    }

    .contact-grid { grid-template-columns: 1fr; }
}

/* ----- Tablet: two work cards per row, comfortable gaps ----- */
@media (min-width: 601px) and (max-width: 1024px) {
    .work-grid { grid-template-columns: repeat(2, 1fr); }
    .why__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ----- Phone ----- */
@media (max-width: 600px) {
    .hero__logo{
        margin: 0 auto;
    }
    .work-grid,
    .why__grid,
    .why__contact { grid-template-columns: 1fr; }

    .work img-comparison-slider { aspect-ratio: 3 / 2; }
    .work__handle { width: 38px; height: 38px; }

    /* Stack the contact rows left-aligned rather than cramping them side by side. */
    .why__contact li { align-items: flex-start; }

    .quote::before { font-size: 4.5rem; }

    .footer__grid { gap: var(--space-md); text-align: left; }
}

@media (min-width: 861px) {
    .contact-grid { grid-template-columns: 1.4fr 1fr; gap: var(--space-lg); }

    /* Copy left, Jotform right — equal halves. */
    .why-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* ---------- Floating call button ---------- */
/* Pinned bottom-right on every screen so the phone number is one tap away
   no matter how far down the page the visitor has scrolled. */
.call-fab {
    position: fixed;
    right: clamp(1rem, 3vw, 1.75rem);
    bottom: clamp(1rem, 3vw, 1.75rem);
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.35rem;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--step--1);
    letter-spacing: 0.02em;
    color: var(--color-inverse);
    background: linear-gradient(135deg, var(--color-brand), var(--color-brand-dark));
    box-shadow: 0 10px 26px rgba(217, 43, 43, 0.38);
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
    animation: call-fab-pulse 2.6s var(--ease) infinite;
}

.call-fab:hover,
.call-fab:focus-visible {
    color: var(--color-inverse);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(217, 43, 43, 0.48);
    animation-play-state: paused;
}

.call-fab svg { width: 20px; height: 20px; flex: none; }

/* Soft outward ring, drawn with box-shadow so it needs no extra element. */
@keyframes call-fab-pulse {
    0%   { box-shadow: 0 10px 26px rgba(217, 43, 43, 0.38), 0 0 0 0 rgba(217, 43, 43, 0.45); }
    70%  { box-shadow: 0 10px 26px rgba(217, 43, 43, 0.38), 0 0 0 14px rgba(217, 43, 43, 0); }
    100% { box-shadow: 0 10px 26px rgba(217, 43, 43, 0.38), 0 0 0 0 rgba(217, 43, 43, 0); }
}

/* Phones: icon-only circle, so the button never covers the content. */
@media (max-width: 600px) {
    .hero__badge{
        width: 80%;
        margin: 0 auto;
    }
    .hero__inner{
        padding: 0px;
    }
    .call-fab { padding: 0.9rem; gap: 0; }
    .call-fab__label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
}

/* ---------- Page loader ---------- */
.loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: var(--color-ink);
    opacity: 1;
    transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}

.loader.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader__inner {
    display: grid;
    justify-items: center;
    gap: var(--space-md);
}

/* Brand-red arc sweeping around the logo */
.loader__ring {
    position: relative;
    display: grid;
    place-items: center;
    width: 132px;
    height: 132px;
    border-radius: 50%;
}

.loader__ring::before,
.loader__ring::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
}

.loader__ring::before {
    border-color: rgba(255, 255, 255, 0.12);
}

.loader__ring::after {
    border-top-color: var(--color-brand);
    border-right-color: var(--color-brand);
    animation: loader-spin 1s linear infinite;
}

.loader__logo {
    width: 84px;
    height: auto;
    animation: loader-pulse 1.6s var(--ease) infinite;
}

/* Indeterminate progress bar */
.loader__bar {
    position: relative;
    display: block;
    width: 160px;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    overflow: hidden;
}

.loader__bar i {
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--color-brand-dark), var(--color-brand));
    animation: loader-slide 1.1s var(--ease) infinite;
}

@keyframes loader-spin {
    to { transform: rotate(360deg); }
}

@keyframes loader-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.94); opacity: 0.78; }
}

@keyframes loader-slide {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(310%); }
}

/* Lock scrolling while the loader covers the page */
html.is-loading,
html.is-loading body {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .loader__ring::after,
    .loader__logo,
    .loader__bar i {
        animation: none;
    }

    .loader {
        transition-duration: 0.01ms;
    }
}
