/* ==========================================================================
   1. CSS VARIABLES & RESET
   ========================================================================== */
:root {
    /* Apple-inspired Color System */
    --color-bg-primary: #FFFFFF;
    --color-bg-secondary: #F5F5F7;
    --color-bg-tertiary: #FBFBFD;
    --color-text-primary: #1D1D1F;
    --color-text-secondary: #6E6E73;
    --color-border: #D2D2D7;
    --color-blue: #0071E3;
    --color-blue-hover: #0077ED;
    --color-blue-light: #F0F7FF;

    /* Typography */
    --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
    
    /* Layout & Spacing */
    --container-width: 1240px;
    --pad-x: clamp(20px, 4vw, 40px);
    --section-pad-y: clamp(64px, 8vw, 120px);
    
    /* UI Elements */
    --radius-card: 20px;
    --radius-btn: 999px;
    --radius-input: 12px;
    --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.12);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

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

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

body {
    font-family: var(--font-stack);
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: color var(--transition-fast); }
button { border: none; background: none; font: inherit; cursor: pointer; }

/* ==========================================================================
   2. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4 {
    color: var(--color-text-primary);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.15;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.03em; margin-bottom: 1rem; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
p { color: var(--color-text-secondary); margin-bottom: 1rem; }

.eyebrow {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-secondary);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ==========================================================================
   3. LAYOUT & UTILITIES
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--pad-x);
}

section { padding: var(--section-pad-y) 0; }
.bg-secondary { background-color: var(--color-bg-secondary); }
.bg-tertiary { background-color: var(--color-bg-tertiary); }
.text-center { text-align: center; }

.section-header {
    max-width: 680px;
    margin: 0 auto 3rem auto;
    text-align: center;
}

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 0 1.75rem;
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: 1rem;
    gap: 0.5rem;
    transition: all var(--transition-fast);
    text-align: center;
}

.btn:active { transform: scale(0.98); }

.btn-primary { background-color: var(--color-blue); color: #FFFFFF; }
.btn-primary:hover { background-color: var(--color-blue-hover); }

.btn-secondary { background-color: var(--color-bg-primary); border: 1px solid var(--color-border); color: var(--color-text-primary); }
.btn-secondary:hover { background-color: var(--color-bg-secondary); }

.btn-text { color: var(--color-blue); font-weight: 500; display: inline-flex; align-items: center; gap: 0.25rem; padding: 0; height: auto; }
.btn-text:hover { text-decoration: underline; }

/* ==========================================================================
   5. HEADER & NAVIGATION
   ========================================================================== */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    height: 72px;
    display: flex;
    align-items: center;
    transition: box-shadow var(--transition-fast);
}

header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.04); }

.header-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; }

.logo { font-size: 1.25rem; font-weight: 700; color: var(--color-text-primary); }
.logo span { color: var(--color-blue); }

.nav-desktop { display: none; }
.nav-desktop ul { display: flex; gap: 2rem; font-size: 0.875rem; font-weight: 500; color: var(--color-text-secondary); }
.nav-desktop a:hover { color: var(--color-text-primary); }

.header-actions { display: none; align-items: center; gap: 1.5rem; }
.header-actions .btn { height: 44px; padding: 0 1.25rem; font-size: 0.875rem; }

.phone-link { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.875rem; }
.phone-link svg { width: 18px; height: 18px; }

.mobile-menu-btn { display: flex; flex-direction: column; gap: 5px; padding: 0.5rem; z-index: 101; }
.mobile-menu-btn span { display: block; width: 24px; height: 2px; background-color: var(--color-text-primary); transition: var(--transition-fast); }

