/* ============================================================
   ANTHAN — Botanical Showcase Framework
   Design system: warm ivory + forest green + anthurium red
   ============================================================ */

:root {
  /* Palette */
  --ivory: #FBF8F3;
  --cream: #F3EDE2;
  --surface: #FFFFFF;
  --forest: #2D4A3E;
  --forest-deep: #1F352B;
  --sage: #8FA68E;
  --anthurium: #B5414E;
  --anthurium-soft: #D98A93;
  --ink: #1C1C1A;
  --muted: #6B6B63;
  --line: #E3DCCC;

  /* Type */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --maxw: 1200px;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(31, 53, 43, 0.06);
  --shadow-md: 0 14px 40px rgba(31, 53, 43, 0.10);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--forest-deep); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--anthurium);
  font-weight: 500;
}

.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  font-weight: 500;
}
.btn--primary { background: var(--forest); color: #fff; }
.btn--primary:hover { background: var(--forest-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn--ghost:hover { background: var(--forest); color: #fff; }
.btn--light { background: #fff; color: var(--forest); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 32px;
  transition: all 0.35s var(--ease);
}
.site-header.scrolled {
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 14px 32px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__name { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; color: var(--ivory); letter-spacing: 0.04em; transition: color 0.3s; }
.site-header.scrolled .brand__name { color: var(--forest-deep); }
.brand__logo { width: 40px; height: 40px; }

.nav { display: flex; gap: 36px; align-items: center; }
.nav a {
  font-size: 0.84rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ivory);
  position: relative; padding: 4px 0; transition: color 0.3s;
}
.site-header.scrolled .nav a { color: var(--forest-deep); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1.5px;
  background: var(--anthurium); transition: width 0.3s var(--ease);
}
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav__toggle span { width: 26px; height: 2px; background: var(--ivory); transition: 0.3s; }
.site-header.scrolled .nav__toggle span { background: var(--forest-deep); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(135deg, var(--forest-deep) 0%, var(--forest) 55%, #34524a 100%);
  overflow: hidden; color: #fff;
}
.hero__bg { position: absolute; inset: 0; opacity: 0.18; background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.25) 0, transparent 40%), radial-gradient(circle at 80% 70%, rgba(143,166,142,0.3) 0, transparent 45%); }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 120px 24px 60px; }
.hero__eyebrow { color: var(--anthurium-soft); }
.hero h1 { color: #fff; font-size: clamp(2.8rem, 6vw, 5rem); margin: 18px 0 22px; }
.hero h1 em { font-style: italic; color: var(--anthurium-soft); }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,0.82); max-width: 460px; margin-bottom: 34px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__art { display: flex; justify-content: center; position: relative; }
.hero__art img { width: min(360px, 80%); filter: drop-shadow(0 30px 50px rgba(0,0,0,0.35)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-16px);} }
.hero__scroll { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.6); }

/* Photo hero variant — real leaf photo blended into brand palette */
.hero--photo { background: url("../img/hero-leaf.jpg") center 38% / cover no-repeat; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(31,53,43,0.95) 0%,
    rgba(31,53,43,0.86) 35%,
    rgba(31,53,43,0.48) 68%,
    rgba(31,53,43,0.18) 100%);
}
.hero--photo .hero__inner { position: relative; z-index: 1; }

/* ---------- Section heading ---------- */
.sec-head { max-width: 640px; margin-bottom: 48px; }
.sec-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 14px 0 16px; }
.sec-head p { color: var(--muted); font-size: 1.05rem; }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Philosophy / intro ---------- */
.intro { background: var(--cream); }
.intro__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.intro__text p { color: var(--muted); font-size: 1.08rem; margin-bottom: 18px; }
.intro__media { border-radius: var(--radius); overflow: hidden; background: var(--cream); aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; box-shadow: 0 26px 60px -34px rgba(45,74,62,0.5); }
.intro__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }

