/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #c62828;
    --primary-dark: #8e0000;
    --primary-light: #ff5f52;
    --secondary-color: #1a237e;
    --secondary-dark: #000051;
    --secondary-light: #534bae;
    --accent-color: #ff6f00;
    --text-dark: #1a1a1a;
    --text-light: #4b5563;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }
}

@media (min-width: 1280px) {
    .container {
        padding: 0 60px;
    }
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    z-index: 1000;
    padding: 14px 0;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.header-financing {
    flex: 1;
    text-align: center;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.2px;
    color: rgba(26, 26, 26, 0.75);
    white-space: nowrap;
}

@media (max-width: 767px) {
    .header-financing {
        display: none;
    }
}

.logo-img {
    height: 60px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.03);
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.header-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 13px 26px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 8px -2px rgba(198, 40, 40, 0.35);
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(198, 40, 40, 0.45);
}

.header-cta:active {
    transform: translateY(0);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.94) 0%, rgba(51, 65, 85, 0.92) 50%, rgba(71, 85, 105, 0.90) 100%);
    color: white;
    padding: 40px 24px 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero {
        padding: 60px 40px 70px;
    }
}

@media (min-width: 1024px) {
    .hero {
        padding: 80px 60px 90px;
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('logo.png');
    background-size: 800px;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.03;
    filter: blur(20px);
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(198, 40, 40, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(26, 35, 126, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Hero Two-Column Layout */
.hero-two-column {
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .hero-two-column {
        flex-direction: row;
        align-items: center;
        gap: 50px;
        min-height: 700px;
    }
}

.hero-content {
    flex: 1;
    max-width: 650px;
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .hero-content {
        max-width: 600px;
        flex: 0 0 55%;
    }
}

.hero-image-column {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-image-column {
        flex: 0 0 45%;
    }
}

.hero-image-column img {
    width: 100%;
    max-width: 520px;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    border: 3px solid rgba(255, 255, 255, 0.4);
}

.hero-title {
    font-size: 2.125rem;
    font-weight: 900;
    margin-bottom: 12px;
    line-height: 1.05;
    letter-spacing: -1px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.95);
}

.hero-inline-image {
    width: 100%;
    max-width: 360px;
    margin: 14px auto 16px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    border: 3px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.06);
    aspect-ratio: 1 / 1;
}

.hero-inline-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.trust-badges {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 14px;
    max-width: 100%;
    overflow-x: auto;
    padding: 0 4px;
}

.badge {
    background: rgba(255, 255, 255, 0.16);
    padding: 9px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: rgba(255, 255, 255, 0.98);
    letter-spacing: 0.2px;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.badge:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-proof {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 28px;
    font-style: italic;
    line-height: 1.4;
}

/* Enhanced CTA Cards */
.hero-ctas-enhanced {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 36px;
    max-width: 100%;
}

@media (min-width: 768px) {
    .hero-ctas-enhanced {
        flex-direction: row;
        gap: 16px;
    }
}

@media (min-width: 1024px) {
    .hero-ctas-enhanced {
        gap: 18px;
    }
}

.cta-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px 28px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    font-family: inherit;
    flex: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-card-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.cta-card-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(198, 40, 40, 0.4);
}

.cta-card-secondary {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-card-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 255, 255, 0.3);
    background: white;
}

.cta-icon {
    font-size: 36px;
    line-height: 1;
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .cta-icon {
        font-size: 40px;
    }
}

.cta-content {
    text-align: left;
    flex: 1;
}

.cta-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 3px;
    letter-spacing: -0.3px;
}

@media (min-width: 1024px) {
    .cta-title {
        font-size: 20px;
    }
}

.cta-subtitle {
    font-size: 13.5px;
    opacity: 0.85;
    font-weight: 500;
}

@media (min-width: 1024px) {
    .cta-subtitle {
        font-size: 14px;
    }
}

.cta-card-secondary .cta-subtitle {
    opacity: 0.65;
}

/* Legacy hero-ctas */
.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 0;
    align-items: stretch;
    max-width: 380px;
    margin: 0 auto;
}

.cta-primary {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cta-label {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-style: normal;
    letter-spacing: 0.2px;
}

.btn-hero {
    width: 100%;
    font-size: 17px;
    text-align: center;
}

.btn-emergency {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    opacity: 0.92;
}

.btn-emergency:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(220, 38, 38, 0.3);
    opacity: 1;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    letter-spacing: 0.3px;
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -8px rgba(198, 40, 40, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

/* Improve readability when outline buttons are used on dark backgrounds */
.hero .btn-outline,
.hero .btn-outline.btn-hero {
    color: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.85);
}

.hero .btn-outline:hover,
.hero .btn-outline.btn-hero:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border-color: white;
}

.btn-large {
    padding: 18px 44px;
    font-size: 18px;
    border-radius: 14px;
}

.btn-full {
    width: 100%;
}

/* Services Section */
.services {
    padding: 80px 24px;
    background: var(--bg-white);
}

@media (min-width: 768px) {
    .services {
        padding: 100px 40px;
    }
}

