/* satchwash.com — deep-forest pressure washing, bigfoot approved */

:root {
    --night: #081712;
    --panel: #0e2118;
    --panel-2: #143026;
    --ice: #eef8f2;
    --dim: #8fb3a3;
    --glow: #38bdf8;
    --dirt: #6b5b45;
    --line: rgba(238, 248, 242, 0.13);
    --font-display: "Alfa Slab One", "Rockwell", "Arial Black", serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
    background: var(--night);
    color: var(--ice);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--ice); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; text-transform: uppercase; letter-spacing: 0.01em; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.4rem; }

.kicker {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--glow);
    display: block;
    margin-bottom: 0.6rem;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.7rem;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid var(--glow);
    border-radius: 999px;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, color 0.18s ease;
    cursor: pointer;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--glow); color: #04121c; }
.btn-solid:hover { background: #63cdff; border-color: #63cdff; }
.btn-ghost { background: rgba(56, 189, 248, 0.08); color: var(--ice); }
.btn-ghost:hover { border-color: #63cdff; color: #fff; }

/* ---------- Scroll progress ---------- */

.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    z-index: 70;
    background: linear-gradient(90deg, #0ea5e9, #7dd3fc);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.75);
    transform: scaleX(0);
    transform-origin: left;
    pointer-events: none;
}

/* ---------- Header ---------- */

.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 0.65rem 1.4rem;
    background: linear-gradient(to bottom, rgba(8, 23, 18, 0.95), rgba(8, 23, 18, 0.85));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}
.brand svg { height: 2.2rem; width: auto; }
.brand em { font-style: normal; color: var(--glow); }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.3rem; }
.site-nav a {
    text-decoration: none;
    color: var(--dim);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.15s ease;
}
.site-nav a:hover { color: #fff; }
.site-nav .nav-call {
    color: #fff;
    border: 2px solid var(--glow);
    border-radius: 999px;
    padding: 0.4rem 1rem;
}
.site-nav .nav-call:hover { background: var(--glow); color: #04121c; }
@media (max-width: 46rem) {
    .site-nav a:not(.nav-call) { display: none; }
    .brand { font-size: 1.05rem; }
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    min-height: min(100svh, 52rem);
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 70% at 78% 92%, rgba(56, 189, 248, 0.14), transparent 60%),
        radial-gradient(ellipse 90% 60% at 15% -5%, rgba(20, 48, 38, 0.9), transparent 70%),
        var(--night);
}
.hero-inner { position: relative; z-index: 2; max-width: 42rem; padding: 6.5rem 0 5rem; }
.hero h1 {
    font-size: clamp(2.7rem, 8.4vw, 5.3rem);
    line-height: 1.02;
}
.hero h1 .wash {
    display: block;
    width: fit-content;
    padding-right: 0.08em;
    background: linear-gradient(100deg, var(--ice) 0%, var(--ice) 42%, var(--dirt) 58%, var(--dirt) 100%);
    background-size: 260% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero .tagline {
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    color: var(--ice);
    max-width: 32em;
    margin-top: 1.3rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.hero-meta { margin-top: 2rem; color: var(--dim); font-size: 0.95rem; }
.hero-meta a { color: var(--ice); }

.hero-squatch {
    position: absolute;
    right: max(-1rem, calc(50vw - 41rem));
    bottom: 0;
    z-index: 1;
    width: clamp(16rem, 34vw, 30rem);
    opacity: 0.95;
    pointer-events: none;
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
}
@media (max-width: 60rem) {
    .hero-squatch { opacity: 0.28; right: -4rem; }
}

/* ---------- Service marquee ---------- */

.marquee {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--panel);
    overflow: hidden;
    padding: 0.7rem 0;
    position: relative;
    z-index: 2;
}
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: marquee 32s linear infinite; }
.marquee span {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--dim);
    white-space: nowrap;
}
.marquee span::after { content: "💧"; margin-left: 3rem; font-size: 0.8em; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Services ---------- */

.services { padding: 6rem 0 3rem; }
.section-title { font-size: clamp(1.9rem, 5vw, 3rem); margin-bottom: 1.6rem; }
.section-title::after {
    content: "";
    display: block;
    width: 4.5rem;
    height: 4px;
    border-radius: 2px;
    margin-top: 0.9rem;
    background: linear-gradient(90deg, var(--glow), transparent);
    transform-origin: left;
}
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.service-card {
    background: linear-gradient(165deg, var(--panel), var(--panel-2));
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 2rem 1.8rem;
}
.service-card svg.icon { width: 2.8rem; height: 2.8rem; fill: var(--glow); margin-bottom: 1rem; }
.service-card h3 { font-size: 1.45rem; margin-bottom: 0.7rem; }
.service-card p { color: var(--dim); }
.surface-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem; }
.surface-list li {
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--ice);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.25rem 0.8rem;
}
.service-card .btn { margin-top: 1.4rem; }
@media (max-width: 52rem) {
    .service-grid { grid-template-columns: 1fr; }
}

