@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400&display=swap');

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

:root {
  --canvas:           #f7f7f4;
  --canvas-soft:      #fafaf7;
  --surface-card:     #ffffff;
  --surface-strong:   #e6e5e0;
  --hairline:         #e6e5e0;
  --hairline-soft:    #efeee8;
  --hairline-strong:  #cfcdc4;
  --primary:          #f54e00;
  --primary-active:   #d04200;
  --on-primary:       #ffffff;
  --ink:              #26251e;
  --body:             #5a5852;
  --body-strong:      #26251e;
  --muted:            #807d72;
  --muted-soft:       #a09c92;
  --semantic-success: #1f8a65;
  --semantic-error:   #cf2d56;
  --rounded-xs:  4px;
  --rounded-sm:  6px;
  --rounded-md:  8px;
  --rounded-lg:  12px;
  --rounded-xl:  16px;
  --rounded-pill:9999px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--canvas);
  color: var(--body);
  font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--primary); }

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── NAV ─────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: 64px;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.nav-logo:hover { color: var(--primary); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  margin-left: auto;
  align-items: center;
}
.nav-links > li > a {
  display: block;
  padding: 6px 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  border-radius: var(--rounded-sm);
  transition: color .15s;
}
.nav-links > li > a:hover { color: var(--ink); }

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 8px 0;
  min-width: 220px;
  list-style: none;
  box-shadow: 0 4px 16px rgba(38,37,30,.08);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu li a {
  display: block;
  padding: 9px 16px;
  font-size: 14px;
  color: var(--body);
}
.nav-dropdown-menu li a:hover { color: var(--ink); background: var(--canvas-soft); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  padding: 80px 0 64px;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline-soft);
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-strong);
  padding: 4px 10px;
  border-radius: var(--rounded-pill);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 52px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1.2px;
  color: var(--ink);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: 32px;
  max-width: 480px;
}
.hero-meta {
  font-size: 13px;
  color: var(--muted);
}
.hero-image {
  border-radius: var(--rounded-xl);
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.hero-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

/* ── SECTION LABELS ─────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-strong);
  padding: 4px 10px;
  border-radius: var(--rounded-pill);
  margin-bottom: 16px;
}

/* ── SECTIONS ────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-alt { background: var(--canvas-soft); }
.section-title {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.72px;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 12px;
}
.section-sub {
  font-size: 16px;
  color: var(--body);
  max-width: 640px;
  line-height: 1.6;
  margin-bottom: 48px;
}

/* ── ARTICLE CARDS ───────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  overflow: hidden;
  transition: border-color .15s;
}
.card:hover { border-color: var(--hairline-strong); }
.card-image { height: 200px; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 24px; }
.card-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 10px;
}
.card-excerpt {
  font-size: 14px;
  color: var(--body);
  line-height: 1.55;
  margin-bottom: 16px;
}
.card-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  border-bottom: 1px solid transparent;
  transition: border-color .15s;
}
.card-link:hover { border-color: var(--primary); color: var(--primary); }

/* ── PLANT GRID ──────────────────────────────────────────── */
.plants-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.plant-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  overflow: hidden;
}
.plant-card-image { height: 180px; overflow: hidden; }
.plant-card-image img { width: 100%; height: 100%; object-fit: cover; }
.plant-card-body { padding: 16px; }
.plant-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.plant-latin {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.plant-desc { font-size: 14px; color: var(--body); line-height: 1.5; }

/* ── FEATURE LIST ────────────────────────────────────────── */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.feature-item {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
}
.feature-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.feature-item p { font-size: 14px; color: var(--body); line-height: 1.6; }

/* ── CONTACT FORM ────────────────────────────────────────── */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-info h2 {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 16px;
}
.contact-info p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 24px;
}
.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--body);
}
.contact-form {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 32px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--surface-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--rounded-md);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--ink);
  font-family: inherit;
  transition: border-color .15s;
  height: 44px;
}
.form-group textarea {
  height: 120px;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted-soft); }
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: var(--rounded-md);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  height: 40px;
  cursor: pointer;
  transition: background .15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover { background: var(--primary-active); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.form-msg {
  margin-top: 12px;
  font-size: 14px;
  display: none;
}
.form-msg.success { color: var(--semantic-success); display: block; }
.form-msg.error   { color: var(--semantic-error);   display: block; }

/* ── ARTICLE PAGE ────────────────────────────────────────── */
.article-hero {
  padding: 64px 0 0;
  background: var(--canvas);
}
.article-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}
.article-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.article-meta span { display: flex; align-items: center; gap: 4px; }
.article-title {
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -1px;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 20px;
}
.article-subtitle {
  font-size: 18px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 32px;
}
.article-cover {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--rounded-lg) var(--rounded-lg) 0 0;
  border: 1px solid var(--hairline);
  border-bottom: none;
}

