/* ============================================================
   FOUND BHUTAN - hero.css
   Location: /assets/styles/hero.css
   Loaded only on: index.php (homepage)

   Contains ALL hero-related styles, previously split between:
     1. The two conflicting .hero blocks in main.css (removed)
     2. The inline <style> block in index.php (removed)

   The .nb-* classes are scoped to the new hero redesign.
   The legacy .hero-overlay and .centered rules are kept here
   in case any other include still references them - safe to
   delete once confirmed unused.
   ============================================================ */

/* ── Core hero container ──────────────────────────────────── */
#home {
    position: relative;
}

/* Full-viewport hero - replaces both old .hero height rules
   (90vh from first block, 70vh from second block in main.css) */
#home .hero {
    position: relative;
    height: 100svh;
    min-height: 580px;
    overflow: hidden;
    background: #0b1d14;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

/* ── Slider container ─────────────────────────────────────── */
#home .hero-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    overflow: hidden;
}

/* ── Ken Burns keyframes ──────────────────────────────────── */
@keyframes nb-kb-1 {
    0%   { transform: scale(1.00) translate(0%,    0%);   }
    100% { transform: scale(1.08) translate(-1.5%, -1%);  }
}
@keyframes nb-kb-2 {
    0%   { transform: scale(1.08) translate(-1%,  -0.5%); }
    100% { transform: scale(1.00) translate(1.5%,  1%);   }
}
@keyframes nb-kb-3 {
    0%   { transform: scale(1.00) translate(1%,    0.5%); }
    100% { transform: scale(1.07) translate(-1%,  -1.5%); }
}

/* All images stack on top of each other */
#home .hero-slider img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.4s ease;
    filter: brightness(80%);
    animation: none;
    transform-origin: center center;
    will-change: transform, opacity;
}

/* Ken Burns variant per slide position - only plays when active */
#home .hero-slider img:nth-child(1).nb-hero-active { animation: nb-kb-1 18s ease-in-out forwards; }
#home .hero-slider img:nth-child(2).nb-hero-active { animation: nb-kb-2 18s ease-in-out forwards; }
#home .hero-slider img:nth-child(3).nb-hero-active { animation: nb-kb-3 18s ease-in-out forwards; }

#home .hero-slider img.nb-hero-active {
    opacity: 1;
}

/* Two-layer gradient overlay */
#home .hero-slider::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top,
            rgba(10, 20, 14, 0.88) 0%,
            rgba(10, 20, 14, 0.45) 40%,
            rgba(10, 20, 14, 0.10) 100%);
    z-index: 2;
    pointer-events: none;
}

/* ── Hero content ─────────────────────────────────────────── */
.nb-hero-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    padding-bottom: 72px;
    animation: nb-hero-rise 0.9s ease both;
    animation-delay: 0.2s;
}

@keyframes nb-hero-rise {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Eyebrow ──────────────────────────────────────────────── */
.nb-hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.nb-hero-eyebrow::before {
    content: '';
    display: block;
    width: 36px;
    height: 1.5px;
    background: #ffc21a;
    flex-shrink: 0;
}

.nb-hero-eyebrow span {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    font-family: Roboto, sans-serif;
}

/* ── H1 - overrides global h1 from main.css ───────────────── */
.nb-hero-content h1.nb-hero-title {
    font-size: clamp(2.6rem, 6.5vw, 5.5rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.05;
    margin: 0 0 20px;
    text-align: left;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.nb-hero-content .nb-highlight {
    color: #ffc21a;
    display: inline;
}

/* ── Tagline - semantic list rendered inline ──────────────── */
/* index.php now uses <ul class="nb-hero-tagline"> with <li> items.
   CSS renders it as an inline · separated list. */
.nb-hero-tagline {
    list-style: none;
    padding: 0;
    margin: 0 0 36px;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    align-items: center;
}

.nb-hero-tagline li {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.60);
    font-family: Roboto, sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.5;
}

/* · separator between items */
.nb-hero-tagline li + li::before {
    content: ' · ';
    padding: 0 0.5em;
    color: rgba(255, 255, 255, 0.35);
}

/* ── CTAs ─────────────────────────────────────────────────── */
.nb-hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.nb-cta-primary {
    display: inline-block;
    padding: 13px 30px;
    background: #ffc21a;
    color: #0e2d45 !important;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: background 0.22s ease, transform 0.18s ease;
}

.nb-cta-primary:hover {
    background: #ffd24d;
    transform: translateY(-2px);
    color: #0e2d45 !important;
}

.nb-cta-ghost {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    color: rgba(255, 255, 255, 0.82) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: border-color 0.22s ease, color 0.22s ease;
}

.nb-cta-ghost:hover {
    border-color: rgba(255, 255, 255, 0.75);
    color: #fff !important;
}

/* ── Slide dots ───────────────────────────────────────────── */
.nb-hero-dots {
    position: absolute;
    bottom: 32px;
    right: 0;
    z-index: 4;
    display: flex;
    gap: 8px;
    align-items: center;
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    left: 0;
    justify-content: flex-end;
}

.nb-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.nb-dot.nb-dot-active {
    background: #ffc21a;
    transform: scale(1.45);
}

/* ── Reduced motion - no animation, static first image ───── */
@media (prefers-reduced-motion: reduce) {
    #home .hero-slider img {
        transition: none;
        animation: none !important;
    }
    .nb-hero-content {
        animation: none;
    }
}

/* ── Tablet (576px – 991px) ───────────────────────────────── */
@media (max-width: 991px) {
    .nb-hero-content h1.nb-hero-title {
        font-size: clamp(2.2rem, 7vw, 4rem);
    }

    .nb-hero-tagline li {
        font-size: 0.62rem;
        letter-spacing: 0.08em;
    }
}

/* ── Mobile (≤575px) ──────────────────────────────────────── */
@media (max-width: 575px) {
    #home .hero {
        height: 88svh;
        min-height: 480px;
        align-items: flex-end;
    }

    .nb-hero-content {
        padding-bottom: 56px;
        width: 92%;
    }

    .nb-hero-content h1.nb-hero-title {
        font-size: clamp(2.4rem, 11vw, 3.2rem);
    }

    .nb-hero-eyebrow span {
        font-size: 0.6rem;
        letter-spacing: 0.16em;
    }

    .nb-hero-tagline {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-bottom: 28px;
    }

    /* Remove · separator on mobile - stacked layout */
    .nb-hero-tagline li + li::before {
        content: none;
    }

    .nb-hero-ctas {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .nb-cta-primary,
    .nb-cta-ghost {
        width: 100%;
        text-align: center;
    }

    .nb-hero-dots {
        bottom: 20px;
    }

    /* Ensure secondary images are visible in slider on mobile */
    #home .hero-slider .hero-image-secondary {
        display: block !important;
    }
}

/* ── Legacy rules (kept for safety) ──────────────────────────
   .hero-overlay and .centered existed in main.css and may be
   referenced by tour page headers or other includes.
   Review and delete once you confirm no other page uses them. */
.hero-overlay {
    background: rgba(0, 0, 0, 0.5);
    padding: 10%;
    width: 100%;
    height: 100%;
}

.centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: left;
}