/* ---------- Gallery ---------- */

.work { padding: 3rem 0; }
.work-section { padding: 2.4rem 0 0.6rem; }
.work-head { display: flex; align-items: baseline; gap: 1.1rem; margin-bottom: 1.6rem; position: relative; z-index: 2; }
.work-head h2 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); }
.work-head .count {
    font-weight: 800;
    color: var(--dim);
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.work-grid { columns: 4 15rem; column-gap: 0.9rem; }
.work-grid.cols { columns: unset; display: flex; gap: 0.9rem; align-items: flex-start; }
.work-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.9rem; will-change: transform; }
.work-grid.cols a { margin-bottom: 0; }
.work-grid a {
    position: relative;
    display: block;
    margin-bottom: 0.9rem;
    break-inside: avoid;
    overflow: hidden;
    border-radius: 12px;
    background: var(--panel);
    border: 1px solid var(--line);
}
.work-grid img { width: 100%; height: auto; transition: transform 0.4s ease, opacity 0.4s ease; }
.work-grid a:hover img { transform: scale(1.04); }
.work-empty {
    border: 2px dashed var(--line);
    border-radius: 14px;
    text-align: center;
    color: var(--dim);
    padding: 3.5rem 1.4rem;
}
@media (max-width: 46rem) {
    .work-grid { columns: 2; column-gap: 0.6rem; }
    .work-grid a { margin-bottom: 0.6rem; }
}

/* ---------- Contact ---------- */

.contact {
    padding: 5.5rem 0;
    background:
        radial-gradient(ellipse 80% 80% at 50% 115%, rgba(56, 189, 248, 0.16), transparent 60%),
        var(--panel);
    border-top: 1px solid var(--line);
}
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; max-width: 52rem; }
.contact-card {
    background: var(--night);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 2rem 1.8rem;
    text-align: center;
}
.contact-card svg { width: 2.4rem; height: 2.4rem; fill: var(--glow); margin: 0 auto 0.8rem; display: block; }
.contact-card h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.contact-card a.big {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 3vw, 1.5rem);
    text-decoration: none;
    color: var(--ice);
    word-break: break-all;
}
.contact-card a.big:hover { color: var(--glow); }
.contact-card p { color: var(--dim); font-size: 0.92rem; margin-top: 0.4rem; }
@media (max-width: 46rem) {
    .contact-cards { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--line);
    padding: 2.2rem 0 5.5rem;
    color: var(--dim);
    font-size: 0.92rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 2rem; }
.site-footer a { color: var(--dim); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer svg { height: 1.8rem; width: auto; }

/* ---------- Mobile call bar ---------- */

.call-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; display: none; }
.call-bar a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: #04121c;
    background: var(--glow);
}
.call-bar svg { width: 1.05em; height: 1.05em; fill: currentColor; }
@media (max-width: 46rem) { .call-bar { display: flex; } }

/* ---------- Lightbox ---------- */

