/*-- -------------------------- -->
<---            Hero            -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
    #hero-wc {
        /* push down past the fixed nav */
        padding: clamp(8rem, 18vw, 12rem) 1rem clamp(4rem, 10vw, 7rem);
        position: relative;
        z-index: 1;
        overflow: hidden;
        min-height: 100vh;
        display: flex;
        align-items: center;
    }

    /* Dark overlay over background image */
    #hero-wc:before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(
            to right,
            rgba(23, 30, 38, 0.95) 0%,
            rgba(23, 30, 38, 0.75) 50%,
            rgba(23, 30, 38, 0.2) 100%
        );
        z-index: 1;
    }

    /* Background image */
    #hero-wc .cs-background {
        position: absolute;
        inset: 0;
        z-index: 0;
    }

    #hero-wc .cs-background img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    #hero-wc .cs-container {
        width: 100%;
        max-width: 80rem;
        margin: auto;
        position: relative;
        z-index: 2;
        display: flex;
        flex-direction: column;
        gap: 3rem;
        align-items: flex-start;
    }

    /* Left: Content */
    #hero-wc .cs-content {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }
    #hero-wc .cs-hero-actions {
        display: flex;
        align-items: stretch;
        gap: 0.75rem;
        flex-wrap: nowrap;
        width: 100%;
    }
    #hero-wc .cs-hero-actions .cs-hero-button,
    #hero-wc .cs-hero-actions .cs-hero-phone {
        flex: 1;
        font-size: 0.8125rem;
        padding: 0.875rem 0.75rem;
        margin: 0;
        text-align: center;
        justify-content: center;
    }
    #hero-wc .cs-desktop-text { display: none !important; }
    #hero-wc .cs-mobile-text { display: inline !important; }
    #hero-wc .cs-hero-phone {
        font-family: 'Outfit', sans-serif;
        font-size: 1.1875rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.02em;
        line-height: 1.2em;
        text-decoration: none;
        text-align: center;
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        background-color: transparent;
        border: 2px solid #fff;
        border-radius: 0.5rem;
        padding: 0.875rem 1.5rem;
        margin: 0.5rem 0 0;
        transition: background-color 0.3s, color 0.3s;
    }
    #hero-wc .cs-hero-phone:hover {
        background-color: #fff;
        color: var(--primary);
    }
    #hero-wc .cs-hero-phone .cs-phone-icon {
        filter: brightness(0) invert(1);
        width: 1.25rem;
        height: 1.25rem;
        transition: filter 0.3s;
    }
    #hero-wc .cs-hero-phone:hover .cs-phone-icon {
        filter: none;
    }

    #hero-wc .cs-hero-stars {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    #hero-wc .cs-stars-icons {
        color: #f5a623;
        font-size: 1.25rem;
        letter-spacing: 0.05em;
        line-height: 1;
    }
    #hero-wc .cs-stars-text {
        font-size: 1rem;
        font-weight: 600;
        color: #fff;
        white-space: nowrap;
    }

    #hero-wc .cs-title {
        font-size: clamp(1.75rem, 4.5vw, 3.75rem);
        font-weight: 900;
        line-height: 1.1em;
        color: #ffffff;
        margin: 0;
        max-width: 14ch;
    }

    #hero-wc .cs-title span {
        color: #ffffff;
    }

    #hero-wc .cs-text {
        font-size: clamp(1rem, 1.8vw, 1.25rem);
        color: rgba(255,255,255,0.85);
        max-width: 34rem;
        line-height: 1.7em;
        margin: 0;
    }

    /* Hero CTA button */
    #hero-wc .cs-hero-button {
        margin: 0.5rem 0 0;
        font-family: 'Outfit', sans-serif;
        font-size: clamp(0.875rem, 2vw, 1.1875rem);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.02em;
        line-height: 1.2em;
        text-decoration: none;
        text-align: center;
        padding: 0.875rem 1.5rem;
        background-color: var(--primary);
        color: #fff;
        border-radius: 0.5rem;
        display: inline-block;
        transition: background-color 0.3s, transform 0.3s;
    }

    #hero-wc .cs-hero-button:hover {
        background-color: var(--primaryDark);
        transform: translateY(-2px);
    }

    /* Right: Quote Form Card */
    #hero-wc .cs-form-card {
        width: 100%;
        background: #ffffff;
        border-radius: 1rem;
        padding: clamp(1.5rem, 4vw, 2.5rem);
        box-shadow: 0 24px 64px rgba(0,0,0,0.3);
        border-top: 5px solid var(--primary);
        border-left: 5px solid var(--primary);
    }

    #hero-wc .cs-form-title {
        font-size: clamp(1.375rem, 2.5vw, 1.75rem);
        font-weight: 900;
        color: var(--headerColor);
        margin: 0 0 0.25rem;
    }

    #hero-wc .cs-form-subtitle {
        font-size: 0.9375rem;
        color: var(--bodyTextColor);
        margin: 0 0 1.5rem;
    }

    #hero-wc .cs-form {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    #hero-wc .cs-label {
        font-size: 0.875rem;
        font-weight: 700;
        color: var(--headerColor);
        display: flex;
        flex-direction: column;
        gap: 0.375rem;
    }

    #hero-wc .cs-input,
    #hero-wc .cs-select {
        width: 100%;
        height: 3rem;
        padding: 0 1rem;
        border: 1.5px solid #e2e8f0;
        border-radius: 0.5rem;
        font-size: 1rem;
        font-family: inherit;
        color: var(--headerColor);
        background: #f8fafc;
        outline: none;
        transition: border-color 0.2s, box-shadow 0.2s;
        appearance: none;
    }

    #hero-wc .cs-input:focus,
    #hero-wc .cs-select:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(255, 106, 62, 0.12);
        background: #fff;
    }

    #hero-wc .cs-input::placeholder {
        color: #94a3b8;
    }

    #hero-wc .cs-button-solid {
        width: 100%;
        padding: 1rem 1.5rem;
        background-color: var(--primary);
        color: #fff;
        font-family: 'Outfit', sans-serif;
        font-size: 1.125rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.02em;
        border: none;
        border-radius: 0.5rem;
        cursor: pointer;
        position: relative;
        overflow: hidden;
        transition: color 0.3s;
        margin-top: 0.25rem;
    }

    #hero-wc .cs-button-solid:before {
        content: '';
        position: absolute;
        height: 100%;
        width: 0%;
        background: #000;
        top: 0;
        left: 0;
        z-index: -1;
        transition: width 0.3s;
    }

    #hero-wc .cs-button-solid:hover:before {
        width: 100%;
    }
}

/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
    #hero-wc .cs-trust-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

/* Desktop - 1024px */
@media only screen and (min-width: 64rem) {
    #hero-wc {
        min-height: 100vh;
        align-items: center;
    }

    #hero-wc .cs-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 4rem;
    }

    #hero-wc .cs-content {
        width: 75%;
        flex-shrink: 0;
    }

    #hero-wc .cs-hero-actions {
        width: auto;
        gap: 1rem;
    }

    #hero-wc .cs-hero-actions .cs-hero-button,
    #hero-wc .cs-hero-actions .cs-hero-phone {
        font-size: 1.1875rem !important;
        padding: 1.25rem 2.5rem !important;
        flex: unset !important;
        width: auto !important;
    }
    #hero-wc .cs-desktop-text { display: inline !important; }
    #hero-wc .cs-mobile-text { display: none !important; }
}
