/* Freimers — guia brasileiro de plantas */
:root {
  --bg: #eaf4e3;
  --bg-2: #f3f9ee;
  --paper: #f7fcf3;
  --ink: #0c100c;
  --ink-2: #161c16;
  --muted: #222822;
  --line: rgba(12, 16, 12, 0.18);
  --accent: #02bd62;
  --accent-2: #04582c;
  --accent-soft: #c6efd4;
  --clay: #c4a06a;
  --danger: #a33b2a;
  --shadow: 0 24px 60px rgba(28, 48, 24, 0.08);
  --radius: 1.4rem;
  --font: "Outfit", system-ui, sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(2, 189, 98, 0.14), transparent 50%),
    radial-gradient(900px 500px at -10% 20%, rgba(196, 160, 106, 0.1), transparent 46%),
    var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Ccircle cx='8' cy='8' r='1.2' fill='%23172117'/%3E%3C/svg%3E");
  z-index: 0;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-2); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 80;
}
.skip:focus { top: 1rem; }

.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.wrap-wide { width: min(1280px, calc(100% - 2rem)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 82%, white);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.4rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}
.brand-name {
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 0.92rem;
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.2rem 1.1rem;
}
.nav a {
  text-decoration: none;
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a[aria-current="page"], .nav a:hover { color: var(--accent-2); }
.nav-tools { position: relative; }
.nav-tools summary {
  list-style: none;
  cursor: pointer;
  font-weight: 500;
  color: var(--ink-2);
}
.nav-tools summary::-webkit-details-marker { display: none; }
.nav-tools[open] summary { color: var(--accent-2); }
.nav-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.7rem;
  min-width: 240px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.15rem;
}
.nav-panel a { padding: 0.45rem 0.6rem; border-radius: 0.6rem; }
.nav-panel a:hover { background: var(--accent-soft); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.icon-btn, .menu-btn {
  border: 1px solid var(--line);
  background: var(--paper);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink);
  display: grid;
  place-items: center;
}
.menu-btn { display: none; }

@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.2rem 1.2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  .nav.is-open { display: flex; }
  .nav-panel { position: static; box-shadow: none; min-width: 0; width: 100%; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: #062214;
  box-shadow: 0 10px 24px rgba(2, 189, 98, 0.28);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-dark {
  background: var(--accent);
  color: #062214;
  box-shadow: 0 10px 24px rgba(2, 189, 98, 0.28);
}

/* Type */
.kicker {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-2);
}
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; line-height: 1.12; }
.lead { font-size: 1.15rem; color: var(--ink); max-width: 40rem; }
.muted { color: var(--ink-2); }
.tiny { font-size: 0.84rem; color: var(--ink-2); font-weight: 500; }

/* Hero */
.hero {
  position: relative;
  padding: 2.2rem 0 3.5rem;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: end;
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  margin: 0.4rem 0 1rem;
  max-width: 14ch;
}
.hero-copy p { max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.5rem 0 1.2rem; }
.hero-art {
  position: relative;
  min-height: 420px;
}
.hero-art img {
  width: min(100%, 460px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin-left: auto;
  border-radius: 2rem 2rem 6rem 2rem;
  box-shadow: var(--shadow);
  background: #dcecd4;
}
.geo {
  position: absolute;
  background: var(--accent);
  pointer-events: none;
}
.geo-a { width: 88px; height: 88px; border-radius: 0 0 88px 0; top: 8%; left: -12px; opacity: 0.85; }
.geo-b { width: 18px; height: 72px; top: 0; right: 18%; }
.geo-c { width: 70px; height: 140px; border-radius: 70px 70px 0 0; bottom: 8%; left: 6%; opacity: 0.55; }
.stat-row {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}
.stat strong { display: block; font-family: var(--serif); font-size: 1.6rem; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 280px; }
  .hero-art img { margin: 0 auto; }
}

/* Sections */
.section { padding: 3.2rem 0; position: relative; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0.2rem 0 0; }

