/* ============ TOKENS ============ */
:root {
    --base: #F1F4F1;
    --base-alt: #E6ECE7;
    --card: #FFFFFF;
    --ink: #16302B;
    --ink-soft: #4F6560;
    --pine: #1F4A3E;
    --pine-deep: #123028;
    --sun: #E8A33D;
    --sun-deep: #C97F1E;
    --mist: #D3DED7;
    --charcoal: #101C19;
    --wa: #25D366;
    --wa-deep: #1DA851;
    --radius-s: 8px;
    --radius-m: 14px;
    --radius-l: 26px;
    --shadow-soft: 0 12px 28px rgba(16, 28, 25, 0.08);
    --font-display: 'Fraunces', serif;
    --font-body: 'Work Sans', sans-serif;
}

body.dark-theme {
    --base: #0F1B18;
    --base-alt: #142621;
    --card: #16302B;
    --ink: #EDF3EF;
    --ink-soft: #A9BEB7;
    --pine: #6FBBA0;
    --pine-deep: #9AD4BE;
    --mist: #274238;
    --charcoal: #070D0B;
    --shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.35);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
    font-family: var(--font-body);
    background-color: var(--base);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    transition: background-color 0.3s ease, color 0.3s ease;
}

img { max-width: 100%; display: block; }

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }

a { color: inherit; }

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

.eyebrow {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--pine);
    margin-bottom: 10px;
}

.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1.2; margin-bottom: 12px; }
.section-sub { color: var(--ink-soft); font-size: 1.02rem; }
.contact-head { max-width: 620px; margin-left: auto; margin-right: auto; text-align: center; }

section { padding: 88px 0; overflow: hidden; }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 26px;
    border-radius: var(--radius-s);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.98rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }

.btn-primary { background: var(--pine); color: #F6F8F6; }
.btn-primary:hover { background: var(--pine-deep); }
body.dark-theme .btn-primary { color: var(--charcoal); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--mist); }
.btn-outline:hover { border-color: var(--pine); }

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

.btn-whatsapp { background: var(--wa); color: #ffffff; }
.btn-whatsapp:hover { background: var(--wa-deep); }

/* ============ HEADER ============ */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background-color: var(--base);
    border-bottom: 1px solid var(--mist);
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--ink);
    z-index: 1001;
    flex-shrink: 0;
}
.logo-mark { color: var(--pine); flex-shrink: 0; }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.theme-toggle {
    background: transparent;
    border: 1px solid var(--mist);
    color: var(--ink);
    width: 38px; height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 1001;
    flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--pine); }

.nav { display: flex; align-items: center; }
.nav-link {
    margin: 0 14px;
    text-decoration: none;
    color: var(--ink-soft);
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
}
.nav-link:hover { color: var(--pine); }

.mobile-call-btn { display: none; }
.menu-toggle {
    display: none;
    background: none; border: none;
    color: var(--ink);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    flex-shrink: 0;
}

/* ============ HERO ============ */
.hero { padding: 130px 0 80px; overflow: visible; }

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

.hero-copy h1 {
    font-size: clamp(2.1rem, 4vw, 3.3rem);
    line-height: 1.14;
    margin-bottom: 20px;
}

.hero-lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 480px; margin-bottom: 30px; }

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }

.trust-row { list-style: none; display: flex; flex-wrap: wrap; gap: 18px 22px; }
.trust-row li { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 500; color: var(--ink-soft); }
.trust-row i { color: var(--pine); }

.hero-visual { position: relative; padding-bottom: 30px; }
.hero-photo-frame {
    aspect-ratio: 4/5;
    border-radius: var(--radius-l);
    overflow: hidden;
    position: relative;
    background: var(--pine);
}
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.stat-chip {
    position: absolute;
    left: 20px; bottom: 0;
    background: var(--card);
    border: 1px solid var(--mist);
    border-radius: var(--radius-m);
    padding: 14px 18px;
    box-shadow: var(--shadow-soft);
    display: flex; flex-direction: column;
    max-width: calc(100% - 40px);
}
.stat-chip strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--pine); white-space: nowrap; }
.stat-chip strong span { font-size: 1rem; color: var(--ink-soft); font-family: var(--font-body); }
.stat-label { font-size: 0.8rem; color: var(--ink-soft); margin-top: 2px; }

/* ============ QUOTE CALCULATOR ============ */
.quote-section { background: var(--base-alt); }

.quote-card {
    background: var(--card);
    border: 1px solid var(--mist);
    border-radius: var(--radius-l);
    padding: 40px;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    align-items: center;
    box-shadow: var(--shadow-soft);
}

