/*
Theme Name: Nether Providence Township
Theme URI: https://netherprovidence.org
Author: Nether Providence Township
Author URI: https://netherprovidence.org
Description: A modern, accessible WordPress theme for Nether Providence Township with mega menu navigation, Gutenberg block editor support, and larger, readable typography.
Version: 1.2.4
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nether-providence
Tags: government, accessibility-ready, custom-menu, featured-images, footer-widgets, full-width-template, responsive-layout
*/

/* =========================================================
   CSS Custom Properties
   ========================================================= */
:root {
  --np-green-dark:    #142B0F;
  --np-green:         #1e4415;
  --np-green-mid:     #2E5F1D;
  --np-green-light:   #428A2A;
  --np-green-pale:    #eaf4e3;
  --np-gold:          #F7DF5B;
  --np-white:         #ffffff;
  --np-off-white:     #f8f9f5;
  --np-gray-light:    #e9ecef;
  --np-gray:          #6c757d;
  --np-gray-dark:     #343a40;
  --np-text:          #212529;
  --np-text-muted:    #555f6b;
  --np-link:          #1e5c1e;
  --np-link-hover:    #c8a227;

  --np-font-sans:     'Open Sans', 'Segoe UI', Arial, sans-serif;
  --np-font-serif:    Georgia, 'Times New Roman', serif;

  --np-base-size:     18px;
  --np-radius:        4px;
  --np-radius-lg:     8px;
  --np-shadow:        0 2px 8px rgba(0,0,0,0.10);
  --np-shadow-lg:     0 4px 24px rgba(0,0,0,0.13);

  --np-container:     1200px;
  --np-header-h:      90px;
  --np-nav-h:         52px;
  --np-mega-z:        1000;
}

/* =========================================================
   Reset & Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: var(--np-base-size);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--np-font-sans);
  color: var(--np-text);
  background: var(--np-off-white);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#page { flex: 1; display: flex; flex-direction: column; }
#content { flex: 1; }

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--np-link); text-decoration: underline; transition: color 0.2s; }
a:hover, a:focus { color: var(--np-link-hover); }
a:focus-visible { outline: 3px solid var(--np-gold); outline-offset: 2px; border-radius: 2px; }

ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.3rem; }

hr { border: none; border-top: 1px solid var(--np-gray-light); margin: 2rem 0; }

/* =========================================================
   Typography
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--np-font-sans);
  font-weight: 700;
  line-height: 1.25;
  color: var(--np-green-dark);
  margin-bottom: 0.6em;
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

p { margin-bottom: 1.1rem; }
blockquote {
  border-left: 4px solid var(--np-green-mid);
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  background: var(--np-green-pale);
  border-radius: 0 var(--np-radius) var(--np-radius) 0;
  font-style: italic;
  color: var(--np-text-muted);
}

/* =========================================================
   Layout Helpers
   ========================================================= */
.np-container {
  max-width: var(--np-container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.np-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

/* =========================================================
   Skip Link
   ========================================================= */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--np-green-dark);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--np-radius) var(--np-radius);
  font-weight: 700;
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* =========================================================
   Site Header
   ========================================================= */
#masthead {
  background: var(--np-white);
  border-bottom: 3px solid var(--np-green-mid);
  box-shadow: var(--np-shadow);
  position: relative;
  z-index: calc(var(--np-mega-z) + 10);
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--np-header-h);
  padding-block: 0.75rem;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
  text-decoration: none;
}
.site-branding:hover { text-decoration: none; }

.site-logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
}

.site-identity { min-width: 0; }
.site-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--np-green-dark);
  line-height: 1.1;
  display: block;
  text-decoration: none;
}
#masthead .site-title a,
#masthead .site-title a:visited {
  color: var(--np-green-dark);
  text-decoration: none;
}
#masthead .site-title a:hover,
#masthead .site-title a:focus-visible {
  color: var(--np-green-mid);
  text-decoration: none;
}
.site-tagline {
  font-size: 0.82rem;
  color: var(--np-text-muted);
  display: block;
  margin-top: 0.2rem;
  letter-spacing: 0.03em;
}

