/* ===========================================================
   ZOOK SERVICES — Custom CSS
   Theme: "Roadwork Ahead" — asphalt black, safety yellow,
   sun-bleached caliche cream. Highway-sign typography.
   =========================================================== */

:root {
    --asphalt: #0F0E0C;
    --asphalt-2: #1B1917;
    --cream: #F4EEE2;
    --paper: #FFFCF6;
    --ink: #16140F;
    --ink-muted: #5F5849;
    --yellow: #FFC400;
    --yellow-ink: #8A5D00;
    --nav-h: 76px;
}

/* Offset for fixed navbar when jumping to anchors */
section[id], [id="quote"], [id="contact"] {
    scroll-margin-top: calc(var(--nav-h) + 12px);
}

/* ---- Hazard chevron stripe (from the company banner) ---- */
.hazard-stripe {
    height: 10px;
    background: repeating-linear-gradient(
        -45deg,
        var(--yellow) 0 18px,
        var(--asphalt) 18px 36px
    );
}
.hazard-stripe--thin { height: 6px; }

/* ---- Dashed road centerline divider ---- */
.centerline {
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        var(--yellow) 0 34px,
        transparent 34px 58px
    );
    border-radius: 2px;
}
.centerline--dark {
    background: repeating-linear-gradient(90deg, var(--yellow) 0 34px, transparent 34px 58px);
}

/* ---- Subtle asphalt grain on dark bands ---- */
.grain {
    position: relative;
    isolation: isolate;
}
.grain::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .18;
    background-image:
        radial-gradient(rgba(255,255,255,.10) 0.6px, transparent 0.6px),
        radial-gradient(rgba(255,255,255,.06) 0.6px, transparent 0.6px);
    background-size: 5px 5px, 9px 9px;
    background-position: 0 0, 3px 4px;
}

/* ---- Paper texture for cream sections ---- */
.paper-texture {
    background-color: var(--cream);
    background-image:
        radial-gradient(rgba(22,20,15,.035) 0.7px, transparent 0.7px);
    background-size: 7px 7px;
}

/* ---- Hero ---- */
.hero-photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 60%;
    transform: scale(1.04);
    animation: hero-settle 1.6s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes hero-settle { to { transform: scale(1); } }
.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15,14,12,.94) 0%, rgba(15,14,12,.82) 42%, rgba(15,14,12,.45) 70%, rgba(15,14,12,.25) 100%),
        linear-gradient(0deg, rgba(15,14,12,.95) 0%, rgba(15,14,12,0) 40%);
}
@media (max-width: 1023px) {
    .hero-shade {
        background:
            linear-gradient(0deg, rgba(15,14,12,.97) 0%, rgba(15,14,12,.78) 55%, rgba(15,14,12,.55) 100%);
    }
}

/* Staggered hero reveal */
.reveal { opacity: 0; transform: translateY(18px); animation: reveal .7s cubic-bezier(.2,.7,.2,1) forwards; }
.reveal-1 { animation-delay: .05s; }
.reveal-2 { animation-delay: .18s; }
.reveal-3 { animation-delay: .31s; }
.reveal-4 { animation-delay: .44s; }
.reveal-5 { animation-delay: .57s; }
@keyframes reveal { to { opacity: 1; transform: none; } }

/* Yellow highlighter behind a word */
.mark-yellow {
    background-image: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%);
    padding: 0 .06em;
}
.mark-yellow--dark { color: var(--yellow); background-image: none; }

/* ---- Navbar ---- */
#navbar { transition: box-shadow .25s ease, background-color .25s ease; }
#navbar.scrolled { box-shadow: 0 10px 30px -18px rgba(0,0,0,.7); }

/* ---- Mobile Menu ---- */
#mobile-menu {
    transition: max-height .3s ease-out, opacity .3s ease-out;
    overflow: hidden;
}
#mobile-menu.hidden { max-height: 0; opacity: 0; }
#mobile-menu:not(.hidden) { max-height: 560px; opacity: 1; }

/* ---- FAQ ---- */
details summary { list-style: none; }
details summary::-webkit-details-marker { display: none; }
details[open] .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform .25s ease; }

/* ---- Scroll-to-top ---- */
#scroll-top { transition: opacity .3s ease, transform .3s ease; }
#scroll-top.visible { display: flex; opacity: 1; transform: translateY(0); }
#scroll-top:not(.visible) { opacity: 0; transform: translateY(1rem); pointer-events: none; }

/* ---- Focus ---- */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 3px;
}

/* ---- Forms ---- */
select.field {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2316140F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 42px;
}
select.field option { background: #FFFCF6; color: #16140F; }

/* ---- Service photo cards ---- */
.svc-card img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.svc-card:hover img { transform: scale(1.06); }
.svc-card .svc-arrow { transition: transform .3s ease; }
.svc-card:hover .svc-arrow { transform: translateX(6px); }

/* ---- Gallery ---- */
.gal-item img { transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .4s ease; }
.gal-item:hover img { transform: scale(1.05); }

/* ---- Section fade-in on scroll (JS opt-in so content is never hidden without JS) ---- */
.fade-init {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s ease-out, transform .7s ease-out;
}
.fade-init.visible { opacity: 1; transform: none; }

/* ---- Mobile sticky action bar ---- */
#mobile-bar {
    padding-bottom: env(safe-area-inset-bottom);
}
@media (max-width: 767px) {
    body { padding-bottom: 72px; }
    #scroll-top { bottom: 88px; }
}

/* ---- Rich content coming from Java/blog strings (was authored for a dark theme) ---- */
.rich .text-gray-300, .rich .text-gray-400 { color: var(--ink-muted); }
.rich .text-white { color: var(--ink); }
.rich .text-zook-gold { color: var(--yellow-ink); text-decoration: underline; text-decoration-color: rgba(138,93,0,.4); text-underline-offset: 3px; }
.rich .text-zook-gold:hover { text-decoration-color: var(--yellow-ink); }
.rich h2 { font-family: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif; text-transform: uppercase; letter-spacing: .01em; font-size: 1.85rem; line-height: 1.05; color: var(--ink); margin-top: 2.25rem; margin-bottom: 1rem; }
.rich h3 { font-family: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif; text-transform: uppercase; font-size: 1.4rem; line-height: 1.1; color: var(--ink); margin-top: 1.75rem; margin-bottom: .75rem; }
.rich p { color: var(--ink-muted); font-size: 1.125rem; line-height: 1.7; margin-bottom: 1.5rem; }
.rich ul, .rich ol { color: var(--ink-muted); font-size: 1.125rem; line-height: 1.7; margin-bottom: 1.5rem; padding-left: 1.5rem; }
.rich ul { list-style: disc; }
.rich ol { list-style: decimal; }
.rich li { margin-bottom: .4rem; }
.rich li::marker { color: var(--yellow-ink); }
.rich a { color: var(--yellow-ink); text-decoration: underline; text-underline-offset: 3px; }
.rich strong { color: var(--ink); }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    .hero-photo, .reveal { animation: none; opacity: 1; transform: none; }
    .fade-init { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}
