/* CashHomeValue - Lead Generation Website */
:root {
    --color-primary: #0d4f4f;
    --color-primary-light: #1a6b6b;
    --color-accent: #e8b86d;
    --color-accent-hover: #f0c97d;
    --color-dark: #1a2e2e;
    --color-text: #2d3d3d;
    --color-text-muted: #5c7373;
    --color-bg: #f8faf9;
    --color-white: #ffffff;
    --color-negative: #c45c5c;
    --color-positive: #2d7a5e;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;
    --shadow-sm: 0 2px 8px rgba(13, 79, 79, 0.08);
    --shadow-md: 0 4px 20px rgba(13, 79, 79, 0.12);
    --shadow-lg: 0 8px 40px rgba(13, 79, 79, 0.15);
    --radius: 12px;
    --radius-lg: 20px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(13, 79, 79, 0.08);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
}

.logo-img {
    height: 48px;
    width: auto;
    display: block;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--color-primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--color-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-nav {
    background: var(--color-accent);
    color: var(--color-dark);
}

.btn-nav:hover {
    background: var(--color-accent-hover);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* Hero - Conversion-focused, form above the fold */
.hero {
    position: relative;
    padding: 140px 0 80px;
    overflow: hidden;
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(13, 79, 79, 0.03) 0%, transparent 50%),
        linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(245,247,246,0.55) 100%),
        url('images/homevaluereport_2.png') center right / cover no-repeat;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
    width: 100%;
}

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

.hero-content {
    text-align: left;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(232, 184, 109, 0.2);
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--color-dark);
    line-height: 1.25;
    margin-bottom: 20px;
}

.hero-title .highlight {
    color: var(--color-primary);
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.hero-trust {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.hero-form-wrapper .form-card {
    margin: 0;
    max-width: 100%;
}

.hero-form-wrapper {
    display: flex;
    justify-content: flex-end;
}

/* Trust Badges */
.trust-badges {
    padding: 48px 0;
    background: var(--color-white);
    border-top: 1px solid rgba(13, 79, 79, 0.06);
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.badge-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.badge-icon {
    font-size: 1.5rem;
}

.badge-label {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--color-dark);
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.form-card {
    max-width: 100%;
    margin: 0;
    padding: 52px 56px 52px 40px;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 249, 0.95) 100%);
    box-shadow: 
        0 4px 6px rgba(13, 79, 79, 0.04),
        0 12px 32px rgba(13, 79, 79, 0.12),
        0 0 0 1px rgba(13, 79, 79, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}


.lead-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-row-full {
    grid-template-columns: 1fr;
}

.form-message {
    font-size: 0.9rem;
    padding: 12px;
    border-radius: var(--radius);
    display: none;
}

.form-message.visible {
    display: block;
}

.form-message.success {
    background: rgba(45, 122, 94, 0.15);
    color: var(--color-positive);
}

.form-message.error {
    background: rgba(196, 92, 92, 0.15);
    color: var(--color-negative);
}

.lead-form input.error {
    border-color: var(--color-negative);
}

.form-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--color-text);
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.form-checkbox input[type="checkbox"].error {
    outline: 2px solid var(--color-negative);
    outline-offset: 1px;
}

.form-checkbox a {
    color: var(--color-primary);
    text-decoration: underline;
}

.form-checkbox a:hover {
    color: var(--color-primary-light);
}

#leadSubmitFrame {
    position: absolute;
    width: 0;
    height: 0;
    border: none;
    visibility: hidden;
}

.lead-form input,
.lead-form select {
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid rgba(13, 79, 79, 0.15);
    border-radius: var(--radius);
    transition: border-color 0.2s;
}

.lead-form input:focus,
.lead-form select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.lead-form input::placeholder {
    color: var(--color-text-muted);
}

/* How It Works */
.how-it-works {
    padding: 80px 0;
    background: var(--color-white);
}

.how-it-works .section-subtitle {
    margin-bottom: 56px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 48px;
}

