/* =============================================
   Northern Virginia Tree Care Guide
   Design: Clean editorial with photo hero
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Merriweather:ital,wght@0,300;0,400;0,700;1,300;1,400&display=swap');

:root {
  --forest:       #152e1b;
  --canopy:       #1f4226;
  --mid-green:    #2d5a38;
  --light-green:  #4a8c58;
  --accent-green: #5aab6a;
  --white:        #ffffff;
  --off-white:    #f8f9f6;
  --light-gray:   #f0f2ee;
  --border:       #e2e6de;
  --ink:          #1a1d18;
  --body:         #374035;
  --muted:        #6b7568;
  --caution-bg:   #fffbeb;
  --caution-bdr:  #d97706;
  --tip-bg:       #f0f7f1;
  --tip-bdr:      #2d5a38;
  --danger-bg:    #fff1f1;
  --danger-bdr:   #dc2626;
  --font-ui:      'Inter', system-ui, sans-serif;
  --font-body:    'Merriweather', Georgia, serif;
  --max-w: 1140px;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --shadow-md: 0 4px 24px rgba(0,0,0,.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-ui);
  color: var(--ink);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(1.85rem, 5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 3vw, 1.875rem); margin-bottom: .5rem; }
h3 { font-size: 1.2rem; margin-bottom: .35rem; }
h4 { font-size: 1rem; font-weight: 600; }

p { margin-bottom: 1.2rem; color: var(--body); }
p:last-child { margin-bottom: 0; }
a { color: var(--mid-green); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--forest); }
strong { font-weight: 600; color: var(--ink); }
ul, ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
li { margin-bottom: .4rem; }

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

/* NAV */
nav {
  background: var(--forest);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 700;
  color: var(--white);
}
.nav-brand .brand-accent { color: var(--accent-green); }
.nav-links { display: flex; list-style: none; padding: 0; margin: 0; gap: .2rem; }
.nav-links a {
  font-size: .82rem;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  padding: .4rem .75rem;
  border-radius: 4px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav-links a:hover { background: rgba(255,255,255,.1); color: #fff; }

/* HERO */
.hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #152e1b 0%, #1f4226 30%, #2d5a38 55%, #1a3822 80%, #0f2213 100%);
  z-index: 0;
}
/* Organic tree canopy shapes */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 160px 200px at 10% 80%, rgba(45,90,56,.9) 0%, transparent 70%),
    radial-gradient(ellipse 200px 240px at 25% 60%, rgba(31,66,38,.95) 0%, transparent 70%),
    radial-gradient(ellipse 180px 220px at 45% 50%, rgba(45,90,56,.8) 0%, transparent 70%),
    radial-gradient(ellipse 220px 260px at 65% 55%, rgba(26,56,34,.95) 0%, transparent 70%),
    radial-gradient(ellipse 190px 230px at 82% 62%, rgba(37,77,46,.9) 0%, transparent 70%),
    radial-gradient(ellipse 160px 180px at 95% 70%, rgba(21,46,27,.9) 0%, transparent 70%),
    radial-gradient(ellipse 120px 140px at 3% 65%, rgba(50,100,62,.7) 0%, transparent 70%);
  z-index: 1;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(21,46,27,.4) 0%, rgba(21,46,27,.15) 40%, rgba(21,46,27,.55) 100%);
  z-index: 2;
}
.hero-inner {
  position: relative;
  z-index: 3;
  padding: 4.5rem 1.5rem;
  max-width: 680px;
  width: 100%;
}
.hero-icon { margin: 0 auto .85rem; opacity: .65; }
.hero h1 { color: #fff; font-weight: 800; margin-bottom: .9rem; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.hero .lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,.82);
  max-width: 520px;
  margin: 0 auto 1.75rem;
  line-height: 1.65;
}
.hero-meta { font-size: .78rem; color: rgba(255,255,255,.42); margin-top: 1.2rem; }

/* BREADCRUMB */
.breadcrumb { background: var(--light-gray); border-bottom: 1px solid var(--border); padding: .6rem 1.5rem; }
.breadcrumb-inner { max-width: var(--max-w); margin: 0 auto; font-size: .78rem; color: var(--muted); }
.breadcrumb-inner a { color: var(--mid-green); text-decoration: none; }
.breadcrumb-inner a:hover { text-decoration: underline; }
.breadcrumb-inner span { margin: 0 .4rem; opacity: .5; }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .68rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .18s;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--mid-green); color: #fff; border: 2px solid var(--mid-green); }
.btn-primary:hover { background: var(--forest); border-color: var(--forest); color: #fff; }
.btn-outline { background: transparent; color: var(--mid-green); border: 2px solid var(--mid-green); }
.btn-outline:hover { background: var(--mid-green); color: #fff; }
.btn-white { background: #fff; color: var(--forest); border: 2px solid #fff; }
.btn-white:hover { background: rgba(255,255,255,.88); color: var(--forest); }

/* SECTIONS */
.section { padding: 4rem 1.5rem; }
.section-sm { padding: 2.5rem 1.5rem; }
.section-alt { background: var(--off-white); }
.section-light { background: var(--light-gray); }
.section-dark { background: var(--forest); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,.78); }

.section-header { margin-bottom: 2.5rem; }
.section-header p { color: var(--muted); max-width: 600px; font-size: .97rem; }
.section-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--light-green);
  margin-bottom: .5rem;
}
.divider { width: 40px; height: 3px; background: var(--light-green); border-radius: 2px; margin: .65rem 0 1.2rem; }

