/* STARKCOUNTYUL.ORG — Community Development Resource Site
   Design: Forest Green + Warm Gold | Fonts: Libre Baskerville + Nunito Sans
   Anti-footprint: Unique palette, unique fonts, unique layout */

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

:root {
  --green-900: #1B4332;
  --green-700: #2D6A4F;
  --green-500: #40916C;
  --green-300: #74C69D;
  --green-100: #D8F3DC;
  --gold-500: #D4A373;
  --gold-300: #E9C89B;
  --gold-100: #FAEDCD;
  --dark: #1A1A1A;
  --text: #2B2B2B;
  --text-light: #5A5A5A;
  --bg: #FEFDF8;
  --white: #FFFFFF;
  --border: #E8E4DD;
  --shadow-sm: 0 1px 3px rgba(27,67,50,.08);
  --shadow-md: 0 4px 12px rgba(27,67,50,.1);
  --shadow-lg: 0 8px 30px rgba(27,67,50,.12);
  --radius: 6px;
  --max-w: 1140px;
  --transition: .25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Libre Baskerville', Georgia, serif;
  color: var(--green-900);
  line-height: 1.3;
  letter-spacing: -.01em;
}

h1 { font-size: 2.2rem; margin-bottom: 1rem; }
h2 { font-size: 1.6rem; margin: 2.2rem 0 .8rem; }
h3 { font-size: 1.25rem; margin: 1.8rem 0 .6rem; }

p { margin-bottom: 1.15rem; }

a {
  color: var(--green-700);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--green-500); }

img { max-width: 100%; height: auto; display: block; }

/* === HEADER === */
.site-header {
  background: var(--green-900);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.site-logo:hover { color: var(--gold-300); }

.logo-mark {
  width: 34px;
  height: 34px;
  background: var(--gold-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 700;
  color: var(--green-900);
  flex-shrink: 0;
}

.main-nav { display: flex; gap: .15rem; }

.main-nav a {
  color: rgba(255,255,255,.82);
  font-size: .88rem;
  font-weight: 600;
  padding: .45rem .75rem;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,.12);
}

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

/* === HERO === */
.hero {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 60%, var(--green-500) 100%);
  color: var(--white);
  padding: 4.5rem 1.5rem;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  font-size: 2.6rem;
  max-width: 720px;
  margin: 0 auto 1rem;
}

.hero-sub {
  font-size: 1.15rem;
  opacity: .88;
  max-width: 580px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

.hero-cta {
  display: inline-block;
  background: var(--gold-500);
  color: var(--green-900);
  font-weight: 700;
  font-size: .95rem;
  padding: .75rem 2rem;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.hero-cta:hover {
  background: var(--gold-300);
  color: var(--green-900);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* === PILLAR GRID === */
.pillars {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.pillars-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.pillar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.pillar-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--green-300);
  transform: translateY(-2px);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  background: var(--green-100);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--green-700);
}

.pillar-card h3 {
  font-size: 1.1rem;
  margin: 0 0 .6rem;
}

.pillar-card p {
  font-size: .92rem;
  color: var(--text-light);
  flex-grow: 1;
}

.pillar-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--green-700);
  margin-top: .8rem;
}
.pillar-card .card-link:hover { gap: .55rem; }

/* === ARTICLE LAYOUT === */
.page-header {
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  color: var(--white);
  padding: 3rem 1.5rem;
  text-align: center;
}
.page-header h1 { color: var(--white); font-size: 2.1rem; }
.page-header .breadcrumb {
  font-size: .85rem;
  opacity: .75;
  margin-bottom: .6rem;
}
.page-header .breadcrumb a { color: var(--gold-300); }

.article-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .85rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
}

.author-avatar {
  width: 40px;
  height: 40px;
  background: var(--green-700);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
}

.author-name { font-weight: 600; color: var(--green-900); }

.article-body h2 { border-bottom: 2px solid var(--green-100); padding-bottom: .45rem; }

.article-body ul, .article-body ol {
  margin: .8rem 0 1.2rem 1.5rem;
}
.article-body li { margin-bottom: .4rem; }

.article-body blockquote {
  border-left: 3px solid var(--gold-500);
  background: var(--gold-100);
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-light);
}

.key-stat {
  display: inline-block;
  background: var(--green-100);
  color: var(--green-900);
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 3px;
  font-size: .95rem;
}

/* === SIDEBAR (for homepage) === */
.content-with-sidebar {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
}

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-card h3 {
  font-size: 1rem;
  margin: 0 0 .8rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--green-100);
}

.sidebar-card ul { list-style: none; }
.sidebar-card li {
  padding: .5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.sidebar-card li:last-child { border: none; }

/* === MISSION BANNER === */
.mission-banner {
  background: var(--gold-100);
  border-top: 3px solid var(--gold-500);
  padding: 3rem 1.5rem;
  text-align: center;
}

.mission-banner .inner {
  max-width: 700px;
  margin: 0 auto;
}

.mission-banner blockquote {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--green-900);
  border: none;
  background: none;
  padding: 0;
  margin: 0 0 1rem;
}

