/*
Theme Name: Root and Bonsai
Theme URI: https://rootandbonsai.com
Author: Root and Bonsai
Author URI: https://rootandbonsai.com
Description: A warm, Wabi-Sabi styled theme for Root and Bonsai — the beginner's guide to bonsai art. Built with Playfair Display, Lora, and Plus Jakarta Sans.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Proprietary
Text Domain: rootandbonsai
*/

/* ══════════════════════════════
   CSS CUSTOM PROPERTIES
══════════════════════════════ */
:root {
  --moss:      #2D4A1E;
  --sage:      #7D9B5C;
  --terra:     #B85C38;
  --bamboo:    #D4B483;
  --stone:     #8B7D6B;
  --parchment: #F5ECD7;
  --parch-dk:  #EDE0C4;
  --ink:       #1e1a14;
  --white:     #fdfaf5;
}

/* ══════════════════════════════
   RESET & BASE
══════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--parchment);
  color: #3a3028;
  font-family: 'Lora', Georgia, serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ══════════════════════════════
   ANIMATIONS
══════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-14px) rotate(3deg); }
  66%       { transform: translateY(-7px) rotate(-2deg); }
}
@keyframes leafDrift {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.3; }
  100% { transform: translate(-80px, 100vh) rotate(360deg); opacity: 0; }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184,92,56,0.4); }
  50%       { box-shadow: 0 0 0 10px rgba(184,92,56,0); }
}
@keyframes underlineGrow {
  from { width: 0; }
  to   { width: 100%; }
}
@keyframes ripple {
  0%   { transform: scale(0); opacity: 0.5; }
  100% { transform: scale(3); opacity: 0; }
}

/* ══════════════════════════════
   SCROLL REVEAL
══════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }
.stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.stagger.visible > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0s; }
.stagger.visible > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.stagger.visible > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.stagger.visible > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.stagger.visible > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
.stagger.visible > *:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }

/* ══════════════════════════════
   UTILITIES
══════════════════════════════ */
.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 32px; }
.serif { font-family: 'Playfair Display', Georgia, serif; }

.tag {
  display: inline-block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 4px;
}
.tag-sage   { background: rgba(125,155,92,0.18); color: #4a6b30; }
.tag-terra  { background: rgba(184,92,56,0.15);  color: #8a3a1e; }
.tag-moss   { background: rgba(45,74,30,0.12);   color: var(--moss); }

.btn {
  display: inline-block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px; font-weight: 700;
  padding: 12px 26px; border-radius: 6px;
  cursor: pointer; transition: all 0.25s ease;
  letter-spacing: 0.3px; position: relative; overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0; transition: opacity 0.2s; border-radius: 6px;
}
.btn:hover::after { opacity: 1; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.btn-terra  { background: var(--terra); color: #fff; animation: pulseGlow 3s infinite; }
.btn-terra:hover { animation: none; }
.btn-moss   { background: var(--moss); color: var(--bamboo); }
.btn-outline { background: transparent; color: var(--moss); border: 2px solid var(--moss); }
.btn-outline:hover { background: var(--moss); color: var(--bamboo); }

/* ══════════════════════════════
   SCROLL PROGRESS BAR
══════════════════════════════ */
#scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 9999;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--sage), var(--terra), var(--bamboo));
  transition: width 0.1s linear;
}

/* ══════════════════════════════
   FLOATING LEAVES
══════════════════════════════ */
.leaves-container {
  position: absolute; inset: 0;
  pointer-events: none; overflow: hidden;
}
.leaf {
  position: absolute;
  font-size: 20px;
  animation: leafDrift linear infinite;
  opacity: 0;
}

/* ══════════════════════════════
   TOP BAR
══════════════════════════════ */
.topbar {
  background: var(--moss);
  padding: 9px 0;
  text-align: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px; font-weight: 600;
  color: var(--bamboo); letter-spacing: 0.3px;
  animation: slideDown 0.5s ease 0.1s both;
  position: relative; overflow: hidden;
}
.topbar::after {
  content: '';
  position: absolute; bottom: 0; left: -100%;
  width: 60%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,180,131,0.5), transparent);
  animation: shimmer 3s linear infinite;
}
.topbar span { color: var(--parchment); }
.topbar a { color: #fff; text-decoration: underline; }

/* ══════════════════════════════
   HEADER / NAVIGATION
══════════════════════════════ */
.site-header {
  background: var(--parchment);
  border-bottom: 2px solid var(--parch-dk);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(45,74,30,0.08);
  animation: slideDown 0.5s ease 0.2s both;
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(45,74,30,0.15); }
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  max-width: 1180px; margin: 0 auto;
}
.site-logo {
  display: flex; align-items: center; gap: 10px;
  transition: transform 0.2s;
}
.site-logo:hover { transform: scale(1.02); }
.logo-mark {
  width: 40px; height: 40px;
  background: var(--moss); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; transition: transform 0.3s ease;
}
.site-logo:hover .logo-mark { transform: rotate(-8deg) scale(1.1); }
.logo-text .brand {
  font-family: 'Playfair Display', serif;
  font-size: 19px; font-weight: 700;
  color: var(--moss); display: block;
}
.logo-text .tagline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 9px; font-weight: 600;
  color: var(--stone); letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* WordPress nav menu */
.main-navigation { display: flex; align-items: center; gap: 28px; }
.main-navigation ul { display: flex; gap: 28px; align-items: center; }
.main-navigation ul li { position: relative; }
.main-navigation ul li a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px; font-weight: 600;
  color: var(--stone); position: relative; padding-bottom: 2px;
}
.main-navigation ul li a::after {
  content: '';
  position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--terra); border-radius: 2px;
  transition: width 0.3s ease;
}
.main-navigation ul li a:hover { color: var(--moss); }
.main-navigation ul li a:hover::after,
.main-navigation ul li.current-menu-item a::after { width: 100%; }
.main-navigation ul li.current-menu-item a { color: var(--moss); }

