/* ==========================================================================
   RV Roof Repair Denver — main stylesheet
   ========================================================================== */

:root {
    --navy: #0f2a44;
    --navy-2: #173b5e;
    --navy-3: #22507c;
    --accent: #f26b1d;
    --accent-dark: #d4580f;
    --sky: #e8f1f8;
    --snow: #f7f9fb;
    --ink: #1b2430;
    --muted: #5b6878;
    --line: #dde4ec;
    --white: #fff;
    --success: #1f8a4c;
    --danger: #c0392b;

    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-head: "Oswald", "Arial Narrow", Impact, sans-serif;

    --radius: 10px;
    --radius-lg: 18px;
    --shadow: 0 6px 24px rgba(15, 42, 68, .08);
    --shadow-lg: 0 18px 50px rgba(15, 42, 68, .16);
    --container: 1180px;
}

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

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

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
}

img, svg { max-width: 100%; height: auto; }
.icon { flex-shrink: 0; vertical-align: middle; }

a { color: var(--navy-3); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 600;
    line-height: 1.15;
    color: var(--navy);
    margin: 0 0 .5em;
    letter-spacing: .01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p  { margin: 0 0 1em; }

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

.skip-link {
    position: absolute; left: -999px; top: 8px; z-index: 100;
    background: var(--accent); color: var(--white); padding: 8px 14px; border-radius: 6px;
}
.skip-link:focus { left: 8px; }

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px;
    font: 600 1rem/1.2 var(--font-body);
    border-radius: 999px;
    border: 2px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .15s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { padding: 15px 28px; font-size: 1.05rem; }
.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: var(--accent-dark); color: var(--white); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-2); color: var(--white); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--navy); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--navy); color: #c9d6e3; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.topbar span { display: inline-flex; align-items: center; gap: 6px; }

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.96);
    backdrop-filter: saturate(160%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-family: var(--font-head); font-size: 1.35rem; text-transform: uppercase; letter-spacing: .03em; }
.brand__text small { font-size: .78rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.brand--light, .brand--light:hover { color: var(--white); }
.brand--light small { color: #9fb3c8; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
    display: block; padding: 8px 12px; border-radius: 8px;
    font-weight: 500; color: var(--ink); text-decoration: none;
}
.site-nav ul a:hover { background: var(--sky); color: var(--navy); }
.site-nav ul a[aria-current="page"] { color: var(--accent-dark); }

.nav-toggle { display: none; background: none; border: 0; color: var(--navy); padding: 6px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, var(--navy-3) 100%);
    color: var(--white);
}
.hero__inner {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
    padding-top: 80px; padding-bottom: 150px;
}
.hero h1 { color: var(--white); }
.hero h1 span { color: var(--accent); }
.hero__lead { font-size: 1.2rem; color: #d6e2ee; max-width: 36em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 32px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; margin: 0; padding: 0; font-size: .95rem; color: #d6e2ee; }
.hero__badges li { display: inline-flex; align-items: center; gap: 7px; }
.hero__badges .icon { color: var(--accent); }
.eyebrow {
    display: inline-block; margin-bottom: 14px;
    font: 600 .8rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent);
}
.hero__mountains { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: auto; z-index: 1; }
.hero__art { filter: drop-shadow(0 20px 40px rgba(0,0,0,.3)); }

