/* ===========================================================================
   parkd.css — Park'd design system.
   Unifies the site on one forest-green identity and provides the component
   classes used by the generated park + guide pages (scripts/generate-parks.mjs).
   Loaded AFTER the Bootslander template's style.css so these rules win.
   =========================================================================== */

:root {
  --ink:       #18271e;  /* near-black, green-tinted — h1 + strong text */
  --pine-deep: #0e4429;  /* header + footer + CTA gradient start */
  --pine:      #15683d;  /* primary accent — h2, links */
  --pine-mid:  #1f8a52;  /* hover / gradient end */
  --sand:      #f5f7f2;  /* warm light section background */
  --line:      #e6ebe2;  /* hairline borders */
  --muted:     #6b7280;  /* captions, secondary text */
  --body:      #3a423c;  /* body copy */
}

/* ---- Header: solid on inner pages; homepage keeps its transparent hero header ---- */
#header:not(.header-transparent) { background: var(--pine-deep) !important; box-shadow: 0 6px 24px rgba(0,0,0,.10); }
#header.header-scrolled { background: var(--pine-deep) !important; }

/* ---- Primary buttons (inline pages: solid pine on white) ---- */
.btn-get-started { background: var(--pine) !important; box-shadow: 0 8px 20px rgba(14,68,41,.28); border-color: var(--pine) !important; }
.btn-get-started:hover { background: var(--pine-mid) !important; }

/* ---- Homepage hero: real park photo under a refined forest wash (was flat kelly green) ---- */
#hero {
  background: url("../img/hero-park.jpg") center/cover no-repeat !important;
}
/* Template paints a solid kelly-green overlay here — replace with a left-weighted forest wash */
#hero:before {
  background: linear-gradient(90deg, rgba(11,52,32,.92) 0%, rgba(12,56,35,.68) 40%, rgba(12,56,35,.30) 70%, rgba(12,56,35,.12) 100%) !important;
}
#hero h1, #hero h1 span { color: #fff !important; }
#hero h1 span { border-bottom: 3px solid var(--pine-mid); padding-bottom: 2px; }
#hero h2 { color: rgba(255,255,255,.92) !important; }
/* Primary CTA pops as white; secondary stays as a white outline */
#hero .btn-get-started { background: #fff !important; color: var(--pine) !important; border-color: #fff !important; box-shadow: 0 12px 28px rgba(0,0,0,.25); }
#hero .btn-get-started:hover { background: #f2f7f3 !important; color: var(--pine-deep) !important; }
#hero .btn-get-started[style*="transparent"] { background: transparent !important; color: #fff !important; box-shadow: none; }
#hero .btn-get-started[style*="transparent"]:hover { background: rgba(255,255,255,.12) !important; color: #fff !important; }

/* ---- Breadcrumbs ---- */
.breadcrumbs { background: var(--sand) !important; border-bottom: 1px solid var(--line); }
.breadcrumbs h2 { color: var(--ink); font-weight: 600 !important; }
.breadcrumbs ol a { color: var(--pine); text-decoration: none; }
.breadcrumbs ol a:hover { color: var(--pine-mid); }

/* ---- Inner-page typography ---- */
.inner-page { color: var(--body); }
.inner-page h1 { color: var(--ink); letter-spacing: -.5px; margin-bottom: 6px; }
.inner-page h2.sec { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.45rem; color: var(--pine); margin: 42px 0 14px; }
.inner-page p { line-height: 1.75; }
.inner-page a { color: var(--pine); }
.inner-page a:hover { color: var(--pine-mid); }
.lead { font-size: 1.15rem; line-height: 1.8; color: var(--body); }
.park-meta { color: var(--pine); font-weight: 600; letter-spacing: .4px; text-transform: uppercase; font-size: .8rem; margin-bottom: 22px; }

/* ---- Guide sub-nav ---- */
.guide-nav { margin: 4px 0 30px; font-size: .95rem; color: var(--muted); }
.guide-nav strong { color: var(--ink); }
.guide-nav a { white-space: nowrap; }

/* ---- Park hero image (constrained, not a full-height wall) ---- */
figure.park-figure { margin: 0 0 26px; }
.park-hero { width: 100%; max-height: 440px; object-fit: cover; border-radius: 16px; display: block; box-shadow: 0 16px 40px rgba(16,42,28,.14); }
figure.park-figure figcaption { font-size: .8rem; color: var(--muted); margin-top: 10px; }