.step {
    text-align: center;
    padding: 32px 24px;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    transition: transform 0.2s;
}

.step:hover {
    transform: translateY(-4px);
}

.step-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step h3 {
    font-size: 1.25rem;
    color: var(--color-dark);
    margin-bottom: 12px;
}

.step p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.how-it-works .btn {
    display: block;
    margin: 0 auto;
}

/* Why Choose */
.why-choose {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.why-choose .features-grid {
    justify-items: center;
}

.feature {
    padding: 40px 32px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s;
}

.why-choose .feature {
    text-align: center;
    max-width: 360px;
    width: 100%;
}

.feature:hover {
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.why-choose .feature-icon {
    display: block;
}

.why-choose .feature-icon img {
    width: 56px;
    height: auto;
    margin: 0 auto;
    display: block;
    object-fit: contain;
}

.feature h3 {
    font-size: 1.25rem;
    color: var(--color-dark);
    margin-bottom: 12px;
}

.feature p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Comparison Table */
.compare {
    padding: 80px 0;
    background: var(--color-white);
}

.compare-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-white);
}

.compare-table th,
.compare-table td {
    padding: 20px 24px;
    text-align: left;
    border-bottom: 1px solid rgba(13, 79, 79, 0.08);
}

.compare-table th {
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
}

.compare-table th:first-child {
    border-radius: var(--radius) 0 0 0;
}

.compare-table th:last-child {
    border-radius: 0 var(--radius) 0 0;
}

.compare-table tbody tr:hover {
    background: rgba(13, 79, 79, 0.02);
}

.compare-table .negative {
    color: var(--color-text);
}

.compare-table .positive {
    color: var(--color-positive);
    font-weight: 500;
}

/* Final CTA */
.final-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    text-align: center;
}

.final-cta .section-title {
    color: var(--color-white);
    margin-bottom: 20px;
}

.final-cta-text {
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 32px;
    font-size: 1.1rem;
}

.final-cta .btn-primary {
    background: var(--color-accent);
    color: var(--color-dark);
}

.final-cta .btn-primary:hover {
    background: var(--color-accent-hover);
}

.final-trust {
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    padding: 32px 0;
    background: var(--color-dark);
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    margin-bottom: 16px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-contact {
    margin-bottom: 12px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.5;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--color-white);
    text-decoration: underline;
}

.footer-contact .sep {
    margin: 0 0.35em;
    opacity: 0.5;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Legal / Info Pages */
.legal-page {
    padding: 140px 0 80px;
    min-height: 100vh;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.legal-updated {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.legal-content {
    max-width: 720px;
    background: var(--color-white);
    padding: 40px 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.legal-content h2 {
    font-size: 1.2rem;
    color: var(--color-dark);
    margin-top: 28px;
    margin-bottom: 12px;
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-content p,
.legal-content li {
    color: var(--color-text);
    margin-bottom: 12px;
    line-height: 1.7;
}

.legal-content ul {
    margin: 12px 0 20px 24px;
}

.legal-content a {
    color: var(--color-primary);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.disclosure-notice {
    background: rgba(232, 184, 109, 0.15);
    border-left: 4px solid var(--color-accent);
    padding: 20px 24px;
    margin-bottom: 28px;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.faq-content .faq-item {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(13, 79, 79, 0.08);
}

.faq-content .faq-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.faq-content .faq-item h2 {
    margin-top: 0;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 120px 0 60px;
        min-height: auto;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-form-wrapper {
        justify-content: flex-start;
    }

    .hero-form-wrapper .form-card {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-content {
        text-align: center;
    }

    .hero-subtitle {
        text-align: center;
    }

    .hero-trust {
        text-align: center;
    }

    .badges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .steps-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .compare-table th,
    .compare-table td {
        padding: 14px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .badges-grid {
        grid-template-columns: 1fr;
    }

    .form-card {
        padding: 24px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }

    .legal-content {
        padding: 24px;
    }
}
