/* ==========================================================================
   The Botanical Way — Stylesheet
   A herbarium-ledger aesthetic: deep forest green, warm parchment white,
   and a stamped "specimen label" motif used throughout the site.
   ========================================================================== */

:root {
  /* Color tokens */
  --forest: #1b3b2c;
  --forest-light: #2f5741;
  --forest-pale: #e7ede4;
  --sage: #7c9473;
  --cream: #faf8f2;
  --paper: #ffffff;
  --gold: #a67c3d;
  --gold-light: #c9a668;
  --ink: #22261f;
  --ink-soft: #4c5147;
  --line: #d9d3c2;

  /* Type tokens */
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout tokens */
  --max-width: 1160px;
  --radius: 4px;
  --shadow: 0 12px 30px -18px rgba(27, 59, 44, 0.35);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--forest);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 72px 0; }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Botanical divider (signature motif) ---------- */
.leaf-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 40px;
  color: var(--sage);
  width: fit-content;
}
.leaf-divider::before,
.leaf-divider::after {
  content: "";
  width: 46px;
  height: 1px;
  background: var(--line);
}
.leaf-divider svg { width: 20px; height: 20px; }

/* ---------- Specimen label (signature motif) ---------- */
.specimen-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px dashed var(--gold-light);
  padding: 6px 14px;
  border-radius: 2px;
  background: var(--paper);
  transform: rotate(-1deg);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 242, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--forest);
  font-weight: 600;
}
.brand svg { width: 28px; height: 28px; }
.brand span.small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-top: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-size: 0.95rem;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--forest);
  border-color: var(--gold);
}
.nav-cta {
  background: var(--forest);
  color: var(--paper) !important;
  padding: 10px 20px !important;
  border-radius: var(--radius);
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--forest-light); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--forest);
  display: block;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    transition: max-height 0.3s ease;
  }
  .nav-links.is-open { max-height: 520px; }
  .nav-links a {
    width: 100%;
    padding: 14px 24px;
    border-bottom: 1px solid var(--forest-pale);
  }
  .nav-cta { margin: 14px 24px; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--forest); color: var(--paper); }
.btn-primary:hover { background: var(--forest-light); }
.btn-outline { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--paper); }
.btn-gold { background: var(--gold); color: var(--paper); }
.btn-gold:hover { background: #8f6a32; }

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 80px;
  background:
    radial-gradient(circle at 85% 10%, var(--forest-pale) 0%, transparent 45%),
    var(--cream);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow { margin-bottom: 18px; }
.hero h1 { margin-bottom: 20px; }
.hero p.lede { font-size: 1.1rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.hero-art {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 6px;
  padding: 36px;
  box-shadow: var(--shadow);
}
.hero-art svg { width: 100%; height: auto; }
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-stats .stat-num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--forest);
  display: block;
}
.hero-stats .stat-label {
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 320px; margin: 0 auto; }
}

/* ---------- Section header helper ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .specimen-tag { margin-bottom: 16px; }

/* ---------- Cards / grid ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 32px 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card .icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--forest-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card .icon-wrap svg { width: 26px; height: 26px; color: var(--forest); }

/* ---------- Product card ---------- */
.product-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-visual {
  background: linear-gradient(160deg, var(--forest-pale), var(--cream));
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.product-visual svg { width: 88px; height: 88px; color: var(--forest); }
.product-visual .specimen-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.6rem;
  padding: 4px 10px;
}
.product-body { padding: 26px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.product-body h3 { margin-bottom: 6px; }
.product-latin { font-style: italic; color: var(--gold); font-size: 0.85rem; margin-bottom: 10px; }
.product-body p { flex: 1; }
.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--forest-pale);
}
.price { font-family: var(--font-display); color: var(--forest); font-size: 1.2rem; }

