/* ============================================
   CompostScraps.pages.dev — Master Stylesheet
   Aesthetic: Earthy field guide. Editorial.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;1,8..60,300;1,8..60,400&display=swap');

/* --- Variables --- */
:root {
  --cream: #FAF7F2;
  --green-deep: #1C3A2E;
  --green-mid: #2D5A45;
  --green-light: #4A8C6A;
  --clay: #C4622D;
  --clay-light: #E8845A;
  --gold: #D4A017;
  --gold-pale: #F5E6B0;
  --bark: #5C3D1E;
  --text-main: #2A2218;
  --text-muted: #6B5F52;
  --text-light: #9A8E84;
  --border: #DDD5CA;
  --border-dark: #C4B8AC;
  --white: #FFFFFF;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --max-width: 1100px;
  --content-width: 740px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-main);
  background: var(--cream);
  font-weight: 300;
}
img { max-width: 100%; display: block; }
a { color: var(--green-mid); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--clay); }

/* --- Skip Link --- */
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--green-deep); color: var(--white);
  padding: 8px 16px; z-index: 1000;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* --- Site Header --- */
.site-header {
  background: var(--green-deep);
  border-bottom: 3px solid var(--clay);
  position: sticky; top: 0; z-index: 100;
}
.site-header .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.site-logo span { color: var(--gold); }
.site-nav { display: flex; gap: 28px; list-style: none; }
.site-nav a {
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  opacity: 0.85;
  transition: opacity 0.15s, color 0.15s;
  letter-spacing: 0.02em;
}
.site-nav a:hover { opacity: 1; color: var(--gold); }
.nav-tool-link {
  background: var(--clay);
  color: var(--white) !important;
  opacity: 1 !important;
  padding: 6px 14px;
  border-radius: 4px;
  font-weight: 600 !important;
}
.nav-tool-link:hover { background: var(--clay-light) !important; color: var(--white) !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer;
  flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--cream);
}

/* --- Breadcrumb --- */
.breadcrumb {
  background: var(--green-deep);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 8px 24px;
}
.breadcrumb .inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.8rem;
}
.breadcrumb li { color: rgba(250,247,242,0.6); }
.breadcrumb li + li::before { content: '›'; margin-right: 4px; }
.breadcrumb a { color: rgba(250,247,242,0.8); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }

/* --- Hero Sections --- */
.hero {
  background: var(--green-deep);
  color: var(--cream);
  padding: 64px 24px 56px;
}
.hero .inner { max-width: var(--max-width); margin: 0 auto; }
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero h1 em { font-style: italic; color: var(--gold-pale); }
.hero .lead {
  font-size: 1.15rem;
  line-height: 1.65;
  opacity: 0.88;
  max-width: 620px;
  font-weight: 300;
}
.hero-meta {
  margin-top: 20px;
  font-size: 0.82rem;
  opacity: 0.6;
  font-style: italic;
}

/* Page hero variant (for city/guide pages) */
.page-hero {
  background: var(--green-deep);
  color: var(--cream);
  padding: 40px 24px 36px;
  border-bottom: 3px solid var(--clay);
}
.page-hero .inner { max-width: var(--max-width); margin: 0 auto; }
.page-hero .tag {
  display: inline-block;
  background: var(--clay);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 14px;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.page-hero .lead {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 600px;
  font-weight: 300;
}
.page-hero .updated {
  margin-top: 12px;
  font-size: 0.78rem;
  opacity: 0.55;
  font-style: italic;
}

/* --- Quick Answer Box --- */
.quick-answer {
  background: var(--gold-pale);
  border-left: 4px solid var(--gold);
  padding: 20px 24px;
  border-radius: 0 6px 6px 0;
  margin: 32px 0;
}
.quick-answer strong {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bark);
  margin-bottom: 6px;
  font-family: var(--font-body);
}
.quick-answer p { font-size: 1.05rem; line-height: 1.6; color: var(--text-main); }