.quote-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field span { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.field select, .field input, .field textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.98rem;
    padding: 12px 14px;
    border-radius: var(--radius-s);
    border: 1px solid var(--mist);
    background: var(--base);
    color: var(--ink);
}
.field select:focus, .field input:focus, .field textarea:focus { border-color: var(--pine); outline: none; }
.field-full { grid-column: 1 / -1; }

.quote-result {
    border-left: 1px solid var(--mist);
    padding-left: 40px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}
.quote-price { display: flex; flex-direction: column; }
.quote-price-label { font-size: 0.85rem; color: var(--ink-soft); font-weight: 600; }
.quote-price-value { font-family: var(--font-display); font-size: 2.8rem; color: var(--pine); line-height: 1.15; }
.quote-price-note { font-size: 0.85rem; color: var(--ink-soft); }

/* ============ SERVICES ============ */
.service-rows { display: flex; flex-direction: column; }
.service-row {
    display: flex;
    gap: 26px;
    padding: 28px 0;
    border-top: 1px solid var(--mist);
    align-items: center;
}
.service-row:last-child { border-bottom: 1px solid var(--mist); }
.service-photo {
    width: 84px; height: 84px;
    border-radius: var(--radius-m);
    overflow: hidden;
    flex-shrink: 0;
}
.service-photo img { width: 100%; height: 100%; object-fit: cover; }
.service-copy h3 { font-size: 1.2rem; margin-bottom: 6px; }
.service-copy p { color: var(--ink-soft); max-width: 620px; }

/* ============ GALLERY ============ */
.gallery-section { background: var(--base-alt); }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.gallery-item {
    position: relative;
    border-radius: var(--radius-m);
    overflow: hidden;
    aspect-ratio: 3/4;
}
.gallery-item-tall { grid-row: span 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item figcaption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 16px 14px;
    background: linear-gradient(to top, rgba(16,28,25,0.85), transparent);
    color: #F1F5F2;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ============ BEFORE / AFTER ============ */
.compare-section { overflow: visible; }
.compare-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-l);
    overflow: hidden;
    border: 1px solid var(--mist);
    max-width: 900px;
    margin: 0 auto;
    background: var(--mist);
}
.compare-layer { position: absolute; inset: 0; }
.compare-layer img { width: 100%; height: 100%; object-fit: cover; }
.compare-before { clip-path: inset(0 50% 0 0); }
.compare-before img { filter: grayscale(0.6) brightness(0.68) contrast(0.95); }
.compare-tag {
    position: absolute;
    top: 16px;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
}
.compare-tag-after { right: 16px; background: var(--pine); }
.compare-tag-before { left: 16px; background: rgba(16,28,25,0.75); }

#compareRange {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    opacity: 0;
    cursor: ew-resize;
    margin: 0;
}
.compare-handle {
    position: absolute;
    top: 50%; left: 50%;
    width: 44px; height: 44px;
    background: var(--card);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transform: translate(-50%, -50%);
    box-shadow: var(--shadow-soft);
    color: var(--ink);
    pointer-events: none;
}

/* ============ PRICING ============ */
.price-table-wrap { max-width: 780px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.price-table { width: 100%; min-width: 480px; border-collapse: collapse; }
.price-table th, .price-table td {
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid var(--mist);
    white-space: nowrap;
}
.price-table th { font-weight: 600; color: var(--ink-soft); font-size: 0.85rem; }
.price-table td:first-child { font-weight: 600; }
.price-table td:not(:first-child) { color: var(--pine); font-weight: 600; }
.price-note { color: var(--ink-soft); font-size: 0.92rem; margin-top: 22px; max-width: 780px; }

/* ============ REVIEWS ============ */
.reviews-carousel { position: relative; }
.reviews-track {
    display: flex;
    transition: transform 0.4s ease;
}
.review-card {
    flex: 0 0 100%;
    background: var(--card);
    border: 1px solid var(--mist);
    border-radius: var(--radius-l);
    padding: 36px;
    max-width: 620px;
    min-width: 0;
}
.review-stars { color: var(--sun-deep); margin-bottom: 16px; font-size: 0.95rem; }
.review-card p { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.4; margin-bottom: 20px; }
.review-card footer { color: var(--ink-soft); font-size: 0.9rem; font-weight: 600; }

.reviews-controls { display: flex; align-items: center; gap: 18px; margin-top: 26px; }
.carousel-btn {
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid var(--mist);
    background: var(--card);
    color: var(--ink);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.carousel-btn:hover { border-color: var(--pine); color: var(--pine); }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dots span {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--mist);
    cursor: pointer;
    flex-shrink: 0;
}
.carousel-dots span.active { background: var(--pine); }

/* ============ AREAS + COVERAGE CHECKER ============ */
.coverage-checker { max-width: 560px; margin-bottom: 40px; }
.coverage-input-row { display: flex; gap: 12px; }
.coverage-input-row input {
    flex: 1;
    min-width: 0;
    font-family: var(--font-body);
    font-size: 0.98rem;
    padding: 13px 16px;
    border-radius: var(--radius-s);
    border: 1px solid var(--mist);
    background: var(--card);
    color: var(--ink);
}
.coverage-input-row input:focus { border-color: var(--pine); outline: none; }
.coverage-result { margin-top: 14px; font-weight: 600; font-size: 0.95rem; min-height: 1.4em; }
.coverage-result.is-yes { color: var(--pine); }
.coverage-result.is-no { color: var(--sun-deep); }

.areas-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px 30px;
}
.areas-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--mist);
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.areas-list li::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--sun-deep);
    flex-shrink: 0;
}

