/* ==========================================================================
   HolisticThrive Theme — Main Stylesheet
   Version: 1.0.0
   ========================================================================== */

/* ── Design Tokens ──────────────────────────────────────────────────────────── */
:root {
  --green-dark:   #1B4332;
  --green-mid:    #2D6A4F;
  --green-light:  #D8F3DC;
  --green-pale:   #F0FAF2;
  --amber:        #E9A23B;
  --amber-dark:   #C9861F;
  --bg:           #FAFAF8;
  --text:         #1A1A1A;
  --text-muted:   #5C6370;
  --border:       #E4E7E3;
  --white:        #FFFFFF;
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --shadow-sm:    0 1px 4px rgba(0,0,0,.06);
  --shadow-md:    0 4px 16px rgba(0,0,0,.09);
  --shadow-lg:    0 8px 32px rgba(0,0,0,.12);
  --transition:   .18s ease;
  --content-w:    780px;
  --wide-w:       1160px;
}

/* ── Reset & Base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--green-mid); text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color var(--transition); }
a:hover { text-decoration-color: currentColor; }
ul, ol { padding-left: 1.4em; }
input, button, textarea, select { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; }
hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ── Typography ─────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: .5em;
}
h1 { font-size: clamp(28px, 4.5vw, 46px); }
h2 { font-size: clamp(22px, 3.5vw, 34px); }
h3 { font-size: clamp(19px, 2.5vw, 24px); }
h4 { font-size: 18px; font-weight: 700; }
h5 { font-size: 16px; font-weight: 700; }
h6 { font-size: 14px; font-weight: 700; }
p  { margin-bottom: 1.2em; }

/* Entry content styling */
.entry-content h2,
.entry-content h3,
.entry-content h4 { margin-top: 2em; margin-bottom: .6em; }
.entry-content p { font-size: 17px; }
.entry-content ul,
.entry-content ol { margin-bottom: 1.2em; }
.entry-content li { margin-bottom: .4em; }
.entry-content blockquote {
  border-left: 4px solid var(--green-mid);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--green-pale);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-muted);
}
.entry-content table {
  width: 100%; border-collapse: collapse; margin-bottom: 1.5rem;
  font-size: 15px;
}
.entry-content table th {
  background: var(--green-dark); color: var(--white);
  padding: 10px 14px; text-align: left; font-size: 13px;
}
.entry-content table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.entry-content table tr:nth-child(even) td { background: var(--green-pale); }

/* ── Layout Utilities ───────────────────────────────────────────────────────── */
.container      { max-width: var(--wide-w); margin: 0 auto; padding: 0 24px; }
.container--sm  { max-width: var(--content-w); margin: 0 auto; padding: 0 24px; }
.section        { padding: 64px 0; }
.section--pale  { background: var(--green-pale); }
.section--dark  { background: var(--green-dark); }
.section--white { background: var(--white); }

.section-label {
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--green-mid); margin-bottom: 8px;
}
.section-title { font-size: clamp(22px, 3.5vw, 34px); font-weight: 800; margin-bottom: 6px; }
.section-sub   { font-size: 16px; color: var(--text-muted); margin-bottom: 36px; }
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 36px; gap: 16px;
}
.view-all {
  text-decoration: none; color: var(--green-mid); font-size: 14px;
  font-weight: 600; white-space: nowrap;
  display: flex; align-items: center; gap: 4px;
}
.view-all:hover { color: var(--green-dark); }

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 15px; text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer; border: none; line-height: 1;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn--primary   { background: var(--amber); color: var(--white); }
.btn--primary:hover { background: var(--amber-dark); color: var(--white); }

.btn--secondary {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,.4);
}
.btn--secondary:hover { background: rgba(255,255,255,.1); color: var(--white); }

.btn--outline {
  background: transparent; color: var(--green-mid);
  border: 1.5px solid var(--green-mid);
}
.btn--outline:hover { background: var(--green-pale); color: var(--green-dark); }

