/*
Theme Name: Understory
Theme URI: https://example.com
Author: Understory
Author URI: https://example.com
Description: A soft, editorial WordPress theme for an indoor plants business. Every homepage section is Customizer-driven -- text, images, buttons, and visibility all adjustable from Appearance > Customize.
Version: 3.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: understory
Tags: custom-menu, custom-logo, translation-ready
*/

/* ==========================================================================
   0. DESIGN TOKENS
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #eef6e1;
  --bg-alt-deep: #e3efd2;
  --white: #ffffff;
  --ink: #22301f;
  --ink-soft: #6b7573;
  --ink-faint: #98a196;
  --forest: #1e3a29;
  --forest-soft: #365241;
  --olive: #7e9c5e;
  --olive-deep: #6a8750;
  --olive-pale: #d9e7c8;
  --line: #e3ead6;
  --card-shadow: 0 24px 48px -28px rgba(30, 58, 41, 0.22);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.75rem, 1.5rem + 1vw, 2.35rem);
  --step-3: clamp(2.2rem, 1.8rem + 2vw, 3.1rem);
  --step-4: clamp(2.5rem, 1.9rem + 3.2vw, 4rem);

  --content-width: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius-sm: 8px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   1. RESET
   ========================================================================== */

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

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; margin: 0; padding: 0; }
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.site-main { display: block; }

/* ==========================================================================
   2. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--forest);
}
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
p { color: var(--ink-soft); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--olive-deep);
  margin-bottom: 0.5em;
}

.lede { font-size: clamp(1.02rem, 1rem + 0.3vw, 1.15rem); color: var(--ink-soft); max-width: 48ch; }

/* ==========================================================================
   3. LAYOUT HELPERS
   ========================================================================== */

.wrap { max-width: var(--content-width); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.25rem, 6vw, 6rem); position: relative; }
.section--alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin-inline: auto; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head.is-left { text-align: left; margin-inline: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.85em 1.8em;
  border-radius: var(--radius-pill);
  transition: transform 0.35s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow .3s var(--ease);
  border: 1px solid transparent;
}
.btn--primary { background: var(--olive); color: var(--white); }
.btn--primary:hover { background: var(--olive-deep); transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(126,156,94,0.55); }
.btn--dark { background: var(--forest); color: var(--white); }
.btn--dark:hover { background: var(--forest-soft); transform: translateY(-2px); }
.btn--ghost { border-color: var(--olive); color: var(--forest); }
.btn--ghost:hover { background: var(--olive); color: var(--white); }
.btn--white { background: var(--white); color: var(--forest); }
.btn--white:hover { background: var(--olive-pale); }
.btn--text { padding: 0; border-radius: 0; color: var(--forest-soft); font-weight: 600; border-bottom: 2px solid var(--olive-pale); }
.btn--text:hover { border-color: var(--olive); }

/* ==========================================================================
   4. HEADER / NAV
   ========================================================================== */

.site-header { background: var(--bg-alt); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; padding-block: 1.35rem; gap: 1.5rem; }

.site-branding { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--forest); min-width: 0; }
.site-branding .custom-logo-link { display: inline-flex; align-items: center; }
.site-branding img { max-height: 34px; width: auto; height: auto; aspect-ratio: auto; object-fit: contain; }
.site-branding .mark { width: 26px; height: 26px; color: var(--olive); flex-shrink: 0; }

.primary-nav ul { display: flex; align-items: center; gap: clamp(1.25rem, 2vw, 2.25rem); }
.primary-nav li { position: relative; }
.primary-nav a { font-size: 0.92rem; font-weight: 500; color: var(--ink); display: flex; align-items: center; gap: 0.3rem; padding: 0.4em 0; }
.primary-nav a:hover, .primary-nav a.current { color: var(--olive-deep); }

.primary-nav .menu-item-has-children > a::after {
  content: ""; width: 7px; height: 7px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); margin-left: 0.15rem; margin-top: -3px;
}
.primary-nav .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 190px;
  background: var(--white); border-radius: var(--radius-sm);
  box-shadow: var(--card-shadow);
  padding: 0.5rem; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.primary-nav li:hover > .sub-menu,
