/* ===== Hero Sections ===== */

/* Hero Animations */
@keyframes heroFadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes heroScaleIn {
    from {
        opacity: 0;
        transform: scale(1.1);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Main Hero */
.hero {
    position: relative;
    min-height: 90vh;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    animation: heroScaleIn 1.5s ease-out forwards;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(17, 91, 70, 0.75) 0%, rgba(17, 91, 70, 0.45) 50%, rgba(0,0,0,0.35) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    min-height: 90vh;
    color: white;
    padding: 2rem 0;
}

.hero-content .container {
    max-width: 850px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 3.75rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    animation: heroFadeInUp 0.8s ease-out 0.2s both;
}

.hero-content h1 .city-name {
    display: inline-block;
    position: relative;
    overflow: hidden;
    vertical-align: bottom;
}

.hero-content h1 .city-name-text {
    display: inline-block;
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

.hero-content h1 .city-name-text.slide-out {
    transform: translateY(100%);
    opacity: 0;
}

.hero-content h1 .city-name-text.slide-in {
    animation: slideInFromTop 0.4s ease-in-out forwards;
}

@keyframes slideInFromTop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero-content p {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 600px;
    animation: heroFadeInUp 0.8s ease-out 0.4s both;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: heroFadeInUp 0.8s ease-out 0.6s both;
}

.hero-cta .btn {
    min-width: 160px;
}

/* Subpage Hero */
.subpage-hero {
    position: relative;
    min-height: 32vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subpage-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 91, 70, 0.55), rgba(17, 91, 70, 0.75));
}

.subpage-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--color-light);
    animation: heroFadeInUp 0.6s ease-out 0.2s both;
}

    .subpage-hero-content h1 {
        font-family: var(--font-heading);
        font-size: clamp(2rem, 6vw, 3rem);
        margin: 0;
        letter-spacing: 0.5px;
    }

/* Page Hero */
.page-hero {
    position: relative;
    min-height: 32vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-light);
}

    .page-hero .overlay {
        position: absolute;
        inset: 0;
        background: var(--color-primary);
        opacity: 0.6;
    }

.page-hero-content {
    position: relative;
    padding: clamp(4rem, 6vw, 6rem) 1.5rem;
    max-width: 900px;
    z-index: 1;
    animation: heroFadeInUp 0.6s ease-out 0.2s both;
}

.page-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    margin-bottom: 1rem;
    color: var(--color-light);
}

.page-hero p {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--color-light);
    line-height: 1.6;
}

/* Responsive Hero */
@media (max-width: 768px) {
    .subpage-hero {
        min-height: 40vh;
    }

    .hero {
        min-height: 70vh;
    }

    .hero-content {
        min-height: 70vh;
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: 60vh;
    }

    .hero-content {
        min-height: 60vh;
    }
}