.btn--full { width: 100%; justify-content: center; }

/* ── Header ─────────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
/* Account for WP admin bar (32px desktop, 46px mobile) */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 24px;
}

/* Logo */
.site-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--green-dark);
  font-weight: 800; font-size: 19px; white-space: nowrap;
}
.site-logo:hover { text-decoration: none; color: var(--green-dark); }
.logo-leaf {
  width: 34px; height: 34px;
  background: var(--green-dark);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; position: relative;
}
.logo-leaf::after {
  content: '';
  width: 13px; height: 13px;
  background: var(--white);
  border-radius: 50%;
  position: absolute;
}
.site-logo img { height: 40px; width: auto; }

/* Primary Nav — wp_nav_menu outputs <ul><li><a> so we must style all three */
.primary-nav { display: flex; align-items: center; }
.primary-nav ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; align-items: center; gap: 2px;
}
.primary-nav ul li { list-style: none; display: flex; }
.primary-nav a {
  text-decoration: none; color: var(--text-muted);
  font-size: 14px; font-weight: 500;
  padding: 7px 13px; border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap; display: flex; align-items: center;
}
.primary-nav a:hover,
.primary-nav li.current-menu-item > a,
.primary-nav li.current-page-ancestor > a,
.primary-nav li.current_page_item > a { color: var(--green-dark); background: var(--green-pale); }

.header-cta {
  background: var(--amber); color: var(--white) !important;
  font-weight: 700; font-size: 14px;
  padding: 9px 18px; border-radius: var(--radius-sm);
  text-decoration: none !important; white-space: nowrap;
  transition: background var(--transition);
  flex-shrink: 0;
}
.header-cta:hover { background: var(--amber-dark); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  cursor: pointer; border-radius: var(--radius-sm);
  background: none; border: none;
  transition: background var(--transition);
}
.menu-toggle:hover { background: var(--green-pale); }
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav panel */
.mobile-nav {
  display: none; position: absolute; top: 68px; left: 0; right: 0;
  background: var(--white); border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md); padding: 16px 24px 24px; z-index: 199;
}
.mobile-nav.is-open { display: block; }
/* wp_nav_menu outputs ul > li > a in mobile nav too */
.mobile-nav ul { list-style: none; padding: 0; margin: 0; }
.mobile-nav ul li { list-style: none; }
.mobile-nav a {
  display: block; padding: 10px 0;
  font-size: 16px; font-weight: 500;
  color: var(--text); text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.mobile-nav ul li:last-child > a { border-bottom: none; }
.mobile-nav .header-cta { display: block; margin-top: 16px; text-align: center; }

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  padding: 80px 0 72px; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner { max-width: 740px; margin: 0 auto; padding: 0 24px; position: relative; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.12); color: rgba(255,255,255,.9);
  font-size: 13px; font-weight: 600;
  padding: 5px 16px; border-radius: 100px; margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,.2);
}
.hero h1 { color: var(--white); margin-bottom: 16px; }
.hero h1 span { color: var(--amber); }
.hero p { font-size: 18px; color: rgba(255,255,255,.82); max-width: 560px; margin: 0 auto 36px; }

.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 36px; justify-content: center; margin-top: 52px; flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 26px; font-weight: 800; color: var(--white); }
.hero-stat span { font-size: 13px; color: rgba(255,255,255,.6); }

/* ── Trust Bar ──────────────────────────────────────────────────────────────── */
.trust-bar {
  background: var(--green-light); border-bottom: 1px solid #B7E4C7; padding: 13px 0;
}
.trust-bar-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 28px; flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--green-dark); }
.trust-item span { font-size: 16px; }

/* ── Article Cards ──────────────────────────────────────────────────────────── */
.cards-grid { display: grid; gap: 24px; }
.cards-grid--3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid--2 { grid-template-columns: repeat(2, 1fr); }
/* Collapse sections that contain only an empty grid (no posts yet) */
.cards-grid:empty { display: none; }
.section:has(.cards-grid:empty) { padding: 0; }

