/* ══ The Herbarium — Shared Design System ══ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-cream: #F5EDE0;
  --bg-petal: #EDE4D3;
  --bg-ivory: #F8F2E8;
  --text-steep: #2B2420;
  --text-bark: #4A3F35;
  --accent-hibiscus: #8B1A3A;
  --accent-indigo: #3A4F7A;
  --accent-saffron: #C4651A;
  --accent-lotus: #D4A0A0;
  --accent-gold: #C7AE14;
  --accent-marigold: #D4940A;
  --accent-palash: #D45B2A;
  --border-linen: #D4C9B5;
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'EB Garamond', serif;
  --font-label: 'Instrument Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-cream);
  color: var(--text-steep);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Navigation ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 48px;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(245, 237, 224, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-linen);
}
.nav-brand {
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
  letter-spacing: 1px; color: var(--text-steep); text-decoration: none;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-family: var(--font-label); font-size: 11px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-bark); text-decoration: none; transition: color 0.3s;
}
.nav-links a:hover { color: var(--accent-hibiscus); }

/* ── Typography ── */
.page-hero {
  padding: 140px 48px 80px; text-align: center;
}
.page-hero .label {
  font-family: var(--font-label); font-size: 11px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase; color: var(--text-bark);
  margin-bottom: 16px;
}
.page-hero h1 {
  font-family: var(--font-display); font-size: 52px; font-weight: 500;
  line-height: 1.15; margin-bottom: 20px;
}
.page-hero .subtitle {
  font-family: var(--font-body); font-size: 20px; font-style: italic;
  color: var(--text-bark); max-width: 600px; margin: 0 auto;
}
.page-hero-image {
  width: 100%; max-width: 1000px; margin: 48px auto 0;
  aspect-ratio: 2/1; object-fit: cover;
}

/* ── Sections ── */
.section { padding: 0 48px; }
.section--lg { padding-top: 160px; padding-bottom: 160px; }
.section--md { padding-top: 120px; padding-bottom: 120px; }
.section--sm { padding-top: 80px; padding-bottom: 80px; }
.section--xs { padding-top: 48px; padding-bottom: 48px; }
.section--alt { background: var(--bg-ivory); border-top: 3px solid var(--border-linen); border-bottom: 3px solid var(--border-linen); }
.section--petal { background: var(--bg-petal); border-top: 3px solid var(--border-linen); }

.section-header {
  text-align: center; max-width: 680px; margin: 0 auto 64px;
}
.section-header h2 {
  font-family: var(--font-display); font-size: 42px; font-weight: 500;
  margin-bottom: 16px; line-height: 1.15;
}
.section-header p {
  font-size: 18px; color: var(--text-bark);
}

/* ── Content Blocks ── */
.split {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px;
  max-width: 1200px; margin: 0 auto; align-items: center;
}
.split--reverse { grid-template-columns: 1fr 1.2fr; }
.split img { width: 100%; object-fit: cover; }

.content-block h2 {
  font-family: var(--font-display); font-size: 42px; font-weight: 500;
  margin-bottom: 24px; line-height: 1.15;
}
.content-block h3 {
  font-family: var(--font-display); font-size: 28px; font-weight: 500;
  margin-bottom: 16px;
}
.content-block p {
  font-size: 18px; color: var(--text-bark); line-height: 1.8; margin-bottom: 16px;
}
.content-block p:last-child { margin-bottom: 0; }

/* ── Specimen Grid ── */
.specimen-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px; max-width: 1100px; margin: 0 auto;
}
.specimen-card {
  text-align: center; padding: 32px 24px;
  background: var(--bg-ivory); border: 1px solid var(--border-linen);
  transition: border-color 0.3s; text-decoration: none; color: inherit;
  display: block;
}
.specimen-card:hover { border-color: var(--accent-hibiscus); }
.specimen-card img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 24px; }
.specimen-card .botanical {
  font-family: var(--font-body); font-style: italic; font-size: 15px;
  color: var(--text-bark); margin-bottom: 4px;
}
.specimen-card .common {
  font-family: var(--font-display); font-size: 24px; font-weight: 500; margin-bottom: 8px;
}
.specimen-card .origin {
  font-family: var(--font-label); font-size: 10px; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-bark); margin-bottom: 12px;
}
.specimen-card .benefit {
  font-family: var(--font-body); font-size: 16px; color: var(--text-bark); line-height: 1.5;
}

/* ── Buttons ── */
.btn {
  display: inline-block; font-family: var(--font-label);
  font-size: 12px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase;
  text-decoration: none; padding: 16px 36px;
  border: 2px solid var(--text-steep); color: var(--text-steep);
  background: transparent; cursor: pointer; transition: all 0.3s;
}
.btn:hover { background: var(--text-steep); color: var(--bg-cream); }
.btn--light { border-color: var(--bg-cream); color: var(--bg-cream); }
.btn--light:hover { background: var(--bg-cream); color: var(--text-steep); }