/* Tools path — not a 5-card grid */
.tools-path {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1rem;
}
.tool-feature {
  background: var(--accent);
  color: #062214;
  border-radius: 1.8rem;
  padding: 2rem;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
.tool-feature::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -40px;
  top: -50px;
  border-radius: 50%;
  background: #086b38;
  opacity: 0.22;
}
.tool-feature .kicker { color: #062214; }
.tool-feature h3 { font-size: 2.2rem; margin: 0.3rem 0 0.6rem; color: #062214; }
.tool-feature p { color: #0c2414; max-width: 28rem; }
.tool-stack { display: grid; gap: 0.8rem; }
.tool-link {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.tool-link:hover { border-color: var(--accent); }
.tool-link strong { display: block; }
@media (max-width: 800px) { .tools-path { grid-template-columns: 1fr; } }

/* Featured plant composition */
.feature-plant {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  align-items: stretch;
  background: var(--paper);
  border-radius: 2rem;
  overflow: hidden;
  border: 1px solid var(--line);
}
.feature-plant img {
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center 30%;
  background: #d8ead0;
}
.feature-body { padding: 2rem 2.1rem; }
.pills { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0; }
.pill {
  border: 1px solid rgba(12, 16, 12, 0.22);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 550;
  color: var(--ink);
  background: #fff;
}
@media (max-width: 800px) { .feature-plant { grid-template-columns: 1fr; } }

/* Catalog rows — editorial, not card grid */
.plant-row {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 1.2rem;
  align-items: center;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.plant-row img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 1.1rem;
  background: #1a2a1c;
}
.plant-row h3 { margin: 0 0 0.25rem; font-size: 1.45rem; }
.plant-row .meta { font-size: 0.9rem; color: var(--ink-2); }
@media (max-width: 720px) {
  .plant-row { grid-template-columns: 110px 1fr; }
  .plant-row .go { display: none; }
  .plant-row img { height: 110px; }
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.2rem;
}
a.chip { text-decoration: none; color: inherit; }
a.chip:hover { border-color: var(--accent); color: var(--accent-2); }
.filters label, .chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #fff;
  border: 1px solid rgba(12, 16, 12, 0.22);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 550;
  color: var(--ink);
}
.filters select, .field input, .field select, .field textarea {
  font: inherit;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.65rem 0.75rem;
  width: 100%;
  color: var(--ink);
}
.filters select { width: auto; border: 0; background: transparent; padding: 0; }

/* Plant page */
.plant-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0 1rem;
}
.plant-hero img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 2rem 1rem 3rem 2rem;
  background: #1a2a1c;
  box-shadow: var(--shadow);
}
.care-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.care-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  padding: 1.1rem 1.2rem;
}
.prose { max-width: 40rem; }
.prose p { color: var(--ink); }
.prose h2 { font-size: 1.8rem; margin: 2rem 0 0.6rem; }
@media (max-width: 800px) {
  .plant-hero, .care-grid { grid-template-columns: 1fr; }
}

/* Tools UI */
.wizard {
  max-width: 40rem;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.step-q { font-family: var(--serif); font-size: 1.8rem; margin: 0 0 1rem; }
.choice {
  display: block;
  width: 100%;
  text-align: left;
  margin: 0 0 0.55rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: var(--bg-2);
  font: inherit;
  cursor: pointer;
}
.choice:hover, .choice.is-on { border-color: var(--accent); background: var(--accent-soft); }
.progress { height: 6px; background: var(--line); border-radius: 99px; margin-bottom: 1.2rem; }
.progress > span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }

.result-hero {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.2rem;
  align-items: center;
  background: var(--accent);
  color: #062214;
  border-radius: 1.6rem;
  padding: 1.2rem;
  margin: 1rem 0;
  text-decoration: none;
}
.result-hero img { border-radius: 1rem; height: 180px; object-fit: cover; width: 100%; }
.result-hero h3 { color: #062214; margin: 0 0 0.4rem; font-size: 2rem; }
.result-hero .tiny, .result-hero p { color: #0c2414; }
@media (max-width: 640px) { .result-hero { grid-template-columns: 1fr; } }

.compare {
  display: grid;
  gap: 1rem;
}
.compare-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.compare-col {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  padding: 1rem;
  min-height: 280px;
  color: var(--ink);
}
.compare-col h3, .compare-col li, .compare-col p { color: var(--ink); }
.compare-col .tiny { color: var(--ink); }
@media (max-width: 800px) { .compare-cols { grid-template-columns: 1fr; } }

.cal-board {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.2rem;
}
.month-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.45rem; }
.month-btn, .region-btn {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 0.8rem;
  padding: 0.55rem;
  font: inherit;
  cursor: pointer;
}
.month-btn.is-on, .region-btn.is-on { background: var(--accent); color: #062214; border-color: transparent; }
@media (max-width: 800px) {
  .cal-board { grid-template-columns: 1fr; }
  .month-grid { grid-template-columns: repeat(3, 1fr); }
}

.form { display: grid; gap: 0.8rem; max-width: 36rem; }
.field { display: grid; gap: 0.3rem; }
.field span { font-size: 0.86rem; font-weight: 600; }

/* Search overlay */
.search-layer {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  z-index: 50;
  display: none;
  padding: 12vh 1rem 2rem;
}
.search-layer.is-open { display: block; }
.search-box {
  width: min(640px, 100%);
  margin: 0 auto;
  background: var(--paper);
  border-radius: 1.2rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.search-box input {
  width: 100%;
  border: 0;
  font: inherit;
  font-size: 1.15rem;
  padding: 1rem 1.1rem;
  background: transparent;
}
.search-hits { max-height: 50vh; overflow: auto; }
.search-hits a {
  display: block;
  padding: 0.75rem 1.1rem;
  text-decoration: none;
  color: inherit;
  border-top: 1px solid var(--line);
}
.search-hits a:hover { background: var(--accent-soft); }

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 2.4rem 0 1.4rem;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 70%, #d7e8cf);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
}
.site-footer a { text-decoration: none; color: var(--ink-2); }
.site-footer a:hover { color: var(--accent-2); }
.foot-col { display: grid; gap: 0.35rem; align-content: start; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

.notice {
  background: var(--accent-soft);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  color: var(--ink-2);
}

.empty { padding: 2rem 0; color: var(--ink-2); }

.guide-list { display: grid; gap: 0.8rem; }
.guide-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.guide-item h3 { margin: 0; font-size: 1.4rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