@media (min-width: 1024px) {
    .services {
        padding: 120px 60px;
    }
}

.section-title {
    text-align: center;
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-dark);
    letter-spacing: -1px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 60px;
    font-size: 1.125rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: white;
    padding: 40px 32px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.emergency-card {
    border: 2px solid var(--accent-color);
    background: linear-gradient(135deg, #fff8f0 0%, #ffffff 100%);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    color: var(--text-dark);
    margin-bottom: 12px;
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.service-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
}

/* Why Us Section */
.why-us {
    padding: 80px 24px;
    background: linear-gradient(180deg, var(--bg-light) 0%, white 100%);
}

@media (min-width: 768px) {
    .why-us {
        padding: 100px 40px;
    }
}

@media (min-width: 1024px) {
    .why-us {
        padding: 120px 60px;
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 60px;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature {
    text-align: center;
    padding: 32px 24px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.feature:hover {
    background: white;
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 24px;
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.feature:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.4);
}

.feature h3 {
    color: var(--text-dark);
    margin-bottom: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.feature p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
}

/* Roof Replacement Showcase */
.roof-replacement-showcase {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
}

.replacement-image-wrapper {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.replacement-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.replacement-overlay {
    position: relative;
    width: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.75) 60%, rgba(15, 23, 42, 0.4) 90%, transparent);
    color: white;
    padding: 60px 24px 48px;
    z-index: 1;
}

.replacement-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.replacement-content h2 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: -1px;
    color: white;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
    line-height: 1.1;
}

.replacement-content p {
    font-size: 1.25rem;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    line-height: 1.5;
}

.replacement-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 36px;
    padding: 0 12px;
}

.feature-badge {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 11px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.feature-badge:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .replacement-gradient {
        min-height: 400px;
        padding: 48px 20px 40px;
    }

    .replacement-content h2 {
        font-size: 1.875rem;
        margin-bottom: 14px;
        line-height: 1.15;
    }

    .replacement-content p {
        font-size: 1rem;
        margin-bottom: 24px;
        line-height: 1.5;
    }

    .replacement-features {
        gap: 8px;
        margin-bottom: 28px;
    }

    .feature-badge {
        font-size: 12.5px;
        padding: 9px 17px;
    }
}

/* Free Inspection Showcase */
.inspection-showcase {
    padding: 80px 24px;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

@media (min-width: 768px) {
    .inspection-showcase {
        padding: 100px 40px;
    }
}

@media (min-width: 1024px) {
    .inspection-showcase {
        padding: 120px 60px;
    }
}

.inspection-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Inspection image styles removed - no longer using image */

.inspection-details h2 {
    color: var(--primary-color);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.inspection-details h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: -0.3px;
}

.inspection-intro {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 36px;
}

.inspection-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.inspection-feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon-check {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.inspection-feature h4 {
    color: var(--text-dark);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.2px;
}

.inspection-feature p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
}

.inspection-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.inspection-note {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid var(--secondary-color);
    padding: 20px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-dark);
}

.inspection-note strong {
    color: var(--secondary-color);
    font-weight: 700;
}

@media (max-width: 768px) {
    .inspection-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Inspection image styles removed */

    .inspection-details {
        padding: 0 4px;
    }

    .inspection-details h2 {
        font-size: 2.25rem;
        text-align: center;
    }

    .inspection-details h3 {
        font-size: 1.125rem;
        text-align: center;
    }

    .inspection-intro {
        font-size: 1rem;
        text-align: center;
    }

    .inspection-cta {
        flex-direction: column;
    }

    .inspection-cta .btn {
        width: 100%;
    }

    .inspection-features {
        gap: 20px;
    }

    .inspection-feature {
        background: white;
        padding: 16px;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
}

/* Service Area */
.service-area {
    padding: 80px 24px;
    background: var(--bg-white);
}

@media (min-width: 768px) {
    .service-area {
        padding: 100px 40px;
    }
}

@media (min-width: 1024px) {
    .service-area {
        padding: 120px 60px;
    }
}

.service-area-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-top: -40px;
    margin-bottom: 40px;
    font-size: 17px;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 60px;
}

.area {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 15px;
    border: 1px solid #bfdbfe;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.area:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(26, 35, 126, 0.2);
}

/* Form Section */
.form-section {
    padding: 80px 24px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .form-section {
        padding: 100px 40px;
    }
}