/* ── Flower Detail Page ── */
.flower-hero {
  padding: 120px 48px 80px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  max-width: 1200px; margin: 0 auto; align-items: center;
}
.flower-hero img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.flower-hero .botanical {
  font-family: var(--font-body); font-style: italic; font-size: 18px;
  color: var(--text-bark); margin-bottom: 8px;
}
.flower-hero h1 {
  font-family: var(--font-display); font-size: 56px; font-weight: 500;
  margin-bottom: 8px; line-height: 1.1;
}
.flower-hero .origin-label {
  font-family: var(--font-label); font-size: 11px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase; color: var(--text-bark);
  margin-bottom: 24px;
}
.flower-hero .description {
  font-size: 20px; color: var(--text-bark); line-height: 1.8; margin-bottom: 32px;
}

/* ── Benefits List ── */
.benefits-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px;
  max-width: 900px; margin: 0 auto;
}
.benefit-card {
  padding: 32px; background: var(--bg-ivory); border: 1px solid var(--border-linen);
}
.benefit-card h3 {
  font-family: var(--font-display); font-size: 22px; font-weight: 500; margin-bottom: 12px;
}
.benefit-card p {
  font-family: var(--font-body); font-size: 16px; color: var(--text-bark); line-height: 1.6;
}

/* ── Steep Instructions ── */
.steep-instructions {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.steep-instructions img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.steep-steps { list-style: none; counter-reset: steep; }
.steep-steps li {
  counter-increment: steep; padding: 16px 0;
  border-bottom: 1px solid var(--border-linen);
  font-size: 18px; color: var(--text-bark);
}
.steep-steps li::before {
  content: counter(steep) ".";
  font-family: var(--font-display); font-weight: 600; font-size: 24px;
  color: var(--text-steep); margin-right: 12px;
}

/* ── Related Flowers ── */
.related-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; max-width: 1100px; margin: 0 auto;
}

/* ── Category Page ── */
.category-hero {
  padding: 140px 48px 80px; text-align: center;
}
.category-hero .label {
  font-family: var(--font-label); font-size: 11px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px;
}
.category-hero h1 {
  font-family: var(--font-display); font-size: 52px; font-weight: 500;
  line-height: 1.15; margin-bottom: 20px;
}
.category-hero .subtitle {
  font-family: var(--font-body); font-size: 20px; font-style: italic;
  color: var(--text-bark); max-width: 600px; margin: 0 auto;
}

/* ── Contact ── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  max-width: 1000px; margin: 0 auto;
}
.contact-form label {
  display: block; font-family: var(--font-label); font-size: 11px;
  font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-bark); margin-bottom: 8px; margin-top: 24px;
}
.contact-form label:first-child { margin-top: 0; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 14px 16px; font-family: var(--font-body); font-size: 16px;
  background: var(--bg-ivory); border: 1px solid var(--border-linen);
  color: var(--text-steep); outline: none; transition: border-color 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent-hibiscus); }
.contact-form textarea { height: 160px; resize: vertical; }
.contact-form .btn { margin-top: 24px; }

/* ── Footer ── */
footer {
  position: relative; overflow: hidden; padding: 120px 48px 48px;
  color: var(--bg-cream);
}
footer .footer-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
footer .footer-overlay {
  position: absolute; inset: 0; background: rgba(43, 36, 32, 0.82); z-index: 1;
}
footer .footer-content {
  position: relative; z-index: 2; max-width: 1200px; margin: 0 auto;
}
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 80px;
}
.footer-brand {
  font-family: var(--font-display); font-size: 28px; font-weight: 600;
  color: var(--bg-cream); margin-bottom: 12px;
}
.footer-tagline {
  font-family: var(--font-body); font-style: italic; font-size: 16px;
  color: var(--border-linen); max-width: 300px;
}
.footer-col h4 {
  font-family: var(--font-label); font-size: 11px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase; color: var(--border-linen); margin-bottom: 20px;
}
.footer-col a {
  display: block; font-family: var(--font-body); font-size: 16px;
  color: var(--bg-petal); text-decoration: none; margin-bottom: 10px; transition: color 0.3s;
}
.footer-col a:hover { color: var(--accent-saffron); }
.footer-bottom {
  border-top: 1px solid rgba(212, 201, 181, 0.3); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p {
  font-family: var(--font-label); font-size: 11px; letter-spacing: 1px; color: var(--border-linen);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .section, .page-hero, .flower-hero, .category-hero { padding-left: 24px; padding-right: 24px; }
  .page-hero h1, .category-hero h1 { font-size: 36px; }
  .flower-hero { grid-template-columns: 1fr; padding-top: 100px; }
  .flower-hero h1 { font-size: 40px; }
  .specimen-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .split, .split--reverse, .steep-instructions, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .benefits-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { flex-direction: column; gap: 40px; }
  .content-block h2 { font-size: 32px; }
  .section-header h2 { font-size: 32px; }
}