.lightbox {
    position: fixed; inset: 0; z-index: 100;
    display: none; align-items: center; justify-content: center;
    background: rgba(3, 10, 8, 0.95);
    padding: 2.5rem;
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: min(92vw, 62rem);
    max-height: 86vh;
    border-radius: 10px;
    border: 1px solid var(--line);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
}
.lightbox button {
    position: absolute;
    background: rgba(238, 248, 242, 0.08);
    color: var(--ice);
    border: 1px solid var(--line);
    border-radius: 50%;
    width: 2.9rem; height: 2.9rem;
    font-size: 1.4rem; line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease;
}
.lightbox button:hover { background: var(--glow); color: #04121c; }
.lb-close { top: 1.1rem; right: 1.1rem; }
.lb-prev { left: 1.1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.1rem; top: 50%; transform: translateY(-50%); }
.lb-caption {
    position: absolute;
    bottom: 1.1rem; left: 50%;
    transform: translateX(-50%);
    color: var(--dim);
    font-weight: 700;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* ---------- Motion (JS + motion-ok only) ---------- */

@media (prefers-reduced-motion: no-preference) {
    html.js .reveal {
        opacity: 0;
        transform: translateY(28px);
        transition: opacity 0.8s ease, transform 0.8s ease;
        transition-delay: var(--d, 0s);
    }
    html.js .reveal.in { opacity: 1; transform: none; }

    html.js .section-title.reveal::after {
        transform: scaleX(0);
        transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
    }
    html.js .section-title.reveal.in::after { transform: scaleX(1); }

    /* The wash: grime wipes off the title on load… */
    .hero h1 .wash { animation: wash-clean 1.6s cubic-bezier(0.6, 0, 0.25, 1) 0.5s both; }
    @keyframes wash-clean {
        from { background-position: 100% 0; }
        to   { background-position: 0% 0; }
    }
    /* …chased by a water jet streak */
    .hero h1 { position: relative; }
    .hero h1::after {
        content: "";
        position: absolute;
        top: -6%;
        left: 0;
        width: 0.55em;
        height: 112%;
        background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.9), rgba(56, 189, 248, 0.25) 70%, transparent);
        transform: translateX(-1em) skewX(-14deg);
        opacity: 0;
        animation: jet-sweep 1.6s cubic-bezier(0.6, 0, 0.25, 1) 0.5s both;
        pointer-events: none;
    }
    @keyframes jet-sweep {
        0%   { transform: translateX(-0.8em) skewX(-14deg); opacity: 0; }
        12%  { opacity: 1; }
        88%  { opacity: 1; }
        100% { transform: translateX(10.5em) skewX(-14deg); opacity: 0; }
    }

    /* Gallery tiles: grime wipes off as they reveal */
    html.js .work-item::after {
        content: "";
        position: absolute;
        inset: -2%;
        background: linear-gradient(105deg, rgba(107, 91, 69, 0.35), rgba(60, 50, 38, 0.96) 45%, #241d14);
        transform: translateX(0);
        transition: transform 1s cubic-bezier(0.55, 0, 0.2, 1);
        transition-delay: var(--d, 0s);
    }
    html.js .work-item.in::after { transform: translateX(112%); }
    html.js .work-item.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.7s ease; transition-delay: var(--d, 0s); }
    html.js .work-item.reveal.in { opacity: 1; transform: none; }

    .hero-squatch { animation: squatch-in 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.2s backwards; }
    @keyframes squatch-in {
        from { transform: translateX(14%); opacity: 0; }
        to   { transform: none; opacity: 0.95; }
    }
    .hero-inner > * { animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
    .hero-inner > :nth-child(2) { animation-delay: 0.12s; }
    .hero-inner > :nth-child(3) { animation-delay: 0.24s; }
    .hero-inner > :nth-child(4) { animation-delay: 0.36s; }
    .hero-inner > :nth-child(5) { animation-delay: 0.48s; }
    @keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

    .lightbox.open img { animation: lb-pop 0.32s cubic-bezier(0.2, 0.9, 0.3, 1); }
    @keyframes lb-pop { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
}