/* === FOOTER === */
.site-footer {
  background: var(--green-900);
  color: rgba(255,255,255,.75);
  padding: 3rem 1.5rem 1.5rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: .6rem;
}

.footer-col h4 {
  color: var(--gold-300);
  font-family: 'Nunito Sans', sans-serif;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .8rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .4rem; }
.footer-col a {
  color: rgba(255,255,255,.7);
  font-size: .9rem;
}
.footer-col a:hover { color: var(--gold-300); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 2rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  font-size: .8rem;
}

/* === TRUST PAGES === */
.trust-page .article-container { max-width: 720px; }
.trust-page h2 { font-size: 1.3rem; border: none; }

/* === CONTACT === */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
  text-align: center;
}

.contact-card .icon {
  font-size: 1.5rem;
  margin-bottom: .5rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .header-inner { height: 56px; }
  
  .main-nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--green-900);
    flex-direction: column;
    padding: .5rem;
    border-top: 1px solid rgba(255,255,255,.1);
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .7rem 1rem; }
  
  .nav-toggle { display: block; }
  
  .hero { padding: 3rem 1.2rem; }
  .hero h1 { font-size: 1.8rem; }
  
  .pillar-grid { grid-template-columns: 1fr; }
  
  .content-with-sidebar {
    grid-template-columns: 1fr;
  }
  
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-bottom { flex-direction: column; gap: .4rem; }
  
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.35rem; }
  body { font-size: 16px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .hero-sub { font-size: 1rem; }
  .article-container { padding: 1.5rem 1rem 3rem; }
  .contact-info { grid-template-columns: 1fr; }
}

/* === PRINT === */
@media print {
  .site-header, .site-footer, .nav-toggle { display: none; }
  body { font-size: 12pt; color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
}


/* === RESOURCE DIRECTORY CARDS === */
.resource-section {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.resource-section-title {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.5rem;
  color: var(--green-900);
  text-align: center;
  margin-bottom: .4rem;
}

.resource-section-sub {
  text-align: center;
  color: var(--text-light);
  font-size: .92rem;
  margin-bottom: 2rem;
}

.resource-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green-500);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.2rem;
  transition: box-shadow var(--transition);
}
.resource-card:hover {
  box-shadow: var(--shadow-md);
}

.resource-card h3 {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-900);
  margin: 0 0 .5rem;
}

.resource-card p {
  font-size: .9rem;
  color: var(--text-light);
  margin-bottom: .7rem;
  line-height: 1.55;
}

.resource-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  font-size: .85rem;
  margin-top: .7rem;
}

.resource-meta span {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: var(--text);
}

.resource-meta a {
  color: var(--green-700);
  font-weight: 600;
}

.resource-tag {
  display: inline-block;
  background: var(--green-100);
  color: var(--green-700);
  font-size: .75rem;
  font-weight: 600;
  padding: .15rem .5rem;
  border-radius: 3px;
  margin-right: .3rem;
  margin-bottom: .3rem;
}

.resource-hours {
  font-size: .82rem;
  color: var(--text-light);
  margin-top: .4rem;
  padding-top: .4rem;
  border-top: 1px dashed var(--border);
}

/* === CRISIS BANNER === */
.crisis-banner {
  background: #B91C1C;
  color: #fff;
  padding: .7rem 1.5rem;
  text-align: center;
  font-size: .88rem;
  font-weight: 600;
}

.crisis-banner a {
  color: #FEF08A;
  text-decoration: underline;
  font-weight: 700;
}
.crisis-banner a:hover {
  color: #fff;
}

/* === QUICK LINKS BAR === */
.quick-links {
  background: var(--green-100);
  border-bottom: 1px solid var(--border);
  padding: .8rem 1.5rem;
  text-align: center;
}

.quick-links-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
}

.quick-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: var(--white);
  color: var(--green-900);
  font-size: .82rem;
  font-weight: 600;
  padding: .4rem .8rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.quick-link:hover {
  background: var(--green-700);
  color: var(--white);
  border-color: var(--green-700);
}

/* === DIVIDER === */
.section-divider {
  max-width: 780px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  text-align: center;
}

.section-divider hr {
  border: none;
  border-top: 2px solid var(--green-100);
  margin-bottom: 1rem;
}

.section-divider span {
  display: inline-block;
  background: var(--bg);
  padding: 0 1rem;
  color: var(--green-500);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  position: relative;
  top: -1.7rem;
}

/* === STAT HIGHLIGHT === */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.stat-box {
  background: var(--green-100);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}

.stat-box .num {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--green-900);
  display: block;
}

.stat-box .label {
  font-size: .82rem;
  color: var(--text-light);
  margin-top: .2rem;
}

@media (max-width: 768px) {
  .resource-meta { flex-direction: column; gap: .4rem; }
  .quick-links-inner { gap: .4rem; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}
