/* ============================================================
   Touch Grass Gardening — styles
   Earthy, garden-inspired. Deep greens + warm cream/sand.
   ============================================================ */

:root {
  --pine: #1c3a2a;        /* deep green */
  --pine-deep: #122419;   /* darker green */
  --moss: #2f5d3f;        /* mid green */
  --leaf: #4c8a5a;        /* bright green */
  --sage: #dfe8d8;        /* pale green */
  --cream: #faf6ec;       /* warm cream */
  --sand: #f1e7d0;        /* warm sand */
  --clay: #c26936;        /* terracotta accent */
  --clay-dark: #a5542a;
  --gold: #d9a441;
  --ink: #26311f;         /* body text */
  --ink-soft: #5a6350;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 36, 25, 0.12);
  --shadow-sm: 0 4px 14px rgba(18, 36, 25, 0.10);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--moss); text-decoration: none; }
a:hover { color: var(--clay); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--pine);
  font-weight: 600;
}

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 236, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(28, 58, 42, 0.12);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--pine);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--pine);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
  background: var(--sage);
  color: var(--pine);
}

.nav-links a.active {
  background: var(--pine);
  color: var(--cream);
}

.nav-cta {
  background: var(--clay) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--clay-dark) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--pine);
  padding: 8px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background: var(--pine-deep);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(18, 36, 25, 0.82) 0%, rgba(18, 36, 25, 0.45) 55%, rgba(18, 36, 25, 0.15) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1140px;
  margin: 0 auto;
  padding: 90px 24px;
  width: 100%;
}

.hero-kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 18px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  max-width: 14ch;
  margin-bottom: 20px;
  text-wrap: balance;
}

.hero p.lede {
  font-size: 1.25rem;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 34px;
}

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--clay);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(194, 105, 54, 0.35);
}
.btn-primary:hover { background: var(--clay-dark); color: var(--white); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.22); color: var(--white); }

.btn-dark {
  background: var(--pine);
  color: var(--cream);
}
.btn-dark:hover { background: var(--moss); color: var(--cream); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: var(--pine);
  color: var(--cream);
  padding: 70px 0 60px;
  position: relative;
  overflow: hidden;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 14px;
}

.page-hero p {
  color: rgba(250, 246, 236, 0.85);
  font-size: 1.12rem;
  max-width: 62ch;
}

.page-hero.has-image { padding: 0; }
.page-hero.has-image .ph-media { position: relative; height: 340px; overflow: hidden; }
.page-hero.has-image .ph-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero.has-image .ph-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,36,25,0.05) 40%, rgba(18,36,25,0.88) 100%);
}
.page-hero.has-image .ph-text {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0 0 40px;
}
.page-hero.has-image h1 { color: #fff; }
.page-hero.has-image p { color: rgba(255,255,255,0.88); }

/* ---------- Sections ---------- */
section.block { padding: 72px 0; }
section.block.tint { background: var(--sand); }
section.block.sage-tint { background: #eef2e6; }

.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  margin-bottom: 12px;
}
.section-sub {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 64ch;
  margin-bottom: 40px;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 8px;
}

.stat {
  background: var(--white);
  border: 1px solid rgba(28, 58, 42, 0.1);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--pine);
  display: block;
}

.stat-label {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-top: 6px;
  display: block;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(28, 58, 42, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.card-media {
  height: 190px;
  background: linear-gradient(135deg, var(--moss), var(--pine-deep));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }

.card-media .thumb-label {
  color: rgba(255,255,255,0.9);
  font-family: var(--font-display);
  font-size: 1.1rem;
  padding: 0 20px;
  text-align: center;
}

.card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.28rem; margin-bottom: 10px; }
.card-body p { color: var(--ink-soft); font-size: 0.97rem; margin-bottom: 16px; flex: 1; }
.card-meta {
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  font-weight: 600;
}
.card-link { font-weight: 600; color: var(--clay); }
.card-link:hover { color: var(--clay-dark); }

/* video cards */
.play-badge {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(194, 105, 54, 0.95);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  padding-left: 4px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

/* ---------- Feature / split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 340px;
}

.split h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 18px; }
.split p { margin-bottom: 16px; color: var(--ink-soft); }
.split p strong { color: var(--ink); }

/* ---------- Lists ---------- */
.check-list { list-style: none; margin: 20px 0; }
.check-list li {
  padding: 10px 0 10px 38px;
  position: relative;
  border-bottom: 1px dashed rgba(28, 58, 42, 0.15);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 6px;
  top: 10px;
  color: var(--leaf);
  font-weight: 700;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--pine) 0%, var(--moss) 100%);
  border-radius: 22px;
  padding: 60px 48px;
  color: var(--cream);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(217, 164, 65, 0.25), transparent 45%);
}
.cta-banner h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 14px; position: relative; }
.cta-banner p { color: rgba(250,246,236,0.88); max-width: 56ch; margin: 0 auto 30px; position: relative; }
.cta-banner .btn-row { justify-content: center; position: relative; }