.primary-nav li.sub-menu-open > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-nav .sub-menu a { padding: 0.55em 0.75em; border-radius: 6px; display: block; }
.primary-nav .sub-menu a:hover { background: var(--bg-alt); }
.primary-nav .sub-menu li { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 0.85rem; flex-shrink: 0; }
.nav-toggle {
  display: none; position: relative; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; width: 42px; height: 42px; border-radius: 50%; background: var(--white);
  border: 1px solid var(--line); transition: background .3s var(--ease), border-color .3s var(--ease);
  flex-shrink: 0;
}
.nav-toggle:hover { background: var(--olive-pale); border-color: var(--olive-pale); }
.nav-toggle span { height: 2px; width: 18px; background: var(--forest); border-radius: 2px; display: block; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .site-header__inner { padding-block: 1rem; gap: 1rem; }
  .site-branding { font-size: 1.25rem; }
  .site-branding img { max-height: 28px; }
  .header-actions .btn--dark { padding: 0.7em 1.3em; font-size: 0.85rem; }

  .primary-nav {
    position: fixed; inset: 0 0 0 22%;
    background: var(--white);
    padding: 6rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
    overflow-y: auto;
    box-shadow: -20px 0 50px -20px rgba(30, 58, 41, 0.25);
  }
  .primary-nav.is-open { transform: translateX(0); }
  .primary-nav ul { flex-direction: column; align-items: flex-start; gap: 0.25rem; width: 100%; }
  .primary-nav a { font-size: 1.05rem; width: 100%; padding: 0.65em 0; }
  .primary-nav .sub-menu {
    position: static; box-shadow: none; opacity: 1; visibility: visible; transform: none;
    display: none; padding-left: 1rem; margin-bottom: 0.5rem;
  }
  .primary-nav li.sub-menu-open .sub-menu { display: block; }
  .nav-toggle { display: flex; }
}

@media (max-width: 420px) {
  .header-actions .btn--dark { padding: 0.6em 1em; font-size: 0.78rem; }
}

/* ==========================================================================
   5. HERO
   ========================================================================== */

.hero { background: var(--bg-alt); padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(4rem, 8vw, 6rem); }
.hero__inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

.hero h1 { font-size: var(--step-4); margin-block: 0.5rem 1.1rem; }
.hero__actions { margin-top: 2rem; }

.hero__figure { position: relative; aspect-ratio: 5/4; }
.hero__photo {
  position: absolute; inset: 0 8% 0 0;
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo .leaf-line { width: 34%; height: 34%; color: var(--olive-pale); position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); }

.hero__photo-2 {
  position: absolute; right: -6%; bottom: -10%;
  width: 32%; aspect-ratio: 1/1;
  border-radius: 50%;
  background: var(--forest-soft);
  overflow: hidden;
  border: 7px solid var(--bg-alt);
  box-shadow: var(--card-shadow);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.hero__photo-2 img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo-2 .leaf-line { width: 38%; height: 38%; color: var(--olive-pale); }

.deco-ring { position: absolute; width: 70px; height: 70px; top: 4%; right: 12%; color: var(--olive); opacity: 0.55; }
.dot-grid { position: absolute; width: 90px; height: 90px; color: var(--olive); opacity: 0.45; }
.hero .dot-grid { top: -6%; right: 0; }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__figure { max-width: 420px; margin-inline: auto; margin-top: 1rem; }
}

/* ==========================================================================
   6. ABOUT
   ========================================================================== */

.about__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about__figure { position: relative; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; }
.about__figure::before {
  content: ""; position: absolute; inset: 6%;
  background: var(--bg-alt); border-radius: 50%; z-index: 0;
}
.about__photo {
  position: relative; z-index: 1;
  width: 84%; aspect-ratio: 1/1; border-radius: 50%;
  background: var(--white); box-shadow: var(--card-shadow);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__photo .leaf-line { width: 32%; height: 32%; color: var(--olive-pale); }

.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.feature-item { display: flex; align-items: flex-start; gap: 0.9rem; }
.feature-item__icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--olive); color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.feature-item__icon svg { width: 20px; height: 20px; }
.feature-item h3 { font-size: 1.02rem; margin-bottom: 0.25rem; }
.feature-item p { font-size: 0.88rem; margin: 0; }
.feature-row--no-icons .feature-item { display: block; }

