/* ============================================================
   GARDEN ORCHID UK — DESIGN SYSTEM
   Palette derived from hero: Cypripedium Ulla Silkens garden
   Art Direction: Mara / Vilna Gaon — 2026-06-14
   ============================================================ */

:root {
  /* Primary greens — from foliage in hero image */
  --color-sage:      #4a6741;   /* Sage Foliage — primary brand green */
  --color-woodland:  #2d6a4f;   /* Deep Woodland — footer, hover states */

  /* Accents — from the Cypripedium bloom and planting */
  --color-crimson:   #6b1a2a;   /* Pouch Crimson — brand signature accent */
  --color-lavender:  #7b6ba8;   /* Salvia Lavender — secondary accent */
  --color-gold:      #b8860b;   /* Cypripedium Gold — price display */

  /* Neutrals — from limestone path, sky, pouch */
  --color-ivory:     #f5f2ec;   /* Ivory Pouch — page background */
  --color-charcoal:  #1c1c1c;   /* Body text */
  --color-grey:      #7a7469;   /* Herbarium Grey — muted text */
  --color-limestone: #b8a98a;   /* Limestone Path — card borders */
  --color-border:    #ccc4b8;   /* Pressed Leaf — hairline rules */
  --color-haze:      #c8cfd6;   /* Morning Haze — atmospheric fills */

  /* Status */
  --color-error:     #9b2335;   /* Error only — out-of-stock, validation */

  /* Legacy aliases for backward compatibility */
  --green:       var(--color-sage);
  --green-light: #5a7d50;
  --cream:       var(--color-limestone);
  --text:        var(--color-charcoal);
  --muted:       var(--color-grey);
  --border:      var(--color-border);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    Georgia, 'Times New Roman', serif;
  --font-ui:      'Jost', system-ui, sans-serif;

  /* Type scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.5rem;
  --text-2xl:  2.25rem;
  --text-3xl:  3rem;

  /* Layout */
  --max:       1100px;
  --max-prose:  680px;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-charcoal);
  background: var(--color-ivory);
  line-height: 1.7;
  font-size: var(--text-base);
}