/* --- Program Info Card (city pages) --- */
.program-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--green-mid);
  border-radius: 6px;
  padding: 28px;
  margin: 32px 0;
}
.program-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--green-deep);
  margin-bottom: 16px;
}
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.program-grid dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.program-grid dd { font-size: 0.95rem; color: var(--text-main); }
.status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}
.status-active { background: #D4EDDA; color: #155724; }
.status-limited { background: #FFF3CD; color: #856404; }
.status-unknown { background: #E2E3E5; color: #495057; }

/* --- Accepted Items Tables --- */
.accepts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
}
.accepts-col {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
}
.accepts-col.yes { border-top: 3px solid #2D8A4E; }
.accepts-col.no { border-top: 3px solid var(--clay); }
.accepts-col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.accepts-col.yes h4 { color: #1A5C35; }
.accepts-col.no h4 { color: var(--clay); }
.accepts-col ul { list-style: none; }
.accepts-col li {
  font-size: 0.9rem;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
}
.accepts-col li:last-child { border-bottom: none; }
.accepts-col li::before { font-size: 0.85rem; }
.accepts-col.yes li::before { content: '✓'; color: #2D8A4E; font-weight: 700; }
.accepts-col.no li::before { content: '✗'; color: var(--clay); font-weight: 700; }

/* --- Location List --- */
.location-list { list-style: none; margin: 20px 0; }
.location-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green-mid);
  border-radius: 0 6px 6px 0;
  padding: 16px 20px;
  margin-bottom: 10px;
}
.location-item h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--green-deep);
  margin-bottom: 4px;
}
.location-item .loc-details {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.location-item .loc-details span::before { margin-right: 4px; }

/* --- Step Lists --- */
.step-list { list-style: none; counter-reset: step; margin: 24px 0; }
.step-list li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.step-list li:last-child { border-bottom: none; }
.step-list li::before {
  content: counter(step);
  background: var(--green-deep);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.step-list li strong { display: block; font-weight: 600; margin-bottom: 4px; }

/* --- FAQ Accordion --- */
.faq-section { margin: 40px 0; }
.faq-section h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--green-deep);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green-deep);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q:hover { color: var(--clay); }
.faq-q .faq-icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: transform 0.25s, background 0.2s;
}
.faq-item.open .faq-q .faq-icon { transform: rotate(45deg); background: var(--clay); color: var(--white); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-a-inner {
  padding: 0 0 20px;
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--text-main);
}
.faq-item.open .faq-a { max-height: 600px; }

/* --- Main Content Layout --- */
.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
}
.main-content.full-width {
  grid-template-columns: 1fr;
  max-width: var(--content-width);
}
.content-body h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--green-deep);
  margin: 40px 0 16px;
  line-height: 1.25;
  padding-top: 8px;
  border-top: 2px solid var(--border);
}
.content-body h2:first-child { margin-top: 0; border-top: none; }
.content-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--green-deep);
  margin: 28px 0 10px;
  font-weight: 600;
}
.content-body p { margin-bottom: 18px; }
.content-body p:last-child { margin-bottom: 0; }
.content-body ul, .content-body ol {
  padding-left: 24px;
  margin-bottom: 18px;
}
.content-body li { margin-bottom: 6px; }
.content-body strong { font-weight: 600; color: var(--text-main); }
.content-body em { font-style: italic; }

/* --- Sidebar --- */
.sidebar { position: sticky; top: 88px; }
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 20px;
}
.sidebar-widget h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--green-deep);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.sidebar-nav { list-style: none; }
.sidebar-nav li { margin-bottom: 6px; }
.sidebar-nav a {
  font-size: 0.9rem;
  color: var(--green-mid);
  text-decoration: none;
  display: block;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.sidebar-nav a:hover { color: var(--clay); border-color: var(--border); }
.cta-widget {
  background: var(--green-deep);
  color: var(--cream);
}
.cta-widget h3 { color: var(--gold); border-color: rgba(255,255,255,0.15); }
.cta-widget p { font-size: 0.9rem; opacity: 0.85; margin-bottom: 16px; }
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.02em;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--clay); color: var(--white); }
.btn-primary:hover { background: var(--clay-light); color: var(--white); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--cream);
  color: var(--cream);
}
.btn-outline:hover { background: var(--cream); color: var(--green-deep); }
.btn-full { display: block; text-align: center; width: 100%; }