/* ---------- Plants page ---------- */
.plant-controls {
  background: var(--white);
  border: 1px solid rgba(28, 58, 42, 0.1);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 34px;
  position: sticky;
  top: 84px;
  z-index: 50;
}

.search-row { display: flex; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.search-box { position: relative; flex: 1; min-width: 240px; }
.search-box input {
  width: 100%;
  padding: 14px 18px 14px 46px;
  border: 1.5px solid rgba(28, 58, 42, 0.2);
  border-radius: 999px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
}
.search-box input:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(76, 138, 90, 0.18); }
.search-box .icon { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); }

.filter-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filter-btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(28, 58, 42, 0.25);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
}
.filter-btn:hover { border-color: var(--moss); color: var(--moss); }
.filter-btn.active { background: var(--pine); border-color: var(--pine); color: var(--cream); }

.result-count { margin-left: auto; color: var(--ink-soft); font-size: 0.92rem; }

.plant-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.plant-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(28, 58, 42, 0.08);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  transition: transform 0.18s, box-shadow 0.18s;
  display: flex;
  flex-direction: column;
}
.plant-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.plant-cat {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--moss);
  background: var(--sage);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  align-self: flex-start;
}

.plant-card h3 { font-size: 1.22rem; margin-bottom: 4px; }
.plant-card h3 .star { color: var(--gold); }
.plant-latin { font-style: italic; color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 10px; }
.plant-card p.note { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }
.fav-tag {
  margin-top: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--clay-dark);
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-soft);
  grid-column: 1 / -1;
}
.no-results h3 { margin-bottom: 8px; }

/* category image strip */
.cat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 40px;
}
.cat-tile {
  position: relative;
  height: 170px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}
.cat-tile:hover { transform: translateY(-4px); }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,36,25,0) 30%, rgba(18,36,25,0.78) 100%);
}
.cat-tile span {
  position: absolute; bottom: 14px; left: 16px; right: 16px;
  color: #fff; font-weight: 600; font-size: 1.02rem; z-index: 2;
  font-family: var(--font-display);
}

/* ---------- Forms ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 38px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(28, 58, 42, 0.08);
}

.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.95rem; }
.field input, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid rgba(28, 58, 42, 0.2);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--cream);
  color: var(--ink);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(76, 138, 90, 0.18);
}
.field textarea { min-height: 150px; resize: vertical; }

.form-note { font-size: 0.9rem; color: var(--ink-soft); margin-top: 16px; }

.info-card {
  background: var(--pine);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}
.info-card h3 { color: #fff; margin-bottom: 14px; }
.info-card p { color: rgba(250,246,236,0.85); margin-bottom: 14px; font-size: 0.97rem; }
.info-card a { color: var(--gold); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--pine-deep);
  color: rgba(250, 246, 236, 0.78);
  padding: 54px 0 30px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-grid h4 { color: #fff; margin-bottom: 14px; font-size: 1.05rem; }
.footer-grid p { font-size: 0.95rem; max-width: 38ch; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: rgba(250, 246, 236, 0.78); font-size: 0.95rem; }
.footer-grid a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(250, 246, 236, 0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

/* ---------- Timeline (about) ---------- */
.timeline { position: relative; margin: 30px 0 10px; padding-left: 34px; }
.timeline::before {
  content: "";
  position: absolute; left: 9px; top: 6px; bottom: 6px;
  width: 2px; background: var(--sage);
}
.timeline-item { position: relative; margin-bottom: 30px; }
.timeline-item::before {
  content: "";
  position: absolute; left: -31px; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--leaf);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 2px var(--leaf);
}
.timeline-item h3 { font-size: 1.15rem; margin-bottom: 6px; }
.timeline-item .when { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--clay-dark); }
.timeline-item p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .card-grid, .plant-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cat-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    border-bottom: 1px solid rgba(28, 58, 42, 0.12);
    box-shadow: var(--shadow);
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .hero { min-height: 68vh; }
  .card-grid, .plant-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  section.block { padding: 52px 0; }
  .cta-banner { padding: 44px 26px; }
  .form-card { padding: 26px; }
  .plant-controls { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
}