a { color: var(--color-sage); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* Accent utilities from Mara palette */
.accent-rule { display: block; width: 2rem; height: 2px; background: var(--color-crimson); margin: .75rem auto; }
.badge--featured { background: var(--color-crimson); color: #fff; font-family: var(--font-ui); font-size: .7rem; padding: .15rem .5rem; border-radius: 2px; letter-spacing: .05em; text-transform: uppercase; }
.badge--new { background: var(--color-lavender); color: #fff; font-family: var(--font-ui); font-size: .7rem; padding: .15rem .5rem; border-radius: 2px; letter-spacing: .05em; text-transform: uppercase; }

/* Layout */
main { max-width: var(--max); margin: 0 auto; padding: 2rem 1rem 4rem; }
main.main--home { max-width: 100%; padding: 0; }
main.main--home > *:not(.hero--image) { max-width: var(--max); margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
main.main--home > .genus-grid,
main.main--home > .featured,
main.main--home > .guides-preview { padding-top: 2rem; padding-bottom: 2rem; }

/* Header / Nav */
.site-header {
  background: var(--green);
  color: #fff;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.site-logo { color: #fff; font-size: 1.25rem; font-weight: bold; letter-spacing: .02em; }
.site-header nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-header nav a { color: rgba(255,255,255,.9); font-size: .9rem; font-family: sans-serif; }
.site-header nav a:hover { color: #fff; text-decoration: none; }

/* Footer */
.site-footer {
  background: var(--color-woodland);
  border-top: none;
  text-align: center;
  padding: 2rem 1rem;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.72);
  font-family: var(--font-ui);
}
.site-footer strong { color: #fff; }
.site-footer nav { margin: .5rem 0; }
.site-footer nav a { color: rgba(255,255,255,0.6); }
.site-footer nav a:hover { color: #fff; text-decoration: none; }
.site-footer p.small { color: rgba(255,255,255,0.4); }

/* Hero */
.hero {
  background: var(--cream);
  border-radius: 8px;
  padding: 3rem 2rem;
  text-align: center;
  margin-bottom: 3rem;
}
.hero h1 { font-size: 2rem; color: var(--green); margin-bottom: .75rem; }
.hero p { font-size: 1.1rem; color: var(--muted); max-width: 600px; margin: 0 auto 1.5rem; }

/* Hero with background image */
.hero--image {
  position: relative;
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  margin-bottom: 0;
  padding: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 30, 18, 0.55) 0%,
    rgba(10, 30, 18, 0.70) 60%,
    rgba(10, 30, 18, 0.85) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 1.5rem;
  max-width: 720px;
  margin: 0 auto;
}
.hero--image h1 {
  font-size: 2.75rem;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  line-height: 1.2;
}
.hero--image p {
  color: rgba(255,255,255,0.88);
  font-size: 1.15rem;
  max-width: 580px;
  margin: 0 auto 1.25rem;
}
.hero-meta {
  font-family: sans-serif;
  font-size: .875rem !important;
  color: rgba(255,255,255,0.65) !important;
  letter-spacing: .03em;
  margin-bottom: 2rem !important;
}
.hero--image .btn {
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.7);
  color: #fff;
  backdrop-filter: blur(4px);
  font-size: 1rem;
  padding: .8rem 2rem;
  letter-spacing: .03em;
}
.hero--image .btn:hover {
  background: rgba(255,255,255,0.28);
  text-decoration: none;
}
@media (max-width: 600px) {
  .hero--image { min-height: 420px; background-position: 60% center; }
  .hero--image h1 { font-size: 1.9rem; }
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: .65rem 1.5rem;
  border-radius: 4px;
  font-family: sans-serif;
  font-size: .95rem;
  transition: background .2s;
}
.btn:hover { background: var(--green-light); text-decoration: none; }
.btn-primary { font-size: 1rem; padding: .8rem 2rem; }

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

/* Product card */
.product-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow .2s;
}
.product-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.product-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.product-card__body { padding: .875rem; }
.product-card__body h3 { font-size: .95rem; margin-bottom: .25rem; }
.product-card__body h3 a { color: var(--text); }
.genus-tag { display: inline-block; font-size: .75rem; color: var(--green); font-family: sans-serif; font-style: italic; }
.price { margin-top: .5rem; font-family: sans-serif; }
.price s.was, .price-was { color: var(--color-grey); font-size: .875rem; }
.price strong, .price-now strong { color: var(--color-gold); font-size: 1.1rem; }

/* Product single */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 2rem 0;
}
@media (max-width: 700px) { .product-layout { grid-template-columns: 1fr; } }
.product-image img { width: 100%; border-radius: 6px; }
.product-info h1 { font-size: 1.75rem; color: var(--green); margin-bottom: .5rem; }
.price-block { margin: 1rem 0; }
.price-now strong { font-size: 1.5rem; }
.product-description { margin: 1.5rem 0; }
.product-full-description { margin-top: 3rem; border-top: 1px solid var(--border); padding-top: 2rem; }
.product-full-description h2, .product-full-description h3 { margin: 1.5rem 0 .5rem; color: var(--green); }
.sku.small { font-size: .8rem; color: var(--muted); font-family: sans-serif; margin-top: 1rem; }

/* Genus grid */
.genus-grid, .genera-list { margin: 2rem 0; }
.genus-grid h2, .genus-list h2 { margin-bottom: 1rem; }
.grid, .genus-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
.genus-card {
  display: flex; flex-direction: column; gap: .25rem;
  border: 1px solid var(--border); border-radius: 6px;
  padding: 1rem; text-align: center;
  color: var(--text); transition: border-color .2s;
}
.genus-card:hover { border-color: var(--green); text-decoration: none; }
.genus-card strong { font-style: italic; color: var(--green); }
.genus-card span { font-size: .8rem; color: var(--muted); font-family: sans-serif; }

/* Filter bar */
.filter-bar { margin: 1rem 0 1.5rem; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; font-family: sans-serif; font-size: .875rem; }
.genus-pill { background: var(--cream); border: 1px solid var(--border); border-radius: 999px; padding: .2rem .75rem; color: var(--text); }
.genus-pill:hover { border-color: var(--green); text-decoration: none; }

/* Breadcrumb */
.breadcrumb { font-size: .85rem; color: var(--muted); font-family: sans-serif; margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); }

/* Related orchids */
.related-orchids { margin-top: 3rem; border-top: 1px solid var(--border); padding-top: 2rem; }
.related-orchids h2 { margin-bottom: 1rem; }

/* Content pages */
.content-page h1 { color: var(--green); margin-bottom: 1.5rem; }
.prose h2, .prose h3 { color: var(--green); margin: 2rem 0 .5rem; }
.prose p { margin-bottom: 1rem; }
.prose ul { padding-left: 1.5rem; margin-bottom: 1rem; }

/* Post list */
.post-list { list-style: none; }
.post-list li { padding: .5rem 0; border-bottom: 1px solid var(--border); display: flex; gap: 1rem; align-items: baseline; font-family: sans-serif; }
.post-list time { color: var(--muted); font-size: .85rem; white-space: nowrap; }

/* Guides / featured */
.guides-preview, .featured { margin: 3rem 0; }
.guides-preview h2, .featured h2 { margin-bottom: 1rem; }
.guides-preview ul { list-style: none; }
.guides-preview li { padding: .35rem 0; border-bottom: 1px solid var(--border); }

.small { font-size: .85rem; }

/* T&M affiliate product variants */
.variant-list { display: flex; flex-direction: column; gap: .5rem; margin: 1rem 0; }
.variant-label { font-family: sans-serif; font-size: .85rem; color: var(--muted); margin-bottom: .25rem; }
.btn-variant {
  display: flex; align-items: center; gap: .5rem;
  background: #1a5276; color: #fff;
  padding: .6rem 1.25rem; border-radius: 4px;
  font-family: sans-serif; font-size: .9rem;
  transition: background .2s; text-decoration: none;
}
.btn-variant:hover { background: #1f618d; text-decoration: none; }
.was-small { font-size: .8rem; opacity: .7; }
.merchant-note { color: var(--muted); margin-top: .75rem; }
.merchant-badge {
  display: inline-block; font-size: .7rem; font-family: sans-serif;
  background: #eaf2ff; color: #1a5276; border: 1px solid #bbd4f0;
  border-radius: 3px; padding: .1rem .4rem; margin-top: .25rem;
}
.price-from { font-family: sans-serif; }