/* Dropdown */
.main-navigation ul li ul {
  display: none; flex-direction: column;
  position: absolute; top: calc(100% + 14px); left: 0;
  background: var(--white); border-radius: 8px; gap: 0;
  box-shadow: 0 8px 32px rgba(45,74,30,0.18);
  border: 1px solid var(--parch-dk);
  min-width: 220px; z-index: 200;
  /* Arrow pointer */
  margin-top: 0;
}
/* Dropdown caret */
.main-navigation ul li ul::before {
  content: '';
  position: absolute; top: -6px; left: 18px;
  width: 12px; height: 12px;
  background: var(--white);
  border-left: 1px solid var(--parch-dk);
  border-top: 1px solid var(--parch-dk);
  transform: rotate(45deg);
}
.main-navigation ul li:hover > ul,
.main-navigation ul li.open > ul { display: flex; }
.main-navigation ul li ul li { width: 100%; }
.main-navigation ul li ul li a {
  padding: 11px 20px; display: block; white-space: nowrap;
  font-size: 13px; color: var(--stone); border-radius: 0;
}
.main-navigation ul li ul li:first-child a { border-radius: 8px 8px 0 0; }
.main-navigation ul li ul li:last-child  a { border-radius: 0 0 8px 8px; }
.main-navigation ul li ul li a::after { display: none; }
.main-navigation ul li ul li a:hover { background: var(--parchment); color: var(--moss); }
/* Active parent highlight */
.main-navigation ul li.current-menu-parent > a { color: var(--moss); }
.main-navigation ul li.current-menu-parent > a::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 12px; }
.menu-toggle {
  display: none;
  background: none; border: none;
  font-size: 22px; cursor: pointer; color: var(--moss);
}

/* Mobile nav */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .main-navigation { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--parchment); padding: 20px 32px; border-bottom: 2px solid var(--parch-dk); box-shadow: 0 8px 24px rgba(45,74,30,0.1); }
  .main-navigation.open { display: flex; flex-direction: column; align-items: flex-start; }
  .main-navigation ul { flex-direction: column; gap: 16px; width: 100%; }
  .header-inner { position: relative; }
}