@media (max-width: 860px) {
  .about__inner { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   7. COMFORT (mirrored image + text)
   ========================================================================== */

.comfort__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.comfort__figure { position: relative; aspect-ratio: 1/1; }
.comfort__photo {
  position: relative; z-index: 1;
  width: 80%; aspect-ratio: 4/5; border-radius: var(--radius-lg);
  background: var(--white); box-shadow: var(--card-shadow);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  margin-inline: auto;
}
.comfort__photo img { width: 100%; height: 100%; object-fit: cover; }
.comfort__photo .leaf-line { width: 34%; height: 34%; color: var(--olive-pale); }
.comfort .dot-grid { top: 0; left: 0; }
.comfort .deco-ring { bottom: 4%; right: 8%; width: 56px; height: 56px; }

@media (max-width: 860px) { .comfort__inner { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .comfort__figure { order: -1; max-width: 340px; margin-inline: auto; } }

/* ==========================================================================
   8. PLANT CATEGORIES
   ========================================================================== */

.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.25rem); }
.category-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; text-align: center;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--card-shadow); }
.category-card__media {
  width: 120px; height: 120px; margin-inline: auto; margin-bottom: 1.5rem;
  border-radius: 50%; background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.category-card__media img { width: 100%; height: 100%; object-fit: cover; }
.category-card__media .leaf-line { width: 40%; height: 40%; color: var(--olive); }
.category-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.category-card p { font-size: 0.88rem; margin-bottom: 1.5rem; }

@media (max-width: 780px) { .category-grid { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; } }

/* ==========================================================================
   9. PROMO BANNER
   ========================================================================== */

.promo { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 340px; display: flex; align-items: center; background: var(--forest-soft); }
.promo__bg { position: absolute; inset: 0; }
.promo__bg img { width: 100%; height: 100%; object-fit: cover; }
.promo__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30,58,41,0.55), rgba(30,58,41,0.15)); }
.promo__bg .leaf-line { width: 100%; height: 100%; padding: 15%; color: rgba(255,255,255,0.12); }
.promo__content { position: relative; z-index: 1; padding: clamp(2.5rem, 6vw, 4rem); max-width: 480px; }
.promo__badge {
  display: inline-block; background: var(--olive); color: var(--white);
  font-size: 0.8rem; font-weight: 600; padding: 0.5em 1.1em; border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
}
.promo__content h2 { color: var(--white); font-size: var(--step-3); }
.promo__content p { color: rgba(255,255,255,0.82); margin-block: 1rem 1.75rem; }

/* ==========================================================================
   10. SERVICES
   ========================================================================== */

.services__inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.services__figure { position: relative; aspect-ratio: 4/5; }
.services__photo {
  width: 100%; height: 100%; border-radius: var(--radius-lg);
  background: var(--bg-alt); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.services__photo img { width: 100%; height: 100%; object-fit: cover; }
.services__photo .leaf-line { width: 34%; height: 34%; color: var(--olive); }
.services .dot-grid { top: -6%; left: -6%; color: var(--forest-soft); opacity: 0.35; }

.service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.25rem; }
.service-item { border-top: 2px solid var(--forest); padding-top: 1.1rem; }
.service-item h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.service-item p { font-size: 0.9rem; margin-bottom: 0.75rem; }
.service-item a { font-size: 0.85rem; font-weight: 600; color: var(--olive-deep); display: inline-flex; align-items: center; gap: 0.4em; }

@media (max-width: 860px) { .services__inner { grid-template-columns: 1fr; } .service-list { grid-template-columns: 1fr; } }

/* ==========================================================================
   11. SHOP / EXPLORE CTA
   ========================================================================== */