.header-search { margin-left: auto; }
.header-search form {
  display: flex;
  align-items: center;
  border: 2px solid var(--np-green-mid);
  border-radius: var(--np-radius);
  overflow: hidden;
}
.header-search input[type="search"] {
  border: none;
  padding: 0.45rem 0.75rem;
  font-size: 0.9rem;
  outline: none;
  min-width: 200px;
  background: #fff;
  color: var(--np-text);
}
.header-search button {
  background: var(--np-green-mid);
  border: none;
  color: #fff;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background 0.2s;
}
.header-search button:hover { background: var(--np-green-dark); }

/* =========================================================
   Primary Navigation Bar
   ========================================================= */
#site-navigation {
  background: var(--np-green);
  position: relative;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: var(--np-radius);
  color: #fff;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  align-items: center;
  gap: 0.5rem;
}
.menu-toggle .hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 20px;
}
.menu-toggle .hamburger span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle.is-active .hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.is-active .hamburger span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active .hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Top-level menu */
.primary-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.primary-menu > li {
  position: static;
}

.primary-menu > li > a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0 1.15rem;
  height: var(--np-nav-h);
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s;
  border-bottom: 3px solid transparent;
}
.primary-menu > li > a .caret {
  font-size: 0.65rem;
  opacity: 0.75;
  transition: transform 0.2s;
}
.primary-menu > li.is-open > a .caret,
.primary-menu > li:hover > a .caret { transform: rotate(180deg); }

.primary-menu > li > a:hover,
.primary-menu > li > a:focus,
.primary-menu > li.current-menu-item > a,
.primary-menu > li.current-menu-ancestor > a {
  background: var(--np-green-dark);
  color: var(--np-gold);
  border-bottom-color: var(--np-gold);
  text-decoration: none;
}

/* =========================================================
   Mega Menu Panels
   ========================================================= */
.mega-menu-wrap {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--np-white);
  border-top: 3px solid var(--np-green-mid);
  box-shadow: var(--np-shadow-lg);
  z-index: var(--np-mega-z);
  display: none;
  padding: 2rem 0;
}
.mega-menu-wrap.is-open { display: block; }

.mega-menu-inner {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.mega-col-heading {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--np-green-mid);
  border-bottom: 2px solid var(--np-green-pale);
  padding-bottom: 0.4rem;
  margin-bottom: 0.75rem;
}
.mega-col a.mega-col-heading { text-decoration: none; }
.mega-col a.mega-col-heading:hover,
.mega-col a.mega-col-heading:focus-visible { color: var(--np-green-dark); text-decoration: underline; }

.mega-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 170px;
}
.mega-col ul li { margin-bottom: 0.1rem; }
.mega-col ul a {
  display: block;
  padding: 0.3rem 0.5rem;
  color: var(--np-text);
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: var(--np-radius);
  transition: background 0.15s, color 0.15s;
}
.mega-col ul a:hover,
.mega-col ul a:focus {
  background: var(--np-green-pale);
  color: var(--np-green-dark);
  text-decoration: none;
}

.mega-col ul ul {
  margin-left: 0.75rem;
  margin-top: 0.2rem;
}
.mega-col ul ul a {
  font-size: 0.85rem;
  color: var(--np-text-muted);
  padding: 0.2rem 0.5rem;
}

/* Simple dropdown (for items with fewer children) */
.simple-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--np-white);
  border: 1px solid var(--np-gray-light);
  border-top: 3px solid var(--np-green-mid);
  box-shadow: var(--np-shadow-lg);
  min-width: 220px;
  z-index: var(--np-mega-z);
  display: none;
  padding: 0.5rem 0;
  border-radius: 0 0 var(--np-radius) var(--np-radius);
}
.simple-dropdown.is-open { display: block; }
.simple-dropdown a {
  display: block;
  padding: 0.45rem 1.1rem;
  color: var(--np-text);
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s;
}
.simple-dropdown a:hover { background: var(--np-green-pale); color: var(--np-green-dark); text-decoration: none; }

/* =========================================================
   Main Content Area
   ========================================================= */
