/* ============================================================
   PCEC — Peninsula County Exploratory Committee
   Design System: Traditional Government / Civic Institutional
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Source+Sans+3:wght@300;400;500;600&display=swap');

/* ── Variables ── */
:root {
  --navy:      #1a2744;
  --navy-dark: #111c36;
  --navy-mid:  #243156;
  --charcoal:  #3b3f4a;
  --gold:      #b08d57;
  --gold-light:#c9a96e;
  --gold-pale: #f0e6d3;
  --bg:        #e8e4dc;
  --bg-white:  #f2ede6;
  --text:      #2c2c2c;
  --text-muted:#5a5a5a;
  --border:    #ccc7be;
  --rule:      #c9a96e;

  --serif: 'Libre Baskerville', Georgia, serif;
  --sans:  'Source Sans 3', 'Helvetica Neue', sans-serif;

  --max-w: 1100px;
  --section-pad: 72px 0;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: underline; }
a:hover { color: var(--gold); }

/* ── Typography ── */
h1,h2,h3,h4,h5 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }
p  { margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }

.serif { font-family: var(--serif); }
.lead  { font-size: 1.15rem; line-height: 1.75; color: var(--charcoal); }

/* ── Layout Utilities ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section    { padding: var(--section-pad); }
.section--white { background: var(--bg-white); }
.section--navy  { background: var(--navy); color: #e8e4dc; }
.section--navy h2, .section--navy h3 { color: #e8e4dc; }
.section--tinted { background: #edeae4; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

.text-center { text-align: center; }
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 32px; }
.mt-lg { margin-top: 56px; }
.mb-md { margin-bottom: 32px; }

/* ── Section Heading Pattern ── */
.section-label {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-rule {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 18px 0 28px;
}
.section-rule--center { margin: 18px auto 28px; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); color: #fff; }

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); color: #fff; }

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-dark:hover { background: var(--navy); color: #fff; }

.btn-group { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  background: var(--navy-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--gold);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav-logo-abbr {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.08em;
}
.nav-logo-name {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(220,210,195,0.75);
  margin-top: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav-links a {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(235,225,205,0.95);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 2px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover,
.nav-links a.active { color: #e8c97a; background: rgba(255,255,255,0.07); }

.nav-cta a {
  background: var(--gold);
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 2px;
}
.nav-cta a:hover { background: var(--gold-light) !important; }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(220,210,195,0.85);
  transition: all 0.2s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(rgba(17,28,54,0.78), rgba(17,28,54,0.88)),
              url('../images/map-boundary.png') center/cover no-repeat;
  background-color: var(--navy-dark);
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 80px 0;
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
}
.hero-content { max-width: 680px; }
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
  display: block;
}
.hero h1 {
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.2;
}
.hero p {
  color: rgba(220,210,195,0.9);
  font-size: 1.1rem;
  margin-bottom: 32px;
  line-height: 1.75;
}

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.page-hero {
  background: var(--navy);
  padding: 56px 0 48px;
  border-bottom: 3px solid var(--gold);
}
.page-hero .section-label { margin-bottom: 8px; }
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: rgba(220,210,195,0.85); max-width: 620px; margin: 0; }

/* ============================================================
   HOME: NARRATIVE
   ============================================================ */
.narrative-block {
  max-width: 780px;
  margin: 0 auto;
}
.narrative-block h2 { margin-bottom: 24px; }
.narrative-block p { font-size: 1.02rem; line-height: 1.85; }

/* ============================================================
   HOME: TIMELINE
   ============================================================ */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  margin-top: 48px;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--gold);
  z-index: 0;
}
.timeline-step {
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}
.timeline-num {
  width: 56px;
  height: 56px;
  background: var(--navy);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-light);
  margin: 0 auto 18px;
}
.timeline-step h4 { font-size: 0.95rem; margin-bottom: 8px; color: var(--navy); }
.timeline-step p  { font-size: 0.85rem; color: var(--text-muted); line-height: 1.55; }

/* ============================================================
   HOME: CURRENT PHASE
   ============================================================ */
.phase-list {
  list-style: none;
  padding: 0;
}
.phase-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.97rem;
  color: rgba(220,210,195,0.9);
}
.phase-list li::before {
  content: '▸';
  color: var(--gold-light);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================================
   HOME: UPDATES FEED
   ============================================================ */
.update-card {
  border-left: 3px solid var(--gold);
  padding: 20px 24px;
  background: var(--bg-white);
  transition: box-shadow 0.2s;
}
.update-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.update-card-meta {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.update-card h4 { margin-bottom: 8px; }
.update-card p { font-size: 0.92rem; color: var(--text-muted); }
.update-card a.read-more {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
  display: inline-block;
  margin-top: 10px;
}
.update-card a.read-more:hover { color: var(--gold); }

/* ============================================================
   EMAIL SIGNUP FORM
   ============================================================ */
.signup-section {
  background: var(--navy);
  padding: 64px 0;
}
.signup-box {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.signup-box h2 { color: #fff; margin-bottom: 10px; }
.signup-box p  { color: rgba(220,210,195,0.8); margin-bottom: 32px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-full { grid-column: 1 / -1; }

.form-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(220,210,195,0.75);
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 2px;
  color: #fff;
  font-family: var(--sans);
  font-size: 0.95rem;
  transition: border-color 0.15s;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--gold-light);
}
.form-field input::placeholder { color: rgba(220,210,195,0.4); }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(220,210,195,0.8);
  text-align: left;
  margin-top: 4px;
}
.form-check input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--gold);
}

