/* ─────────────────────────────────────────────────────────
   Namibia Water Crisis — Landing Page Styles
   ───────────────────────────────────────────────────────── */

/* ── Material Symbols ─────────────────────────────────── */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* ── Scroll Progress Bar ──────────────────────────────── */
#scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, #ffb956, #ffca85, #ffb597);
    z-index: 9000;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* ── Cookie Banner ────────────────────────────────────── */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 8000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 10px 20px;
    background: rgba(14, 14, 14, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 202, 133, 0.12);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

#cookie-banner.visible {
    transform: translateY(0);
}

/* ── Scrollytelling container ─────────────────────────── */
.scrolly-container {
    height: 420vh;
    position: relative;
}

@media (min-width: 768px) {
    .scrolly-container {
        height: 500vh;
    }
}

.sticky-element {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* ── Glass components ─────────────────────────────────── */
.glass-card {
    background: rgba(14, 14, 14, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 202, 133, 0.12);
    border-radius: 20px;
    box-shadow:
        0 4px 32px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 202, 133, 0.07);
}

/* Survey card gets subtle gold border accent */
.card-survey {
    border-color: rgba(255, 202, 133, 0.28);
    box-shadow:
        0 4px 32px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 202, 133, 0.12),
        0 0 0 1px rgba(255, 202, 133, 0.06);
}

.glass-button {
    background: rgba(255, 202, 133, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 202, 133, 0.25);
    border-radius: 9999px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.glass-button:hover {
    background: rgba(255, 202, 133, 0.16);
    border-color: rgba(255, 202, 133, 0.5);
    transform: translateY(-1px);
}

.glass-button:active {
    transform: translateY(0);
}

/* ── Gold pill button ─────────────────────────────────── */
.gold-pill {
    background-color: #ffca85;
    color: #452b00;
    border-radius: 9999px;
    transition: all 0.25s ease;
    cursor: pointer;
    font-weight: 700;
}

.gold-pill:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 202, 133, 0.35);
}

.gold-pill:active {
    transform: translateY(0);
    filter: brightness(0.96);
}

/* ── Stat chip (source link on Card 3) ───────────────── */
.stat-chip {
    font-family: 'Karla', sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffca85;
    background: rgba(255, 202, 133, 0.1);
    border: 1px solid rgba(255, 202, 133, 0.2);
    padding: 3px 8px;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.stat-chip:hover {
    background: rgba(255, 202, 133, 0.2);
    border-color: rgba(255, 202, 133, 0.45);
}

/* ── Scrolly video ────────────────────────────────────── */
#scrolly-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Overlay — gradient darkens edges, preserves center ─ */
#scrolly-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0.52) 100%);
    pointer-events: none;
    z-index: 1;
}

/* ── Loading screen ───────────────────────────────────── */
#scrolly-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #0e0e0e;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.7s ease;
}

.loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

#scrolly-loader-text {
    font-family: 'Karla', sans-serif;
    font-size: 11px;
    letter-spacing: 0.35em;
    color: rgba(255, 202, 133, 0.6);
    text-transform: uppercase;
}

#scrolly-loader-bar-track {
    width: 160px;
    height: 1px;
    background: rgba(255, 202, 133, 0.12);
    border-radius: 9999px;
    overflow: hidden;
}

#scrolly-loader-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ffb956, #ffca85);
    border-radius: 9999px;
    transition: width 0.2s ease;
}

/* ── Share toast ──────────────────────────────────────── */
#share-toast {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: rgba(19, 19, 19, 0.95);
    border: 1px solid rgba(255, 202, 133, 0.25);
    color: #ffca85;
    font-family: 'Karla', sans-serif;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 9999px;
    z-index: 7000;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    backdrop-filter: blur(12px);
}

#share-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── NamWater report button ───────────────────────────── */
.namwater-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(255, 202, 133, 0.2);
    border-radius: 9999px;
    background: rgba(255, 202, 133, 0.06);
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
}

.namwater-btn:hover {
    background: rgba(255, 202, 133, 0.13);
    border-color: rgba(255, 202, 133, 0.4);
}

.namwater-btn > span:first-child {
    font-family: 'Karla', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(229, 226, 225, 0.75);
}

.namwater-badge {
    font-family: 'Karla', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #ffca85;
    background: rgba(255, 202, 133, 0.12);
    border: 1px solid rgba(255, 202, 133, 0.25);
    padding: 3px 10px;
    border-radius: 9999px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Scroll hint arrow animation ──────────────────────── */
@keyframes bounce-arrow {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50%       { transform: translateY(4px); opacity: 1; }
}

/* ── Card fade transitions via JS opacity ─────────────── */
#scrolly-card-0,
#scrolly-card-1,
#scrolly-card-2,
#scrolly-card-3,
#scrolly-card-4 {
    transition: opacity 0.3s ease;
}
