/* ================================================
   Hero Adaptive - Section Styles
   Only new styles, reuses existing theme classes
   ================================================ */

/* ------------------------------------------------
   Base Section
   ------------------------------------------------ */
.hero-adaptive {
    position: relative;
    min-height: 500px;
    padding: 6rem 0;
    overflow: hidden;
}

/* ------------------------------------------------
   Background Layers
   ------------------------------------------------ */
.hero-background-gradient,
.hero-background-solid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Gradient: 3-color vertical blend */
.hero-background-gradient {
    display: flex;
    flex-direction: column;
}

.hero-background-gradient .gradient-layer {
    flex: 1;
    transition: all 0.3s ease;
}

.hero-background-gradient .gradient-top {
    opacity: 1;
}

.hero-background-gradient .gradient-middle {
    opacity: 0.6;
}

.hero-background-gradient .gradient-bottom {
    opacity: 1;
}

/* ------------------------------------------------
   Negative Space Option
   ------------------------------------------------ */
.hero-adaptive.has-negative-space .hero--content {
    max-width: 1400px;
    margin: 0 auto;
}

.hero-adaptive.has-negative-space {
    padding: 4rem 2rem;
}

/* ------------------------------------------------
   Content Container
   ------------------------------------------------ */
.hero-adaptive .hero--content {
    position: relative;
    z-index: 2;
}

.hero-adaptive .hero--content--inner-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    gap: 3rem;
    align-items: center;
}

/* ------------------------------------------------
   Layout: 2-Column (Default)
   ------------------------------------------------ */
.hero-adaptive.layout-2-column .hero--content--inner-wrapper {
    grid-template-columns: 1fr 1fr;
}

.hero-adaptive.layout-2-column .hero--copy {
    order: 1;
}

.hero-adaptive.layout-2-column .hero--media {
    order: 2;
}

/* ------------------------------------------------
   Layout: 1-Column (Centered)
   ------------------------------------------------ */
.hero-adaptive.layout-1-column .hero--content--inner-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
    max-width: 900px;
}

.hero-adaptive.layout-1-column .hero--copy {
    order: 1;
}

.hero-adaptive.layout-1-column .hero--media {
    order: 2;
}

.hero-adaptive.layout-1-column .hero_buttons--wrapper {
    justify-content: center;
}

/* ------------------------------------------------
   Typography (reuses existing)
   ------------------------------------------------ */
.hero-adaptive .hero_title {
    font-size: 2.5rem;
    font-weight: normal;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-adaptive .hero_copy {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-adaptive .hero_buttons--wrapper {
    display: flex;
    gap: 1rem;
}

/* ------------------------------------------------
   Media: Image
   ------------------------------------------------ */
.hero-image-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-main-image {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ------------------------------------------------
   Floating Cards
   ------------------------------------------------ */
.floating-cards {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-card {
    position: absolute;
    max-width: 200px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Card Positioning */
.floating-card.card-left-top {
    top: 10%;
    left: -15%;
}

.floating-card.card-left-bottom {
    bottom: 10%;
    left: -15%;
}

.floating-card.card-right-top {
    top: 10%;
    right: -15%;
}

.floating-card.card-right-bottom {
    bottom: 10%;
    right: -15%;
}

/* Animation */
.floating-cards.animate .floating-card {
    opacity: 1;
    transform: translateY(0);
}

.floating-cards.animate .floating-card.card-left-top {
    animation: fadeUp 1s ease-out 0.2s forwards;
}

.floating-cards.animate .floating-card.card-left-bottom {
    animation: fadeUp 1s ease-out 0.4s forwards;
}

.floating-cards.animate .floating-card.card-right-top {
    animation: fadeUp 1s ease-out 0.6s forwards;
}

.floating-cards.animate .floating-card.card-right-bottom {
    animation: fadeUp 1s ease-out 0.8s forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ------------------------------------------------
   Media: HubSpot Form
   ------------------------------------------------ */
.hero-form-wrapper {
    width: 100%;
}

.hubspot-form-container {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Style HubSpot form elements */
.hubspot-form-container .hs-form-field {
    margin-bottom: 1rem;
}

.hubspot-form-container input[type="text"],
.hubspot-form-container input[type="email"],
.hubspot-form-container select,
.hubspot-form-container textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.hubspot-form-container input[type="submit"] {
    background-color: #00e65f !important;
    color: #1e1e23 !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.hubspot-form-container input[type="submit"]:hover {
    background-color: #00a843 !important;
}

/* ------------------------------------------------
   Button Override - Green Style
   ------------------------------------------------ */
.hero-adaptive .button,
.hero-adaptive .button.button-primary,
.hero-adaptive a.button {
    background-color: #00e65f !important;
    color: #1e1e23 !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0.625rem 1.25rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    transition: background-color 0.3s ease !important;
}

.hero-adaptive .button:hover,
.hero-adaptive .button.button-primary:hover,
.hero-adaptive a.button:hover {
    background-color: #00a843 !important;
    color: #1e1e23 !important;
}
/* SVG icon inside button - force black */
.hero-adaptive .button svg,
.hero-adaptive .button svg path,
.hero-adaptive .button svg polygon {
    fill: #1e1e23 !important;
}

.hero-adaptive .button:hover svg,
.hero-adaptive .button:hover svg path,
.hero-adaptive .button:hover svg polygon {
    fill: #1e1e23 !important;
}

/* ------------------------------------------------
   Responsive
   ------------------------------------------------ */
@media (max-width: 1024px) {
    .hero-adaptive {
        padding: 4rem 0;
    }

    .hero-adaptive .hero_title {
        font-size: 2rem;
    }

    .hero-adaptive .hero_copy {
        font-size: 1rem;
    }

    .floating-card {
        max-width: 150px;
    }
}

@media (max-width: 768px) {
    /* All layouts become 1-column on mobile */
    .hero-adaptive .hero--content--inner-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-adaptive .hero--copy {
        text-align: center;
    }

    .hero-adaptive .hero_title {
        font-size: 1.75rem;
    }

    .hero-adaptive .hero_copy {
        font-size: 0.95rem;
    }

    .hero-adaptive .hero_buttons--wrapper {
        flex-direction: column;
        align-items: center;
    }

    .hero-adaptive .hero_buttons--wrapper .button {
        max-width: 300px;
    }

    /* Reduce floating cards on mobile */
    .floating-card {
        max-width: 100px;
    }

    .floating-card.card-left-top,
    .floating-card.card-left-bottom {
        left: -10%;
    }

    .floating-card.card-right-top,
    .floating-card.card-right-bottom {
        right: -10%;
    }

    /* Form full width on mobile */
    .hubspot-form-container {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-adaptive {
        padding: 3rem 0;
    }

    .hero-adaptive .hero_title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .hero-adaptive .hero_copy {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    /* Hide floating cards on very small screens */
    .hero-adaptive.has-floating-cards .floating-cards {
        display: none;
    }
}