/* Light form variant (for contact/interior pages) */
.form-light .form-field label { color: var(--charcoal); }
.form-light .form-field input,
.form-light .form-field textarea,
.form-light .form-field select {
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}
.form-light .form-field input:focus,
.form-light .form-field textarea:focus { border-color: var(--navy); }
.form-light .form-field input::placeholder { color: #aaa; }
.form-light .form-check { color: var(--charcoal); }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-list { list-style: none; padding: 0; max-width: 820px; margin: 0 auto; }
.faq-list details {
  border-bottom: 1px solid var(--border);
}
.faq-list summary {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
  padding: 20px 40px 20px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  display: block;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 300;
  transition: transform 0.2s;
  font-family: var(--sans);
}
.faq-list details[open] summary::after { content: '−'; }
.faq-list details[open] summary { color: var(--gold); }
.faq-answer {
  padding: 0 40px 20px 0;
  color: var(--charcoal);
  line-height: 1.75;
  font-size: 0.97rem;
}

/* ============================================================
   RESEARCH PAGE
   ============================================================ */
.research-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.filter-btn {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--charcoal);
}
.filter-btn:hover,
.filter-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.research-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  padding: 24px 28px;
  display: flex;
  gap: 20px;
  transition: box-shadow 0.2s;
}
.research-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.07); }
.research-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--gold-pale);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.research-card-cat {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.research-card h4 { margin-bottom: 6px; }
.research-card p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 10px; }
.research-card .citation { font-size: 0.78rem; color: var(--text-muted); font-style: italic; }
.research-card a.dl-link {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.research-card a.dl-link:hover { color: var(--gold); }

/* ============================================================
   PRINCIPLES PAGE
   ============================================================ */
.principle-block {
  border-left: 3px solid var(--gold);
  padding: 24px 28px;
  background: var(--bg-white);
  margin-bottom: 20px;
}
.principle-block h3 { margin-bottom: 10px; }
.principle-block p { font-size: 0.97rem; color: var(--charcoal); }

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 36px;
}
.partner-card {
  border: 1px solid var(--border);
  background: var(--bg-white);
  padding: 24px;
  text-align: center;
  transition: box-shadow 0.2s;
}
.partner-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.07); }
.partner-logo {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.partner-logo img { max-height: 60px; max-width: 160px; }
.partner-name { font-family: var(--serif); font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.partner-desc { font-size: 0.82rem; color: var(--text-muted); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.mission-block {
  background: var(--navy);
  padding: 48px;
  border-left: 4px solid var(--gold);
}
.mission-block p {
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(220,210,195,0.92);
  font-style: italic;
}

/* ============================================================
   PROCESS PAGE
   ============================================================ */
.process-step {
  display: flex;
  gap: 28px;
  margin-bottom: 40px;
}
.process-num {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--navy);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-top: 2px;
}
.process-step-content h3 { margin-bottom: 8px; }
.process-step-content p { color: var(--charcoal); font-size: 0.97rem; }

.legal-notice {
  background: #f0ece4;
  border: 1px solid var(--gold);
  border-left: 4px solid var(--gold);
  padding: 32px 36px;
  margin-top: 56px;
}
.legal-notice h4 {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  font-family: var(--sans);
  font-weight: 600;
}
.legal-notice p { font-size: 0.93rem; color: var(--charcoal); line-height: 1.75; }

/* ============================================================
   GET INVOLVED / VOLUNTEER
   ============================================================ */
.checkbox-group { display: flex; flex-direction: column; gap: 10px; }
.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.93rem;
}
.checkbox-item input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; accent-color: var(--navy); }

/* ============================================================
   MEDIA PAGE
   ============================================================ */
.media-boilerplate {
  background: #f0ece4;
  border-left: 4px solid var(--navy);
  padding: 28px 32px;
  margin-bottom: 40px;
}
.media-boilerplate p { font-size: 0.95rem; color: var(--charcoal); line-height: 1.75; }

/* ============================================================
   CONTACT INFO BLOCK
   ============================================================ */
.contact-info-block { padding: 32px; background: var(--bg-white); border: 1px solid var(--border); }
.contact-info-block h4 { margin-bottom: 18px; }
.contact-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 0.93rem;
}
.contact-row-label {
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  width: 80px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-dark);
  border-top: 3px solid var(--gold);
  color: rgba(235,225,205,0.88);
  padding: 56px 0 32px;
  font-size: 0.875rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo-abbr {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.footer-logo-name {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(220,210,195,0.5);
  margin-bottom: 18px;
}
.footer-disclaimer {
  font-size: 0.8rem;
  line-height: 1.65;
  color: rgba(220,210,195,0.55);
  margin-top: 12px;
}
.footer-col h5 {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #e8c97a;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a {
  color: rgba(235,225,205,0.85);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col ul a:hover { color: #e8c97a; }
.footer-contact-line {
  margin-bottom: 8px;
  line-height: 1.5;
  color: rgba(235,225,205,0.82);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(235,225,205,0.55);
}
.footer-bottom a { color: rgba(235,225,205,0.65); text-decoration: none; }
.footer-bottom a:hover { color: #e8c97a; }

/* ============================================================
   SUCCESS MESSAGE
   ============================================================ */
.success-msg {
  background: #dff0dc;
  border: 1px solid #a3c9a3;
  color: #2d5a2d;
  padding: 16px 20px;
  border-radius: 2px;
  font-size: 0.93rem;
  display: none;
  margin-top: 16px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .timeline {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .timeline::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  :root { --section-pad: 48px 0; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy-dark); border-top: 1px solid rgba(255,255,255,0.08); padding: 12px 0; }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { padding: 10px 24px; }
  .nav-toggle { display: flex; }
  .timeline { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .mission-block { padding: 28px; }
  .process-step { flex-direction: column; gap: 14px; }
}
