/*=========================================
    PAGE HERO — Centralized Layout
=========================================*/

.page-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center; /* center everything */
    min-height: 100vh;       /* full viewport height */
    padding: var(--space-8) var(--space-4);
    background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-deep) 100%);
    color: var(--color-white);
    font-family: var(--font-primary);
    overflow: hidden;
}

/* Container */
.page-hero__container {
    position: relative;
    z-index: 2;
    max-width: var(--container-width);
    margin: 0 auto;
    text-align: center; /* central alignment */
}

/* Section Label */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.4em 1.2em;
    margin-bottom: var(--space-5);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-white);
    background: linear-gradient(110deg, var(--color-gold-dark), var(--color-gold));
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
}

/* Title */
.page-hero__title {
    margin-bottom: var(--space-4);
    font-size: clamp(2.6rem, 6vw, 4.5rem); /* fluid scaling */
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--color-white);

    white-space: normal;       /* allow natural wrapping */
    word-break: keep-all;      /* avoid breaking words mid-letter */
    hyphens: none;
    overflow-wrap: break-word; /* break only if necessary */
}

.page-hero__title span {
    display: block;
    color: var(--color-gold);
    font-weight: var(--font-weight-bold);
}

/* Description */
.page-hero__description {
    max-width: 720px;
    margin: 0 auto var(--space-6);
    font-size: var(--font-size-md);
    line-height: var(--line-height-body);
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
}

/* Actions */
.page-hero__actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9em 1.8em;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-pill);
    transition: all var(--transition-base);
    cursor: pointer;
}

.button--primary {
    background: var(--color-gold);
    color: var(--color-navy-deep);
    border: none;
    box-shadow: var(--shadow-md);
}

.button--primary:hover {
    background: var(--color-gold-light);
    transform: translateY(-2px);
}

.button--secondary {
    background: transparent;
    color: var(--color-gold);
    border: 2px solid var(--color-gold);
}

.button--secondary:hover {
    background: var(--color-gold);
    color: var(--color-navy-deep);
    transform: translateY(-2px);
}

/* Overlay Words (Innovative Right-Side Fill) */
.page-hero__overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%; /* span full width */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    pointer-events: none;
    z-index: 1;
}

.overlay-word {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(244, 180, 0, 0.15); /* gold tint */
    mix-blend-mode: overlay;
    line-height: 1;
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.page-hero:hover .overlay-word {
    opacity: 0.9;
    transform: translateY(-5px);
}

/* Background Word */
.page-hero__background-word {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(5rem, 18vw, 13rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.05);
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

/* Subtle Motion */
.reveal--up {
    animation: fadeUp 0.8s ease-out both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .page-hero {
        min-height: 90vh; 
        padding: var(--space-7) var(--space-4);
    }

    .page-hero__title {
        font-size: 3.2rem;
    }

    .page-hero__description {
        font-size: var(--font-size-base);
    }

    .page-hero__actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
        max-width: 320px;
    }

    .page-hero__overlay {
        display: none; /* hide overlay on mobile for clarity */
    }

    .page-hero__background-word {
        display: none;
    }
}


/* iPad / Tablet Responsiveness */
@media (min-width: 768px) and (max-width: 1024px) {
    .page-hero {
        min-height: 85vh; 
        padding: var(--space-1) var(--space-3);
        justify-content: center;
    }

    .page-hero__container {
        grid-template-columns: 1fr; /* stack content */
        text-align: center;
        gap: var(--space-6);
    }

    .page-hero__title {
        font-size: clamp(2.4rem, 8vw, 3.2rem); /* fluid scaling */
        line-height: 1.2;
        margin-bottom: var(--space-4);
    }

    .page-hero__description {
        max-width: 640px;
        margin: 0 auto var(--space-6);
        font-size: var(--font-size-base);
        line-height: var(--line-height-body);
    }

    .page-hero__actions {
        flex-direction: row; /* keep buttons side by side */
        justify-content: center;
        gap: var(--space-4);
    }

    .button {
        flex: 1 1 auto;
        max-width: 240px;
    }

    .page-hero__overlay {
        display: none; /* hide overlay words on iPad for clarity */
    }

    .page-hero__background-word {
        font-size: clamp(4rem, 12vw, 8rem);
        opacity: 0.08;
    }
}
