/* =========================================================
   National Parks — aligned with kbrnp.in design system
   ========================================================= */

/* ── Scroll-reveal ── */
.np-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .65s cubic-bezier(0.33,1,0.68,1),
                transform .65s cubic-bezier(0.33,1,0.68,1);
}
.np-reveal.is-visible { opacity: 1; transform: none; }

.np-stagger > * {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .55s cubic-bezier(0.33,1,0.68,1),
                transform .55s cubic-bezier(0.33,1,0.68,1);
}
.np-stagger.is-visible > *:nth-child(1) { opacity:1; transform:none; transition-delay:.05s; }
.np-stagger.is-visible > *:nth-child(2) { opacity:1; transform:none; transition-delay:.13s; }
.np-stagger.is-visible > *:nth-child(3) { opacity:1; transform:none; transition-delay:.21s; }
.np-stagger.is-visible > *:nth-child(n+4) { opacity:1; transform:none; transition-delay:.28s; }

/* ── Hero ── */
.np-hero {
    position: relative;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 7rem 1.25rem 4rem;
    background: var(--forest-green, #1F4D3A);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.np-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 52rem;
}
.np-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    color: var(--lime-pop, #BFFF58);
    border: 1px solid rgba(255,255,255,.2);
    padding: .4rem 1rem;
    border-radius: 9999px;
    font-size: .78rem;
    font-family: var(--font-mono, 'DM Mono', monospace);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 1.25rem;
}
.np-hero h1 {
    color: #fff;
    font-family: var(--font-heading, 'Space Grotesk', sans-serif);
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0 0 1.25rem;
}
.np-hero p {
    color: rgba(255,255,255,.82);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 40rem;
    margin: 0 auto;
}

/* ── Main section ── */
.np-main {
    background: var(--warm-sand, #F3EFE7);
    padding: 5rem 0;
}
.np-main__head {
    text-align: center;
    margin-bottom: 3rem;
    padding-inline: 1.25rem;
}
.np-main__tag {
    display: inline-block;
    font-family: var(--font-mono, 'DM Mono', monospace);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--peacock-teal, #007A73);
    margin-bottom: .5rem;
}
.np-main__head h2 {
    font-family: var(--font-heading, 'Space Grotesk', sans-serif);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--soft-charcoal, #1A1A1A);
    margin: 0 0 .75rem;
    line-height: 1.2;
}
.np-main__head p {
    color: var(--muted-gray, #6E6E6E);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 42rem;
    margin: 0 auto;
}

/* ── Grid ── */
.np-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    max-width: 1216px;
    margin: 0 auto;
    padding-inline: 1.25rem;
}

/* ── Cards ── */
.np-card {
    background: #fff;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    display: flex;
    flex-direction: column;
    transition: box-shadow .3s ease, transform .3s ease;
}
.np-card:hover {
    box-shadow: 0 16px 40px rgba(0,0,0,.14);
    transform: translateY(-4px);
}
.np-card__media {
    position: relative;
    overflow: hidden;
}
.np-card hover-lift {
    border-bottom: solid 4px #d4a740;
}
.np-card__img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.np-card:hover .np-card__img { transform: scale(1.07); }

.np-card__badge {
    position: absolute;
    top: .85rem;
    left: .85rem;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--forest-green, #1F4D3A);
    color: #fff;
    font-family: var(--font-heading, 'Space Grotesk', sans-serif);
    font-size: .8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.np-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.6), transparent 50%);
    opacity: 0;
    transition: opacity .3s ease;
}
.np-card:hover .np-card__overlay { opacity: 1; }

.np-card__body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.np-card__title {
    font-family: var(--font-heading, 'Space Grotesk', sans-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--forest-green, #1F4D3A);
    margin: 0 0 .5rem;
    line-height: 1.3;
}
.np-card__rule {
    display: block;
    width: 2.5rem;
    height: 3px;
    background: var(--sunset-gold, #D4A740);
    border: none;
    border-radius: 9999px;
    margin: 0 0 1rem;
    padding: 0;
}
.np-card__desc {
    font-family: var(--font-body, Inter, sans-serif);
    font-size: .9rem;
    line-height: 1.65;
    color: var(--muted-gray, #6E6E6E);
    margin: 0 0 1.25rem;
    flex: 1;
}
.np-card__desc p { margin: 0; }
.np-card__btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .55rem 1.2rem;
    border-radius: 10px;
    background: var(--forest-green, #1F4D3A);
    color: #fff !important;
    font-family: var(--font-heading, 'Space Grotesk', sans-serif);
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.np-card__btn:hover { background: #163a2b; transform: translateY(-1px); color: #fff; }

/* ── Quote ── */
.np-quote {
    background: var(--forest-green, #1F4D3A);
    padding: 2rem 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.np-quote__text,
.np-quote__rte p,
.np-quote__rte h1,
.np-quote__rte h2,
.np-quote__rte h3 {
    max-width: 52rem;
    margin: 0 auto;
    font-size: 1.25rem;
    color: #fff;
    font-style: italic;
    font-weight: 700;
    line-height: 1.65;
    text-align: center;
}
.np-quote__author,
.np-quote__rte span {
    color: var(--lime-pop, #BFFF58);
    font-style: normal;
    font-weight: 700;
}

/* ── Responsive ── */
@media (max-width: 1023px) {
    .np-grid { grid-template-columns: repeat(2, 1fr); }
    .np-main { padding: 3.5rem 0; }
}
@media (max-width: 767px) {
    .np-hero { min-height: 280px; padding: 5rem 1rem 3rem; }
    .np-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .np-main { padding: 2.5rem 0; }
    .np-card__body { padding: 1.25rem; }
    .np-card__img { height: 180px; }
}
@media (max-width: 479px) {
    .np-hero { min-height: 220px; padding: 4.5rem 1rem 2.5rem; }
    .np-grid { gap: 1rem; padding-inline: 1rem; }
    .np-main__head h2 { font-size: 1.5rem; }
    .np-card__img { height: 160px; }
}

.np-back-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 999;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: none;
    background: #1b3d2f;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: background 0.2s ease, transform 0.2s ease;
}
.np-back-top:hover {
    background: #2d6a4f;
    transform: translateY(-2px);
}