/* Mobile Overlay Menu */
.mobile-menu {
    position: fixed; top: 72px; left: 0; width: 100%; height: calc(100vh - 72px);
    background-color: var(--color-bg-primary); padding: 2rem var(--pad-x);
    transform: translateY(-100%); opacity: 0; pointer-events: none;
    transition: all var(--transition-smooth); z-index: 99;
    display: flex; flex-direction: column; gap: 2.5rem;
}
.mobile-menu.is-active { transform: translateY(0); opacity: 1; pointer-events: all; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 1.5rem; font-size: 1.25rem; font-weight: 600; }
.mobile-menu .btn { width: 100%; }

/* ==========================================================================
   6. HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    padding-top: clamp(3rem, 6vw, 6rem);
    padding-bottom: clamp(3rem, 6vw, 4rem);
    overflow: hidden;
    background: var(--color-bg-primary);
    background: url(images/bg.webp);
    background-position: center;
    background-size: cover;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

.hero-content { display: flex; flex-direction: column; position: relative; z-index: 2; }
.hero-content p { font-size: 1.125rem; max-width: 540px; margin-bottom: 2rem; }

.hero-actions { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }

.trust-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
    font-size: 0.875rem; color: var(--color-text-secondary); font-weight: 500;
}
.trust-item { display: flex; align-items: center; gap: 0.5rem; }
.trust-item svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--color-text-primary); }

.hero-image { position: relative; z-index: 1; margin: -1rem 0; }
.hero-image img { width: 100%; max-width: 600px; margin: 0 auto; object-fit: contain; }

/* Quote Form */
.hero-form-wrapper { position: relative; z-index: 3; }
.form-card {
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.form-header { margin-bottom: 1.5rem; }
.form-header h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.form-header p { font-size: 0.875rem; margin: 0; }

.form-group { margin-bottom: 1.05rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--color-text-primary); }

.form-control {
    width: 100%;
    height: 52px;
    padding: 0 1rem;
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-input);
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-text-primary);
    transition: all var(--transition-fast);
    appearance: none;
}

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%231D1D1F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

textarea.form-control { height: auto; padding: 1rem; resize: vertical; min-height: 100px; }

.form-control:focus { outline: none; border-color: var(--color-blue); box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2); }
.form-control::placeholder { color: #A1A1A6; }

.form-submit .btn { width: 100%; margin-top: 0.5rem; }
.form-privacy { text-align: center; font-size: 0.75rem; color: var(--color-text-secondary); margin-top: 1rem; }

/* Desktop Trust Strip (Below Hero) */
.trust-strip-full {
    display: none;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg-tertiary);
    padding: 1.5rem 0;
}
.trust-strip-full .container {
    display: flex; justify-content: space-between; align-items: center;
}

