/* ─── ANIMATIONS.CSS — Initial States, Keyframes, Decorative Elements ─── */

/* ─── GRACEFUL DEGRADATION ─── */
/* Content visible by default; hidden only when JS confirms it can animate */
.js-ready [data-animate] {
    opacity: 0;
    transform: translateY(40px);
}

.js-ready [data-animate="manifesto"] {
    opacity: 1;
    transform: none;
}

.js-ready [data-animate="manifesto"] .manifesto-line {
    opacity: 0;
    transform: translateY(30px);
}

.js-ready .hero-eyebrow,
.js-ready .hero-sub {
    opacity: 0;
}

/* ─── HERO TITLE WORD SPANS ─── */
.hero-title .word-wrap {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    padding-top: 0.15em;
    margin-top: -0.15em;
}

.js-ready .hero-title .word-wrap > span {
    display: inline-block;
    transform: translateY(105%);
}

/* ─── SCROLL INDICATOR ─── */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.scroll-indicator__text {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}

.scroll-indicator__dot {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(8px); opacity: 1; }
}

/* ─── SCROLL PROGRESS BAR ─── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 200;
    pointer-events: none;
    background: transparent;
}

.scroll-progress__bar {
    height: 100%;
    background: var(--terracotta);
    transform-origin: left;
    transform: scaleX(0);
}

/* ─── HAMBURGER BUTTON ─── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 250;
    position: relative;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--black);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ─── MOBILE NAV PANEL ─── */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 23, 0.5);
    z-index: 190;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-panel {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: var(--cream);
    z-index: 200;
    transform: translateX(100%);
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 100px 32px 40px;
    box-shadow: -4px 0 24px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.mobile-nav-panel.active {
    transform: translateX(0);
    pointer-events: auto;
}

.mobile-nav-logo {
    display: none;
    position: absolute;
    top: 28px;
    left: 24px;
    height: 32px;
    width: auto;
}

.mobile-nav-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--black);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}
.mobile-nav-close:hover {
    background: rgba(0,0,0,0.05);
}

.mobile-nav-panel ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-nav-panel li {
    border-bottom: 1px solid var(--beige-mid);
}

.mobile-nav-panel a {
    display: block;
    padding: 18px 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--black);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s, color 0.2s;
}

.mobile-nav-panel a:hover {
    opacity: 1;
}

.mobile-nav-panel .nav-cta {
    display: inline-block;
    margin-top: 24px;
    background: var(--terracotta);
    color: var(--white) !important;
    opacity: 1 !important;
    padding: 12px 24px;
    text-align: center;
    font-size: 13px;
}

/* ─── DECORATIVE ELEMENTS ─── */
.bfs-deco {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    z-index: 1;
}

.bfs-blob {
    position: absolute;
    pointer-events: none;
    border-radius: 50% 40% 60% 45% / 55% 50% 45% 50%;
    z-index: 1;
}

.bfs-circle {
    position: absolute;
    pointer-events: none;
    border-radius: 60% 40% 55% 45% / 50% 60% 40% 55%;
    z-index: 1;
}

/* ─── ENHANCED HOVER STATES ─── */
.pillar-tile,
.brand-card,
.info-card,
.merch-tile {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
}

.pillar-tile:hover,
.brand-card:hover,
.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.merch-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.06);
}

.cta-btn,
.cfg-submit-btn,
.nav-cta {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}

.cta-btn:hover,
.cfg-submit-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 24px rgba(146, 62, 15, 0.25);
}

/* ─── SWATCH BOUNCE ─── */
@keyframes swatchBounce {
    0% { transform: scale(1); }
    40% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.cfg-swatch.selected {
    animation: swatchBounce 0.3s ease;
}

/* ─── NAV ACTIVE INDICATOR ─── */
.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--terracotta);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.nav-links a.nav-active::after,
.nav-links .current-menu-item a::after {
    transform: scaleX(1);
}

.nav-links .current-menu-item a {
    opacity: 1;
}

/* CTA links shouldn't have underline */
.nav-links .nav-cta::after {
    display: none;
}

/* ─── PHOTO BREAK PARALLAX ─── */
.photo-break[data-parallax] {
    overflow: hidden;
}

.photo-break[data-parallax] .photo-break__img,
.photo-break[data-parallax] .photo-break__placeholder {
    height: 120%;
    min-height: 120%;
    will-change: transform;
}

/* ─── DECORATIVE WILL-CHANGE ─── */
.bfs-blob {
    will-change: transform, border-radius;
}
.bfs-circle {
    will-change: transform;
}

/* ─── STRATEGY TAB PANEL CONTAINER ─── */
.pkg-panel-container {
    position: relative;
}

/* ─── MOBILE RESPONSIVE ─── */
@media (max-width: 960px) {
    .hamburger {
        display: flex;
    }

    .mobile-nav-overlay,
    .mobile-nav-panel {
        display: block;
    }

    .scroll-indicator {
        bottom: 20px;
    }

    .bfs-deco,
    .bfs-blob,
    .bfs-circle {
        display: none;
    }
}

@media (max-width: 600px) {
    .mobile-nav-panel {
        width: 100%;
        padding: 80px 24px 40px;
    }
    .mobile-nav-logo {
        display: block;
    }
    .scroll-indicator {
        bottom: 16px;
    }
    .scroll-indicator__text {
        font-size: 10px;
    }
}