/* ---------- Category tabs (Products page) ---------- */
.tab-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.tab-btn {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--ink-soft);
  transition: all 0.2s ease;
}
.tab-btn.is-active,
.tab-btn:hover { background: var(--forest); color: var(--paper); border-color: var(--forest); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* ---------- Testimonial ---------- */
.testimonial {
  background: var(--forest);
  color: var(--cream);
  border-radius: 8px;
  padding: 48px;
}
.testimonial p { color: var(--cream); font-family: var(--font-display); font-size: 1.35rem; font-style: italic; }
.testimonial .who { color: var(--gold-light); font-family: var(--font-body); font-size: 0.85rem; margin-top: 18px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--forest);
  color: var(--paper);
  border-radius: 8px;
  padding: 56px;
  text-align: center;
}
.cta-band h2 { color: var(--paper); }
.cta-band p { color: var(--forest-pale); max-width: 50ch; margin-left: auto; margin-right: auto; }

/* ---------- Forms ---------- */
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 8px;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--paper);
  color: var(--ink);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 4px; }
.form-success {
  display: none;
  background: var(--forest-pale);
  border: 1px solid var(--sage);
  color: var(--forest);
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-top: 16px;
}
.form-success.is-visible { display: block; }

/* ---------- FAQ accordion ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 4px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--forest);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-question .plus {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
}
.faq-question .plus::before,
.faq-question .plus::after {
  content: "";
  position: absolute;
  background: var(--gold);
  transition: transform 0.25s ease;
}
.faq-question .plus::before { width: 100%; height: 2px; top: 9px; left: 0; }
.faq-question .plus::after { width: 2px; height: 100%; top: 0; left: 9px; }
.faq-item.is-open .plus::after { transform: rotate(90deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.is-open .faq-answer { max-height: 400px; }
.faq-answer p { padding: 0 4px 22px; }

/* ---------- Blog ---------- */
.post-card { padding: 0; overflow: hidden; }
.post-visual {
  background: var(--forest-pale);
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-visual svg { width: 60px; height: 60px; color: var(--sage); }
.post-body { padding: 24px 26px 28px; }
.post-date { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }
.post-body h3 { margin: 8px 0 10px; }
.post-link { font-size: 0.9rem; font-weight: 600; color: var(--forest); border-bottom: 1px solid var(--gold); }

/* ---------- Page banner (interior pages) ---------- */
.page-banner {
  background: var(--forest-pale);
  padding: 64px 0 48px;
  text-align: center;
}
.page-banner .specimen-tag { margin-bottom: 18px; }
.page-banner p { max-width: 60ch; margin: 0 auto; }

/* ---------- Simple content page (legal pages) ---------- */
.legal-content h2 { margin-top: 2em; }
.legal-content ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.legal-content ul li { margin-bottom: 0.5em; color: var(--ink-soft); }
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-updated { color: var(--ink-soft); font-size: 0.85rem; margin-bottom: 40px; }

/* ---------- About page bits ---------- */
.value-row { display: flex; gap: 20px; margin-bottom: 26px; }
.value-row .num {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 44px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest);
  color: var(--forest-pale);
  padding: 60px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(250, 248, 242, 0.15);
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand svg { width: 24px; height: 24px; color: var(--gold-light); }
.footer-brand span { font-family: var(--font-display); font-size: 1.2rem; color: var(--paper); }
.site-footer p { color: rgba(250, 248, 242, 0.7); font-size: 0.92rem; }
.footer-col h4 {
  color: var(--paper);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(250, 248, 242, 0.75);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--gold-light); }
.social-icons { display: flex; gap: 12px; margin-top: 16px; }
.social-icons a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(250, 248, 242, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.social-icons svg { width: 16px; height: 16px; color: var(--forest-pale); }
.social-icons a:hover { background: var(--gold); border-color: var(--gold); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(250, 248, 242, 0.55);
}
.footer-bottom a { color: rgba(250, 248, 242, 0.55); }
.footer-bottom a:hover { color: var(--gold-light); }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
  .cta-band, .testimonial { padding: 34px 24px; }
}