/* ==========================================================================
   7. COMMON ISSUES
   ========================================================================== */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.service-card {
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.service-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.service-card-img {
    background: var(--color-bg-secondary);
    aspect-ratio: 16/9;
    overflow: hidden;
}
.service-card-img img { width: 100%; height: 100%; object-fit: cover; }

.service-card-content { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.service-card-content h3 { font-size: 1.125rem; }
.service-card-content p { font-size: 0.875rem; flex-grow: 1; margin-bottom: 1.25rem; }

/* ==========================================================================
   8. HOW IT WORKS
   ========================================================================== */
.process-wrapper { position: relative; }

/* Mobile Vertical Line */
.process-wrapper::before {
    content: ''; position: absolute; top: 0; left: 24px;
    width: 1px; height: 100%; background: var(--color-border); z-index: 0;
}

.process-step { display: flex; align-items: flex-start; gap: 1.5rem; margin-bottom: 2rem; position: relative; z-index: 1; }
.process-step:last-child { margin-bottom: 0; }

.step-icon {
    width: 48px; height: 48px; border-radius: 14px;
    background: var(--color-bg-primary); border: 1px solid var(--color-border);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step-icon svg { width: 24px; height: 24px; color: var(--color-text-primary); }

.step-content { padding-top: 0.25rem; }
.step-content span { display: block; font-size: 0.75rem; font-weight: 700; color: var(--color-text-secondary); margin-bottom: 0.25rem; }
.step-content h4 { font-size: 1.125rem; margin-bottom: 0.25rem; }
.step-content p { font-size: 0.875rem; margin: 0; }

/* ==========================================================================
   9. WHY CHOOSE US
   ========================================================================== */
.split-section { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }

.benefits-list { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.benefit-item { display: flex; align-items: flex-start; gap: 1rem; }
.benefit-item svg { width: 24px; height: 24px; color: var(--color-text-primary); flex-shrink: 0; }
.benefit-text h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.benefit-text p { font-size: 0.875rem; margin: 0; }

.split-image img { width: 100%; height: auto; object-fit: contain; }

/* ==========================================================================
   10. GUIDES / SUPPORT
   ========================================================================== */
.support-card {
    background: var(--color-bg-primary); border-radius: var(--radius-card);
    padding: 2rem; border: 1px solid var(--color-border);
    display: flex; flex-direction: column; align-items: flex-start;
}
.support-card svg { width: 32px; height: 32px; color: var(--color-text-primary); margin-bottom: 1.25rem; }
.support-card h3 { font-size: 1.125rem; }
.support-card p { font-size: 0.875rem; margin-bottom: 1.5rem; flex-grow: 1; }

/* ==========================================================================
   11. REVIEWS (UPDATED WITH CAROUSEL)
   ========================================================================== */
.reviews-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.reviews-container {
    display: flex; 
    gap: 1.5rem; 
    overflow-x: auto; 
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory; 
    scrollbar-width: none; /* Firefox */
}
.reviews-container::-webkit-scrollbar { display: none; } /* Chrome/Safari */

.review-card {
    min-width: 300px; max-width: 350px; background: var(--color-bg-primary);
    padding: 2rem; border-radius: var(--radius-card); border: 1px solid var(--color-border);
    scroll-snap-align: start; flex-shrink: 0;
}

.stars { color: #F59E0B; font-size: 1.25rem; margin-bottom: 1rem; letter-spacing: 2px; }
.review-text { font-size: 0.9375rem; font-style: italic; margin-bottom: 1.5rem; }
.reviewer { display: flex; align-items: center; gap: 0.75rem; }
.reviewer-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--color-bg-secondary); color: var(--color-text-primary);
    display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.reviewer-info h4 { margin: 0; font-size: 0.875rem; }
.reviewer-info span { font-size: 0.75rem; color: var(--color-text-secondary); }

/* Reviews Navigation Buttons */
.review-nav-btn {
    position: absolute;
    z-index: 10;
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    color: var(--color-text-primary);
    transition: var(--transition-fast);
}

.review-nav-btn:hover {
    background: var(--color-bg-secondary);
    transform: scale(1.05);
}

.prev-btn { left: -22px; }
.next-btn { right: -22px; }

@media (max-width: 767px) {
    .review-nav-btn { display: none; }
}

/* ==========================================================================
   12. FAQ ACCORDION
   ========================================================================== */
.faq-wrapper { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }

.faq-item { background: var(--color-bg-primary); border: 1px solid var(--color-border); border-radius: 12px; overflow: hidden; }

.faq-btn {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 1.25rem 1.5rem; font-size: 1rem; font-weight: 600; color: var(--color-text-primary); text-align: left;
}

.faq-icon { width: 20px; height: 20px; position: relative; flex-shrink: 0; margin-left: 1rem; }
.faq-icon::before, .faq-icon::after {
    content: ""; position: absolute; background: var(--color-text-primary);
    top: 50%; left: 50%; transform: translate(-50%, -50%); transition: var(--transition-fast);
}
.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after { width: 2px; height: 14px; }

.faq-btn[aria-expanded="true"] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.faq-content { max-height: 0; overflow: hidden; transition: max-height var(--transition-smooth); }
.faq-content p { padding: 0 1.5rem 1.5rem 1.5rem; margin: 0; font-size: 0.9375rem; }

/* ==========================================================================
   13. FINAL CTA
   ========================================================================== */
.cta-card {
    overflow: hidden; position: relative;
    padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 4vw, 4rem);
}
section#cta {
    background: url(images/cta-bg.webp);
    background-size: cover;
}

.cta-grid { display: grid; align-items: center; gap: 3rem; }
.cta-text { max-width: 500px; position: relative; z-index: 2; }
.cta-text-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.cta-image { position: relative; z-index: 1; margin: -2rem 0 -4rem 0; }
.cta-image img { width: 100%; max-width: 600px; margin: 0 auto; object-fit: contain; }

/* ==========================================================================
   14. FOOTER
   ========================================================================== */
footer { background: var(--color-bg-primary); border-top: 1px solid var(--color-border); padding: 4rem 0 2rem 0; }

.footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; margin-bottom: 4rem; }
.footer-col h4 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1.25rem; color: var(--color-text-primary); }
.footer-col ul { display: flex; flex-direction: column; gap: 0.875rem; }
.footer-col a, .footer-col p { color: var(--color-text-secondary); font-size: 0.875rem; padding-top: 10px;}
.footer-col a:hover { color: var(--color-text-primary); }

