/* Misty River Garden Living — Chicago-Specific Sustainable Gardening Design System
   Theme: Grounded, river-connected, prairie-rooted, practical Midwest gardening education.
   Palette reflects Chicago soils, river, prairie light, and forest understory.
*/

:root {
  --deep-green: #0D472F;
  --river-blue: #1E6A8C;
  --clay: #A67C5D;
  --prairie-gold: #C9A04D;
  --warm-beige: #E8DFD0;
  --soft-white: #F9F7F3;
  --text: #2C3E2D;
  --text-light: #4F5F4E;
  --accent-earth: #5C4633;
  --layer-1: #3D5A3A;
  --layer-2: #5F7A5E;
  --layer-3: #8B9F7E;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 12px;
  --radius-lg: 18px;
  --shadow-soft: 0 4px 18px rgba(13, 71, 47, 0.08);
  --shadow-card: 0 6px 22px rgba(13, 71, 47, 0.09);
  --shadow-hover: 0 14px 36px rgba(13, 71, 47, 0.13);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  line-height: 1.72;
  color: var(--text);
  background: var(--soft-white);
  font-size: 17px;
  margin: 0;
  padding: 0;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--deep-green);
  line-height: 1.15;
}
h1 { font-size: clamp(2.1rem, 5.5vw, 3.35rem); }
h2 { font-size: clamp(1.65rem, 4vw, 2.25rem); margin-bottom: 0.6em; }
h3 { font-size: 1.32rem; margin-bottom: 0.45em; color: var(--deep-green); }
p { margin: 0 0 1.1em; max-width: 72ch; }
a { color: var(--river-blue); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--deep-green); }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

/* Container & Layout */
.container { max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.section { padding: 72px 0; }
.section-alt { background: #fff; }
.section-warm { background: #F4F0E8; }

/* Grid systems - mobile first */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .container { padding: 0 14px; }
  .section { padding: 54px 0; }
}

/* Navigation - improved mobile-first */
header {
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 2px 14px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 200;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1.48rem;
  font-weight: 700;
  color: var(--deep-green);
}
.logo img { height: 46px; width: auto; }
.nav-links {
  display: flex;
  gap: 26px;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-weight: 500;
  color: var(--text);
  font-size: 0.98rem;
  padding: 4px 2px;
}
.nav-links a:hover { color: var(--deep-green); }

.hamburger {
  display: none;
  font-size: 1.55rem;
  color: var(--deep-green);
  cursor: pointer;
  padding: 6px;
}
.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  padding: 18px 20px 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid #EDE7DB;
  z-index: 210;
}
.nav-mobile a {
  padding: 10px 0;
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid #F2EBDF;
}
.nav-mobile a:last-child { border-bottom: none; }

@media (max-width: 920px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .nav-mobile.show { display: flex; }
}

/* Buttons - earthy, accessible */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--deep-green);
  color: #fff;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  min-height: 48px;
  min-width: 48px;
  gap: 8px;
}
.btn:hover {
  background: #0A3A26;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(13,71,47,0.2);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--deep-green);
  color: var(--deep-green);
}
.btn-outline:hover {
  background: var(--deep-green);
  color: #fff;
}
.btn-secondary {
  background: var(--river-blue);
}
.btn-secondary:hover { background: #155A78; }
.btn-clay {
  background: var(--clay);
}
.btn-clay:hover { background: #8C6649; }

/* Cards with thematic variants */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}
.card-body { padding: 26px; }
.card-img { height: 210px; object-fit: cover; width: 100%; }

.strata-card {
  border-left: 5px solid var(--deep-green);
  background: linear-gradient(to bottom, #fff, #F9F7F3);
}
.soil-card {
  background: #F8F4ED;
  border: 1px solid #D9D0C0;
}
.plant-card {
  transition: all 0.3s;
}
.plant-card:hover {
  border-color: var(--prairie-gold);
}
.field-note {
  background: #F4F0E8;
  border-left: 5px solid var(--clay);
  padding: 22px 24px;
  font-size: 0.97rem;
  line-height: 1.7;
}

/* Feature / principle blocks */
.feature {
  background: #fff;
  padding: 26px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  height: 100%;
}
.feature i {
  font-size: 1.85rem;
  color: var(--river-blue);
  margin-bottom: 12px;
  display: block;
}

/* Tables - clean, readable on mobile */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  font-size: 0.95rem;
}
th {
  background: var(--warm-beige);
  color: var(--accent-earth);
  font-weight: 600;
  text-align: left;
  padding: 14px 16px;
}
td {
  padding: 13px 16px;
  border-bottom: 1px solid #EDE7DB;
}
tr:last-child td { border-bottom: none; }

@media (max-width: 640px) {
  table { font-size: 0.91rem; }
  th, td { padding: 11px 10px; }
}

/* Forms */
input, select, textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #C9C2B4;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--river-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(30,106,140,0.12);
}
textarea { min-height: 138px; resize: vertical; }
.form-group { margin-bottom: 18px; }
label { display: block; margin-bottom: 7px; font-weight: 500; color: var(--text); }