/* --- Homepage Specific --- */
.home-intro {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px 40px;
}
.home-intro .intro-text {
  max-width: 680px;
  font-size: 1.1rem;
  line-height: 1.75;
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  flex-wrap: wrap;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--green-deep);
}
.section-header a {
  font-size: 0.88rem;
  color: var(--clay);
  text-decoration: none;
  font-weight: 600;
}
.section-header a:hover { text-decoration: underline; }

/* City grid */
.section-padded {
  padding: 0 24px 56px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.city-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  text-decoration: none;
  display: block;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.city-card:hover {
  border-color: var(--green-mid);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(28,58,46,0.1);
  color: var(--text-main);
}
.city-card .city-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 4px;
}
.city-card .city-state { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; }
.city-card .city-status { font-size: 0.8rem; }

/* Guide cards */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.guide-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--clay);
  border-radius: 0 6px 6px 0;
  padding: 20px;
  text-decoration: none;
  display: block;
  transition: border-color 0.2s, transform 0.15s;
}
.guide-card:hover {
  border-left-color: var(--green-mid);
  transform: translateX(3px);
  color: var(--text-main);
}
.guide-card .guide-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 6px;
  line-height: 1.3;
}
.guide-card .guide-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }

/* Tool promo box */
.tool-promo {
  background: var(--green-deep);
  color: var(--cream);
  padding: 40px 24px;
}
.tool-promo .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.tool-promo h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 8px;
}
.tool-promo p { font-size: 1rem; opacity: 0.85; max-width: 500px; }

/* PDF promo */
.pdf-promo {
  background: var(--gold-pale);
  border: 2px dashed var(--gold);
  border-radius: 6px;
  padding: 28px;
  margin: 40px 0;
  display: flex;
  align-items: center;
  gap: 20px;
}
.pdf-promo .pdf-icon { font-size: 2.5rem; flex-shrink: 0; }
.pdf-promo h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--bark);
  margin-bottom: 6px;
}
.pdf-promo p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 12px; }

/* --- Disclaimer --- */
.disclaimer {
  background: var(--border);
  border-radius: 6px;
  padding: 16px 20px;
  margin: 32px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.55;
}
.disclaimer strong { font-style: normal; color: var(--text-main); }

/* --- Related Links box --- */
.related-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--green-light);
  border-radius: 0 0 6px 6px;
  padding: 24px;
  margin: 32px 0;
}
.related-box h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--green-deep);
  margin-bottom: 12px;
}
.related-box ul { list-style: none; }
.related-box li { margin-bottom: 8px; }
.related-box a {
  font-size: 0.92rem;
  color: var(--green-mid);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.related-box a::before { content: '→'; font-weight: 700; color: var(--clay); }
.related-box a:hover { color: var(--clay); }

/* --- Site Footer --- */
.site-footer {
  background: var(--text-main);
  color: var(--cream);
  padding: 48px 24px 28px;
  margin-top: 64px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 12px;
}
.footer-brand .logo span { color: var(--gold); }
.footer-brand p { font-size: 0.88rem; opacity: 0.65; line-height: 1.65; }
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: rgba(250,247,242,0.65);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  opacity: 0.5;
}

/* --- Analytics — all live tags injected in every page <head> --- */
/* GA4: G-YRRE9GB21V | AdSense: ca-pub-8027395044809342 | Clarity: x0f6txaayn */

/* --- Responsive --- */
@media (max-width: 900px) {
  .main-content {
    grid-template-columns: 1fr;
  }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tool-promo .inner { grid-template-columns: 1fr; }
  .accepts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-nav { display: none; flex-direction: column; gap: 0; }
  .site-nav.open {
    display: flex;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--green-deep);
    border-bottom: 2px solid var(--clay);
    padding: 12px 0;
  }
  .site-nav a { padding: 12px 24px; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .pdf-promo { flex-direction: column; }
  body { font-size: 16px; }
  .hero h1 { font-size: 1.8rem; }
}

/* Print */
@media print {
  .site-header, .site-footer, .sidebar, .breadcrumb { display: none; }
  .main-content { grid-template-columns: 1fr; }
}