.explore-cta { text-align: center; }
.explore-cta h2 { font-size: var(--step-3); margin-block: 0.5rem 1.75rem; }

/* ==========================================================================
   12. TESTIMONIAL
   ========================================================================== */

.testimonial-card {
  max-width: 720px; margin-inline: auto;
  background: var(--white); border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4rem); text-align: center;
  position: relative; box-shadow: var(--card-shadow);
}
.testimonial-card .quote-mark { width: 40px; height: 30px; color: var(--olive-pale); margin-inline: auto; }
.testimonial-card .quote-mark--end { transform: rotate(180deg); margin-top: 1.5rem; }
.testimonial-card__avatar {
  width: 62px; height: 62px; border-radius: 50%; margin-inline: auto 1rem;
  background: var(--bg-alt); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; color: var(--forest); font-size: 1.4rem;
}
.testimonial-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-card p.quote { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem); color: var(--ink); margin-block: 1.25rem; max-width: 52ch; margin-inline: auto; }
.testimonial-card strong { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--forest); }
.testimonial-card span { font-size: 0.85rem; color: var(--ink-faint); }

/* ==========================================================================
   13. CLIENT LOGOS
   ========================================================================== */

.logo-strip { background: var(--bg-alt); padding-block: clamp(2rem, 4vw, 3rem); }
.logo-row { display: flex; align-items: center; justify-content: space-around; flex-wrap: wrap; gap: 2rem; }
.logo-row span {
  font-family: var(--font-display); font-size: 1.15rem; color: var(--forest-soft);
  opacity: 0.55; display: flex; align-items: center; gap: 0.4rem;
}
.logo-row span svg { width: 18px; height: 18px; }

/* ==========================================================================
   14. GALLERY
   ========================================================================== */

.gallery__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.gallery__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.gallery__photos a:first-child { margin-top: 2rem; }
.gallery__photo {
  aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-alt); display: flex; align-items: center; justify-content: center;
}
.gallery__photo img { width: 100%; height: 100%; object-fit: cover; }
.gallery__photo .leaf-line { width: 34%; height: 34%; color: var(--olive); }

@media (max-width: 860px) {
  .gallery__inner { grid-template-columns: 1fr; }
  .gallery__photos { order: 2; max-width: 340px; margin-inline: auto; }
}

/* ==========================================================================
   15. FOOTER
   ========================================================================== */

.site-footer { background: var(--bg-alt); padding-block: clamp(3.5rem, 6vw, 5rem) 2rem; }
.site-footer--white { background: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand .site-branding { margin-bottom: 1rem; }
.footer-brand p { max-width: 30ch; font-size: 0.9rem; }

.footer-col h4 { font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; color: var(--forest); margin-bottom: 1.1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; list-style: none; margin: 0; padding: 0; }
.footer-col a, .footer-col li { font-size: 0.9rem; color: var(--ink-soft); }
.footer-col a:hover { color: var(--olive-deep); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  padding-top: 1.75rem; border-top: 1px solid var(--line);
  font-size: 0.82rem; color: var(--ink-faint);
}

@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   16. INNER PAGES
   ========================================================================== */

.page-header { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem); background: var(--bg-alt); }
.page-header h1 { font-size: var(--step-3); margin-top: 0.5rem; }
.breadcrumb { font-size: 0.8rem; color: var(--ink-faint); margin-bottom: 1rem; }
.breadcrumb a { color: var(--ink-faint); }
.breadcrumb a:hover { color: var(--forest); }

.plant-single { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); }
.plant-single__media { aspect-ratio: 1/1; background: var(--bg-alt); border-radius: var(--radius-lg); overflow: hidden; }
.plant-single__media img { width: 100%; height: 100%; object-fit: cover; }

.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; margin-block: 2rem; padding: 1.5rem; background: var(--bg-alt); border-radius: var(--radius); }
.spec-list dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); margin-bottom: 0.2rem; }
.spec-list dd { font-size: 0.95rem; color: var(--ink); margin: 0; }