@media (min-width: 1024px) {
    .form-section {
        padding: 120px 60px;
    }
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 80% 20%, rgba(198, 40, 40, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(255, 111, 0, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 48px 40px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 1;
}

.form-title {
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 12px;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.form-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 36px;
    font-size: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--bg-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 70px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* TCPA Consent Checkbox */
.form-consent {
    margin: 20px 0;
    padding: 16px;
    background: rgba(249, 250, 251, 0.8);
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.consent-checkbox input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--primary-color);
}

.consent-text {
    font-size: 11.5px;
    color: #4b5563;
    line-height: 1.6;
    text-align: left;
}

.consent-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Legacy disclaimer styles */
.form-disclaimer {
    font-size: 11.5px;
    color: #4b5563;
    margin-top: 16px;
    text-align: left;
    line-height: 1.6;
    max-width: 100%;
    padding: 14px;
    background: rgba(249, 250, 251, 0.8);
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.form-disclaimer strong {
    color: var(--primary-color);
    font-weight: 600;
}

@media (max-width: 767px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }
}

.form-alternative {
    text-align: center;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--border-color);
    font-size: 15px;
}

.phone-link {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.phone-link:hover {
    color: var(--primary-dark);
}

/* Footer */
.footer {
    background: #0f172a;
    color: white;
    padding: 60px 24px 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section {
    min-width: 0; /* Prevents grid blowout */
    overflow: visible; /* Ensures text isn't clipped */
}

.footer-logo {
    height: 64px;
    width: auto;
    margin-bottom: 20px;
    max-width: 100%;
    filter: none;
    background: rgba(255, 255, 255, 0.98);
    padding: 10px 12px;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.footer-section h3 {
    margin-bottom: 20px;
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: 0.3px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.footer-section p {
    margin-bottom: 10px;
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.7;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.address-local-note {
    margin-top: 8px;
    font-size: 14px;
    opacity: 0.9;
    display: block;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 14px;
}

.footer-links {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    border-bottom: 1px solid rgba(203, 213, 225, 0.25);
    padding-bottom: 1px;
}

.footer-links a:hover {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.55);
}

.address-local-note {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 10px;
}

.footer-links {
    margin-top: 10px;
    font-size: 13px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    padding-bottom: 1px;
}

.footer-links a:hover {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.6);
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    padding: 10px 12px 12px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    display: none;
    gap: 10px;
    z-index: 999;
    border-top: 1px solid var(--border-color);
}

.btn-mobile-sticky {
    flex: 1;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.btn-outline.btn-mobile-sticky {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline.btn-mobile-sticky:hover {
    background: var(--primary-color);
    color: white;
}

/* Responsive Design */
@media (min-width: 768px) {
    .hero-title {
        font-size: 3.25rem;
    }

    .hero-subtitle {
        font-size: 1.375rem;
    }
    
    .hero-ctas {
        flex-direction: row;
        justify-content: center;
        gap: 12px;
    }

    .cta-primary {
        max-width: 320px;
    }

    .btn-hero {
        max-width: 280px;
    }
    
    .mobile-sticky-cta {
        display: none;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }

    .trust-badges {
        justify-content: flex-start;
        margin-bottom: 18px;
        gap: 12px;
    }

    .badge {
        font-size: 13.5px;
        padding: 10px 18px;
    }

    .hero-proof {
        font-size: 14.5px;
        margin-bottom: 0;
    }
}

@media (max-width: 767px) {
    .mobile-sticky-cta {
        display: flex;
    }

    .header-financing {
        display: none;
    }
    
    .hero {
        padding: 30px 20px 35px;
    }
    
    .hero-background {
        display: none;
    }

    .hero-title {
        font-size: 1.75rem;
        letter-spacing: -0.8px;
        line-height: 1.08;
        margin-bottom: 10px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 16px;
    }

    /* Mobile: Stack image below content */
    .hero-two-column {
        flex-direction: column;
        gap: 24px;
    }

    .hero-image-column {
        order: 1;
        margin-top: 12px;
    }

    .hero-image-column img {
        max-width: 100%;
        border-radius: 14px;
    }

    .hero-ctas-enhanced {
        flex-direction: column;
        gap: 12px;
        margin-top: 24px;
        max-width: 100%;
    }

    .cta-card {
        padding: 18px 20px;
        gap: 14px;
    }

    .cta-icon {
        font-size: 28px;
    }

    .cta-title {
        font-size: 16px;
    }

    .cta-subtitle {
        font-size: 12px;
    }

    /* Legacy styles */
    .hero-inline-image {
        max-width: 100%;
        margin: 12px auto 14px;
        border-radius: 14px;
    }

    .hero-inline-image img {
        height: 100%;
    }

    .trust-badges {
        gap: 8px;
        margin-bottom: 10px;
        flex-wrap: wrap;
    }

    .badge {
        font-size: 11.5px;
        padding: 7px 13px;
    }

    .hero-proof {
        font-size: 12.5px;
        margin-bottom: 22px;
    }

    .hero-ctas {
        gap: 12px;
        max-width: 100%;
    }

    .cta-label {
        font-size: 10.5px;
        margin-top: 6px;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .services,
    .why-us,
    .service-area,
    .form-section {
        padding: 60px 20px;
    }

    .inspection-showcase {
        padding: 60px 20px;
    }
    
    .services-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .form-wrapper {
        padding: 36px 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-section {
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 20px;
    }
    
    body {
        padding-bottom: 70px;
    }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .header,
    .mobile-sticky-cta,
    .emergency-notice {
        display: none;
    }
}

/* Accessibility Improvements */
.btn:focus-visible,
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading Animation for Images */
img {
    image-rendering: -webkit-optimize-contrast;
}
