/* ============================================
   NATIONAL PARKS & SANCTUARIES — nps-page
   Scoped under .nps-page to prevent global bleed
   ============================================ */

.nps-page {
    --forest:   #0a2e1a;
    --emerald:  #059669;
    --gold:     #f1c40f;
    --cream:    #f9f6ef;
    --fog:      #e8f0e9;
    --ink:      #0f1c10;
    --white:    #ffffff;
    --ease:     cubic-bezier(0.16, 1, 0.3, 1);

    background: var(--cream);
    color: var(--ink);
    font-family: 'Open Sans', sans-serif;
    padding-bottom: 60px;
}

/* === LAYOUT === */
.nps-section { padding: 30px 0; }
.nps-wrap    { padding: 0 5%; max-width: 1400px; margin: 0 auto; }

/* === SCROLL REVEAL === */
.nps-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.nps-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === TITLE STYLING === */
.nps-section-title {
    font-size: clamp(22px, 2.8vw, 34px);
    font-weight: 800;
    color: var(--forest);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.nps-section-subtitle {
    font-size: clamp(14px, 1.2vw, 16px);
    color: #64748b;
    margin-bottom: 30px;
    max-width: 700px;
}
.nps-title-bar {
    width: 60px;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
    margin-bottom: 28px;
}

/* === STATS PANEL === */
.nps-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px; /* Centered below the 150px hero banner */
    position: relative;
    z-index: 20;
    margin-bottom: 40px;
}
.nps-stat-card {
    position: relative;
    padding: 30px 20px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(10,46,26,0.06);
    transition: all 0.4s var(--ease);
    overflow: hidden;
    border: none;
}

/* Individual Premium Forest Gradients */
.nps-stat-card:nth-child(1) {
    background: linear-gradient(135deg, #064e3b 0%, #043125 100%);
    box-shadow: 0 10px 30px rgba(6, 78, 59, 0.15);
}
.nps-stat-card:nth-child(2) {
    background: linear-gradient(135deg, #059669 0%, #064e3b 100%);
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.15);
}
.nps-stat-card:nth-child(3) {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.15);
}
.nps-stat-card:nth-child(4) {
    background: linear-gradient(135deg, #b45309 0%, #78350f 100%);
    box-shadow: 0 10px 30px rgba(180, 83, 9, 0.15);
}

/* Radial glare hover highlights */
.nps-stat-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    transform: scale(0.4);
    transition: transform 0.6s var(--ease);
    pointer-events: none;
}

/* Lift and scale hover effect */
.nps-stat-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 45px rgba(0,0,0,0.2);
}
.nps-stat-card:hover::before {
    transform: scale(1);
}

.nps-stat-num {
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.nps-stat-label {
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.nps-stat-card:nth-child(3) .nps-stat-label,
.nps-stat-card:nth-child(4) .nps-stat-label {
    color: #fef08a; /* Bright legible yellow for teal/amber backgrounds */
}

/* === FILTER TABS === */
.nps-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}
.nps-filter-btn {
    background: var(--white);
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}
.nps-filter-btn:hover {
    border-color: var(--emerald);
    color: var(--emerald);
    background: var(--fog);
}
.nps-filter-btn.active {
    background: var(--forest);
    border-color: var(--forest);
    color: var(--white);
    box-shadow: 0 10px 25px rgba(10,46,26,0.15);
}

/* === PA CARDS GRID === */
.nps-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.nps-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.5s var(--ease);
    display: flex;
    flex-direction: column;
}
.nps-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(10,46,26,0.15);
    border-color: var(--emerald);
}

.nps-card-media {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.nps-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}
.nps-card:hover .nps-card-media img {
    transform: scale(1.08);
}
.nps-card-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--gold);
    color: var(--forest);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.nps-card-badge.sanctuary {
    background: var(--emerald);
    color: var(--white);
}

.nps-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.nps-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--forest);
    margin-bottom: 12px;
    line-height: 1.3;
}

/* === CARD SPEC DATA METRICS === */
.nps-card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
}
.nps-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}
.nps-meta-item i {
    color: var(--emerald);
}

.nps-card-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* === SPECIES PILLS === */
.nps-species-wrap {
    margin-top: auto;
}
.nps-species-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 8px;
}
.nps-species-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.nps-tag {
    background: var(--cream);
    color: var(--forest);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--fog);
    transition: all 0.2s ease;
}
.nps-card:hover .nps-tag {
    background: var(--fog);
}

/* === LEGAL SHOWCASE SECTION === */
.nps-legal-strip {
    background: linear-gradient(135deg, var(--forest) 0%, #15452a 100%);
    border-radius: 30px;
    padding: 40px;
    color: var(--white);
    box-shadow: 0 20px 50px rgba(10,46,26,0.15);
    margin-top: 40px;
}
.nps-legal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.nps-legal-info h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 12px;
}
.nps-legal-info p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
    margin-bottom: 20px;
}
.nps-comparison-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 24px;
}
.nps-comp-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
}
.nps-comp-row:last-child { border-bottom: none; }
.nps-comp-header {
    font-weight: 800;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.nps-comp-val {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
}

/* === RESPONSIVE BREAKPOINTS === */
@media (max-width: 1024px) {
    .nps-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .nps-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .nps-legal-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nps-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nps-stats-grid {
        grid-template-columns: 1fr;
    }
    .nps-filters {
        flex-wrap: wrap;
    }
}
