/* =====================================================
   MFHA GLOBAL HERO SYSTEM v2.2
   One shared inherited Hero style for all MFHA pages
===================================================== */

:root {
    --mfha-navy: #071b4d;
    --mfha-blue: #1F3C88;
    --mfha-gold: #e7c39f;
    --mfha-gold-deep: #d8b16d;
    --mfha-dark: #1f3349;
    --mfha-white: #ffffff;
    --mfha-hero-default-bg: url("https://myfloridahomeappraisal.com/wp-content/uploads/2026/03/rsw_1920m.jpg");
}

html {
    scroll-behavior: smooth;
}

/* =====================================================
   GLOBAL HERO BASE
===================================================== */

.hero-appraisal,
.hero-appraisal * {
    box-sizing: border-box;
}

.hero-appraisal {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    position: relative;
    overflow: hidden;
    padding: 90px 0;
    min-height: 650px;
    display: flex;
    align-items: center;
    font-family: Arial, sans-serif;
    background-image: var(--mfha-hero-bg, var(--mfha-hero-default-bg));
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Generic fallback for every hero page class. New pages can simply use hero-appraisal + any mfha-hero-* class. */
.mfha-hero-home,
.mfha-hero-default,
.mfha-hero-city,
.mfha-hero-service,
.mfha-hero-appraisal-info,
.mfha-hero-about,
.mfha-hero-contact,
.mfha-hero-blog,
.mfha-hero-clearwater,
.mfha-hero-tampa,
.mfha-hero-st-petersburg,
.mfha-hero-cape-coral,
.mfha-hero-fort-myers,
.mfha-hero-sarasota,
.mfha-hero-order-appraisal,
.mfha-hero-privacy,
.mfha-hero-faq {
    background-image: var(--mfha-hero-bg, var(--mfha-hero-default-bg));
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-text {
    width: 55%;
    max-width: 690px;
    position: relative;
    z-index: 4;
    color: var(--mfha-white);
}

.hero-text h1 {
    margin: 0 40px 20px 0;
    color: var(--mfha-white) !important;
    font-size: clamp(40px, 4.4vw, 64px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.8px;
}

.hero-text p {
    max-width: 520px;
    margin: 0 0 18px;
    color: var(--mfha-white) !important;
    font-size: 18px;
    line-height: 1.58;
    font-weight: 400;
}

/* =====================================================
   BUTTONS: inherited by all Heroes
===================================================== */

.hero-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 28px;
}

.hero-btn,
.hero-buttons .hero-btn,
.hero-buttons a.hero-btn,
.hero-buttons button.hero-btn {
    min-height: 66px;
    padding: 0 38px;
    border-radius: 999px !important;
    border: none !important;
    outline: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 19px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.25s ease;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
}

.hero-btn.quote-btn,
.hero-buttons .hero-btn:not(.call-btn) {
    background: var(--mfha-gold) !important;
    color: #000000 !important;
}

.hero-btn.quote-btn:hover,
.hero-buttons .hero-btn:not(.call-btn):hover {
    background: #ffffff !important;
    color: var(--mfha-navy) !important;
    transform: translateY(-1px);
}

.hero-btn.call-btn,
.hero-buttons button.call-btn {
    background: var(--mfha-dark) !important;
    color: #ffffff !important;
    padding-left: 16px;
    padding-right: 36px;
}

.hero-btn.call-btn:hover,
.hero-buttons button.call-btn:hover {
    background: var(--mfha-navy) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.mfha-call-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mfha-call-icon svg {
    width: 22px;
    height: 22px;
    display: block;
    color: currentColor;
}

.mfha-call-text {
    color: #ffffff !important;
    font-weight: 900;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

/* =====================================================
   DECORATIVE CIRCLE
===================================================== */

.hero-circle {
    position: absolute;
    left: -650px;
    top: 50%;
    transform: translateY(-50%);
    animation: mfhaCircleSlide 2s ease forwards;
    opacity: 0.9;
    z-index: 1;
    pointer-events: none;
}

.hero-circle img {
    width: 650px;
    max-width: none;
    height: auto;
    display: block;
}

@keyframes mfhaCircleSlide {
    0% {
        left: -700px;
        opacity: 0;
        transform: translateY(-50%) rotate(-20deg);
    }
    100% {
        left: 35%;
        opacity: 0.9;
        transform: translateY(-50%) rotate(0deg);
    }
}

/* =====================================================
   HERO FORM BOX + FORMINATOR
===================================================== */

.hero-form {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    width: 360px;
    min-width: 320px;
    flex-shrink: 0;
    position: relative;
    z-index: 5;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.hero-form h3 {
    margin: 0 0 24px;
    text-align: center;
    color: #1a1e2b !important;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
}

.mfha-form-loading {
    text-align: center;
    color: #64748b;
    font-weight: 700;
    padding: 20px 0;
}

.hero-form .forminator-custom-form {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

.hero-form .forminator-field {
    margin-bottom: 14px !important;
    padding: 0 !important;
}

.hero-form .forminator-label {
    display: none !important;
}

.hero-form .forminator-input,
.hero-form .forminator-textarea,
.hero-form .forminator-select2 {
    width: 100% !important;
    padding: 15px !important;
    border-radius: 25px !important;
    border: 1px solid #ddd !important;
    background: #ffffff !important;
    font-size: 16px !important;
}

.hero-form .forminator-textarea {
    min-height: 110px !important;
}

.hero-form .forminator-button-submit {
    width: 100% !important;
    padding: 16px !important;
    border-radius: 30px !important;
    background: var(--mfha-dark) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}

.hero-form .forminator-button-submit:hover {
    background: var(--mfha-navy) !important;
}

/* Hidden original Forminator shortcode widget source */
.mfha-forminator-source {
    position: absolute !important;
    left: -99999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* =====================================================
   CALL NOW MODAL
===================================================== */

.mfha-call-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
}

.mfha-call-modal.active {
    display: block;
}

body.mfha-modal-open {
    overflow: hidden;
}

.mfha-call-modal-backdrop {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(7, 27, 77, 0.72);
}

.mfha-call-modal-box {
    position: relative;
    z-index: 2;
    max-width: 520px;
    width: calc(100% - 34px);
    margin: 12vh auto 0;
    background: #ffffff;
    border-radius: 28px;
    padding: 34px 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
    text-align: center;
}

.mfha-call-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    z-index: 5;
    width: 40px;
    height: 40px;
    border: none !important;
    background: transparent !important;
    color: var(--mfha-navy) !important;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    pointer-events: auto;
}

.mfha-call-modal-box h3 {
    margin: 0 0 10px;
    color: var(--mfha-navy) !important;
    font-size: 28px;
    font-weight: 900;
}

.mfha-call-modal-box p {
    margin: 0 0 24px;
    color: #475569;
    font-size: 16px;
    line-height: 1.5;
}

.mfha-call-modal-buttons {
    display: grid;
    gap: 14px;
}

.mfha-modal-phone-btn {
    display: block;
    background: var(--mfha-navy);
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 16px 18px;
    border-radius: 999px;
    font-weight: 800;
    line-height: 1.35;
}

.mfha-modal-phone-btn:hover {
    background: var(--mfha-gold-deep);
    color: var(--mfha-navy) !important;
}

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

@media (max-width: 1024px) {
    .hero-container {
        gap: 35px;
        padding: 0 24px;
    }

    .hero-text {
        width: 55%;
    }

    .hero-text h1 {
        font-size: 42px;
        margin-right: 0;
    }

    .hero-circle img {
        width: 520px;
    }

    @keyframes mfhaCircleSlide {
        0% {
            left: -600px;
            opacity: 0;
            transform: translateY(-50%) rotate(-20deg);
        }
        100% {
            left: 42%;
            opacity: 0.75;
            transform: translateY(-50%) rotate(0deg);
        }
    }
}

@media (max-width: 768px) {
    .hero-appraisal {
        min-height: auto;
        padding: 70px 0 50px;
        display: block;
        background-position: center center !important;
    }

    .hero-container {
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 35px !important;
        padding: 0 20px !important;
    }

    .hero-text,
    .hero-form {
        width: 100% !important;
        max-width: 100% !important;
        min-width: auto !important;
    }

    .hero-text {
        position: relative;
        z-index: 5;
    }

    .hero-text h1 {
        font-size: 40px !important;
        line-height: 1.12 !important;
        margin-right: 0 !important;
        margin-bottom: 20px !important;
        word-break: normal !important;
    }

    .hero-text p {
        max-width: 100% !important;
        font-size: 17px !important;
        line-height: 1.6 !important;
    }

    .hero-buttons {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .hero-buttons .hero-btn,
    .hero-buttons a.hero-btn,
    .hero-buttons button.hero-btn {
        width: 100%;
        min-height: 64px;
        font-size: 18px;
    }

    .hero-btn.call-btn {
        justify-content: center;
    }

    .hero-form {
        padding: 28px 20px !important;
        border-radius: 18px !important;
    }

    .hero-form h3 {
        font-size: 24px !important;
    }

    .hero-circle {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 34px !important;
    }

    .hero-container {
        padding: 0 18px !important;
    }

    .hero-form {
        padding: 24px 18px !important;
    }

    .mfha-call-modal-box {
        margin-top: 9vh;
        padding: 30px 20px;
    }
}