/* Quick estimate card inside hero */
.quote-card {
    background: var(--white); color: var(--ink);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    padding: 30px;
}
.quote-card h2 { font-size: 1.6rem; margin-bottom: 4px; }
.quote-card > p { color: var(--muted); font-size: .95rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    position: relative; overflow: hidden;
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
    color: #d6e2ee;
    padding: 70px 0 110px;
}
.page-hero h1 { color: var(--white); margin-bottom: .3em; }
.page-hero p { font-size: 1.15rem; max-width: 40em; margin: 0; }
.page-hero .hero__mountains { opacity: 1; }
.breadcrumbs { font-size: .85rem; margin-bottom: 14px; color: #9fb3c8; }
.breadcrumbs a { color: #c9d6e3; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section--tint { background: var(--snow); }
.section--sky { background: var(--sky); }
.section__head { max-width: 720px; margin: 0 auto 50px; text-align: center; }
.section__head p { color: var(--muted); font-size: 1.1rem; }

/* Trust strip */
.trust { background: var(--white); border-bottom: 1px solid var(--line); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 34px 20px; }
.trust__item { display: flex; align-items: center; gap: 14px; }
.trust__item strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--navy); line-height: 1; }
.trust__item span { font-size: .9rem; color: var(--muted); }
.trust__icon {
    display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px;
    background: #fff1e8; color: var(--accent);
}

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.card {
    display: flex; flex-direction: column;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 28px; box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #c4d3e2; }
.card__icon {
    display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 18px;
    border-radius: 14px; background: var(--navy); color: var(--white);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .97rem; flex-grow: 1; }
.card__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--accent-dark); }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split--reverse > :first-child { order: 2; }

.checklist { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { color: var(--success); margin-top: 3px; }
.checklist--2col { grid-template-columns: 1fr 1fr; }

.panel {
    background: var(--navy); color: #d6e2ee; border-radius: var(--radius-lg);
    padding: 40px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.panel h3 { color: var(--white); font-size: 1.6rem; }
.panel .stat { font-family: var(--font-head); font-size: 3.4rem; color: var(--accent); line-height: 1; }

/* Warning signs grid */
.signs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sign {
    background: var(--white); border-radius: var(--radius); padding: 22px 22px 22px 20px;
    border-left: 4px solid var(--accent); box-shadow: var(--shadow);
}
.sign h3 { font-size: 1.15rem; margin-bottom: 4px; }
.sign p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 64px; }
.step::before {
    counter-increment: step; content: counter(step);
    position: absolute; top: 0; left: 0;
    display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
    background: var(--accent); color: var(--white); font: 600 1.3rem var(--font-head);
}
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); font-size: .96rem; }

/* Testimonials */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review {
    background: var(--white); border-radius: var(--radius-lg); padding: 28px;
    border: 1px solid var(--line); box-shadow: var(--shadow); margin: 0;
}
.review__stars { color: #f5a623; display: flex; gap: 2px; margin-bottom: 12px; }
.review__stars .icon { fill: currentColor; }
.review blockquote { margin: 0 0 16px; font-size: 1rem; }
.review figcaption { font-weight: 600; color: var(--navy); }
.review figcaption span { display: block; font-weight: 400; font-size: .88rem; color: var(--muted); }

/* Areas */
.areas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 0; }
.areas li {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--white); border: 1px solid var(--line); border-radius: 999px;
    padding: 8px 16px; font-weight: 500; font-size: .95rem;
}
.areas .icon { color: var(--accent); }

/* Services detail page */
.service-detail { display: grid; grid-template-columns: 80px 1fr; gap: 28px; padding: 44px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.service-detail:last-child { border-bottom: 0; }
.service-detail__icon {
    display: grid; place-items: center; width: 72px; height: 72px; border-radius: 18px;
    background: var(--navy); color: var(--white);
}
.service-detail p { color: var(--muted); max-width: 52em; }

.service-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.service-nav a {
    padding: 7px 14px; border-radius: 999px; font-size: .9rem; text-decoration: none;
    background: rgba(255,255,255,.1); color: var(--white); border: 1px solid rgba(255,255,255,.2);
}
.service-nav a:hover { background: var(--white); color: var(--navy); }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; }
.faq details {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    margin-bottom: 12px; box-shadow: var(--shadow);
}
.faq summary {
    cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; position: relative;
    font-weight: 600; font-size: 1.05rem; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
    font: 400 1.7rem/1 var(--font-body); color: var(--accent);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 24px 20px; margin: 0; color: var(--muted); }