.site-main-wrap {
  display: flex;
  gap: 2rem;
  padding-block: 2.5rem;
}
.site-main { flex: 1; min-width: 0; }

/* =========================================================
   Page / Post Styles
   ========================================================= */
.entry-header { margin-bottom: 1.5rem; }
.entry-title { font-size: 2rem; color: var(--np-green-dark); }
.entry-meta {
  font-size: 0.85rem;
  color: var(--np-text-muted);
  margin-top: 0.25rem;
}
.entry-content {
  font-size: 1rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.entry-content h2 { font-size: 1.5rem; color: var(--np-green-mid); margin-top: 2rem; }
.entry-content h3 { font-size: 1.2rem; color: var(--np-green-dark); margin-top: 1.5rem; }
.entry-content ul, .entry-content ol { margin-bottom: 1rem; }
.entry-content a { font-weight: 500; }
.entry-content img { border-radius: var(--np-radius); margin-block: 1rem; }

/* Page breadcrumb */
.np-breadcrumb {
  font-size: 0.85rem;
  color: var(--np-text-muted);
  margin-bottom: 1.5rem;
  padding: 0.6rem 1rem;
  background: var(--np-gray-light);
  border-radius: var(--np-radius);
}
.np-breadcrumb a { color: var(--np-green-mid); }
.np-breadcrumb span { margin-inline: 0.4rem; opacity: 0.5; }

/* =========================================================
   Page Hero (within page content)
   ========================================================= */
.np-page-hero {
  background:
    linear-gradient(135deg, rgba(20,43,15,0.88) 0%, rgba(46,95,29,0.82) 100%),
    url('img/stone-bg.jpg') center / cover;
  color: #fff;
  padding: 3.5rem 0;
  margin-bottom: 2.5rem;
}
.np-page-hero h1 { color: #fff; font-size: 2.2rem; }
.np-page-hero p { color: rgba(255,255,255,0.85); font-size: 1.1rem; }

/* =========================================================
   Sidebar
   ========================================================= */
.sidebar {
  width: 280px;
  flex-shrink: 0;
}
.sidebar .widget {
  background: var(--np-white);
  border: 1px solid var(--np-gray-light);
  border-radius: var(--np-radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--np-shadow);
}
.sidebar .widget-title {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--np-green-mid);
  border-bottom: 2px solid var(--np-green-pale);
  padding-bottom: 0.5rem;
  margin-bottom: 0.85rem;
}
.sidebar .widget ul { list-style: none; padding: 0; margin: 0; }
.sidebar .widget ul li { border-bottom: 1px solid var(--np-gray-light); }
.sidebar .widget ul li:last-child { border-bottom: none; }
.sidebar .widget ul a {
  display: block;
  padding: 0.45rem 0.3rem;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--np-link);
  transition: color 0.15s;
}
.sidebar .widget ul a:hover { color: var(--np-green-mid); text-decoration: underline; }

/* Sub-page navigation sidebar (within pages) */
.page-subnav {
  background: var(--np-white);
  border: 1px solid var(--np-gray-light);
  border-top: 4px solid var(--np-green-mid);
  border-radius: 0 0 var(--np-radius-lg) var(--np-radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--np-shadow);
}
.page-subnav-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--np-green-mid);
  margin-bottom: 0.75rem;
}
.page-subnav ul { list-style: none; padding: 0; margin: 0; }
.page-subnav ul li { border-bottom: 1px solid var(--np-gray-light); }
.page-subnav ul li:last-child { border-bottom: none; }
.page-subnav ul a {
  display: block;
  padding: 0.45rem 0.5rem;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--np-link);
  border-radius: var(--np-radius);
  transition: background 0.15s, color 0.15s;
}
.page-subnav ul a:hover,
.page-subnav ul .current_page_item > a {
  background: var(--np-green-pale);
  color: var(--np-green-dark);
}
.page-subnav ul ul { margin-left: 0.75rem; border-left: 2px solid var(--np-green-pale); padding-left: 0.5rem; }
.page-subnav ul ul a { font-size: 0.85rem; }

/* =========================================================
   Posts / Archive
   ========================================================= */