/* ---------- Pillars ---------- */
.pillars { background: var(--ivory); }
.pillars__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 30px; transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.pillar__num { font-family: var(--serif); font-size: 2.4rem; color: var(--anthurium); line-height: 1; }
.pillar h3 { font-size: 1.5rem; margin: 14px 0 10px; }
.pillar p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Featured plants (home) ---------- */
.featured { background: var(--cream); }
.plant-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.plant-card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); transition: transform 0.4s var(--ease), box-shadow 0.4s;
  cursor: pointer;
}
.plant-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.plant-card__media { aspect-ratio: 1/1; background: var(--ivory); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.plant-card__media img { width: 78%; transition: transform 0.5s var(--ease); }
.plant-card:hover .plant-card__media img { transform: scale(1.06) rotate(-2deg); }
.plant-card__count { position: absolute; top: 14px; left: 14px; background: rgba(45,74,62,0.92); color: #fff; font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; }
/* Multi-plant strip: one thumbnail per distinct plant + a count label.
   Makes it obvious at a glance how many different plants the series holds. */
.plant-card__plants { position: absolute; bottom: 12px; left: 12px; display: flex; align-items: center; gap: 6px; background: rgba(251,248,243,0.85); backdrop-filter: blur(2px); border-radius: 999px; padding: 5px 10px 5px 6px; }
.plant-card__plant { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.18); flex: 0 0 auto; }
.plant-card__plant img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plant-card__plant.active { border-color: var(--anthurium); }
.plant-card__plants-label { font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--forest); padding: 0 4px 0 2px; }
.plant-card__body { padding: 22px 24px 26px; }
.plant-card__name { font-size: 1.4rem; }
.plant-card__common { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--anthurium); margin-top: 4px; }