/* Hero with river feel */
.hero {
  background: linear-gradient(rgba(13,71,47,0.72), rgba(13,71,47,0.48)),
              url('images/hero-garden-1.webp') center/cover no-repeat;
  color: #fff;
  padding: 132px 0 96px;
  position: relative;
}
.hero-content { max-width: 680px; }
.hero h1 { color: #fff; margin-bottom: 14px; }
.hero p { font-size: 1.18rem; max-width: 620px; opacity: 0.96; }

/* Seasonal rhythm component */
.season-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}
.season {
  background: #fff;
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border-top: 5px solid var(--deep-green);
}
.season.spring { border-top-color: #4A7C59; }
.season.summer { border-top-color: var(--prairie-gold); }
.season.fall { border-top-color: var(--clay); }
.season.winter { border-top-color: var(--river-blue); }

/* Interactive elements */
.filter-bar {
  background: #fff;
  padding: 22px 26px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  margin-bottom: 32px;
}

/* Footer - deep, grounded */
.footer {
  background: var(--deep-green);
  color: #D6E2D6;
  padding: 58px 0 32px;
  font-size: 0.94rem;
}
.footer a { color: #D6E2D6; }
.footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 40px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 26px;
  right: 26px;
  background: var(--deep-green);
  color: #fff;
  padding: 15px 24px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
  display: none;
  align-items: center;
  gap: 11px;
  z-index: 9999;
  font-size: 0.95rem;
}
.toast.show { display: flex; animation: slideUp 0.35s ease forwards; }
@keyframes slideUp {
  from { transform: translateY(28px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Utility & accessibility */
.text-center { text-align: center; }
.max-w { max-width: 780px; margin-left: auto; margin-right: auto; }
.muted { color: var(--text-light); font-size: 0.95rem; }

/* Mobile optimizations */
@media (max-width: 480px) {
  .hero { padding: 98px 0 76px; }
  .btn { padding: 14px 24px; font-size: 0.96rem; }
  h2 { font-size: 1.68rem; }
}

/* Subtle thematic animations */
.grow-on-scroll {
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s;
}
.grow-on-scroll.visible {
  transform: scale(1);
}

/* Soil strata visual motif */
.soil-strata {
  height: 6px;
  background: linear-gradient(to right, var(--layer-1), var(--layer-2), var(--layer-3));
  border-radius: 999px;
  margin: 12px 0;
}

/* Plant tag system */
.tag {
  display: inline-block;
  font-size: 0.72rem;
  padding: 2px 9px;
  border-radius: 999px;
  background: #E8DFD0;
  color: var(--accent-earth);
  margin-right: 6px;
  margin-top: 4px;
}
.tag.native { background: #D4E2C9; color: #2E4A2F; }
.tag.pollinator { background: #E8DFD0; color: #5C4633; }