/* ══════════════════════════════
   HERO (FRONT PAGE)
══════════════════════════════ */
.hero {
  background: linear-gradient(160deg, #e8dcc4 0%, var(--parchment) 60%);
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--parch-dk);
  position: relative; overflow: hidden;
}
.hero-bg-text {
  position: absolute; right: -40px; top: -60px;
  font-size: 320px; opacity: 0.04;
  animation: float 8s ease-in-out infinite;
  pointer-events: none; user-select: none;
  font-family: 'Playfair Display', serif; color: var(--moss); line-height: 1;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  max-width: 1180px; margin: 0 auto; padding: 0 32px;
  position: relative; z-index: 1;
}
.hero-left .eyebrow {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--sage); margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
  animation: fadeUp 0.7s ease 0.3s both;
}
.hero-left .eyebrow::before {
  content: ''; width: 28px; height: 2px;
  background: var(--sage); display: block;
}
.hero-left h1 {
  font-family: 'Playfair Display', serif;
  font-size: 50px; font-weight: 700;
  color: var(--moss); line-height: 1.15; margin-bottom: 20px;
  animation: fadeUp 0.7s ease 0.45s both;
}
.hero-left h1 em { font-style: italic; color: var(--terra); }
.hero-left p {
  font-size: 16px; color: var(--stone);
  margin-bottom: 32px; max-width: 440px; line-height: 1.75;
  animation: fadeUp 0.7s ease 0.6s both;
}
.hero-btns { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; animation: fadeUp 0.7s ease 0.75s both; }
.hero-trust {
  margin-top: 28px;
  display: flex; align-items: center; gap: 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px; color: var(--stone);
  animation: fadeUp 0.7s ease 0.9s both;
}
.trust-item { display: flex; align-items: center; gap: 5px; }
.trust-icon {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(125,155,92,0.15);
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.hero-right { position: relative; animation: scaleIn 0.8s ease 0.5s both; }
.hero-card {
  background: var(--white); border-radius: 20px; overflow: hidden;
  box-shadow: 0 12px 48px rgba(45,74,30,0.15);
  border: 1px solid var(--parch-dk);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.hero-card:hover { transform: translateY(-6px) rotate(0.5deg); box-shadow: 0 20px 60px rgba(45,74,30,0.2); }
.hero-card-img {
  height: 220px;
  background: linear-gradient(160deg, var(--moss) 0%, #4a7a2e 60%, var(--sage) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 90px; position: relative;
}
.hero-card-img .tree-emoji { animation: float 4s ease-in-out infinite; }
.hero-float {
  position: absolute; bottom: -12px; right: -12px;
  background: var(--bamboo); border-radius: 14px; padding: 12px 16px;
  box-shadow: 0 6px 20px rgba(45,74,30,0.18);
  font-family: 'Plus Jakarta Sans', sans-serif;
  border: 1px solid rgba(255,255,255,0.5);
  animation: float 5s ease-in-out 1s infinite;
}
.hero-float .float-num { font-size: 24px; font-weight: 800; color: var(--moss); }
.hero-float .float-lbl { font-size: 10px; color: var(--stone); }

/* ══════════════════════════════
   TOPICS STRIP
══════════════════════════════ */
.topics { background: var(--moss); overflow-x: auto; }
.topics-inner { display: flex; align-items: stretch; max-width: 1180px; margin: 0 auto; }
.topic-item {
  flex: 1; min-width: 140px; padding: 18px 20px;
  text-align: center; border-right: 1px solid rgba(255,255,255,0.1);
  cursor: pointer; transition: background 0.2s, transform 0.2s;
  position: relative; overflow: hidden;
}
.topic-item::before {
  content: ''; position: absolute; bottom: 0; left: 50%; right: 50%;
  height: 3px; background: var(--terra);
  transition: left 0.3s ease, right 0.3s ease;
}
.topic-item:hover::before { left: 0; right: 0; }
.topic-item:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.topic-item:last-child { border-right: none; }
.topic-icon { font-size: 22px; margin-bottom: 5px; transition: transform 0.3s; }
.topic-item:hover .topic-icon { transform: scale(1.2) rotate(-5deg); }
.topic-name { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 11px; font-weight: 700; color: var(--bamboo); letter-spacing: 0.5px; }
.topic-count { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 9px; color: rgba(212,180,131,0.5); margin-top: 2px; }

/* ══════════════════════════════
   SECTION HEADERS
══════════════════════════════ */
.sec-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; }
.sec-header-left .sec-eye {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--terra); margin-bottom: 6px;
}
.sec-header-left h2 { font-family: 'Playfair Display', serif; font-size: 30px; font-weight: 700; color: var(--moss); }
.sec-header-left p { font-size: 14px; color: var(--stone); margin-top: 4px; }
.see-all {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 12px; font-weight: 700;
  color: var(--terra); display: flex; align-items: center; gap: 4px;
  white-space: nowrap; margin-bottom: 4px; position: relative;
}
.see-all::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1.5px; background: var(--terra); transition: width 0.3s ease;
}
.see-all:hover::after { width: 100%; }