.article-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.article-body h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.32px;
  color: var(--ink);
  margin: 48px 0 16px;
}
.article-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 32px 0 12px;
}
.article-body p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 20px;
}
.article-body ul, .article-body ol {
  margin: 0 0 20px 24px;
  color: var(--body);
  font-size: 16px;
  line-height: 1.7;
}
.article-body li { margin-bottom: 6px; }
.article-body strong { color: var(--body-strong); font-weight: 600; }
.article-body a { color: var(--primary); text-decoration: underline; }
.article-body a:hover { color: var(--primary-active); }
.article-body figure {
  margin: 32px 0;
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  overflow: hidden;
}
.article-body figure img { width: 100%; }
.article-body figcaption {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 16px;
  background: var(--canvas-soft);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 24px;
}
.data-table th {
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--ink);
}
.data-table td {
  border: 1px solid var(--hairline);
  padding: 10px 14px;
  color: var(--body);
}
.data-table tr:hover td { background: var(--canvas-soft); }
.code-snippet {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--ink);
  overflow-x: auto;
  margin-bottom: 20px;
}
.related-articles {
  border-top: 1px solid var(--hairline);
  padding-top: 48px;
  margin-top: 48px;
}
.related-articles h3 {
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 24px;
  letter-spacing: -0.11px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.related-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 20px;
  transition: border-color .15s;
}
.related-card:hover { border-color: var(--hairline-strong); }
.related-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.related-card p { font-size: 13px; color: var(--body); }

/* ── BREADCRUMB ──────────────────────────────────────────── */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { color: var(--muted-soft); }

/* ── PAGE CONTENT (about/privacy/terms) ─────────────────── */
.page-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline-soft);
}
.page-hero .container { max-width: 800px; }
.page-hero h1 {
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -1px;
  color: var(--ink);
  margin-bottom: 12px;
}
.page-hero p { font-size: 16px; color: var(--body); line-height: 1.6; }
.page-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.page-body h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.32px;
  color: var(--ink);
  margin: 48px 0 14px;
}
.page-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 10px;
}
.page-body p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 18px;
}
.page-body ul {
  margin: 0 0 18px 24px;
  color: var(--body);
  font-size: 16px;
  line-height: 1.7;
}
.page-body li { margin-bottom: 6px; }
.page-body a { color: var(--primary); }
.page-body a:hover { color: var(--primary-active); }
.last-updated {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
}

/* ── COOKIE BANNER ───────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: var(--surface-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--rounded-lg);
  padding: 20px 24px;
  max-width: 540px;
  width: calc(100% - 48px);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: 0 8px 32px rgba(38,37,30,.12);
}
.cookie-text {
  flex: 1;
  font-size: 14px;
  color: var(--body);
  line-height: 1.55;
}
.cookie-text a { color: var(--primary); text-decoration: underline; }
.cookie-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.btn-cookie-accept {
  background: var(--ink);
  color: var(--canvas);
  border: none;
  border-radius: var(--rounded-md);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity .15s;
  white-space: nowrap;
}
.btn-cookie-accept:hover { opacity: .85; }
.btn-cookie-reject {
  background: transparent;
  color: var(--body);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--rounded-md);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s;
  white-space: nowrap;
}
.btn-cookie-reject:hover { border-color: var(--ink); color: var(--ink); }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-logo {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}
.footer-col p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 14px;
  color: var(--body);
  transition: color .15s;
}
.footer-col ul li a:hover { color: var(--ink); }
.footer-col address { font-style: normal; }
.footer-col address p {
  font-size: 14px;
  color: var(--body);
  margin-bottom: 6px;
}
.footer-col address a { color: var(--body); }
.footer-col address a:hover { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding: 20px 24px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 13px; color: var(--muted); }
.footer-disclaimer { max-width: 480px; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner    { grid-template-columns: 1fr; gap: 40px; }
  .hero h1       { font-size: 42px; }
  .cards-grid    { grid-template-columns: repeat(2, 1fr); }
  .plants-grid   { grid-template-columns: repeat(2, 1fr); }
  .footer-inner  { grid-template-columns: 1fr 1fr; }
  .contact-wrap  { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface-card);
    border-bottom: 1px solid var(--hairline);
    padding: 12px 0 16px;
    gap: 2px;
    margin-left: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links > li > a { padding: 10px 24px; }
  .nav-dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding-left: 16px;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .hero h1 { font-size: 32px; letter-spacing: -0.5px; }
  .hero-image img { height: 240px; }
  .section-title { font-size: 28px; }
  .cards-grid   { grid-template-columns: 1fr; }
  .plants-grid  { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .article-title { font-size: 30px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  #cookie-banner { flex-direction: column; bottom: 12px; }
  .cookie-actions { flex-direction: row; width: 100%; }
  .btn-cookie-accept, .btn-cookie-reject { flex: 1; text-align: center; }
}

@media (max-width: 640px) {
  .hero { padding: 48px 0 40px; }
  .section { padding: 56px 0; }
  .article-cover { height: 220px; }
  .page-hero h1 { font-size: 30px; }
}