.article-card {
  background: var(--white); border-radius: var(--radius-md);
  border: 1px solid var(--border); overflow: hidden;
  box-shadow: var(--shadow-sm); text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }

.card-img {
  height: 200px; overflow: hidden; position: relative;
  background: var(--green-light);
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.article-card:hover .card-img img { transform: scale(1.03); }
.card-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 52px;
}
.card-category {
  position: absolute; top: 14px; left: 14px;
  background: var(--green-dark); color: var(--white);
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 100px;
}
.card-body { padding: 20px 22px; flex: 1; display: flex; flex-direction: column; }
.card-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; line-height: 1.35; color: var(--text); }
.card-excerpt { font-size: 14px; color: var(--text-muted); flex: 1; margin-bottom: 16px; line-height: 1.6; }
.card-footer-row { display: flex; align-items: center; justify-content: space-between; }
.card-read { font-size: 14px; font-weight: 600; color: var(--green-mid); display: flex; align-items: center; gap: 4px; }
.stars { color: #F5A623; font-size: 13px; letter-spacing: 1px; }
.card-meta { font-size: 12px; color: var(--text-muted); }

/* ── Category Silos ─────────────────────────────────────────────────────────── */
.silos-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.silo-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-md); padding: 26px 16px;
  text-align: center; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.silo-card:hover { border-color: var(--green-mid); box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.silo-icon {
  width: 54px; height: 54px; background: var(--green-light);
  border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.silo-name { font-size: 14px; font-weight: 700; color: var(--text); }
.silo-count { font-size: 12px; color: var(--text-muted); }

/* ── Winner Box ─────────────────────────────────────────────────────────────── */
.winner-box {
  background: var(--green-pale); border: 2px solid var(--green-mid);
  border-radius: var(--radius-lg); padding: 32px;
  display: grid; grid-template-columns: 110px 1fr auto;
  gap: 28px; align-items: center; position: relative;
  margin: 2em 0;
}
.winner-badge {
  position: absolute; top: -14px; left: 24px;
  background: var(--green-dark); color: var(--white);
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 5px 14px; border-radius: 100px;
  display: flex; align-items: center; gap: 5px;
}
.winner-thumb {
  width: 100px; height: 100px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 42px; overflow: hidden; background: var(--green-light);
  flex-shrink: 0;
}
.winner-thumb img { width: 100%; height: 100%; object-fit: contain; }
.winner-info h3 { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.winner-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.winner-rating .stars { font-size: 16px; }
.winner-rating span { font-size: 13px; color: var(--text-muted); }
.winner-pros { list-style: none; padding: 0; }
.winner-pros li {
  font-size: 14px; color: var(--text-muted); margin-bottom: 4px;
  display: flex; align-items: flex-start; gap: 6px;
}
.winner-pros li::before { content: '✓'; color: var(--green-mid); font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.winner-action { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 160px; }
.price-badge {
  font-size: 13px; color: var(--text-muted);
  background: var(--white); padding: 4px 12px;
  border-radius: 100px; border: 1px solid var(--border); white-space: nowrap;
}
.btn-check {
  background: var(--amber); color: var(--white);
  font-weight: 700; font-size: 15px; padding: 13px 20px;
  border-radius: var(--radius-sm); text-decoration: none;
  text-align: center; transition: background var(--transition);
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-check:hover { background: var(--amber-dark); color: var(--white); text-decoration: none; }
.btn-trust { font-size: 12px; color: var(--text-muted); text-align: center; }

/* ── Affiliate Disclosure Notice ────────────────────────────────────────────── */
.disclosure-notice {
  background: var(--green-pale); border-left: 3px solid var(--green-mid);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px; margin: 0 0 2em;
  font-size: 13px; color: var(--text-muted);
}
.disclosure-notice strong { color: var(--green-dark); }

/* ── Quick Answer Box ────────────────────────────────────────────────────────── */
.quick-answer {
  background: var(--green-light); border: 1.5px solid #B7E4C7;
  border-radius: var(--radius-md); padding: 20px 22px; margin: 0 0 2em;
}
.quick-answer__label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green-dark); margin-bottom: 6px; }
.quick-answer__text { font-size: 16px; color: var(--text); margin: 0; font-weight: 500; }

/* ── Table of Contents ───────────────────────────────────────────────────────── */
.toc {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 22px 24px; margin: 0 0 2.5em;
}
.toc__title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 1.3em; }
.toc li { margin-bottom: 6px; }
.toc a { font-size: 14px; color: var(--green-mid); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* ── FAQ Section ─────────────────────────────────────────────────────────────── */
.faq { margin: 2.5em 0; }
.faq__title { font-size: 22px; font-weight: 800; margin-bottom: 1em; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; cursor: pointer; font-size: 16px; font-weight: 700;
  color: var(--text); user-select: none;
}
.faq__question::after { content: '+'; font-size: 20px; color: var(--green-mid); font-weight: 400; flex-shrink: 0; }
.faq__item.is-open .faq__question::after { content: '−'; }
.faq__answer { display: none; padding: 0 0 16px; font-size: 15px; color: var(--text-muted); }
.faq__item.is-open .faq__answer { display: block; }

/* ── Writer's Note ───────────────────────────────────────────────────────────── */
.writers-note {
  background: var(--green-pale); border-radius: var(--radius-md);
  padding: 22px 24px; margin: 2.5em 0;
  display: flex; gap: 16px; align-items: flex-start;
}
.writers-note__avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--green-light); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.writers-note__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.writers-note__label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green-mid); margin-bottom: 4px; }
.writers-note__text { font-size: 15px; color: var(--text-muted); margin: 0; font-style: italic; }