/* ══════════════════════════════
   GUIDE / POST CARDS
══════════════════════════════ */
.guides-section { padding: 72px 0; background: var(--parchment); }
.guides-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 24px; }
.guide-card {
  background: var(--white); border-radius: 16px; overflow: hidden;
  border: 1px solid var(--parch-dk);
  transition: box-shadow 0.3s ease, transform 0.3s ease; cursor: pointer;
}
.guide-card:hover { box-shadow: 0 12px 40px rgba(45,74,30,0.16); transform: translateY(-5px); }
.guide-img {
  display: flex; align-items: center; justify-content: center;
  font-size: 52px; position: relative; transition: transform 0.4s ease;
}
.guide-card:hover .guide-img { transform: scale(1.03); }
.guide-img.tall { height: 240px; }
.guide-img.short { height: 160px; }
.guide-img.moss-bg   { background: linear-gradient(135deg, var(--moss), #4a7a2e); }
.guide-img.sage-bg   { background: linear-gradient(135deg, #5a7a42, var(--sage)); }
.guide-img.terra-bg  { background: linear-gradient(135deg, var(--terra), #d4734a); }
.guide-img.bamboo-bg { background: linear-gradient(135deg, #b8944a, var(--bamboo)); }
.guide-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--terra); color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 9px; font-weight: 700;
  padding: 3px 8px; border-radius: 4px; letter-spacing: 0.5px; text-transform: uppercase;
}
.guide-badge.new { background: var(--moss); }
.guide-body { padding: 18px 20px; }
.guide-body h3 { font-family: 'Playfair Display', serif; color: var(--moss); line-height: 1.3; margin-bottom: 6px; }
.guide-body h3.lg { font-size: 21px; }
.guide-body h3.sm { font-size: 16px; }
.guide-body p { font-size: 13px; color: var(--stone); line-height: 1.65; margin-bottom: 14px; }
.guide-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 11px; color: var(--stone);
  border-top: 1px solid var(--parch-dk); padding-top: 12px; margin-top: 4px;
}
.guide-meta .read-link { color: var(--terra); font-weight: 700; margin-left: auto; }

/* Blog post grid (archive) */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card {
  background: var(--white); border-radius: 14px; overflow: hidden;
  border: 1px solid var(--parch-dk);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.post-card:hover { box-shadow: 0 10px 36px rgba(45,74,30,0.14); transform: translateY(-4px); }
.post-card-img {
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  font-size: 60px;
}
.post-card-body { padding: 20px; }
.post-card-body h2 { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--moss); margin-bottom: 8px; line-height: 1.3; }
.post-card-body p { font-size: 13px; color: var(--stone); line-height: 1.6; margin-bottom: 14px; }
.post-card-meta { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 11px; color: var(--stone); display: flex; gap: 10px; }
.post-card-meta a { color: var(--terra); font-weight: 700; }

/* ══════════════════════════════
   NEWSLETTER
══════════════════════════════ */
.newsletter {
  background: linear-gradient(135deg, var(--moss) 0%, #3d6228 100%);
  padding: 72px 0; position: relative; overflow: hidden;
}
.newsletter::before {
  content: '🌿';
  position: absolute; right: 5%; top: -20px;
  font-size: 180px; opacity: 0.06;
  animation: float 10s ease-in-out infinite; pointer-events: none;
}
.newsletter-inner { text-align: center; max-width: 560px; margin: 0 auto; padding: 0 32px; }
.newsletter-inner .eyebrow {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--bamboo); margin-bottom: 16px;
}
.newsletter-inner h2 { font-family: 'Playfair Display', serif; font-size: 34px; color: #fff; margin-bottom: 12px; }
.newsletter-inner p { color: rgba(245,236,215,0.8); margin-bottom: 28px; }
.newsletter-form { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; }
.newsletter-form input {
  flex: 1; padding: 13px 16px;
  border: none; border-radius: 6px;
  font-family: 'Lora', serif; font-size: 14px;
  background: rgba(255,255,255,0.12); color: #fff;
  outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form input:focus { background: rgba(255,255,255,0.18); }
.newsletter-form button {
  padding: 13px 22px;
  background: var(--terra); color: #fff;
  border: none; border-radius: 6px; cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px; font-weight: 700;
  transition: background 0.2s, transform 0.2s;
}
.newsletter-form button:hover { background: #a04d2a; transform: translateY(-1px); }
.newsletter-note { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 11px; color: rgba(245,236,215,0.5); margin-top: 12px; }

/* ══════════════════════════════
   INNER PAGE STYLES
══════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, var(--moss) 0%, #3d6228 60%, var(--sage) 100%);
  padding: 60px 0 50px;
  text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: 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.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-inner { position: relative; z-index: 1; padding: 0 32px; max-width: 800px; margin: 0 auto; }
.page-hero .breadcrumb { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 12px; color: rgba(245,236,215,0.6); margin-bottom: 16px; }
.page-hero .breadcrumb a { color: var(--bamboo); }
.page-hero h1 { font-family: 'Playfair Display', serif; font-size: 42px; color: #fff; margin-bottom: 14px; line-height: 1.2; }
.page-hero p { font-size: 16px; color: rgba(245,236,215,0.85); max-width: 600px; margin: 0 auto; }

.page-content { padding: 60px 0 80px; }
.page-content .container-narrow h1,
.page-content .container-narrow h2,
.page-content .container-narrow h3 { font-family: 'Playfair Display', serif; color: var(--moss); margin-top: 2em; margin-bottom: 0.6em; }
.page-content .container-narrow h1 { font-size: 2.4em; margin-top: 0; }
.page-content .container-narrow h2 { font-size: 1.9em; border-bottom: 3px solid var(--sage); padding-bottom: 10px; }
.page-content .container-narrow h3 { font-size: 1.45em; color: var(--terra); }
.page-content .container-narrow p { margin-bottom: 1.2em; }
.page-content .container-narrow ul,
.page-content .container-narrow ol { padding-left: 1.5em; margin-bottom: 1.2em; list-style: disc; }
.page-content .container-narrow ol { list-style: decimal; }
.page-content .container-narrow li { margin-bottom: 0.5em; }
.page-content .container-narrow a { color: var(--terra); text-decoration: underline; }
.page-content .container-narrow blockquote {
  border-left: 4px solid var(--terra);
  background: var(--parchment); padding: 16px 20px;
  margin: 24px 0; font-style: italic; color: var(--stone); border-radius: 0 6px 6px 0;
}
.page-content .container-narrow img { border-radius: 8px; margin: 24px 0; }

/* Callout box */
.callout {
  background: var(--parchment); border-left: 4px solid var(--terra);
  padding: 20px 24px; border-radius: 0 6px 6px 0;
  margin: 28px 0; color: var(--moss);
}
.callout strong { color: var(--terra); }

/* Affiliate button */
.affiliate-btn {
  display: inline-block;
  background: var(--terra); color: #fff;
  padding: 12px 22px; border-radius: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px; font-weight: 700;
  transition: background 0.2s, transform 0.2s;
  margin: 6px 4px;
}
.affiliate-btn:hover { background: #a04d2a; transform: translateY(-2px); color: #fff; }

/* ══════════════════════════════
   SINGLE POST
══════════════════════════════ */
.post-meta-bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 12px; color: var(--stone);
  padding: 20px 0; border-bottom: 1px solid var(--parch-dk); margin-bottom: 36px;
}
.post-meta-bar .category-link { background: var(--parchment); color: var(--terra); padding: 3px 10px; border-radius: 4px; font-weight: 700; }
.post-meta-bar .dot { opacity: 0.4; }

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.site-footer {
  background: var(--moss); color: var(--bamboo); padding: 60px 0 32px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}
.footer-brand .brand-name {
  font-family: 'Playfair Display', serif; font-size: 22px;
  color: var(--bamboo); margin-bottom: 12px;
}
.footer-brand p { font-size: 13px; color: rgba(212,180,131,0.7); line-height: 1.7; max-width: 240px; }
.footer-col h4 { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(212,180,131,0.5); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 13px; color: rgba(212,180,131,0.8); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--bamboo); }
.footer-bottom {
  border-top: 1px solid rgba(212,180,131,0.15);
  padding-top: 24px; display: flex;
  align-items: center; justify-content: space-between;
  font-size: 11px; color: rgba(212,180,131,0.4); flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: rgba(212,180,131,0.6); }

/* WordPress-generated classes */
.wp-block-image img { border-radius: 8px; }
.aligncenter { display: block; margin: 24px auto; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .guides-grid { grid-template-columns: 1fr 1fr; }
  .posts-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero-left h1 { font-size: 36px; }
  .guides-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
  .newsletter-form { flex-direction: column; }
}
