/*
 * COMPLETE AUTOMOTIVE CRASH
 * HOME PAGE — FINAL FORM / HERO CSS
 * 17 AUG 2026
 *
 * This file is intentionally isolated to body.home.
 */

body.home .hero {
    overflow: hidden !important;
}

body.home .hero-grid {
    width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr) !important;
    gap: 55px !important;
    align-items: start !important;
}

body.home .hero-copy,
body.home .hero-visual {
    min-width: 0 !important;
    width: 100% !important;
}

body.home .hero-visual {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: flex-start !important;
}

body.home .hero-visual .quote-form-card {
    width: 100% !important;
    max-width: 600px !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

body.home .hero-visual .qf-form,
body.home .hero-visual .wpcf7,
body.home .hero-visual form.wpcf7-form {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

body.home .hero-visual form.wpcf7-form > p {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

body.home .hero-visual .wpcf7-form-control-wrap {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* Name + phone */
body.home .hero-visual .qf-row {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

body.home .hero-visual .qf-row > p {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Every field must stay inside its cell */
body.home .hero-visual input[type="text"],
body.home .hero-visual input[type="tel"],
body.home .hero-visual input[type="email"],
body.home .hero-visual select,
body.home .hero-visual textarea {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

/* Full-width fields */
body.home .hero-visual .qf-row > p:nth-child(n+3) {
    grid-column: 1 / -1 !important;
}

/* Stable field heights */
body.home .hero-visual input[type="text"],
body.home .hero-visual input[type="tel"],
body.home .hero-visual input[type="email"],
body.home .hero-visual select {
    min-height: 58px !important;
    height: 58px !important;
    padding: 0 17px !important;
}

body.home .hero-visual textarea {
    min-height: 125px !important;
    height: 125px !important;
    padding: 15px 17px !important;
    resize: vertical !important;
}

body.home .hero-visual input[type="file"] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

body.home .hero-visual input[type="submit"],
body.home .hero-visual button[type="submit"] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* Tablet */
@media (max-width: 1100px) and (min-width: 768px) {
    body.home .hero-grid {
        grid-template-columns: minmax(0,1fr) minmax(360px,.9fr) !important;
        gap: 35px !important;
    }

    body.home .hero-visual .quote-form-card {
        max-width: 100% !important;
    }
}

/* Mobile */
@media (max-width: 767px) {
    body.home .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    body.home .hero-copy,
    body.home .hero-visual {
        width: 100% !important;
        max-width: none !important;
    }

    body.home .hero-visual {
        justify-content: stretch !important;
    }

    body.home .hero-visual .quote-form-card {
        width: 100% !important;
        max-width: none !important;
        padding: 22px 18px !important;
        border-radius: 18px !important;
    }

    body.home .hero-visual .qf-row {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    body.home .hero-visual .qf-row > p,
    body.home .hero-visual .qf-row > p:nth-child(n+3) {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        margin: 0 0 12px !important;
    }

    body.home .hero-visual input[type="text"],
    body.home .hero-visual input[type="tel"],
    body.home .hero-visual input[type="email"],
    body.home .hero-visual select {
        height: 56px !important;
        min-height: 56px !important;
    }

    body.home .hero-visual textarea {
        height: 125px !important;
        min-height: 125px !important;
    }
}

@media (max-width: 480px) {
    body.home .hero-grid {
        gap: 24px !important;
    }

    body.home .hero-visual .quote-form-card {
        padding: 20px 15px !important;
    }
}

/* Keep all homepage copy readable even when animation or optimisation scripts are delayed. */
body.home .reveal,
body.home .reveal.in {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

body.home :where(.hero-copy, .intro-copy, .services-head, .section-head, .why-feat, .review-card, .faq-item, .blog-card) {
    min-width: 0;
}

body.home :where(.hero-copy h1, .intro-copy h2, .services-head h2, .section-head h2, .service-card h3, .why-feat h4, .blog-card h3) {
    overflow: visible;
    text-wrap: balance;
}

body.home :where(.hero-copy p, .intro-copy p, .services-head p, .service-card p, .why-feat p, .review-card .quote, .faq-a-inner, .blog-card p) {
    display: block !important;
    max-height: none !important;
    overflow: visible !important;
    opacity: 1 !important;
    text-overflow: clip !important;
    -webkit-line-clamp: unset !important;
}

body.home .services :where(h2, h3) { color: #fff !important; }
body.home .services :where(.services-head-note p, .service-card p) { color: #c0c5cd !important; }
body.home .reviews :where(h2, .review-name) { color: #fff !important; }
body.home .reviews .review-card .quote { color: #d0d4da !important; }

/* Homepage CTA: compact rectangular strip with high-contrast copy and controls. */
body.home .cta {
    min-height: 0 !important;
    padding: 48px 0 !important;
    background:
        repeating-linear-gradient(-45deg, rgba(255,255,255,.045) 0 2px, transparent 2px 30px),
        linear-gradient(120deg, #861017 0%, #d51921 58%, #f22830 100%) !important;
}

body.home .cta-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: clamp(28px, 6vw, 80px) !important;
    align-items: center !important;
}

body.home .cta-inner h2 {
    max-width: 780px !important;
    margin: 0 !important;
    color: #fff !important;
    font-size: clamp(32px, 4.2vw, 48px) !important;
    line-height: 1 !important;
    overflow: visible !important;
}

body.home .cta-actions {
    position: relative;
    z-index: 2;
    display: flex !important;
    justify-content: flex-end;
    gap: 12px !important;
}

body.home .cta-actions .btn {
    min-width: 190px;
    min-height: 48px;
    border-radius: 9px !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body.home .cta .btn-outline { border-color: rgba(255,255,255,.7) !important; color: #fff !important; }
body.home .cta .btn-primary { background: #fff !important; color: #9d1118 !important; }
body.home .cta .btn-primary:hover { background: #111419 !important; color: #fff !important; }

@media (max-width: 767px) {
    body.home .hero-copy h1 { line-height: 1 !important; }
    body.home .hero-copy p.lead { color: #e0e3e8 !important; }
    body.home .services-head h2,
    body.home .section-head h2,
    body.home .intro-copy h2 { line-height: 1.02 !important; }
    body.home .cta { padding: 40px 0 !important; }
    body.home .cta-inner { grid-template-columns: 1fr !important; }
    body.home .cta-actions { display: grid !important; grid-template-columns: 1fr; width: 100%; }
    body.home .cta-actions .btn { width: 100%; min-width: 0; }
}