/* CARDS */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.25rem; }
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-icon { font-size: 1.5rem; margin-bottom: .7rem; display: block; }
.card h3 { font-size: 1rem; margin-bottom: .45rem; }
.card p { font-size: .9rem; color: var(--muted); margin: 0; }

/* CALLOUTS */
.callout { border-left: 3px solid; padding: 1rem 1.35rem; margin: 1.5rem 0; border-radius: 0 var(--radius) var(--radius) 0; }
.callout-tip { background: var(--tip-bg); border-color: var(--tip-bdr); }
.callout-warning { background: var(--caution-bg); border-color: var(--caution-bdr); }
.callout-danger { background: var(--danger-bg); border-color: var(--danger-bdr); }
.callout-label { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; display: block; margin-bottom: .4rem; }
.callout-tip .callout-label { color: var(--mid-green); }
.callout-warning .callout-label { color: #b45309; }
.callout-danger .callout-label { color: #dc2626; }
.callout p { font-size: .93rem; margin: 0; }

/* TABLES */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: .89rem; }
thead { background: var(--forest); }
thead th { padding: .75rem 1rem; text-align: left; font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.85); }
tbody tr:nth-child(even) { background: var(--off-white); }
tbody tr:hover { background: #e6ede7; }
td { padding: .65rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
td:first-child { font-weight: 500; color: var(--ink); }

/* ARTICLE LAYOUT */
.article-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: start;
}
.article-body > h2 { margin-top: 2.75rem; padding-top: 2.25rem; border-top: 1px solid var(--border); }
.article-body > h2:first-of-type { margin-top: 0; border-top: none; padding-top: 0; }
.article-body h3 { margin-top: 1.75rem; color: var(--canopy); }
.article-body h4 { margin-top: 1.25rem; }

/* SIDEBAR */
.sidebar { position: sticky; top: 4.5rem; }
.sidebar-card { background: var(--off-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.35rem; margin-bottom: 1.25rem; }
.sidebar-card .card-label { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; display: block; }
.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list a { font-size: .83rem; color: var(--body); text-decoration: none; display: block; padding: .32rem 0; border-bottom: 1px solid var(--border); transition: color .15s, padding-left .15s; }
.toc-list li:last-child a { border-bottom: none; }
.toc-list a:hover { color: var(--mid-green); padding-left: .35rem; }
.cta-box { background: var(--forest); border-radius: var(--radius); padding: 1.5rem; color: #fff; }
.cta-box h4 { font-size: 1rem; color: #fff; margin-bottom: .55rem; }
.cta-box p { font-size: .85rem; color: rgba(255,255,255,.72); margin-bottom: 1rem; }
.cta-box .btn { width: 100%; justify-content: center; }

/* STATS */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 1rem; margin: 2rem 0; }
.stat-item { background: var(--forest); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--accent-green); display: block; line-height: 1.1; }
.stat-label { font-size: .76rem; color: rgba(255,255,255,.65); margin-top: .4rem; display: block; line-height: 1.4; }

/* SEASON BADGES */
.season-badge { display: inline-block; padding: .18rem .6rem; border-radius: 20px; font-size: .74rem; font-weight: 600; }
.spring { background: #dcfce7; color: #166534; }
.summer { background: #dbeafe; color: #1d4ed8; }
.fall   { background: #ffedd5; color: #c2410c; }
.winter { background: #ede9fe; color: #6d28d9; }

/* INTRO HIGHLIGHT */
.intro-highlight {
  background: var(--tip-bg);
  border-left: 4px solid var(--mid-green);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.35rem 1.75rem;
  margin-bottom: 2.5rem;
}
.intro-highlight p { font-family: var(--font-body); font-size: 1rem; color: var(--canopy); font-style: italic; margin: 0; }

/* IMAGE BLOCKS */
.img-block { margin: 2rem 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.img-block img { width: 100%; height: auto; display: block; min-height: 180px; background: var(--light-gray); }
.img-caption { font-size: .78rem; color: var(--muted); padding: .5rem .85rem; background: var(--off-white); font-style: italic; border-top: 1px solid var(--border); }

/* FEATURED STRIP */
.featured-strip { background: var(--canopy); padding: 3rem 1.5rem; text-align: center; }
.featured-strip h2 { color: #fff; margin-bottom: .6rem; }
.featured-strip p { color: rgba(255,255,255,.78); max-width: 560px; margin: 0 auto 1.5rem; font-size: .95rem; }

/* RESOURCES */
.resource-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.resource-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; transition: box-shadow .2s; }
.resource-card:hover { box-shadow: var(--shadow-md); }
.resource-card .org-type { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--light-green); margin-bottom: .5rem; display: block; }
.resource-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.resource-card p { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }

/* FOOTER */
footer { background: var(--ink); color: rgba(255,255,255,.55); padding: 3rem 1.5rem 2rem; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand { font-size: 1rem; font-weight: 700; color: var(--white); display: block; margin-bottom: .65rem; }
.footer-desc { font-size: .85rem; line-height: 1.65; }
.footer-col h5 { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: .85rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .4rem; }
.footer-col a { color: rgba(255,255,255,.55); font-size: .88rem; text-decoration: none; transition: color .15s; }
.footer-col a:hover { color: var(--accent-green); }
.footer-bottom { max-width: var(--max-w); margin: 0 auto; font-size: .78rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .article-container { grid-template-columns: 1fr; gap: 2rem; }
  .sidebar { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .section, .section-sm { padding: 2.5rem 1.25rem; }
  .hero-inner { padding: 3rem 1.25rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .nav-links { display: none; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}