.content-area { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.entry-content > * + * { margin-top: 1.3em; }
.entry-content h2 { margin-top: 2em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; list-style: disc; color: var(--ink-soft); }
.entry-content img { border-radius: var(--radius); margin-block: 0.5em; }
.entry-content blockquote { border-left: 3px solid var(--olive); padding-left: 1.25rem; font-style: italic; color: var(--ink); }

.sidebar-widget { background: var(--bg-alt); padding: 1.75rem; border-radius: var(--radius); margin-bottom: 1.5rem; }
.sidebar-widget h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; color: var(--forest); }

.pagination { display: flex; gap: 0.75rem; margin-top: 3rem; }
.pagination a, .pagination span { padding: 0.5em 1em; border: 1px solid var(--line); border-radius: var(--radius-pill); font-size: 0.85rem; }
.pagination .current { background: var(--forest); color: var(--white); border-color: var(--forest); }

.filter-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.5rem; }
.filter-bar a { font-size: 0.85rem; padding: 0.55em 1.2em; border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--ink-soft); transition: all 0.3s var(--ease); }
.filter-bar a:hover, .filter-bar a.is-active { background: var(--forest); border-color: var(--forest); color: var(--white); }

.plant-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: clamp(1.5rem, 3vw, 2rem); }
.plant-card { display: block; }
.plant-card__media { position: relative; aspect-ratio: 1/1; background: var(--bg-alt); border-radius: var(--radius); overflow: hidden; margin-bottom: 1rem; }
.plant-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.plant-card:hover .plant-card__media img { transform: scale(1.05); }
.plant-card__media .placeholder-leaf { width: 40%; height: 40%; color: var(--olive); position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.plant-card__tag { position: absolute; top: 0.75rem; left: 0.75rem; background: var(--forest); color: var(--white); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.35em 0.75em; border-radius: var(--radius-pill); }
.plant-card__title { font-size: 1.05rem; color: var(--ink); margin-bottom: 0.3rem; font-weight: 500; }
.plant-card__blurb { font-size: 0.88rem; color: var(--ink-soft); margin: 0; }

.not-found { text-align: center; padding-block: 6rem; }
.not-found .mark-lg { width: 70px; height: 70px; margin-inline: auto 1.5rem; color: var(--olive); }

@media (max-width: 860px) { .plant-single, .content-area { grid-template-columns: 1fr; } }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   17. ACCESSIBILITY
   ========================================================================== */

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link.screen-reader-text:focus {
  position: fixed !important; top: 1rem; left: 1rem; width: auto; height: auto; clip: auto; z-index: 999;
  background: var(--forest); color: var(--white); padding: 0.75em 1.25em; border-radius: var(--radius);
}
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }

/* Mobile-specific hero image. Optional via Customizer > Homepage Sections > Hero. */
.hero__mobile-photo { display: none !important; }

@media (max-width: 600px) {
  .hero {
    padding-block: 1rem 3.25rem;
  }

  .hero__content--has-mobile-image {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    background: var(--bg-alt);
    isolation: isolate;
  }

  .hero__content--has-mobile-image .hero__mobile-photo {
    display: block !important;
    position: absolute;
    inset: 0;
    z-index: -2;
  }

  .hero__content--has-mobile-image .hero__mobile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .hero__content--has-mobile-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(
      180deg,
      rgba(247, 247, 241, 0.98) 0%,
      rgba(247, 247, 241, 0.94) 28%,
      rgba(247, 247, 241, 0.72) 50%,
      rgba(247, 247, 241, 0.18) 72%,
      rgba(247, 247, 241, 0.04) 100%
    );
  }

  .hero__content--has-mobile-image .hero__copy {
    width: 100%;
    padding: 1.75rem 1.4rem 2rem;
  }

  .hero__content--has-mobile-image h1 {
    max-width: 12ch;
  }

  .hero__content--has-mobile-image .lede {
    max-width: 34ch;
  }

  /* The desktop collage is hidden when a dedicated mobile hero photo is supplied. */
  .hero__content--has-mobile-image + .hero__figure {
    display: none;
  }
}