/* ---------- Plants page filters ---------- */
.page-hero { background: linear-gradient(135deg, var(--forest-deep), var(--forest)); color: #fff; padding: 160px 0 90px; text-align: center; }
.page-hero .eyebrow { color: var(--anthurium-soft); }
.page-hero h1 { color: #fff; font-size: clamp(2.6rem, 5vw, 4rem); margin: 14px 0; }
.page-hero p { color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto; }
.collection-note {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--anthurium);
  border-radius: var(--radius-sm); padding: 20px 24px; color: var(--muted); font-size: 0.97rem;
  margin-bottom: 40px; max-width: 820px;
}
.collection-note .eyebrow { display: block; margin-bottom: 6px; }
.collection-note strong { color: var(--forest-deep); }
.plant-grid--page { grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---------- Contact ---------- */
.contact { background: var(--ivory); text-align: center; }
.contact__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Coming soon ---------- */
.coming-soon { text-align: center; max-width: 620px; margin: 0 auto; padding: 40px 0; }
.coming-soon h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 12px 0 18px; }
.coming-soon p { color: var(--muted); font-size: 1.1rem; margin-bottom: 28px; }
.coming-soon__meta { font-size: 0.85rem; color: var(--sage); letter-spacing: 0.03em; margin: -12px 0 28px; }

/* ---- EU / NL reassurance (local trust signals) ---- */
.assurance { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; margin-top: 32px; }
.assurance span {
  font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.02em;
  color: var(--muted); background: var(--surface); border: 1px solid var(--line);
  padding: 8px 16px; border-radius: 999px;
}
.footer-locale {
  margin: 14px 0 4px; font-size: 0.84rem; letter-spacing: 0.04em;
  color: var(--sage);
}

/* ---------- Newsletter ---------- */
.newsletter { background: var(--forest); color: #fff; text-align: center; }
.newsletter h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.newsletter p { color: rgba(255,255,255,0.8); max-width: 480px; margin: 14px auto 30px; }
.newsletter__form { display: flex; gap: 12px; max-width: 460px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.newsletter__form input { flex: 1; min-width: 220px; padding: 14px 20px; border-radius: 999px; border: none; font-family: var(--sans); font-size: 0.95rem; }
.newsletter__form input:focus { outline: 2px solid var(--anthurium-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-deep); color: rgba(255,255,255,0.78); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand__name { color: #fff; }
.footer-brand p { margin: 16px 0; font-size: 0.95rem; max-width: 280px; }
.footer-col h4 { color: #fff; font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col a { display: block; font-size: 0.92rem; margin-bottom: 10px; transition: color 0.3s; }
.footer-col a:hover { color: var(--anthurium-soft); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; }
.footer-legal span { display: block; font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-bottom: 6px; line-height: 1.5; }

/* ---------- Legal pages (privacy / terms) ---------- */
.legal { max-width: 760px; }
.legal__updated { font-size: 0.85rem; color: var(--sage); letter-spacing: 0.03em; margin-bottom: 8px; }
.legal h2 { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--forest-deep); margin: 34px 0 12px; }
.legal h2:first-of-type { margin-top: 8px; }
.legal p, .legal li { color: var(--muted); font-size: 1rem; line-height: 1.7; margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--anthurium); }
.legal a:hover { color: var(--forest); }
.legal strong { color: var(--forest-deep); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(20,30,25,0.6); backdrop-filter: blur(4px); }
.modal__panel { position: relative; background: var(--surface); border-radius: var(--radius); max-width: 820px; width: 100%; max-height: 90vh; overflow: auto; display: grid; grid-template-columns: 1fr 1fr; box-shadow: var(--shadow-md); animation: pop 0.35s var(--ease); }
@keyframes pop { from { transform: scale(0.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal__media { background: var(--ivory); display: flex; align-items: center; justify-content: center; padding: 40px; }
.modal__media img { width: 80%; }
/* Multi-parent gallery inside the modal */
.gallery { width: 100%; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.gallery__main { position: relative; width: 100%; display: flex; align-items: center; justify-content: center; }
.gallery__main img { width: 86%; max-height: 48vh; object-fit: contain; }
.gallery__main__num { position: absolute; top: 0; left: 0; width: 34px; height: 34px; border-radius: 50%; background: rgba(181,65,78,0.92); color: #fff; font-family: var(--serif); font-size: 1.05rem; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.gallery__caption { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-align: center; }
.gallery__thumbs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.gallery__thumb { position: relative; width: 62px; height: 62px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: none; cursor: pointer; padding: 0; transition: border-color 0.25s var(--ease); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb__num { position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: rgba(181,65,78,0.92); color: #fff; font-family: var(--serif); font-size: 0.62rem; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.gallery__thumb.active { border-color: var(--anthurium); }
.gallery__thumb:hover { border-color: var(--sage); }
.modal__body { padding: 40px 36px; }
.modal__body .eyebrow { margin-bottom: 8px; display: block; }
.modal__body h3 { font-size: 2rem; margin-bottom: 6px; }
.modal__meta { display: flex; gap: 18px; flex-wrap: wrap; margin: 18px 0; }
.modal__meta div { font-size: 0.86rem; }
.modal__meta span { display: block; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.modal__body p { color: var(--muted); font-size: 0.98rem; margin-bottom: 16px; }
.modal__spec-name { font-family: var(--serif); color: var(--forest-deep); font-size: 1.18rem; font-style: italic; margin-bottom: 6px !important; }
.modal__spec-desc { margin-bottom: 18px !important; }
/* VARIETY-level description — visually distinct from the per-plant note */
.modal__series { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; margin: 4px 0 20px; }
.modal__series-tag { display: block; font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--anthurium); margin-bottom: 8px; }
.modal__series-desc { font-size: 0.96rem; color: var(--forest); line-height: 1.6; }
.modal__series-desc.is-empty { color: var(--sage); font-style: italic; }
/* Plant selector: one chip per distinct plant, with its thumbnail */
.plant-chips { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 20px; }
.plant-chip { display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px; cursor: pointer; transition: all 0.3s var(--ease); width: 76px; }
.plant-chip img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 8px; }
.plant-chip span { font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.plant-chip:hover { border-color: var(--forest); }
.plant-chip.active { border-color: var(--anthurium); background: #fff; box-shadow: 0 4px 14px rgba(181,65,78,0.18); }
.plant-chip.active span { color: var(--anthurium); }
.modal__note { font-size: 0.9rem; color: var(--sage); font-style: italic; margin-bottom: 22px !important; }
.modal__close { position: absolute; top: 14px; right: 16px; background: var(--ivory); border: none; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; color: var(--forest); transition: 0.3s; }
.modal__close:hover { background: var(--cream); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; padding-top: 130px; }
  .hero--photo { background-position: center 30%; }
  .hero__overlay { background: linear-gradient(180deg, rgba(31,53,43,0.88) 0%, rgba(31,53,43,0.80) 100%); }
  .hero__art { order: -1; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .intro__grid { grid-template-columns: 1fr; }
  .pillars__grid { grid-template-columns: 1fr; }
  .plant-grid, .plant-grid--page { grid-template-columns: repeat(2, 1fr); }
  .modal__panel { grid-template-columns: 1fr; }
  .modal__media { padding: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav { position: fixed; top: 0; right: 0; height: 100vh; width: 70%; max-width: 300px; background: var(--forest-deep); flex-direction: column; justify-content: center; gap: 28px; transform: translateX(100%); transition: transform 0.4s var(--ease); padding: 40px; }
  .nav.open { transform: translateX(0); }
  .nav a { color: #fff !important; font-size: 1rem; }
  .nav__toggle { display: flex; z-index: 110; }
  .plant-grid, .plant-grid--page { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