.post-list { list-style: none; padding: 0; margin: 0; }
.post-card {
  background: var(--np-white);
  border: 1px solid var(--np-gray-light);
  border-radius: var(--np-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--np-shadow);
  transition: box-shadow 0.2s;
}
.post-card:hover { box-shadow: var(--np-shadow-lg); }
.post-card .entry-title { font-size: 1.3rem; margin-bottom: 0.35rem; }
.post-card .entry-title a { text-decoration: none; color: var(--np-green-dark); }
.post-card .entry-title a:hover { color: var(--np-green-mid); text-decoration: underline; }
.post-card .entry-meta { font-size: 0.82rem; color: var(--np-text-muted); margin-bottom: 0.75rem; }
.post-card .entry-excerpt { font-size: 0.95rem; color: var(--np-text-muted); }
.post-card .read-more {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--np-green-mid);
  text-decoration: none;
}
.post-card .read-more:hover { color: var(--np-green-dark); text-decoration: underline; }

/* Pagination */
.np-pagination {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.np-pagination a, .np-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 2.2rem;
  padding-inline: 0.5rem;
  border: 2px solid var(--np-gray-light);
  border-radius: var(--np-radius);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--np-text);
  transition: all 0.15s;
}
.np-pagination a:hover { background: var(--np-green-pale); border-color: var(--np-green-mid); color: var(--np-green-dark); }
.np-pagination .current { background: var(--np-green-mid); border-color: var(--np-green-mid); color: #fff; }

/* =========================================================
   Front Page
   ========================================================= */
.np-hero {
  position: relative;
  background: var(--np-green-dark);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
}
.np-hero > .np-container { width: 100%; }
.np-hero-image {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}
.np-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding-block: 3.5rem;
  max-width: 640px;
}
.np-hero-content h1 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.np-hero-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.65;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.np-hero-btn {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.7rem 1.6rem;
  background: var(--np-gold);
  color: var(--np-green-dark);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--np-radius);
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.np-hero-btn:hover { background: #e0b830; color: var(--np-green-dark); transform: translateY(-1px); text-decoration: none; }

/* Front page section: news + sidebar */
.np-home-body {
  padding-block: 3rem;
}
.np-home-main { flex: 1; min-width: 0; }
.np-home-sidebar { width: 380px; flex-shrink: 0; }
.np-home-sidebar .sidebar { width: 100%; }

.np-section-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--np-green-mid);
  border-bottom: 2px solid var(--np-green-pale);
  padding-bottom: 0.4rem;
  margin-bottom: 1.25rem;
}

/* Quick links widget */
.np-quicklinks {
  list-style: none;
  padding: 0;
  margin: 0;
}
.np-quicklinks li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid var(--np-gray-light);
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--np-link);
  transition: background 0.15s, color 0.15s;
  border-radius: var(--np-radius);
}
.np-quicklinks li:last-child a { border-bottom: none; }
.np-quicklinks li a::before { content: "›"; color: var(--np-green-mid); font-size: 1.2rem; font-weight: 700; }
.np-quicklinks li a:hover { background: var(--np-green-pale); color: var(--np-green-dark); }

/* Important resources */
.np-resources {
  background: var(--np-green-pale);
  border-radius: var(--np-radius-lg);
  padding: 1.1rem 1.25rem;
  margin-top: 1.25rem;
}
.np-resources .np-section-label { color: var(--np-green-dark); }
.np-resources ul { list-style: none; padding: 0; margin: 0; }
.np-resources ul li { border-bottom: 1px solid rgba(45,106,45,0.15); }
.np-resources ul li:last-child { border-bottom: none; }
.np-resources ul a {
  display: block;
  padding: 0.45rem 0.25rem;
  font-size: 0.88rem;
  color: var(--np-link);
  text-decoration: none;
}
.np-resources ul a:hover { color: var(--np-green-dark); text-decoration: underline; }

/* =========================================================
   Buttons & Form Elements
   ========================================================= */
