/* =====================================================================
   GYNATIUM SEEDS — Dynamic Hero Section (database driven)
   ===================================================================== */

.hero-section {
    position: relative;
    display: flex;
    overflow: hidden;
    background: var(--primary-dark, #244E0D);
    scroll-margin-top: 0;
    isolation: isolate;
}

/* ---------- Heights ---------- */
.hero-height-small { min-height: clamp(420px, 55vh, 560px); }
.hero-height-medium { min-height: clamp(480px, 62vh, 640px); }
.hero-height-large { min-height: clamp(540px, 75vh, 760px); }
.hero-height-fullscreen { min-height: 100svh; }

/* ---------- Background stack ---------- */
.hero-bg-stack { position: absolute; inset: 0; z-index: 0; }

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity var(--hero-dur, 900ms) ease;
    will-change: opacity;
}
.hero-slide-active { opacity: 1; }

.hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Slide transition effect */
.hero-section[data-transition="slide"] .hero-slide {
    transform: translateX(100%);
    transition: transform var(--hero-dur, 900ms) cubic-bezier(0.4, 0, 0.2, 1), opacity var(--hero-dur, 900ms) ease;
}
.hero-section[data-transition="slide"] .hero-slide-active {
    transform: translateX(0);
}

/* None transition */
.hero-section[data-transition="none"] .hero-slide,
.hero-section[data-transition="none"] .hero-slide-active {
    transition: opacity 0ms;
}

/* Ken Burns display mode (slow zoom on the active slide) */
.hero-section[data-display-mode="kenburns"] .hero-slide-active .hero-slide-img {
    animation: heroKenburns 14s ease-out forwards;
}
@keyframes heroKenburns {
    0% { transform: scale(1); }
    100% { transform: scale(1.12); }
}

/* ---------- Overlay ---------- */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* ---------- Content ---------- */
.hero-content-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex: 1;
}

.hero-vertical-center .hero-content-wrap { align-items: center; }
.hero-vertical-top .hero-content-wrap { align-items: flex-start; padding-top: 128px; }
.hero-vertical-bottom .hero-content-wrap { align-items: flex-end; padding-bottom: 64px; }

.hero-content { max-width: 680px; width: 100%; }
.hero-align-center .hero-content { margin: 0 auto; text-align: center; }
.hero-align-right .hero-content { margin-left: auto; text-align: right; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.92);
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 22px;
}
.hero-align-center .hero-eyebrow, .hero-align-right .hero-eyebrow { justify-content: center; }
.hero-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--golden, #EABF32);
    flex-shrink: 0;
}

.hero-title {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.05;
    font-size: clamp(2.25rem, 5.4vw, 4.5rem);
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero-description {
    margin-top: 22px;
    max-width: 560px;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}
.hero-align-center .hero-description { margin-left: auto; margin-right: auto; }

.hero-actions {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.hero-align-center .hero-actions { justify-content: center; }
.hero-align-right .hero-actions { justify-content: flex-end; }

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 30px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}
.hero-btn:hover { transform: translateY(-2px); }
.hero-btn-arrow { width: 16px; height: 16px; }

.hero-btn-solid {
    background: linear-gradient(135deg, var(--gold), var(--gold));
    color: var(--dark-text);
    box-shadow: 0 4px 14px rgba(234, 191, 50, 0.4);
}
.hero-btn-solid:hover { box-shadow: 0 8px 26px rgba(234, 191, 50, 0.55); }

.hero-btn-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.4);
}
.hero-btn-outline:hover { background: rgba(255, 255, 255, 0.12); border-color: #ffffff; }

.hero-btn-transparent {
    background: transparent;
    color: #ffffff;
}
.hero-btn-transparent:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Text entrance animations ---------- */
.hero-anim-fade-up .hero-eyebrow,
.hero-anim-fade-up .hero-title,
.hero-anim-fade-up .hero-description,
.hero-anim-fade-up .hero-actions {
    opacity: 0;
    animation: heroFadeUp 0.9s cubic-bezier(0.3, 0.7, 0.3, 1) forwards;
}
@keyframes heroFadeUp {
    to { opacity: 1; transform: none; }
}
.hero-anim-fade-up .hero-eyebrow { transform: translateY(40px); }
.hero-anim-fade-up .hero-title { transform: translateY(40px); }
.hero-anim-fade-up .hero-description { transform: translateY(28px); }
.hero-anim-fade-up .hero-actions { transform: translateY(28px); }

.hero-anim-zoom .hero-title { opacity: 0; animation: heroZoomIn 1.1s ease forwards; }
.hero-anim-zoom .hero-eyebrow { opacity: 0; animation: heroFadeUp 0.9s ease forwards; }
.hero-anim-zoom .hero-description, .hero-anim-zoom .hero-actions { opacity: 0; animation: heroFadeUp 1s ease forwards; }
@keyframes heroZoomIn {
    from { opacity: 0; transform: scale(0.94); }
    to { opacity: 1; transform: none; }
}

/* ---------- Scroll indicator ---------- */
.hero-scroll-indicator {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: none;
}
@media (min-width: 768px) {
    .hero-scroll-indicator { display: block; }
}
.hero-scroll-mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}
.hero-scroll-wheel {
    width: 4px;
    height: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.65);
    animation: heroWheel 1.8s ease-in-out infinite;
}
@keyframes heroWheel {
    0% { transform: translateY(0); opacity: 1; }
    70% { transform: translateY(12px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
    .hero-content-wrap { padding: 0 20px; }
    .hero-vertical-top .hero-content-wrap { padding-top: 108px; }
    .hero-vertical-bottom .hero-content-wrap { padding-bottom: 48px; }
    .hero-title { font-size: clamp(2rem, 9.5vw, 2.75rem); }
    .hero-actions { gap: 12px; }
    .hero-btn { padding: 14px 22px; font-size: 14px; border-radius: 12px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .hero-slide, .hero-section[data-transition="slide"] .hero-slide { transition-duration: 0ms !important; }
    .hero-section[data-display-mode="kenburns"] .hero-slide-active .hero-slide-img { animation: none !important; }
    .hero-anim-fade-up .hero-eyebrow, .hero-anim-fade-up .hero-title,
    .hero-anim-fade-up .hero-description, .hero-anim-fade-up .hero-actions,
    .hero-anim-zoom .hero-eyebrow, .hero-anim-zoom .hero-title,
    .hero-anim-zoom .hero-description, .hero-anim-zoom .hero-actions {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .hero-scroll-wheel { animation: none !important; }
}