/* ============================================================================
   HOMEPAGE — hero + navigation sections
   All selectors prefixed hn- to avoid collisions with theme globals
============================================================================ */

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hn-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: hsla(var(--ColorBrand), 1); /* fallback while image loads */
}

/* Ken Burns slow zoom on the background image */
.hn-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform-origin: center;
    animation: hn-kenburns 18s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes hn-kenburns {
    from { transform: scale(1);    }
    to   { transform: scale(1.08); }
}

/* Brand-colour tint overlay at 50 % opacity */
.hn-hero-overlay {
    position: absolute;
    inset: 0;
    background: hsla(var(--ColorBrand), 0.5);
    z-index: 1;
}

/* Text content sits above overlay */
.hn-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    padding: 2rem 3rem;
    max-width: 900px;
    width: 100%;
    /* Staggered fade-up entrance */
    opacity: 0;
    transform: translateY(36px);
    animation: hn-fadeup 1s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.4s;
}

@keyframes hn-fadeup {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hn-hero-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1rem;
    opacity: 0;
    animation: hn-fadeup 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.2s;
}

.hn-hero-title {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    margin: 0 0 1.25rem;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
    opacity: 0;
    animation: hn-fadeup 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.55s;
}

.hn-hero-summary {
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 auto 2rem;
    max-width: 680px;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: hn-fadeup 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.75s;
}

.hn-hero-cta {
    display: inline-block;
    background: #ffffff;
    color: hsla(var(--ColorBrand), 1);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    padding: 0.85rem 2.25rem;
    border-radius: 2px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    opacity: 0;
    animation: hn-fadeup 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.95s;
}
.hn-hero-cta:hover {
    background: hsla(var(--ColorBrand5), 1); /* yellow accent */
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

/* Scroll chevron */
.hn-hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.75rem;
    animation: hn-bounce 2.2s ease-in-out infinite 2s;
    transition: color 0.2s;
    text-decoration: none;
}
.hn-hero-scroll:hover { color: #ffffff; }
@keyframes hn-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── Shared section wrapper ──────────────────────────────────────────────── */
.hn-section {
    padding: 4rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hn-section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.hn-section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}
.hn-section-header p {
    color: hsla(var(--TextMuted), 1);
    font-size: 1rem;
    margin: 0;
}

/* ── Category grid ──────────────────────────────────────────────────────── */
.hn-cat-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.hn-cat-card {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.25rem 1rem;
    border: 1px solid hsla(var(--ColorBrand), 0.25);
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    color: hsla(var(--ColorBrand), 1);
    text-decoration: none;
    background: #ffffff;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.hn-cat-card:hover {
    background: hsla(var(--ColorBrand), 1);
    border-color: hsla(var(--ColorBrand), 1);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* ── Region grid ─────────────────────────────────────────────────────────── */
.hn-region-divider {
    border: none;
    border-top: 1px solid hsla(var(--ColorBrand), 0.12);
    margin: 0;
}

.hn-region-section {
    background: hsla(var(--ColorBrand), 0.04);
}

.hn-region-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
}

.hn-region-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.1rem;
    border-radius: 100px;
    border: 1px solid hsla(var(--ColorBrand), 0.25);
    font-size: 0.85rem;
    font-weight: 500;
    color: hsla(var(--ColorBrand), 1);
    text-decoration: none;
    background: #ffffff;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.hn-region-pill:hover {
    background: hsla(var(--ColorBrand), 1);
    border-color: hsla(var(--ColorBrand), 1);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* ── Responsive typography tuning (homepage) ─────────────────────────────── */
@media (max-width: 1024px) {
    .hn-hero {
        min-height: 86vh;
    }

    .hn-hero-content {
        max-width: 760px;
        padding: 1.5rem 1.5rem;
    }

    .hn-hero-title {
        font-size: 2.1rem;
        margin-bottom: 1rem;
    }

    .hn-hero-summary {
        font-size: 0.98rem;
        line-height: 1.45;
    }
}

@media (max-width: 768px) {
    .hn-hero {
        min-height: 78vh;
    }

    .hn-hero-content {
        padding: 1.25rem 1rem;
    }

    .hn-hero-eyebrow {
        font-size: 0.68rem;
        margin-bottom: 0.7rem;
    }

    .hn-hero-title {
        font-size: 1.6rem;
        line-height: 1.2;
    }

    .hn-hero-summary {
        font-size: 0.9rem;
        line-height: 1.42;
        margin-bottom: 1.25rem;
    }

    .hn-hero-cta {
        font-size: 0.85rem;
        padding: 0.7rem 1.5rem;
    }

    .hn-section {
        padding: 2.2rem 1rem;
    }

    .hn-section-header h2 {
        font-size: 1.3rem;
    }

    .hn-section-header p {
        font-size: 0.9rem;
    }

    .hn-cat-card {
        font-size: 0.82rem;
        padding: 0.95rem 0.75rem;
    }

    .hn-region-pill {
        font-size: 0.8rem;
        padding: 0.45rem 0.9rem;
    }
}

@media (max-width: 480px) {
    .hn-hero {
        min-height: 70vh;
    }

    .hn-hero-title {
        font-size: 1.35rem;
    }

    .hn-hero-summary {
        font-size: 0.82rem;
        line-height: 1.38;
    }

    .hn-hero-scroll {
        bottom: 1rem;
    }
}