.footer-bottom {
    display: flex; flex-direction: column; align-items: center; gap: 1rem;
    border-top: 1px solid var(--color-border); padding-top: 2rem; font-size: 0.75rem; color: var(--color-text-secondary);
}

/* ==========================================================================
   15. MOBILE STICKY CTA
   ========================================================================== */
.mobile-sticky-cta { display: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Tablet */
@media (min-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    /* Header */
    .mobile-menu-btn,
    .mobile-menu {
        display: none !important;
    }

    .nav-desktop,
    .header-actions {
        display: flex;
    }

    /* Hero */
    .hero-grid {
        grid-template-columns: 55% 42%;
        gap: 3%;
    }

    .hero-actions {
        flex-direction: row;
        margin-bottom: 3rem;
    }

    .hero-image {
        position: absolute;
        top: 50%;
        right: -5%;
        transform: translateY(-50%);
        width: 55vw;
        max-width: 900px;
        z-index: 1;
        opacity: 0.9;
        pointer-events: none;
    }

    /* Trust strip */
    .trust-strip-full {
        display: block;
    }

    /* Cards */
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    /* Process */
    .process-wrapper {
        display: flex;
        justify-content: space-between;
        gap: 2rem;
    }

    .process-wrapper::before {
        display: none;
    }

    .process-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 0;
        flex: 1;
        gap: 1rem;
    }

    .process-step:not(:last-child)::after {
        content: "→";
        position: absolute;
        top: 24px;
        right: -1.25rem;
        font-size: 1.5rem;
        color: var(--color-border);
        font-weight: 300;
    }

    /* Why choose us */
    .split-section {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }

    /* Final CTA */
    .cta-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cta-image {
        position: absolute;
        right: -5%;
        bottom: -10%;
        width: 55%;
        margin: 0;
    }

    .cta-image img {
        width: 100%;
        max-width: none;
    }
}

/* Mobile / Tablet hero stacking */
@media (max-width: 1023px) {
    .hero-grid {
        display: flex;
        flex-direction: column;
    }

    .hero-content {
        order: 1;
    }

    .hero-image {
        order: 2;
        margin: 1rem 0;
    }

    .hero-actions {
        order: 3;
    }

    .trust-grid {
        order: 4;
        margin-bottom: 1rem;
    }

    .hero-form-wrapper {
        order: 5;
    }
}

/* Mobile */
@media (max-width: 767px) {
    body {
        padding-bottom: calc(72px + env(safe-area-inset-bottom));
    }

    .mobile-sticky-cta {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid var(--color-border);
        padding: 0.75rem var(--pad-x);
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
        z-index: 98;
        gap: 0.5rem;
    }

    .mobile-sticky-cta .btn {
        flex: 1;
        height: 44px;
        padding: 0;
        font-size: 0.875rem;
    }
}