/* Sunny Backyard — Personal Gardening Site
   Palette: sage green + butter yellow + cream + tomato coral + earth brown
   Typography: Caveat (headlines) + Source Sans 3 (body) */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;700&family=Source+Sans+3:wght@400;600;700&display=swap');

:root {
  --sage: #7BA05B;
  --sage-dark: #5A7A3F;
  --butter: #F4D35E;
  --butter-soft: #F9E59A;
  --cream: #FDF6E3;
  --cream-deep: #F2E8C8;
  --coral: #E63946;
  --coral-soft: #F08A91;
  --earth: #6F4E37;
  --earth-light: #A07A5F;
  --shadow: rgba(111, 78, 55, 0.15);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background-color: var(--cream);
  color: var(--earth);
  line-height: 1.6;
  min-height: 100vh;
}

/* Top banner */
.site-banner {
  background: linear-gradient(135deg, var(--sage) 0%, var(--sage-dark) 100%);
  color: var(--cream);
  padding: 1rem 1.5rem;
  box-shadow: 0 2px 8px var(--shadow);
}

.site-title {
  font-family: 'Caveat', cursive;
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.site-subtitle {
  font-size: 0.95rem;
  opacity: 0.9;
  font-style: italic;
}

/* Nav */
nav.main-nav {
  background-color: var(--butter);
  padding: 0.6rem 1.5rem;
  border-bottom: 3px solid var(--sage);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  list-style: none;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

nav.main-nav a {
  color: var(--earth);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

nav.main-nav a:hover, nav.main-nav a.active {
  background-color: var(--cream);
  color: var(--coral);
}

nav.main-nav a.active {
  font-weight: 700;
}

.nav-icon { font-size: 1.1rem; line-height: 1; }

/* Main */
main {
  max-width: 920px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

h1 {
  font-family: 'Caveat', cursive;
  font-size: 3rem;
  font-weight: 700;
  color: var(--sage-dark);
  margin-bottom: 0.4rem;
  line-height: 1.1;
}

h1 + .lead {
  font-size: 1.15rem;
  color: var(--earth-light);
  margin-bottom: 2rem;
  font-style: italic;
}

h2 {
  font-family: 'Caveat', cursive;
  font-size: 2.1rem;
  color: var(--coral);
  margin-top: 2.4rem;
  margin-bottom: 0.8rem;
  border-bottom: 2px dashed var(--sage);
  padding-bottom: 0.3rem;
}

h3 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--sage-dark);
  margin-top: 1.6rem;
  margin-bottom: 0.5rem;
}

p, ul, ol { margin-bottom: 1rem; }

ul, ol { padding-left: 1.5rem; }

li { margin-bottom: 0.4rem; }

a {
  color: var(--coral);
  font-weight: 600;
}

a:hover { color: var(--sage-dark); }

strong { color: var(--earth); }

/* Cards */
.card {
  background-color: white;
  border-radius: 12px;
  padding: 1.5rem 1.7rem;
  margin: 1.2rem 0;
  box-shadow: 0 2px 12px var(--shadow);
  border-left: 5px solid var(--sage);
}

.card.warm {
  border-left-color: var(--butter);
  background-color: var(--cream-deep);
}

.card.alert {
  border-left-color: var(--coral);
  background-color: #FFF5F6;
}

.card-title {
  font-family: 'Caveat', cursive;
  font-size: 1.8rem;
  color: var(--sage-dark);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card.warm .card-title { color: var(--earth); }
.card.alert .card-title { color: var(--coral); }

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow);
}

th {
  background-color: var(--sage);
  color: var(--cream);
  text-align: left;
  padding: 0.7rem 0.9rem;
  font-weight: 700;
}

td {
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--cream-deep);
  vertical-align: top;
}

tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background-color: var(--cream); }

/* Checklist */
.checklist {
  list-style: none;
  padding-left: 0;
}

.checklist li {
  padding-left: 1.8rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.checklist li::before {
  content: "🌱";
  position: absolute;
  left: 0;
  top: 0.05rem;
}

/* Footer */
footer {
  background-color: var(--earth);
  color: var(--cream);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
}

footer .heart { color: var(--coral); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--butter-soft) 0%, var(--cream-deep) 100%);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  margin-bottom: 2rem;
  text-align: center;
  border: 2px dashed var(--sage);
}

.hero h1 { margin-bottom: 0.6rem; }

.hero .tagline {
  font-size: 1.2rem;
  color: var(--earth);
  margin-bottom: 1.2rem;
}

.hero .meta {
  font-size: 1rem;
  color: var(--earth-light);
}

.hero-icons {
  font-size: 2.6rem;
  margin: 0.8rem 0;
  letter-spacing: 0.4rem;
}

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

.fact {
  background-color: white;
  border-radius: 10px;
  padding: 1rem 1.2rem;
  text-align: center;
  box-shadow: 0 2px 8px var(--shadow);
  border-top: 4px solid var(--sage);
}

.fact .label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  color: var(--earth-light);
}

.fact .value {
  font-family: 'Caveat', cursive;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--sage-dark);
  margin-top: 0.2rem;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0 0.15rem;
  vertical-align: middle;
}

.badge.confirmed {
  background-color: var(--sage);
  color: var(--cream);
}

.badge.estimate {
  background-color: var(--butter);
  color: var(--earth);
}

.badge.safe { background-color: #6cb56c; color: white; }
.badge.caution { background-color: var(--coral); color: white; }

/* Quotes / source attributions */
.source-note {
  font-size: 0.85rem;
  color: var(--earth-light);
  font-style: italic;
  margin-top: 0.3rem;
}

/* Responsive */
@media (max-width: 640px) {
  .site-title { font-size: 2rem; }
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.7rem; }
  nav.main-nav ul { gap: 0.6rem 1rem; }
  nav.main-nav a { font-size: 0.85rem; padding: 0.25rem 0.4rem; }
  main { padding: 1.5rem 1rem 3rem; }
  .card { padding: 1.2rem; }
  th, td { padding: 0.5rem 0.6rem; font-size: 0.9rem; }
}

/* Print */
@media print {
  nav.main-nav, footer { display: none; }
  body { background: white; }
  .card, table { box-shadow: none; }
}
