/* Expansion Page Structural Styles */
.expansion-page {
    background-color: #fafaf8;
    color: #333;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.expansion-page main {
    flex: 1;

    /* Safe offset for fixed header elements */
}

/* Hero Mini Refined */
.hero-mini-refined {
    width: 100%;
    height: 60vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

.hero-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-mini-refined h1 {
    position: relative;
    z-index: 2;
    color: #fff;
    font-family: 'Poiret One', cursive;
    font-size: var(--fs-hero-h1);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Standard Section Layout */
.section-premium {
    width: 100%;
    padding: 100px 5vw;
    position: relative;
    z-index: 2;
}

.section-premium.theme-ivory {
    background: #fafaf8;
}

.section-premium.theme-gold {
    background: #B8A884;
}

.section-premium.theme-deep {
    background: #303646;
    color: #fff;
}

/* Flex Split Layout */
.split-section {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .split-section {
        flex-direction: column;
        gap: 40px;
    }
}

/* Premium Typography & Utilities */
.responsive-title {
    font-family: 'Poiret One', cursive;
    font-size: var(--fs-section-h2);
    color: var(--dark-color);
    line-height: 1.2;
    margin-bottom: 20px;
}

.theme-deep .responsive-title {
    color: #fff;
}

.text-gold {
    color: var(--gold-brand);

    text-transform: uppercase;
}

/* Premium Buttons */
.btn-premium {
    background: var(--gold-brand);
    color: #fff;
    padding: 18px 45px;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(184, 168, 132, 0.3);
}

.btn-premium:hover {
    background: #a59569;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(184, 168, 132, 0.4);
}

/* Scroll Reveal Base - Robust version */
.reveal-on-scroll {
    opacity: 1;
    /* Visible by default for safety */
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Only apply hidden state if we are sure JS will handle it */
/* For now, we'll keep it simple: reveal if ".active" is added, 
   but we'll initialize them as slightly hidden via JS instead of CSS if possible */
.reveal-on-scroll.to-reveal {
    opacity: 0;
    transform: translateY(30px);
}

.reveal-on-scroll.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .section-premium {
        padding: 60px 20px;
    }

    .hero-mini-refined {
        height: 40vh;
        background-attachment: scroll;
        /* Better performance on mobile */
    }
}

h2 {
    font-size: var(--fs-section-h2);
}