/* Forms */
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--navy); }
.field label span { color: var(--danger); }
.field input, .field select, .field textarea {
    width: 100%; padding: 12px 14px;
    font: inherit; font-size: 1rem; color: var(--ink);
    background: var(--white); border: 1.5px solid var(--line); border-radius: 8px;
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(34, 80, 124, .15);
}
.field--error input, .field--error select, .field--error textarea { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: .85rem; margin-top: 4px; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: .82rem; color: var(--muted); margin: 0; }

.alert { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 20px; }
.alert--success { background: #e7f6ed; color: #145c33; border: 1px solid #b6e2c6; }
.alert--error { background: #fdecea; color: #8a2a1f; border: 1px solid #f3c2bc; }

.contact-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 40px; align-items: start; }
.contact-info { display: grid; gap: 18px; }
.contact-info__item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info__item h3 { font-size: 1.1rem; margin-bottom: 2px; }
.contact-info__item p { margin: 0; color: var(--muted); }
.contact-info__item a { font-weight: 600; }

/* CTA band */
.cta-band { background: var(--accent); color: var(--white); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-top: 50px; padding-bottom: 50px; }
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { margin: 0; font-size: 1.1rem; color: #fff3ea; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-band .btn--accent { background: var(--navy); }
.cta-band .btn--accent:hover { background: var(--navy-2); }

/* Footer */
.site-footer { background: #0a1e31; color: #9fb3c8; font-size: .95rem; padding-top: 70px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h3 { color: var(--white); font-size: 1.1rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #c9d6e3; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer__about { margin-top: 18px; }
.site-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.site-footer__contact .icon { color: var(--accent); margin-top: 3px; }
.site-footer__bottom {
    display: flex; justify-content: space-between; gap: 20px;
    margin-top: 50px; padding-top: 22px; padding-bottom: 22px;
    border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem;
}
.site-footer__bottom p { margin: 0; }

.mobile-call { display: none; }

/* 404 */
.notfound { text-align: center; padding: 120px 0; }
.notfound .big { font-family: var(--font-head); font-size: 7rem; color: var(--accent); line-height: 1; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .btn:hover, .card:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero__inner { grid-template-columns: 1fr; padding-bottom: 130px; }
    .split { grid-template-columns: 1fr; gap: 40px; }
    .split--reverse > :first-child { order: 0; }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .reviews { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
    .signs { grid-template-columns: repeat(2, 1fr); }
    .trust__grid { grid-template-columns: repeat(2, 1fr); }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .cta-band__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .site-nav {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 12px;
        background: var(--white); border-bottom: 1px solid var(--line);
        padding: 12px 20px 20px; box-shadow: var(--shadow-lg);
        display: none;
    }
    .site-nav.is-open { display: flex; }
    .site-nav ul { flex-direction: column; gap: 2px; }
    .site-nav ul a { padding: 12px; }
}

@media (max-width: 640px) {
    body { font-size: 16px; padding-bottom: 64px; }
    .container { padding: 0 16px; }
    .topbar .topbar__hours { display: none; }
    .section { padding: 64px 0; }
    .hero__inner { padding-top: 50px; }
    .quote-card { padding: 22px; }
    .form__row, .checklist--2col { grid-template-columns: 1fr; }
    .steps, .signs, .trust__grid, .site-footer__grid { grid-template-columns: 1fr; }
    .service-detail { grid-template-columns: 1fr; gap: 14px; }
    .panel { padding: 28px; }
    .site-footer__bottom { flex-direction: column; gap: 6px; }
    .btn--lg { width: 100%; }
    .mobile-call {
        display: flex; align-items: center; justify-content: center; gap: 8px;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
        height: 60px; background: var(--accent); color: var(--white);
        font-weight: 700; text-decoration: none; box-shadow: 0 -4px 20px rgba(0,0,0,.2);
    }
    .mobile-call:hover { color: var(--white); }
}
