/* ==========================================================================
   HERO COMPONENTS - Reusable hero section patterns and layouts
   Standardized hero sections for consistent page headers and banners
   ========================================================================== */

/* =========================
     Base Hero Foundation
=========================== */
.hero {
    display: flex;
    align-items: center;
    min-height: 100vh;
    background: var(--bg_color);
    position: relative;
    overflow: hidden;
}

.hero .panel-inner {
    position: relative;
    z-index: 1;
}

/* Hero variants */
.hero-standard {
    min-height: 60vh;
    padding: calc(var(--spacing-xlarge) * 2) 0;
}

.hero-compact {
    min-height: 40vh;
    padding: var(--spacing-xlarge) 0;
}

.hero-fullscreen {
    min-height: 100vh;
    height: 100vh;
}

/* =========================
     Hero Layout Patterns
=========================== */
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    margin: 0 auto;
    max-width: var(--home-page-width);
    gap: var(--spacing-xlarge);
}

.hero-container.single-column {
    grid-template-columns: 1fr;
    text-align: center;
    max-width: 800px;
}

.hero-container.content-heavy {
    grid-template-columns: 2fr 1fr;
}

.hero-container.image-heavy {
    grid-template-columns: 1fr 2fr;
}

/* =========================
     Hero Content Areas
=========================== */
.hero-left,
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-large);
}

.hero-right,
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-large);
}

.hero-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-large);
    text-align: center;
}

/* =========================
     Hero Typography
=========================== */
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--spacing-medium);
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text_color);
    opacity: 0.9;
    font-weight: 500;
    max-width: 90%;
}

.hero-description {
    font-size: var(--text-base, 16px);
    color: var(--text-tertiary);
    line-height: var(--leading-relaxed);
    margin: 0 0 var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}


/* =========================
     Hero Actions
=========================== */
.hero-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-large);
    flex-wrap: wrap;
}

.hero-actions.center {
    justify-content: center;
}

.hero-actions.stack {
    flex-direction: column;
    gap: var(--spacing-medium);
}

/* =========================
     Hero Trust Indicators
=========================== */
.hero-trust {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xlarge);
    flex-wrap: wrap;
    margin-top: var(--spacing-large);
}

.trust-indicator {
    display: flex;
    align-items: center;
    gap: var(--spacing-small);
    color: var(--text_color_shiny);
    font-size: var(--font-body-size);
    font-weight: 500;
}

.trust-indicator i {
    color: var(--cyan_1);
    font-size: 1.2em;
}

