/* ============================================
   NKY PARK FINDER — styles.css
   Aesthetic: Warm editorial / refined utility
   Fonts: Playfair Display (headings) + Source Sans 3 (body)
   ============================================ */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:      #2d6a4f;
  --green-mid:  #40916c;
  --green-lite: #d8f3dc;
  --amber:      #e76f1b;
  --amber-lite: #fff0e0;
  --navy:       #1b2d45;
  --slate:      #3d5166;
  --mist:       #f4f6f8;
  --white:      #ffffff;
  --gray-100:   #f0f2f4;
  --gray-200:   #e2e6ea;
  --gray-400:   #9aa5b1;
  --gray-700:   #4a5568;
  --text:       #1e2a35;
  --radius:     8px;
  --radius-lg:  14px;
  --shadow-sm:  0 1px 4px rgba(0,0,0,.07);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.13);
  --font-head:  'Playfair Display', Georgia, serif;
  --font-body:  'Source Sans 3', system-ui, sans-serif;
  --max-w:      1120px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { padding-left: 1.25rem; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- HEADER --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}
.logo img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
}
.logo-text {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--gray-200);
  letter-spacing: .01em;
}
.logo-text strong {
  color: var(--white);
  font-weight: 700;
}

.main-nav {
  display: flex;
  gap: 1.6rem;
}
.main-nav a {
  color: var(--gray-200);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .2s;
}
.main-nav a:hover { color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: .25rem .5rem;
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(27,45,69,.88) 0%, rgba(27,45,69,.6) 55%, rgba(27,45,69,.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 5rem 1.25rem;
  max-width: 660px;
}

.hero-eyebrow {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #95d5b2;
  margin-bottom: .75rem;
}

.hero-content h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: #cdd8e0;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-cta-group {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-block;
  padding: .75rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--amber);
  color: var(--white);
  border-color: var(--amber);
}
.btn-primary:hover {
  background: #c95e0f;
  border-color: #c95e0f;
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.08);
  text-decoration: none;
}

.hero-stats {
  display: flex;
  gap: 2rem;
}
.stat {
  display: flex;
  flex-direction: column;
  color: var(--white);
}
.stat strong {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
  color: #95d5b2;
}
.stat span {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #9ab3c4;
  margin-top: .2rem;
}

/* --- FILTER BAR --- */
.filter-bar {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: .75rem 0;
  position: sticky;
  top: 62px;
  z-index: 90;
}
.filter-inner {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.filter-label {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray-400);
}
.filter-buttons {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.filter-btn {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  color: var(--gray-200);
  font-size: .82rem;
  font-weight: 500;
  padding: .35rem .85rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all .18s;
  font-family: var(--font-body);
}
.filter-btn:hover {
  background: rgba(255,255,255,.14);
  color: var(--white);
}
.filter-btn.active {
  background: var(--green-mid);
  border-color: var(--green-mid);
  color: var(--white);
}

/* --- SECTION TITLES --- */
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .5rem;
}
.section-sub {
  color: var(--gray-700);
  font-size: .95rem;
  margin-bottom: 2rem;
}

/* --- PARKS SECTION --- */
.parks-section {
  padding: 4rem 0;
  background: var(--mist);
}

.park-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.park-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.4rem;
  border: 1px solid var(--gray-200);
  transition: box-shadow .2s, transform .2s;
}
.park-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.park-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--gray-100);
}

.park-name {
  font-family: var(--font-head);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: .2rem;
}
.park-location {
  font-size: .8rem;
  color: var(--gray-400);
}

.badge {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .2rem .6rem;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge-green  { background: var(--green-lite); color: var(--green); }
.badge-yellow { background: var(--amber-lite); color: #9a4900; }
.badge-gray   { background: var(--gray-100);   color: var(--gray-700); }

.park-details {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: .9rem;
}
.detail-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: .5rem;
  font-size: .88rem;
  align-items: baseline;
}
.detail-label {
  font-weight: 600;
  color: var(--gray-700);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.park-notes {
  background: var(--mist);
  border-left: 3px solid var(--green-mid);
  padding: .6rem .85rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .84rem;
  color: var(--slate);
  line-height: 1.5;
}

.data-note {
  margin-top: 2rem;
  padding: .9rem 1.1rem;
  background: var(--amber-lite);
  border-radius: var(--radius);
  font-size: .86rem;
  color: #7a3d00;
  border: 1px solid #f9c784;
}

/* --- COUNTIES --- */
.counties-section {
  padding: 4rem 0;
  background: var(--white);
}
.county-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
}
.county-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  background: var(--white);
  transition: box-shadow .2s;
}
.county-card:hover { box-shadow: var(--shadow-md); }
.county-card h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: .2rem;
}
.county-meta {
  font-size: .8rem;
  color: var(--gray-400);
  margin-bottom: .75rem;
}
.county-card ul {
  font-size: .88rem;
  color: var(--gray-700);
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.county-link {
  font-size: .88rem;
  font-weight: 600;
  color: var(--green);
}

/* --- GUIDE --- */
.guide-section {
  padding: 4rem 0;
  background: var(--mist);
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.guide-block {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
}
.guide-block h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: .6rem;
}
.guide-block p, .guide-block ul {
  font-size: .92rem;
  color: var(--gray-700);
  line-height: 1.65;
}
.checklist {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.checklist li::before {
  content: '✓ ';
  color: var(--green-mid);
  font-weight: 700;
}

/* --- TABLE --- */
.table-section {
  padding: 4rem 0;
  background: var(--white);
}
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.compare-table thead {
  background: var(--navy);
  color: var(--white);
}
.compare-table th {
  padding: .85rem 1.1rem;
  text-align: left;
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
}
.compare-table td {
  padding: .8rem 1.1rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover td { background: var(--mist); }

/* --- FAQ --- */
.faq-section {
  padding: 4rem 0;
  background: var(--mist);
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  max-width: 780px;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--green-mid);
  flex-shrink: 0;
  transition: transform .2s;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item p {
  padding: 0 1.25rem 1rem;
  font-size: .92rem;
  color: var(--gray-700);
  line-height: 1.7;
}

/* --- FOOTER --- */
.site-footer {
  background: var(--navy);
  color: var(--gray-400);
  padding: 3rem 0 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
  align-items: start;
}
.footer-brand .logo-text {
  font-size: 1.1rem;
  margin-bottom: .5rem;
  display: block;
}
.footer-brand p {
  font-size: .85rem;
  line-height: 1.6;
  max-width: 320px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.footer-nav a {
  color: var(--gray-400);
  font-size: .88rem;
  text-decoration: none;
  transition: color .18s;
}
.footer-nav a:hover { color: var(--white); }
.footer-legal {
  grid-column: 1 / -1;
  font-size: .78rem;
  line-height: 1.6;
  color: #4a5e70;
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 1.25rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 1rem 1.25rem 1.5rem;
    gap: 1rem;
    border-top: 1px solid rgba(255,255,255,.08);
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }
  .site-header { position: relative; }
  .filter-bar { position: static; }

  .hero { min-height: 420px; }
  .hero-content { padding: 3rem 1.25rem; }
  .hero-stats { gap: 1.25rem; }

  .park-grid { grid-template-columns: 1fr; }
  .county-grid { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .detail-row { grid-template-columns: 80px 1fr; }
}

@media (max-width: 480px) {
  .hero-cta-group { flex-direction: column; }
  .btn { text-align: center; }
  .hero-stats { gap: 1rem; }
  .stat strong { font-size: 1.4rem; }
  .park-card-header { flex-direction: column; }
}