.btn, button.wp-block-button__link, .wp-block-button .wp-block-button__link {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background: var(--np-green-mid);
  color: #fff;
  border: 2px solid transparent;
  border-radius: var(--np-radius);
  font-family: var(--np-font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn:hover, button.wp-block-button__link:hover { background: var(--np-green-dark); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border-color: var(--np-green-mid);
  color: var(--np-green-mid);
}
.btn-outline:hover { background: var(--np-green-mid); color: #fff; }

input[type="text"], input[type="email"], input[type="search"],
input[type="url"], input[type="tel"], textarea, select {
  width: 100%;
  padding: 0.55rem 0.85rem;
  border: 2px solid var(--np-gray-light);
  border-radius: var(--np-radius);
  font-family: var(--np-font-sans);
  font-size: 0.95rem;
  color: var(--np-text);
  background: #fff;
  transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--np-green-mid);
  box-shadow: 0 0 0 3px rgba(58,122,53,0.15);
}

/* =========================================================
   Search Results
   ========================================================= */
.np-search-header { margin-bottom: 2rem; }
.np-search-header h1 { font-size: 1.6rem; }
.np-search-again { margin-top: 1rem; }
.np-search-again input { max-width: 400px; }

/* =========================================================
   404 Page
   ========================================================= */
.np-404 { text-align: center; padding-block: 4rem; }
.np-404 .big-404 {
  font-size: 8rem;
  font-weight: 900;
  color: var(--np-green-pale);
  line-height: 1;
  letter-spacing: -0.05em;
}
.np-404 h1 { font-size: 1.8rem; margin-bottom: 0.75rem; }

/* =========================================================
   Footer
   ========================================================= */
#colophon {
  background: var(--np-green-dark);
  color: rgba(255,255,255,0.85);
  padding-top: 3rem;
}

.footer-widgets {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-col { flex: 1; min-width: 200px; }
.footer-col-heading {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--np-gold);
  border-bottom: 2px solid rgba(255,255,255,0.15);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 0.3rem; }
.footer-col ul a {
  color: rgba(255,255,255,0.8);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col ul a:hover { color: var(--np-gold); }
.footer-col ul ul { margin-left: 0.85rem; margin-top: 0.2rem; }
.footer-col ul ul a { font-size: 0.82rem; color: rgba(255,255,255,0.6); }

.footer-contact p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.footer-contact a { color: rgba(255,255,255,0.8); }
.footer-contact a:hover { color: var(--np-gold); }

.footer-social { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-social a:hover { color: var(--np-gold); }

.site-info {
  padding-block: 1.25rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
}
.site-info a { color: rgba(255,255,255,0.6); }
.site-info a:hover { color: var(--np-gold); }

/* =========================================================
   Gutenberg / Block Editor Styles
   ========================================================= */
.wp-block-image img { border-radius: var(--np-radius); }
.wp-block-quote {
  border-left: 4px solid var(--np-green-mid);
  background: var(--np-green-pale);
  border-radius: 0 var(--np-radius) var(--np-radius) 0;
}
.wp-block-table td, .wp-block-table th {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--np-gray-light);
}
.wp-block-table th { background: var(--np-green-pale); font-weight: 700; }
.wp-block-table { max-width: 100%; overflow-x: auto; }
.wp-block-table tr:hover td { background: #f5fbf3; }
.wp-block-separator { border-color: var(--np-green-pale); }
.wp-block-button .wp-block-button__link { background: var(--np-green-mid); color: #fff; border-radius: var(--np-radius); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; border-color: var(--np-green-mid); color: var(--np-green-mid); }

/* Callout / notice block pattern */
.np-notice {
  background: #fff8e1;
  border-left: 4px solid var(--np-gold);
  border-radius: 0 var(--np-radius) var(--np-radius) 0;
  padding: 1rem 1.25rem;
  margin-block: 1.5rem;
  font-size: 0.95rem;
}
.np-notice.is-warning { background: #fff3e0; border-color: #f57c00; }
.np-notice.is-info { background: var(--np-green-pale); border-color: var(--np-green-mid); }

/* News archives and parks directory */
.np-collection { padding-block: 2rem 3rem; }
.np-collection-header { margin-bottom: 1.75rem; }
.np-collection-header p { color: var(--np-text-muted); max-width: 48rem; }
.np-news-list { display: grid; gap: 1.25rem; }
.np-park-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1.5rem; }
.np-park-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--np-gray-light); border-radius: var(--np-radius-lg); background: #fff; box-shadow: var(--np-shadow); }
.np-park-card-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.np-park-card-body { padding: 1.25rem; display: flex; flex: 1; flex-direction: column; overflow-wrap: anywhere; }
.np-park-card-body h2 { font-size: 1.25rem; }
.np-park-card-body h2 a { color: var(--np-green-dark); text-decoration: none; }
.np-park-card-body h2 a:hover { text-decoration: underline; }
.np-park-card-body .read-more { margin-top: auto; padding-top: 0.75rem; }
.np-detail-label { margin-bottom: 0.35rem; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.np-detail-image { width: 100%; max-height: 440px; object-fit: cover; border-radius: var(--np-radius-lg); }
.np-detail .entry-featured-image { margin-block: 1.5rem; }
.np-detail .entry-content { overflow-wrap: anywhere; }
.np-detail .entry-content img { height: auto; }
.np-detail-back { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--np-gray-light); font-weight: 700; }
.np-related-list { list-style: none; margin: 0; padding: 0; }
.np-related-list li { border-bottom: 1px solid var(--np-gray-light); padding: 0.45rem 0; }
.np-related-list a { overflow-wrap: anywhere; }
.np-park-address { color: var(--np-text-muted); margin-bottom: 0.85rem; }
.np-park-features { padding-left: 1.25rem; margin-bottom: 1rem; font-size: 0.9rem; }
.np-park-features li { margin-bottom: 0.2rem; }
.np-park-card-body .np-park-features { columns: 2; column-gap: 1.5rem; }
.np-park-card-body .np-park-features li { break-inside: avoid; }
.np-park-section { border-top: 1px solid var(--np-gray-light); padding-block: 1.5rem; }
.np-park-section h2 { font-size: 1.4rem; }
.np-park-section iframe, .np-park-overview-map iframe { display: block; width: 100%; min-height: 320px; border: 0; border-radius: var(--np-radius-lg); margin-block: 1rem; }
.np-park-overview-map { margin-top: 2.5rem; }
.np-park-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1rem; }
.np-park-photos img { width: 100%; height: auto; border-radius: var(--np-radius); }

/* =========================================================
   Responsive Breakpoints
   ========================================================= */
@media (max-width: 1200px) {
  .site-header-inner { flex-wrap: wrap; }
  .menu-toggle { display: flex; margin: 0.6rem 0; }
  .primary-menu { display: none; flex-direction: column; background: var(--np-green-dark); }
  .primary-menu.is-open { display: flex; }
  .primary-menu > li { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .primary-menu > li > a { height: auto; padding: 0.85rem 1rem; white-space: normal; justify-content: space-between; }
  .mega-menu-wrap, .simple-dropdown {
    position: static;
    width: 100%;
    min-width: 0;
    box-shadow: none;
    border: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.2);
    padding: 0.75rem 1rem;
    display: none;
  }
  .mega-menu-wrap.is-open, .simple-dropdown.is-open { display: block; }
  .mega-menu-inner { flex-direction: column; gap: 1rem; }
  .mega-col ul { min-width: 0; }
  .mega-col-heading { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.1); }
  .mega-col a.mega-col-heading:hover, .mega-col a.mega-col-heading:focus-visible { color: #fff; }
  .mega-col ul a, .simple-dropdown a { color: rgba(255,255,255,0.88); white-space: normal; }
  .mega-col ul a:hover, .simple-dropdown a:hover { background: rgba(255,255,255,0.08); color: #fff; }
}
@media (max-width: 1024px) {
  .sidebar { width: 240px; }
  .np-home-sidebar { width: 340px; }
}

@media (max-width: 1080px) {
  .primary-menu > li > a { padding: 0 0.65rem; font-size: 0.88rem; letter-spacing: 0; }
}
@media (max-width: 960px) {
  .primary-menu > li > a { padding: 0 0.45rem; font-size: 0.82rem; }
  .sidebar { width: 240px; }
}

@media (max-width: 900px) {
  /* Stack sidebar below content */
  .site-main-wrap, .np-home-body > .np-row { flex-direction: column; }
  .sidebar, .np-home-sidebar { width: 100%; }
  .mega-menu-wrap { padding: 1.25rem 0; }
  .mega-menu-inner { gap: 1.25rem; }
  .mega-col ul { min-width: 140px; }

  .np-hero-content h1 { font-size: 2rem; }
}

@media (max-width: 768px) {
  :root { --np-base-size: 17px; --np-header-h: 75px; }

  #masthead { position: relative; }
  .site-header-inner { flex-wrap: wrap; gap: 0.75rem; }
  .header-search { width: 100%; order: 3; }
  .header-search input[type="search"] { min-width: unset; width: 100%; }

  /* Mobile menu */
  #site-navigation { padding: 0; }

  .menu-toggle {
    display: flex;
    margin: 0.6rem 1rem;
  }

  .primary-menu {
    display: none;
    flex-direction: column;
    background: var(--np-green-dark);
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .primary-menu.is-open { display: flex; }

  .primary-menu > li { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .primary-menu > li > a {
    height: auto;
    padding: 0.85rem 1.25rem;
    justify-content: space-between;
  }

  /* Mobile sub-menus accordion */
  .mega-menu-wrap,
  .simple-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.2);
    padding: 0.75rem 1rem;
    display: none;
  }
  .mega-menu-wrap.is-open,
  .simple-dropdown.is-open { display: block; }

  .mega-menu-inner { flex-direction: column; gap: 1rem; }
  .mega-col-heading { color: rgba(255,255,255,0.6); border-color: rgba(255,255,255,0.1); }
  .mega-col a.mega-col-heading:hover, .mega-col a.mega-col-heading:focus-visible { color: #fff; }
  .mega-col ul a { color: rgba(255,255,255,0.85); font-size: 0.88rem; }
  .mega-col ul a:hover { background: rgba(255,255,255,0.08); color: #fff; }

  .simple-dropdown a { color: rgba(255,255,255,0.85); font-size: 0.88rem; }
  .simple-dropdown a:hover { background: rgba(255,255,255,0.08); color: #fff; }

  .np-hero-content h1 { font-size: 1.65rem; }
  .np-hero { min-height: 320px; }

  .footer-widgets { flex-direction: column; gap: 1.75rem; }
}

@media (max-width: 600px) {
  .np-container { padding-inline: 1rem; }
  .site-branding { flex-basis: 100%; }
  .site-logo img { width: 66px; height: 66px; }
  .site-title { font-size: clamp(1.15rem, 5.5vw, 1.4rem); }
  .site-tagline { font-size: 0.75rem; }
  .header-search form { width: 100%; }
  .header-search input[type="search"] { min-width: 0; width: 100%; flex: 1; }
  .np-page-hero { padding: 1.75rem 0; }
  .np-page-hero h1 { font-size: clamp(1.7rem, 8vw, 2.1rem); }
  .site-main-wrap { gap: 1.5rem; padding-block: 1.5rem; }
  .site-main, .sidebar, .np-home-main, .np-home-sidebar { width: 100%; min-width: 0; }
  .entry-content, .post-card, .sidebar .widget, .np-widget { overflow-wrap: anywhere; }
  .post-card, .sidebar .widget, .page-subnav { padding: 1rem; }
  .news-grid { grid-template-columns: minmax(0, 1fr); }
  .news-card { min-width: 0; }
  .footer-col { min-width: 0; }
  .np-hero-btn, .np-hero-btn-outline { margin-top: 0.7rem; }
}

@media (max-width: 480px) {
  :root { --np-base-size: 16px; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }
  .np-hero-content h1 { font-size: 1.5rem; }
  .entry-title { font-size: 1.6rem; }
}

/* =========================================================
   Print
   ========================================================= */
@media print {
  #masthead, #site-navigation, #colophon, .sidebar { display: none; }
  body { font-size: 12pt; color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
  .np-container { max-width: 100%; padding: 0; }
}