/* =========================
     Pricing Hero Variant
=========================== */
.hero-pricing {
    background: var(--blue_1);
    color: var(--primary_1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(74, 93, 249, 0.1);
    z-index: 1;
}

.hero-pricing .hero-container {
    position: relative;
    z-index: 2;
    grid-template-columns: 1fr;
    max-width: 800px;
}

.hero-pricing .hero-title {
    color: var(--primary_1);
    margin-bottom: var(--spacing-medium);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-pricing .hero-subtitle,
.hero-pricing .hero-description {
    color: var(--text_color);
}

/* =========================
     Hero Background Variants - Subtle & Professional
=========================== */
.hero-gradient {
    background: linear-gradient(135deg, 
        var(--bg_color) 0%, 
        rgba(74, 93, 249, 0.03) 50%,
        rgba(26, 242, 242, 0.02) 100%);
    position: relative;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(74, 93, 249, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(26, 242, 242, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.hero-subtle {
    background: 
        linear-gradient(135deg, var(--bg_color) 0%, rgba(74, 93, 249, 0.02) 100%),
        radial-gradient(ellipse at center top, rgba(74, 93, 249, 0.05) 0%, transparent 70%);
    position: relative;
}

.hero-waves {
    background: var(--bg_color);
    position: relative;
    overflow: hidden;
}

.hero-waves::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(135deg, rgba(74, 93, 249, 0.04) 0%, rgba(26, 242, 242, 0.02) 100%);
    border-radius: 50% 50% 0 0;
    transform: scaleX(3);
    z-index: 0;
}

.hero-dark {
    background: var(--primary_6);
    color: var(--primary_1);
}

.hero-dark .hero-title,
.hero-dark .hero-subtitle,
.hero-dark .hero-description {
    color: var(--primary_1);
}

.hero-dark .hero-subtitle,
.hero-dark .hero-description {
    opacity: 0.9;
}

/* =========================
     Hero Form Integration
=========================== */
.hero-form {
    background: var(--fg_color);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border_radius_card);
    padding: var(--spacing-xlarge);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: box-shadow 0.2s ease;
    max-width: 420px;
    width: 100%;
}

.hero-form:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.dark-mode .hero-form {
    background: rgba(22, 22, 23, 0.95);
    border: 1px solid rgba(107, 124, 250, 0.2);
    box-shadow: 0 8px 24px rgba(107, 124, 250, 0.12);
}

.dark-mode .hero-form:hover {
    box-shadow: 0 12px 32px rgba(107, 124, 250, 0.18);
}

/* =========================
     Hero Responsive Design
=========================== */
@media (max-width: 1450px) {
    .hero {
        min-height: auto;
        padding: var(--spacing-large) var(--spacing-medium);
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-large);
        padding: 0 var(--spacing-medium);
    }

    .hero-left,
    .hero-right,
    .hero-content,
    .hero-visual {
        text-align: center;
        align-items: center;
        padding: var(--spacing-medium);
    }
}

@media (max-width: 991px) {
    .hero-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .hero-subtitle {
        max-width: 100%;
        font-size: 1.1rem;
    }

    .hero-container {
        gap: var(--spacing-large);
    }

    .hero-actions {
        justify-content: center;
        width: 100%;
    }

    .hero-trust {
        flex-direction: column;
        gap: var(--spacing-medium);
    }
}

@media (max-width: 767px) {
    .hero {
        padding: var(--spacing-large) var(--spacing-small);
    }

    .hero-title {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }

    .hero-description {
        font-size: var(--font-body-size);
    }

    .hero-container {
        gap: var(--spacing-medium);
        padding: 0 var(--spacing-small);
    }

    .hero-actions {
        flex-direction: column;
        gap: var(--spacing-medium);
        width: 100%;
    }

    .hero-form {
        padding: var(--spacing-large);
        margin: 0 var(--spacing-small);
    }

    .hero-pricing {
        padding: var(--spacing-large) 0;
    }

    .hero-trust {
        gap: var(--spacing-small);
    }
}

/* =========================
     Dark Mode Support
=========================== */
.dark-mode .hero-gradient {
    background: linear-gradient(135deg, 
        var(--bg_color) 0%, 
        rgba(107, 124, 250, 0.04) 50%,
        rgba(42, 247, 247, 0.02) 100%);
}

.dark-mode .hero-gradient::before {
    background: 
        radial-gradient(circle at 20% 80%, rgba(107, 124, 250, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(42, 247, 247, 0.06) 0%, transparent 50%);
}

.dark-mode .hero-subtle {
    background: 
        linear-gradient(135deg, var(--bg_color) 0%, rgba(107, 124, 250, 0.03) 100%),
        radial-gradient(ellipse at center top, rgba(107, 124, 250, 0.06) 0%, transparent 70%);
}

.dark-mode .hero-waves::after {
    background: linear-gradient(135deg, rgba(107, 124, 250, 0.06) 0%, rgba(42, 247, 247, 0.03) 100%);
}

.dark-mode .trust-indicator {
    color: var(--text_color_shiny);
}

/* =========================
     Accessibility
=========================== */
@media (prefers-reduced-motion: reduce) {
    .hero-form {
        transition: none;
    }
    
    .hero-form:hover {
        transform: none;
    }
}

@media (prefers-contrast: high), (prefers-contrast: more) {
    .hero-form {
        border-width: 2px;
    }
    
    .hero-pricing::before {
        opacity: 0.2;
    }
}