/* =============================================================================
   Section Header — Unified System
   ─────────────────────────────────
   Single source of truth for all homepage section headings.
   Replaces per-section .rooms__header, .gallery__header, .amenities__header,
   .section-header, and inline-styled header divs.

   All typography is token-driven — each theme controls appearance through
   --font-family-secondary, --color-secondary, --text-secondary, etc.

   Scoped to .page-home .home-composer to avoid bleeding into booking/admin pages.
   ============================================================================= */

.page-home .home-composer .section-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-inline: clamp(1rem, 3vw, 1.5rem);
    margin: 0;
    gap: 1rem;
}

/* Title — uses body/primary font from theme for readability */
.page-home .home-composer .section-header__title {
    font-family: var(--font-family-primary);
    font-weight: 500;
    font-size: clamp(1.75rem, 4vw, 3rem);
    letter-spacing: 0.03em;
    color: var(--color-secondary);
    line-height: 1.2;
    margin: 0;
    padding: 0;
}

/* Subtitle — uses body/primary font from theme */
.page-home .home-composer .section-header__subtitle {
    max-width: 50rem;
    color: var(--text-secondary);
    font-family: var(--font-family-primary);
    font-size: var(--font-size-md, 1rem);
    line-height: var(--line-height-relaxed, 1.6);
    text-align: center;
    margin: 0;
    padding: 0;
}

/* ─── Mobile ─── */
@media (max-width: 1024px) {
    .page-home .home-composer .section-header {
        align-items: flex-start;
        text-align: left;
        padding-inline: 1rem;
    }

    .page-home .home-composer .section-header__subtitle {
        text-align: left;
        width: 100%;
    }
}

/* =============================================================================
   Modifiers (Global Brand Styles from theme_heading_style)
   ============================================================================= */

/* ── Standard ── */
/* Inherits base styles cleanly. The default balance between primary/secondary. */

/* ── Luxury (Editorial & Heritage) ── */
/* Hallmark: Stacked composition, extreme contrast in scale, wide tracked uppercase paired with massive cursive */
.page-home .home-composer .section-header--luxury {
    gap: 1rem;
    /* Restored a balanced gap so the subtitle has breathing room */
}

.page-home .home-composer .section-header--luxury .section-header__title {
    font-family: var(--font-family-primary);
    font-weight: 400;
    letter-spacing: 0.2em;
    /* Extremely wide tracking */
    text-transform: uppercase;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    /* Refined, smaller main title */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    /* Tightened the gap between the eyebrow text and the hero word */
    color: var(--text-secondary);
}

.page-home .home-composer .section-header--luxury .highlighter {
    /* The highlight word becomes the hero element */
    display: block;
    /* Forces onto a new line for a stacked lockup */
    font-family: var(--font-family-secondary, serif);
    font-weight: 400;
    text-transform: capitalize;
    font-size: clamp(3rem, 6vw, 4.5rem);
    /* Massive scale */
    letter-spacing: 0;
    line-height: 1.1;
    /* Slightly relaxed line height to avoid cutting off ascenders/descenders */
    margin-top: 0.25rem;
    color: var(--brand-primary-color);
}

.page-home .home-composer .section-header--luxury .underline::after {
    display: none;
    /* Scale and layout replace the need for an underline */
}

.page-home .home-composer .section-header--luxury .section-header__subtitle {
    font-family: var(--font-family-secondary, serif);
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 40rem;
    margin-top: 0;
}

/* ── Modern (Bold & Geometric) ── */
/* Hallmark: Architectural alignment, tight brutalist tracking, block-color highlights */
.page-home .home-composer .section-header--modern {
    align-items: center;
    text-align: center;
    width: 100%;
    margin-bottom: 1.5rem;
}

.page-home .home-composer .section-header--modern .section-header__title {
    font-family: var(--font-family-primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    /* Tight, modern tracking */
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    color: var(--text-primary);
}

.page-home .home-composer .section-header--modern .highlighter {
    /* Solid block highlight instead of an underline */
    font-family: var(--font-family-primary);
    font-weight: 900;
    text-transform: uppercase;
    background: var(--brand-primary-color);
    color: #ffffff;
    /* High contrast white text */
    padding: 0 0.3em;
    border-radius: 4px;
    margin-left: 0.1em;
    display: inline-block;
    line-height: 1;
}

.page-home .home-composer .section-header--modern .underline::after {
    display: none;
    /* Replaced by the solid background block */
}

.page-home .home-composer .section-header--modern .section-header__subtitle {
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.02em;
    max-width: 45rem;
    color: var(--text-secondary);
}