/* ============ FAQ ============ */
.faq-list { max-width: 720px; }
.faq-item { border-bottom: 1px solid var(--mist); }
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
}
.faq-question i { color: var(--ink-soft); transition: transform 0.25s ease; flex-shrink: 0; }
.faq-question[aria-expanded="true"] i { transform: rotate(180deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-answer p { color: var(--ink-soft); padding-bottom: 20px; max-width: 600px; }

/* ============ CONTACT ============ */
.contact-section { background: var(--base-alt); text-align: center; }
.contact-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}
.contact-tile {
    background: var(--card);
    border: 1px solid var(--mist);
    border-radius: var(--radius-m);
    padding: 30px 20px;
    text-decoration: none;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.contact-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.contact-tile i { font-size: 1.8rem; color: var(--pine); }
.contact-tile-wa i { color: var(--wa); }
.contact-tile strong { font-size: 1.02rem; }
.contact-tile span { font-size: 0.85rem; color: var(--ink-soft); }

/* ============ FOOTER ============ */
.footer { background: var(--charcoal); color: #A9BEB7; padding: 56px 0 0; }
.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo { font-family: var(--font-display); font-size: 1.15rem; color: #ffffff; display: block; margin-bottom: 10px; }
.footer-grid p { max-width: 320px; font-size: 0.92rem; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: #A9BEB7; font-size: 0.92rem; }
.footer-links a:hover { color: #ffffff; }
.footer-bottom { padding: 22px 0; font-size: 0.85rem; }

/* ============ FLOATING / STICKY CTAs ============ */
.whatsapp-float {
    position: fixed;
    bottom: 26px; right: 26px;
    width: 56px; height: 56px;
    background-color: var(--wa);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    z-index: 900;
}

.mobile-sticky-bar { display: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-tiles { grid-template-columns: 1fr; max-width: 420px; }
}

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { order: -1; max-width: 340px; margin: 0 auto; }
    .quote-card { grid-template-columns: 1fr; padding: 28px; }
    .quote-result { border-left: none; border-top: 1px solid var(--mist); padding-left: 0; padding-top: 24px; }
}

@media (max-width: 820px) {
    section { padding: 60px 0; }
    .menu-toggle { display: block; }
    .desktop-cta-btn { display: none; }
    .mobile-call-btn { display: inline-flex; width: 100%; margin-top: 22px; justify-content: center; }
    .whatsapp-float { display: none; }

    .nav {
        position: fixed;
        top: 0; right: -100%;
        width: 100%; height: 100vh;
        background-color: var(--base);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 30px;
        transition: right 0.4s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    .nav.active { right: 0; }
    .nav-link { font-size: 1.2rem; margin: 10px 0; }

    .hero { padding: 110px 0 50px; text-align: center; }
    .hero-lede { margin-left: auto; margin-right: auto; }
    .hero-btns { justify-content: center; }
    .hero-btns .btn { flex: 1 1 auto; }
    .trust-row { justify-content: center; }
    .stat-chip { left: 50%; transform: translateX(-50%); }

    .quote-fields { grid-template-columns: 1fr; }
    .service-row { flex-direction: column; align-items: flex-start; text-align: left; gap: 14px; }
    .service-photo { width: 100%; height: 160px; }

    .gallery-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

    .coverage-input-row { flex-direction: column; }
    .coverage-input-row .btn { width: 100%; }

    .mobile-sticky-bar {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; width: 100%;
        z-index: 950;
        border-top: 1px solid var(--mist);
        background: var(--card);
    }
    .sticky-btn {
        flex: 1;
        display: flex; align-items: center; justify-content: center;
        gap: 8px;
        padding: 15px 0;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.92rem;
        white-space: nowrap;
    }
    .sticky-btn-call { background: var(--pine); color: #F6F8F6; }
    .sticky-btn-wa { background: var(--wa); color: #ffffff; }
    body { padding-bottom: 56px; }
}

@media (max-width: 480px) {
    .container { padding: 0 18px; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .quote-price-value { font-size: 2.3rem; }
    .review-card { padding: 26px; }
    .review-card p { font-size: 1.05rem; }
}