/* ---- Quick-facts strip ---- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; background: linear-gradient(180deg, #fff, var(--sand)); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 8px 0 32px; box-shadow: 0 6px 18px rgba(16,42,28,.05); }
.facts > div { display: flex; align-items: center; gap: 13px; padding: 18px 20px; border-right: 1px solid var(--line); }
.facts > div:last-child { border-right: 0; }
.facts > div > i { flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; font-size: 22px; color: var(--pine); background: rgba(21,104,61,.09); border-radius: 12px; }
.facts dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 3px; font-weight: 600; }
.facts dd { margin: 0; font-weight: 700; color: var(--ink); font-size: 1.02rem; line-height: 1.25; }
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div:nth-child(2n) { border-right: 0; }
  .facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---- Activity chips (clickable → /things-to-do/<activity>) ---- */
.chips { margin: 8px 0 4px; }
.chip { display: inline-flex; align-items: center; gap: 7px; background: var(--sand); color: #2c3a30; border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; margin: 0 8px 9px 0; font-size: .9rem; text-decoration: none; transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease; }
a.chip:hover { background: #fff; border-color: var(--pine-mid); color: var(--pine); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(16,42,28,.08); }
.chip-n { background: rgba(21,104,61,.1); color: var(--pine); border-radius: 999px; font-size: .72rem; font-weight: 700; padding: 1px 7px; }
a.chip:hover .chip-n { background: var(--pine); color: #fff; }

/* ---- Answer callout (how-many page) ---- */
.answer { font-size: 1.25rem; line-height: 1.7; color: var(--ink); background: var(--sand); border-left: 5px solid var(--pine); padding: 20px 24px; border-radius: 0 12px 12px 0; margin: 8px 0 26px; }
.answer strong { color: var(--pine); }

/* ---- CTA card ---- */
.cta-card { background: linear-gradient(135deg, var(--pine-deep), var(--pine-mid)); border-radius: 20px; padding: 42px 32px; margin: 48px 0 8px; text-align: center; color: #fff; box-shadow: 0 20px 44px rgba(14,68,41,.26); }
.cta-card h2 { color: #fff !important; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.4rem; margin: 0 0 10px; }
.cta-card p { max-width: 560px; margin: 0 auto 24px; color: rgba(255,255,255,.92); line-height: 1.65; }
.cta-card img { height: 58px; }

/* ---- Hub / directory grid ---- */
.park-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px; margin-top: 8px; }
.park-card { display: block; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 6px 18px rgba(16,42,28,.06); transition: transform .18s ease, box-shadow .18s ease; }
.park-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(16,42,28,.14); }
.park-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.park-card .pc-body { padding: 15px 18px; }
.park-card h3 { font-family: 'Poppins', sans-serif; font-size: 1.05rem; font-weight: 600; color: var(--ink); margin: 0 0 4px; }
.park-card p { font-size: .85rem; color: var(--muted); margin: 0; }

/* ---- By-state + related lists ---- */
.state-cols { columns: 2; column-gap: 48px; margin-top: 26px; }
.state-block { break-inside: avoid; margin-bottom: 26px; }
.state-block h2 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--pine); margin: 0 0 8px; }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { margin-bottom: 6px; line-height: 1.5; }
.link-list a { color: var(--body); text-decoration: none; }
.link-list a:hover { color: var(--pine); text-decoration: underline; }

/* ---- Footer: unify on pine, kill the navy box + teal border ---- */
#footer { background: var(--pine-deep) !important; }
#footer .footer-top .footer-info { background: rgba(255,255,255,.05) !important; border-top: 3px solid var(--pine-mid) !important; border-radius: 10px; }
#footer .footer-links a { color: rgba(255,255,255,.85); }
#footer .footer-links a:hover { color: #fff; text-decoration: none; }
.back-to-top { background: var(--pine) !important; }
.footer-appstore { display: inline-block; margin-top: 6px; transition: transform .18s ease, opacity .18s ease; }
.footer-appstore img { height: 46px; width: auto; }
.footer-appstore:hover { transform: translateY(-2px); opacity: .9; }

@media (max-width: 640px) {
  .state-cols { columns: 1; }
}