/* ── Comparison Table ────────────────────────────────────────────────────────── */
.comparison-table { width: 100%; border-collapse: collapse; margin: 2em 0; font-size: 14px; }
.comparison-table thead th {
  background: var(--green-dark); color: var(--white);
  padding: 12px 14px; text-align: left; font-size: 12px;
  font-weight: 700; letter-spacing: .04em;
}
.comparison-table tbody td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.comparison-table tbody tr.is-top-pick td { background: var(--green-pale); font-weight: 600; }
.comparison-table tbody tr:hover td { background: var(--green-pale); }
.comparison-table .top-pick-badge {
  background: var(--green-dark); color: var(--white);
  font-size: 10px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; padding: 2px 8px; border-radius: 100px; margin-left: 6px;
}
.comparison-table .btn-check { padding: 8px 14px; font-size: 13px; white-space: nowrap; }

/* ── Sidebar ─────────────────────────────────────────────────────────────────── */
.site-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
.site-layout--wide { grid-template-columns: 1fr; }
.main-content { min-width: 0; }
.sidebar { position: sticky; top: 88px; }

.sidebar-widget { margin-bottom: 28px; }
.sidebar-widget__title {
  font-size: 13px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--green-dark);
  margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--green-light);
}

/* Sidebar Winner Mini Card */
.sidebar-winner {
  background: var(--green-pale); border: 1.5px solid var(--green-mid);
  border-radius: var(--radius-md); padding: 18px; margin-bottom: 28px;
}
.sidebar-winner__label {
  font-size: 10px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--green-mid); margin-bottom: 10px;
}
.sidebar-winner__name { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.sidebar-winner .stars { font-size: 14px; margin-bottom: 12px; display: block; }

/* Sidebar Related */
.related-list { list-style: none; padding: 0; }
.related-list li { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.related-list li:last-child { border-bottom: none; padding-bottom: 0; }
.related-list a { font-size: 14px; font-weight: 600; color: var(--text); text-decoration: none; line-height: 1.35; }
.related-list a:hover { color: var(--green-mid); }
.related-list span { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ── Single Post ─────────────────────────────────────────────────────────────── */
.single-header { padding: 48px 0 32px; }
.single-header .post-category {
  display: inline-block; background: var(--green-dark); color: var(--white);
  font-size: 11px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 100px;
  text-decoration: none; margin-bottom: 16px;
}
.single-header h1 { margin-bottom: 16px; }
.post-meta {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-muted); margin-bottom: 10px;
}
.post-meta a { color: var(--text-muted); }
.post-meta .updated { background: var(--green-light); padding: 3px 10px; border-radius: 100px; color: var(--green-dark); font-weight: 600; }
.featured-image { border-radius: var(--radius-md); overflow: hidden; margin-bottom: 2em; }
.featured-image img { width: 100%; height: auto; }

/* ── Email Capture ───────────────────────────────────────────────────────────── */
.email-section {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  padding: 64px 0;
}
.email-inner { max-width: 580px; margin: 0 auto; text-align: center; padding: 0 24px; }
.email-inner h2 { color: var(--white); font-size: clamp(22px, 3vw, 30px); margin-bottom: 10px; }
.email-inner p { color: rgba(255,255,255,.8); margin-bottom: 28px; }
.email-form { max-width: 520px; margin: 0 auto; }
.email-form__fields { display: flex; gap: 10px; flex-wrap: wrap; }
.email-form__name,
.email-form__email {
  flex: 1; min-width: 160px; padding: 13px 16px; border: none;
  border-radius: var(--radius-sm); font-size: 15px; outline: none;
}
.email-form__name:focus,
.email-form__email:focus { outline: 2px solid var(--amber); }
.email-form__btn {
  background: var(--amber); color: var(--white); border: none;
  font-weight: 700; font-size: 15px; padding: 13px 22px;
  border-radius: var(--radius-sm); cursor: pointer; white-space: nowrap;
  transition: background var(--transition);
}
.email-form__btn:hover:not(:disabled) { background: var(--amber-dark); }
.email-form__btn:disabled { opacity: .7; cursor: not-allowed; }
.email-form__success {
  color: #d4edda; background: rgba(0,0,0,.25);
  border-radius: var(--radius-sm); padding: 12px 16px;
  font-size: 15px; text-align: center; margin-top: 14px;
}
.email-form__error {
  color: #f8d7da; background: rgba(0,0,0,.25);
  border-radius: var(--radius-sm); padding: 10px 16px;
  font-size: 14px; margin-top: 10px;
}
.email-note { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 12px; }
.email-shortcode { max-width: 460px; margin: 0 auto; }

/* ── Archive / Blog Index ────────────────────────────────────────────────────── */
.archive-header {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  padding: 52px 0; color: var(--white); text-align: center;
}
.archive-header h1 { color: var(--white); margin-bottom: 8px; }
.archive-header p { color: rgba(255,255,255,.78); font-size: 17px; }
.archive-header .category-icon { font-size: 42px; margin-bottom: 12px; }

.posts-grid { display: grid; gap: 28px; }

/* ── Search ──────────────────────────────────────────────────────────────────── */
.search-header { padding: 40px 0; border-bottom: 1px solid var(--border); margin-bottom: 40px; }
.search-header h1 { margin-bottom: 16px; }
.search-form { display: flex; gap: 10px; max-width: 540px; }
.search-form input[type="search"] {
  flex: 1; padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: 16px; outline: none;
}
.search-form input[type="search"]:focus { border-color: var(--green-mid); }
.search-form button {
  background: var(--green-dark); color: var(--white);
  border: none; padding: 12px 20px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 15px; cursor: pointer;
  transition: background var(--transition);
}
.search-form button:hover { background: var(--green-mid); }
.search-count { font-size: 14px; color: var(--text-muted); margin-top: 10px; }

/* ── 404 ─────────────────────────────────────────────────────────────────────── */
.error-404 { text-align: center; padding: 72px 24px; max-width: 680px; margin: 0 auto; }
.error-404 .error-code { font-size: 120px; font-weight: 800; color: var(--green-light); line-height: 1; margin-bottom: 16px; }
.error-404 h1 { font-size: 28px; margin-bottom: 12px; }
.error-404 > p { color: var(--text-muted); margin-bottom: 32px; max-width: 440px; margin-left: auto; margin-right: auto; }
/* Coming-soon variant */
.error-404__icon { font-size: 52px; margin-bottom: 16px; }
.error-404__badge {
  display: inline-block;
  background: var(--amber); color: var(--white);
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 100px; margin-bottom: 18px;
}
.error-404__title { font-size: 26px; font-weight: 800; color: var(--text); margin-bottom: 14px; }
.error-404__msg { font-size: 16px; color: var(--text-muted); max-width: 480px; margin: 0 auto 32px; }
.error-404__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.btn--secondary-dark {
  background: transparent; color: var(--green-dark);
  border: 1.5px solid var(--green-dark);
  font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: var(--radius-sm);
  text-decoration: none; display: inline-flex; align-items: center;
  transition: background var(--transition), color var(--transition);
}
.btn--secondary-dark:hover { background: var(--green-dark); color: var(--white); }
.error-404__cats { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); }
.error-404__cats-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }

/* ── Contact Page ────────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%; padding: 12px 16px; margin-bottom: 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 15px; background: var(--white); outline: none;
  transition: border-color var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--green-mid); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-sidebar-card {
  background: var(--green-pale); border-radius: var(--radius-md);
  padding: 24px; margin-bottom: 20px;
}
.contact-sidebar-card h3 { font-size: 16px; margin-bottom: 12px; }
.contact-sidebar-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }

/* ── Pagination ──────────────────────────────────────────────────────────────── */
.pagination { display: flex; gap: 8px; justify-content: center; margin: 48px 0; flex-wrap: wrap; }
.pagination a,
.pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
  text-decoration: none; transition: background var(--transition), color var(--transition);
  border: 1.5px solid var(--border); color: var(--text);
}
.pagination a:hover { background: var(--green-pale); border-color: var(--green-mid); color: var(--green-dark); }
.pagination .current { background: var(--green-dark); color: var(--white); border-color: var(--green-dark); }
.pagination .prev, .pagination .next { font-weight: 700; }

/* ── Comments ────────────────────────────────────────────────────────────────── */
.comments-section { margin-top: 3em; padding-top: 3em; border-top: 1px solid var(--border); }
.comments-title { font-size: 22px; font-weight: 800; margin-bottom: 1.5em; }
.comment-list { list-style: none; padding: 0; }
.comment { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.comment-author { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.comment-author img { border-radius: 50%; width: 40px; height: 40px; }
.comment-author .author-name { font-weight: 700; font-size: 15px; }
.comment-author .comment-date { font-size: 12px; color: var(--text-muted); }
.comment-body { font-size: 15px; color: var(--text-muted); }
.comment-reply-link { font-size: 13px; color: var(--green-mid); font-weight: 600; }

.comment-form input,
.comment-form textarea {
  width: 100%; padding: 11px 14px; margin-bottom: 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 15px; background: var(--white); outline: none;
  transition: border-color var(--transition);
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--green-mid); }
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form .form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.comment-form label { font-size: 14px; font-weight: 600; display: block; margin-bottom: 5px; }
.comment-form .submit {
  background: var(--green-dark); color: var(--white); border: none;
  padding: 13px 28px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 15px; cursor: pointer;
  transition: background var(--transition);
}
.comment-form .submit:hover { background: var(--green-mid); }

/* ── Related Posts ───────────────────────────────────────────────────────────── */
.related-posts { margin-top: 3em; padding-top: 3em; border-top: 1px solid var(--border); }
.related-posts h2 { font-size: 22px; font-weight: 800; margin-bottom: 1.2em; }

/* ── Footer ──────────────────────────────────────────────────────────────────── */
.site-footer { background: #111; color: rgba(255,255,255,.6); padding: 52px 0 28px; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand-logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--white); font-weight: 800; font-size: 18px;
  text-decoration: none; margin-bottom: 14px;
}
.footer-brand-logo .logo-leaf { background: var(--green-mid); }
.footer-brand p { font-size: 14px; line-height: 1.65; }
.footer-col h4 {
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--white); margin-bottom: 16px;
}
.footer-col a {
  display: block; text-decoration: none;
  color: rgba(255,255,255,.55); font-size: 14px; margin-bottom: 9px;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }

.footer-disclosure {
  border-left: 3px solid var(--amber); padding: 12px 16px;
  background: rgba(255,255,255,.04); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 12px; line-height: 1.65; margin-bottom: 28px;
}
.footer-disclosure strong { color: rgba(255,255,255,.8); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; font-size: 13px;
}
.footer-legal-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-legal-links a { color: rgba(255,255,255,.45); font-size: 13px; text-decoration: none; transition: color var(--transition); }
.footer-legal-links a:hover { color: rgba(255,255,255,.8); }

/* ── Utilities ───────────────────────────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-2 { margin-bottom: 2em; }
/* ── No Results / Empty State ────────────────────────────────────────────────── */
.no-results {
  text-align: center; padding: 64px 24px; max-width: 640px; margin: 0 auto;
}
.no-results__icon { font-size: 48px; margin-bottom: 20px; }
.no-results__title { font-size: 26px; font-weight: 800; color: var(--text); margin-bottom: 12px; }
.no-results__sub { font-size: 16px; color: var(--text-muted); margin-bottom: 32px; max-width: 440px; margin-left: auto; margin-right: auto; }
.no-results__cats {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin-bottom: 32px;
}
.no-results__cat-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green-pale); color: var(--green-dark);
  border: 1.5px solid var(--green-light);
  font-size: 14px; font-weight: 600;
  padding: 8px 16px; border-radius: 100px;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition);
}
.no-results__cat-pill:hover { background: var(--green-light); border-color: var(--green-mid); }
.no-results__cta { display: inline-flex; margin-bottom: 0; }
.no-results .search-form { max-width: 440px; margin: 0 auto 20px; }
.no-results__browse {
  display: block; margin-top: 16px;
  font-size: 14px; font-weight: 600; color: var(--green-mid);
  text-decoration: none;
}
.no-results__browse:hover { color: var(--green-dark); }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .site-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .silos-grid { grid-template-columns: repeat(3, 1fr); }
  .cards-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .winner-box { grid-template-columns: 110px 1fr; }
  .winner-action { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .primary-nav { display: none; }
  .menu-toggle { display: flex; }
  .site-header { position: relative; }
  .mobile-nav { position: relative; top: 0; }
  .hero { padding: 56px 0 48px; }
  .cards-grid--3,
  .cards-grid--2 { grid-template-columns: 1fr; }
  .silos-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .winner-box { grid-template-columns: 1fr; text-align: center; padding: 28px 20px; }
  .winner-thumb { margin: 0 auto; }
  .winner-pros { text-align: left; }
  .winner-action { flex-direction: column; align-items: stretch; grid-column: auto; }
  .email-form__fields { flex-direction: column; }
  .email-form__name,
  .email-form__email,
  .email-form__btn { width: 100%; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .comment-form .form-row-2 { grid-template-columns: 1fr; }
  .comparison-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .silos-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero-stats { gap: 20px; }
  .section { padding: 44px 0; }
  .winner-badge { font-size: 10px; }
  .btn { padding: 12px 20px; font-size: 14px; }
  .section-header { flex-direction: column; align-items: flex-start; }
}

/* ── WordPress Specific ──────────────────────────────────────────────────────── */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--text-muted); text-align: center; margin-top: 6px; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { max-width: 1060px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: 100vw; margin-left: calc(50% - 50vw); }
.sticky { position: relative; }
.bypostauthor {}
.screen-reader-text { @extend .sr-only; }
