/*
Theme Name:  NatPark
Theme URI:   https://natpark.app
Description: The natpark.app theme. Phone first, no page builder. The park apps, their pages and their cards come from the NatParks Park Apps plugin; this theme is the frame around them (header, footer, home page, plain pages).
Author:      Thomas Tash
Version:     0.2.2
Requires PHP: 7.4
License:     GNU General Public License v2 or later
Text Domain: natpark
*/

/* The brand, in one place. The Park Apps plugin reads these same variables. */
:root {
	--np-cream: #f9f7f3;
	--np-ink: #191919;
	--np-green: #123317;
	--np-green-2: #1c2b22;
	--np-gold: #e0b751;
	--np-gold-ink: #a67c12;
	--np-line: rgba(18, 51, 23, .14);
	--np-muted: #55605a;
	--np-card: #fff;
	--np-radius: 14px;
	--np-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--np-font-head: "Inter Tight", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--np-font-hand: Caveat, "Segoe Script", cursive;
	--np-font-serif: "Cactus Classical Serif", Georgia, "Times New Roman", serif;
	--np-header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--np-header-h) + 16px); }
body { margin: 0; background: var(--np-cream); color: var(--np-ink); font: 400 16px/1.6 var(--np-font); -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--np-green); }
h1, h2, h3, h4 { font-family: var(--np-font-head); color: var(--np-green); line-height: 1.15; }
button, input, select, textarea { font-family: inherit; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; padding: 12px 18px; background: #fff; color: var(--np-green); font-weight: 600; border-radius: 0 0 10px 10px; }
.skip-link:focus { top: 0; }
:focus-visible { outline: 3px solid #1b6fd1; outline-offset: 3px; }
.np-wrap { max-width: 1184px; margin: 0 auto; padding: 0 20px; }
.np-wrap--narrow { max-width: 800px; }

/* Buttons */
.np-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 99px; border: 2px solid transparent; font: 600 16px/1.2 var(--np-font); text-decoration: none; cursor: pointer; text-align: center; }
.np-btn--gold { background: var(--np-gold); color: #1d1a0e; }
.np-btn--gold:hover { background: #d3a93f; }
.np-btn--light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.np-btn--light:hover { background: #fff; color: var(--np-green); }
.np-btn--line { border-color: var(--np-green); color: var(--np-green); }
.np-btn--line:hover { background: var(--np-green); color: #fff; }
.np-hand { margin: 0 0 6px; font: 600 26px/1.1 var(--np-font-hand); color: var(--np-gold-ink); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--np-green); color: #fff; }
body.admin-bar .site-header { top: 46px; }
.site-header__in { display: flex; align-items: center; gap: 12px; min-height: var(--np-header-h); }
.site-logo { display: inline-flex; align-items: center; min-height: 48px; margin-right: auto; }
.site-logo img { display: block; height: 32px; width: auto; }
.site-header__cta { min-height: 44px; padding: 8px 16px; font-size: 14.5px; white-space: nowrap; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-right: -10px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: #fff; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 24px; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-8px) rotate(-45deg); }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - var(--np-header-h)); overflow-y: auto; padding: 8px 20px 24px; background: var(--np-green); border-top: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 24px 40px rgba(0, 0, 0, .25); }
.site-nav.is-open { display: block; }
.site-nav ul { margin: 0; padding: 0; list-style: none; }
.site-nav li a { display: flex; align-items: center; min-height: 52px; color: #fff; font: 500 18px/1.2 var(--np-font-head); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.site-nav li a:hover { color: var(--np-gold); }
.site-nav__btns { display: grid; gap: 10px; margin-top: 18px; }

/* Home: hero */
.home-hero { position: relative; display: grid; align-items: end; min-height: min(68vh, 560px); color: #fff; background: var(--np-green-2); overflow: hidden; }
.home-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 20, 14, .30) 0%, rgba(10, 20, 14, .12) 35%, rgba(10, 20, 14, .78) 100%); }
.home-hero__in { position: relative; z-index: 1; width: 100%; padding-top: 48px; padding-bottom: 34px; }
.home-hero .np-hand { color: var(--np-gold); font-size: 28px; }
.home-hero h1 { margin: 0 0 12px; font: 400 44px/1.04 var(--np-font-serif); color: #fff; letter-spacing: -.005em; }
.home-hero p.lead { margin: 0 0 22px; max-width: 30em; font-size: 18px; line-height: 1.5; color: rgba(255, 255, 255, .94); }
.home-hero__btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Home: sections */
.home-section { padding: 44px 0; }
.home-section > .np-wrap > h2, .section-title { margin: 0 0 18px; font-size: 30px; font-weight: 600; letter-spacing: -.01em; }
.home-stores { padding: 8px 0 20px; }
.home-more { margin: 34px 0 0; }
.home-more h3 { margin: 0 0 14px; font-size: 22px; font-weight: 600; }
.home-biz { background: var(--np-green); color: #fff; }
.home-biz h2 { color: #fff; }
.home-biz .np-hand { color: var(--np-gold); }
.home-biz p.lead { margin: 0 0 22px; max-width: 36em; color: rgba(255, 255, 255, .9); font-size: 17px; }
.biz-cards { display: grid; gap: 12px; }
.biz-card { display: grid; gap: 4px; padding: 18px 20px; border-radius: 18px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); color: #fff; text-decoration: none; }
.biz-card:hover { background: rgba(255, 255, 255, .13); border-color: var(--np-gold); }
.biz-card strong { font: 600 18px/1.25 var(--np-font-head); color: var(--np-gold); }
.biz-card span { color: rgba(255, 255, 255, .88); font-size: 15px; line-height: 1.5; }
.home-about__in { display: grid; gap: 22px; align-items: center; }
.home-about img { border-radius: 20px; display: block; width: 100%; }
.home-about p { margin: 0 0 18px; max-width: 34em; font-size: 17px; }
.home-news { padding: 0 0 52px; }
.home-news__box { padding: 26px 22px; border-radius: 22px; background: #fff; border: 1px solid var(--np-line); }
.home-news__box h2 { margin: 0 0 6px; font-size: 24px; }
.home-news__box p { margin: 0 0 14px; color: var(--np-muted); }

/* Plain pages */
.page-main { padding: 28px 0 56px; }
.page-title { margin: 0 0 20px; font-size: 34px; font-weight: 600; letter-spacing: -.01em; }
.entry-content { max-width: 1184px; }
.entry-content--text { max-width: 760px; }
.entry-content--text h2 { margin: 1.6em 0 .5em; font-size: 24px; }
.entry-content--text h3 { margin: 1.4em 0 .4em; font-size: 19px; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { margin: 1.4em 0 .5em; font-size: 24px; }
/* The Advertiser Portal's box was pulled 100px up into the old theme's hero. */
.page-main .aap-wrap, .npapps-bizform .aap-wrap { margin-top: 0 !important; }
.notfound { padding: 56px 0 72px; text-align: center; }
.notfound h1 { margin: 0 0 10px; font-size: 38px; }
.notfound p { margin: 0 auto 22px; max-width: 30em; }

/* Gravity Forms in the brand's colors (its own theme sets blue on each form). */
body .gform_wrapper.gform-theme { --gf-color-primary: #123317 !important; --gf-color-primary-rgb: 18, 51, 23 !important; --gf-color-primary-darker: #0c2410 !important; --gf-color-primary-lighter: #2d5a35 !important; --gf-ctrl-border-color-focus: #123317 !important; --gf-radius: 10px !important; }
body .gform_wrapper.gform-theme .gform_button, body .gform_wrapper.gform-theme .gform_next_button, body .gform_wrapper.gform-theme .gform_previous_button { min-height: 48px; padding: 12px 24px; border-radius: 99px; font-weight: 600; }
.page-main .gform_wrapper .gform_heading .gform_title { display: none; }

/* Footer */
.site-footer { background: var(--np-green-2); color: rgba(255, 255, 255, .86); padding: 44px 0 28px; font-size: 15px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--np-gold); text-decoration: underline; }
.site-footer__top { display: grid; gap: 30px; }
.site-footer__brand img { display: block; height: 34px; width: auto; margin-bottom: 14px; }
.site-footer__brand p { margin: 0 0 14px; max-width: 30em; line-height: 1.55; }
.site-footer__social { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; }
.site-footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 20px; }
.site-footer h2 { margin: 0 0 8px; font: 600 15px/1.3 var(--np-font-head); color: var(--np-gold); letter-spacing: .02em; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer__cols li a, .site-footer__social a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer__legal { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 13.5px; color: rgba(255, 255, 255, .7); }

@media (min-width: 600px) {
	.home-hero h1 { font-size: 60px; }
	.biz-cards { grid-template-columns: 1fr 1fr; }
	.site-footer__cols { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 783px) {
	body.admin-bar .site-header { top: 32px; }
}
@media (min-width: 1000px) {
	:root { --np-header-h: 76px; }
	.np-wrap { padding: 0 32px; }
	.nav-toggle { display: none; }
	.site-header__cta { display: none; }
	.site-logo { margin-right: 28px; }
	.site-logo img { height: 38px; }
	.site-nav { display: flex; align-items: center; flex: 1; position: static; max-height: none; overflow: visible; padding: 0; border: 0; box-shadow: none; background: transparent; }
	.site-nav ul { display: flex; gap: 4px; margin-right: auto; }
	.site-nav li a { min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; font: 500 15.5px/1.2 var(--np-font); }
	.site-nav__btns { display: flex; margin: 0; gap: 10px; }
	.site-nav__btns .np-btn { min-height: 44px; padding: 9px 20px; font-size: 15px; }
	.home-hero { min-height: min(72vh, 660px); }
	.home-hero__in { padding-bottom: 64px; }
	.home-hero h1 { font-size: 78px; }
	.home-hero p.lead { font-size: 20px; }
	.home-section { padding: 72px 0; }
	.home-section > .np-wrap > h2, .section-title { font-size: 38px; margin-bottom: 26px; }
	.biz-cards { grid-template-columns: repeat(4, 1fr); }
	.home-about__in { grid-template-columns: 1fr 1fr; gap: 56px; }
	.home-news__box { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; padding: 40px; }
	.page-main { padding: 48px 0 88px; }
	.page-title { font-size: 46px; }
	.site-footer { padding: 64px 0 32px; }
	.site-footer__top { grid-template-columns: 1.1fr 1.4fr; gap: 64px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
