/**
 * Modern Hero Section Styles
 * Loads only on homepage for performance
 */

/* ==============================================
   HERO SECTION
   ============================================== */

.hero-section {
    position: relative;
    width: 100%;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Overlay container - no background */
.hero-overlay {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
}

/* Container */
.hero-container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    z-index: 2;
}

/* Content box - this is where the overlay/card goes */
.hero-content {
    text-align: center;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(248, 249, 250, 0.92) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 60px 70px;
    border-radius: 24px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 10px 30px rgba(0, 0, 0, 0.1);
    animation: heroFadeInUp 0.8s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Small title */
.hero-title {
    font-family: 'Titillium Web', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0 0 20px 0;
    animation: heroFadeInUp 0.8s ease-out 0.1s both;
}

/* Main heading */
.hero-subtitle {
    font-family: 'Titillium Web', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 72px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 30px 0;
    line-height: 1.1;
    letter-spacing: -1.5px;
    animation: heroFadeInUp 0.8s ease-out 0.2s both;
    background: linear-gradient(135deg, var(--text-dark) 0%, #4a5568 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Description */
.hero-description {
    margin: 0 0 40px 0;
    animation: heroFadeInUp 0.8s ease-out 0.3s both;
}

.hero-description p {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 20px;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA */
.hero-cta {
    margin-top: 45px;
    animation: heroFadeInUp 0.8s ease-out 0.4s both;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--accent-green);
    color: white;
    padding: 18px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--accent-green);
    box-shadow:
        0 4px 15px rgba(46, 125, 50, 0.2),
        0 10px 30px rgba(46, 125, 50, 0.1);
    position: relative;
    overflow: hidden;
}

.hero-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.hero-button:hover::before {
    left: 100%;
}

.hero-button:hover {
    transform: translateY(-3px);
    box-shadow:
        0 8px 25px rgba(46, 125, 50, 0.3),
        0 15px 40px rgba(46, 125, 50, 0.15);
    color: white;
}

.hero-button svg {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-button:hover svg {
    transform: translateX(5px);
}

/* Animations */
@keyframes heroFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Tablet (1024px and below) */
@media screen and (max-width: 1024px) {
    .hero-section {
        min-height: 65vh;
    }

    .hero-overlay {
        padding: 80px 20px;
    }

    .hero-content {
        padding: 50px 60px;
        border-radius: 20px;
    }

    .hero-title {
        font-size: 16px;
        letter-spacing: 2.5px;
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 56px;
        margin-bottom: 24px;
        letter-spacing: -1px;
    }

    .hero-description p {
        font-size: 18px;
    }

    .hero-button {
        padding: 16px 36px;
        font-size: 17px;
    }
}

/* Mobile (768px and below) */
@media screen and (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        background-attachment: scroll;
    }

    .hero-overlay {
        padding: 60px 20px;
    }

    .hero-content {
        padding: 40px 45px;
        border-radius: 18px;
    }

    .hero-title {
        font-size: 14px;
        letter-spacing: 2px;
        margin-bottom: 14px;
    }

    .hero-subtitle {
        font-size: 42px;
        margin-bottom: 20px;
        letter-spacing: -0.8px;
    }

    .hero-description p {
        font-size: 17px;
        line-height: 1.6;
    }

    .hero-cta {
        margin-top: 35px;
    }

    .hero-button {
        padding: 15px 32px;
        font-size: 16px;
        gap: 10px;
    }
}

/* Small mobile (480px and below) */
@media screen and (max-width: 480px) {
    .hero-section {
        min-height: 55vh;
    }

    .hero-overlay {
        padding: 50px 15px;
    }

    .hero-content {
        padding: 35px 30px;
        border-radius: 16px;
        box-shadow:
            0 15px 40px rgba(0, 0, 0, 0.12),
            0 8px 20px rgba(0, 0, 0, 0.08);
    }

    .hero-title {
        font-size: 12px;
        letter-spacing: 1.5px;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 32px;
        margin-bottom: 18px;
        letter-spacing: -0.5px;
    }

    .hero-description p {
        font-size: 15px;
    }

    .hero-cta {
        margin-top: 30px;
    }

    .hero-button {
        padding: 14px 28px;
        font-size: 15px;
        gap: 8px;
    }

    .hero-button svg {
        width: 18px;
        height: 18px;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero-content,
    .hero-title,
    .hero-subtitle,
    .hero-description,
    .hero-cta {
        animation: none;
    }

    .hero-section {
        background-attachment: scroll;
    }

    .hero-button,
    .hero-button svg {
        transition: none;
    }
}
