/*
Theme Name:  Op Shops Near Me
Theme URI:   https://opshopsneearme.net.au
Author:      OpShopsNearMe
Author URI:  https://opshopsneearme.net.au
Description: A warm, community-focused WordPress theme for Australia's op shop directory. Features a homepage with suburb search, charity spotlights, blog, and pages for donating, volunteering, and buying guides.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: opshopsneearme
Tags:        custom-colors, custom-menu, featured-images, threaded-comments, translation-ready, blog, e-commerce
*/

/* =====================================================
   ROOT VARIABLES
   ===================================================== */
:root {
  --terracotta:       #C05C35;
  --terracotta-light: #D4724E;
  --terracotta-dark:  #9A4428;
  --cream:            #F5EFE3;
  --cream-dark:       #EDE4D3;
  --sage:             #3D6B4F;
  --sage-light:       #5A8A68;
  --sage-pale:        #EAF0EB;
  --charcoal:         #251E15;
  --brown-mid:        #6B4F3A;
  --gold:             #C9943A;
  --sand:             #FAF7F0;
  --white:            #FFFFFF;
  --font-display:     'Fraunces', Georgia, serif;
  --font-body:        'Instrument Sans', sans-serif;
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: var(--font-body);
  background: var(--sand);
  color: var(--charcoal);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
}

img  { max-width: 100%; height: auto; display: block; }
a    { color: var(--terracotta); }
a:hover { color: var(--terracotta-dark); }

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--charcoal);
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin-bottom: 0.9rem; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); margin-bottom: 0.75rem; }
h4 { font-size: 1.15rem; margin-bottom: 0.5rem; }
p  { margin-bottom: 1.1rem; line-height: 1.7; color: var(--brown-mid); }
p:last-child { margin-bottom: 0; }

/* =====================================================
   NAVBAR
   ===================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(245,239,227,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(192,92,53,0.12);
  transition: background 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
  background: rgba(245,239,227,0.98);
  box-shadow: 0 2px 20px rgba(37,30,21,0.08);
}

.site-branding { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.site-branding-icon {
  width: 38px; height: 38px;
  background: var(--terracotta);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.site-branding-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.1;
}
.site-branding-text span { color: var(--terracotta); }

/* Primary Nav */
#primary-menu-wrapper { display: flex; align-items: center; gap: 0.25rem; }
#primary-menu { list-style: none; display: flex; align-items: center; gap: 0.15rem; }
#primary-menu li a {
  display: block;
  text-decoration: none;
  color: var(--charcoal);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
#primary-menu li a:hover,
#primary-menu li.current-menu-item > a {
  background: var(--cream-dark);
  color: var(--terracotta);
}
.nav-cta-btn {
  background: var(--terracotta) !important;
  color: var(--white) !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  padding: 0.55rem 1.1rem !important;
  margin-left: 0.5rem;
}
.nav-cta-btn:hover { background: var(--terracotta-dark) !important; color: var(--white) !important; }

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all 0.3s;
}

/* =====================================================
   PAGE TABS BAR
   ===================================================== */
.pages-nav {
  background: var(--white);
  border-bottom: 1px solid var(--cream-dark);
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  overflow-x: auto;
  scrollbar-width: none;
  margin-top: 72px;
}
.pages-nav::-webkit-scrollbar { display: none; }
.pages-nav-inner {
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
}
.pages-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.9rem 1.1rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--brown-mid);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.pages-nav a:hover,
.pages-nav a.current { color: var(--terracotta); border-bottom-color: var(--terracotta); font-weight: 600; }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem clamp(1.5rem, 5vw, 4rem) 5rem;
  position: relative;
  overflow: hidden;
  background: var(--cream);
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-blob { position: absolute; border-radius: 50%; }
.hero-blob-1 {
  width: 600px; height: 600px; top: -200px; right: -150px;
  background: radial-gradient(circle, rgba(192,92,53,0.12) 0%, transparent 70%);
  animation: float1 8s ease-in-out infinite;
}
.hero-blob-2 {
  width: 500px; height: 500px; bottom: -100px; left: -100px;
  background: radial-gradient(circle, rgba(61,107,79,0.1) 0%, transparent 70%);
  animation: float2 10s ease-in-out infinite;
}
.hero-blob-3 {
  width: 300px; height: 300px; top: 30%; left: 10%;
  background: radial-gradient(circle, rgba(201,148,58,0.08) 0%, transparent 70%);
  animation: float3 12s ease-in-out infinite;
}
.hero-deco { position: absolute; inset: 0; pointer-events: none; }
.hero-deco::before {
  content: ''; position: absolute;
  top: 15%; right: 8%;
  width: 180px; height: 180px;
  border: 2px dashed rgba(192,92,53,0.2);
  border-radius: 50%;
  animation: spin 30s linear infinite;
}
.hero-deco::after {
  content: ''; position: absolute;
  bottom: 20%; left: 6%;
  width: 100px; height: 100px;
  border: 1.5px dashed rgba(61,107,79,0.2);
  border-radius: 50%;
  animation: spin 20s linear infinite reverse;
}

@keyframes float1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-30px,20px)} }
@keyframes float2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(20px,-30px)} }
@keyframes float3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-15px,15px)} }
@keyframes spin   { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

.hero-content { position: relative; z-index: 2; max-width: 780px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--sage-pale);
  color: var(--sage);
  border: 1px solid rgba(61,107,79,0.2);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s ease both;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700; line-height: 1.05;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s 0.15s ease both;
}
.hero h1 em { font-style: italic; color: var(--terracotta); }

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--brown-mid);
  line-height: 1.65;
  margin-bottom: 2.5rem;
  max-width: 580px;
  margin-left: auto; margin-right: auto;
  animation: fadeUp 0.8s 0.25s ease both;
}

/* Search Box */
.search-box {
  background: var(--white);
  border-radius: 20px;
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  display: flex; gap: 0.75rem; align-items: center;
  box-shadow: 0 8px 40px rgba(37,30,21,0.12), 0 2px 8px rgba(37,30,21,0.06);
  max-width: 640px; margin: 0 auto 1.75rem;
  animation: fadeUp 0.8s 0.35s ease both;
  border: 1.5px solid rgba(192,92,53,0.1);
}
.search-icon { font-size: 1.3rem; flex-shrink: 0; color: var(--terracotta); }
.search-input {
  flex: 1; border: none; outline: none;
  font-family: var(--font-body); font-size: 1rem;
  color: var(--charcoal); background: transparent;
}
.search-input::placeholder { color: #B0A090; }
.search-divider { width: 1px; height: 28px; background: var(--cream-dark); flex-shrink: 0; }
.search-state {
  border: none; outline: none;
  font-family: var(--font-body); font-size: 0.9rem;
  color: var(--brown-mid); background: transparent;
  cursor: pointer; padding: 0 0.5rem; flex-shrink: 0;
}
.search-btn {
  background: var(--terracotta); color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem; border-radius: 12px;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: background 0.2s, transform 0.15s;
  flex-shrink: 0; white-space: nowrap;
}
.search-btn:hover { background: var(--terracotta-dark); transform: translateY(-1px); }

/* Hero Stats */
.hero-stats {
  display: flex; gap: 2.5rem; justify-content: center;
  animation: fadeUp 0.8s 0.45s ease both;
}
.hero-stat-item { display: flex; flex-direction: column; align-items: center; }
.hero-stat-num { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--terracotta); }
.hero-stat-label { font-size: 0.78rem; color: var(--brown-mid); font-weight: 500; letter-spacing: 0.03em; }
.hero-stat-sep { width: 1px; height: 40px; background: var(--cream-dark); margin-top: 0.25rem; }

/* =====================================================
   STATE BAR
   ===================================================== */
.states-bar {
  background: var(--charcoal);
  padding: 1rem clamp(1.5rem, 4vw, 3rem);
  display: flex; align-items: center; gap: 0.5rem;
  overflow-x: auto; scrollbar-width: none;
}
.states-bar::-webkit-scrollbar { display: none; }
.states-label { color: rgba(255,255,255,0.5); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; margin-right: 0.5rem; }
.state-pill {
  display: inline-block; padding: 0.4rem 1rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.75);
  font-size: 0.82rem; font-weight: 500; white-space: nowrap;
  cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.state-pill:hover, .state-pill.active { background: var(--terracotta); border-color: var(--terracotta); color: var(--white); }

/* =====================================================
   SECTION HELPERS
   ===================================================== */
.section { padding: clamp(3.5rem, 7vw, 6rem) clamp(1.5rem, 5vw, 4rem); }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-label {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: 0.75rem;
}
.section-label::before { content: ''; display: inline-block; width: 20px; height: 2px; background: var(--terracotta); border-radius: 1px; }

/* =====================================================
   WHY OP SHOPS
   ===================================================== */
.why-section { background: var(--white); display: grid; grid-template-columns: 1fr 1fr; }
.why-left {
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
  display: flex; flex-direction: column; justify-content: center;
}
.why-right {
  background: var(--terracotta);
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}
.why-right::before {
  content: '"'; font-family: var(--font-display); font-size: 20rem;
  color: rgba(255,255,255,0.07); position: absolute; top: -2rem; left: -1rem; line-height: 1;
  pointer-events: none;
}
.why-cards { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2rem; }
.why-card {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem; background: var(--sand); border-radius: 14px;
  border: 1px solid var(--cream-dark);
  transition: transform 0.2s, box-shadow 0.2s;
}
.why-card:hover { transform: translateX(4px); box-shadow: 0 4px 20px rgba(37,30,21,0.08); }
.why-card-icon {
  font-size: 1.5rem; flex-shrink: 0;
  width: 44px; height: 44px; background: var(--white); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(37,30,21,0.06);
}
.why-card h4 { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.2rem; color: var(--charcoal); font-family: var(--font-body); }
.why-card p  { font-size: 0.85rem; color: var(--brown-mid); line-height: 1.5; margin: 0; }

.stat-big { position: relative; z-index: 1; }
.stat-big-num { font-family: var(--font-display); font-size: clamp(3.5rem, 7vw, 5.5rem); font-weight: 700; color: var(--white); line-height: 1; margin-bottom: 0.25rem; }
.stat-big-label { font-size: 1.1rem; color: rgba(255,255,255,0.8); line-height: 1.5; max-width: 280px; margin-bottom: 2.5rem; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat-mini { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.15); border-radius: 12px; padding: 1rem; }
.stat-mini-num { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--white); }
.stat-mini-label { font-size: 0.78rem; color: rgba(255,255,255,0.7); }

/* =====================================================
   THREE PATHS
   ===================================================== */
.paths-section { background: var(--sand); }
.paths-header { text-align: center; max-width: 600px; margin: 0 auto 3rem; }
.paths-header p { text-align: center; margin: 0 auto; }
.paths-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.path-card {
  border-radius: 20px; padding: 2.5rem 2rem;
  position: relative; overflow: hidden;
  cursor: pointer; transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none; color: inherit;
  display: block;
}
.path-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(37,30,21,0.15); }
.path-card-1 { background: var(--terracotta); }
.path-card-2 { background: var(--sage); }
.path-card-3 { background: var(--charcoal); }
.path-card::before { content: ''; position: absolute; bottom: -30px; right: -30px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,0.06); }
.path-card::after  { content: ''; position: absolute; bottom: 20px; right: 20px;  width: 80px;  height: 80px;  border-radius: 50%; background: rgba(255,255,255,0.05); }
.path-emoji  { font-size: 2.5rem; margin-bottom: 1.25rem; display: block; }
.path-title  { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--white); margin-bottom: 0.75rem; line-height: 1.2; }
.path-desc   { font-size: 0.9rem; color: rgba(255,255,255,0.75); line-height: 1.6; margin-bottom: 1.5rem; }
.path-link   { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 600; color: var(--white); border-bottom: 1px solid rgba(255,255,255,0.4); padding-bottom: 2px; transition: gap 0.2s; }
.path-card:hover .path-link { gap: 0.7rem; }

/* =====================================================
   FEATURED GUIDES
   ===================================================== */
.featured-section { background: var(--cream); }
.featured-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; }
.featured-main { background: var(--white); border-radius: 20px; overflow: hidden; box-shadow: 0 4px 24px rgba(37,30,21,0.07); transition: transform 0.3s; }
.featured-main:hover { transform: translateY(-4px); }
.featured-main-img { height: 240px; background: linear-gradient(135deg, var(--terracotta), var(--gold), var(--terracotta-dark)); display: flex; align-items: center; justify-content: center; font-size: 5rem; }
.featured-main-body { padding: 1.75rem; }
.featured-tag { display: inline-block; background: var(--sage-pale); color: var(--sage); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.25rem 0.65rem; border-radius: 4px; margin-bottom: 0.75rem; }
.featured-main-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.3; color: var(--charcoal); margin-bottom: 0.6rem; }
.featured-main-excerpt { font-size: 0.9rem; color: var(--brown-mid); line-height: 1.6; margin-bottom: 1.25rem; }
.featured-meta { display: flex; align-items: center; gap: 0.75rem; font-size: 0.8rem; color: #B0A090; }
.featured-meta-dot { width: 5px; height: 5px; background: var(--cream-dark); border-radius: 50%; flex-shrink: 0; }

.featured-list { display: flex; flex-direction: column; gap: 1rem; }
.featured-mini { background: var(--white); border-radius: 14px; padding: 1.25rem; display: flex; gap: 1rem; align-items: center; box-shadow: 0 2px 12px rgba(37,30,21,0.05); transition: transform 0.2s, box-shadow 0.2s; cursor: pointer; }
.featured-mini:hover { transform: translateX(4px); box-shadow: 0 4px 20px rgba(37,30,21,0.09); }
.featured-mini-emoji { font-size: 1.6rem; width: 52px; height: 52px; background: var(--cream); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.featured-mini-title { font-family: var(--font-display); font-size: 0.98rem; font-weight: 600; color: var(--charcoal); line-height: 1.35; margin-bottom: 0.25rem; }
.featured-mini-meta  { font-size: 0.78rem; color: #B0A090; }

/* =====================================================
   TIPS STRIP
   ===================================================== */
.tips-strip { background: var(--sage); padding: 3.5rem clamp(1.5rem, 5vw, 4rem); }
.tips-strip .section-label { color: rgba(255,255,255,0.6); }
.tips-strip .section-label::before { background: rgba(255,255,255,0.4); }
.tips-strip h2 { color: var(--white); }
.tips-strip h2 em { font-style: italic; color: rgba(255,255,255,0.7); }
.tips-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; align-items: start; max-width: 1100px; margin: 0 auto; }
.tips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.tip-card { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; padding: 1.25rem; transition: background 0.2s; }
.tip-card:hover { background: rgba(255,255,255,0.16); }
.tip-num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: rgba(255,255,255,0.2); line-height: 1; margin-bottom: 0.25rem; }
.tip-title { font-weight: 600; color: var(--white); font-size: 0.9rem; margin-bottom: 0.3rem; }
.tip-text  { font-size: 0.82rem; color: rgba(255,255,255,0.65); line-height: 1.5; margin: 0; }

/* =====================================================
   CHARITIES
   ===================================================== */
.charities-section { background: var(--sand); }
.charities-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2rem; }
.charities-header p { max-width: 440px; }
.charities-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.charity-card { background: var(--white); border-radius: 16px; padding: 1.5rem; border: 1.5px solid var(--cream-dark); transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s; cursor: pointer; }
.charity-card:hover { transform: translateY(-4px); border-color: var(--terracotta); box-shadow: 0 8px 30px rgba(192,92,53,0.12); }
.charity-emoji { font-size: 2rem; margin-bottom: 0.75rem; display: block; }
.charity-name  { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--charcoal); margin-bottom: 0.35rem; }
.charity-type  { font-size: 0.8rem; color: var(--brown-mid); margin-bottom: 0.75rem; }
.charity-stores { font-size: 0.8rem; font-weight: 600; color: var(--terracotta); }

/* =====================================================
   BLOG
   ===================================================== */
.blog-section { background: var(--cream); }
.blog-header  { text-align: center; max-width: 520px; margin: 0 auto 2.5rem; }
.blog-header p { text-align: center; margin: 0 auto; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2.5rem; }
.blog-card { background: var(--white); border-radius: 18px; overflow: hidden; box-shadow: 0 2px 16px rgba(37,30,21,0.06); transition: transform 0.25s, box-shadow 0.25s; }
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(37,30,21,0.12); }
.blog-card a { text-decoration: none; color: inherit; display: block; }

.blog-thumb { height: 175px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3.5rem; }
.blog-thumb-1 { background: linear-gradient(135deg, #E8C4A0, #C05C35); }
.blog-thumb-2 { background: linear-gradient(135deg, #A8C5B0, #3D6B4F); }
.blog-thumb-3 { background: linear-gradient(135deg, #D4B896, #C9943A); }

.blog-card-body  { padding: 1.5rem; }
.blog-card-cat   { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 0.5rem; display: block; }
.blog-card-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; line-height: 1.35; color: var(--charcoal); margin-bottom: 0.5rem; }
.blog-card-excerpt { font-size: 0.84rem; color: var(--brown-mid); line-height: 1.55; margin-bottom: 1rem; }
.blog-card-footer { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: #B0A090; }
.blog-read-more { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--terracotta); font-weight: 600; font-size: 0.82rem; text-decoration: none; }

/* =====================================================
   NEWSLETTER
   ===================================================== */
.newsletter-section {
  background: var(--charcoal);
  padding: clamp(3.5rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center; position: relative; overflow: hidden;
}
.newsletter-section::before { content: '✦'; position: absolute; font-size: 20rem; color: rgba(255,255,255,0.02); top: -4rem; left: 50%; transform: translateX(-50%); pointer-events: none; }
.newsletter-inner { max-width: 520px; margin: 0 auto; position: relative; z-index: 1; }
.newsletter-badge { display: inline-flex; align-items: center; gap: 0.4rem; background: rgba(201,148,58,0.15); color: var(--gold); border: 1px solid rgba(201,148,58,0.25); padding: 0.35rem 0.9rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 1.25rem; }
.newsletter-inner h2 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.newsletter-inner h2 em { font-style: italic; color: var(--gold); }
.newsletter-inner p { color: rgba(255,255,255,0.6); margin-bottom: 2rem; }
.newsletter-form { display: flex; gap: 0.6rem; max-width: 420px; margin: 0 auto; }
.newsletter-input { flex: 1; border: 1.5px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.07); border-radius: 10px; padding: 0.75rem 1rem; font-family: var(--font-body); font-size: 0.9rem; color: var(--white); outline: none; transition: border-color 0.2s; }
.newsletter-input::placeholder { color: rgba(255,255,255,0.3); }
.newsletter-input:focus { border-color: var(--gold); }
.newsletter-btn { background: var(--terracotta); color: var(--white); border: none; padding: 0.75rem 1.5rem; border-radius: 10px; font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: background 0.2s; white-space: nowrap; }
.newsletter-btn:hover { background: var(--terracotta-dark); }

/* =====================================================
   INNER PAGE CONTENT
   ===================================================== */
.page-hero {
  background: var(--cream);
  padding: 7rem clamp(1.5rem, 5vw, 4rem) 3.5rem;
  text-align: center;
  border-bottom: 1px solid var(--cream-dark);
}
.page-hero .page-hero-inner { max-width: 700px; margin: 0 auto; }
.page-hero h1 em { font-style: italic; color: var(--terracotta); }
.page-hero .page-hero-subtitle { font-size: 1.1rem; color: var(--brown-mid); line-height: 1.7; margin-top: 1rem; }

.page-content { max-width: 780px; margin: 0 auto; padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4rem); }
.page-content h2 { font-size: 1.8rem; margin-top: 2.5rem; margin-bottom: 0.75rem; }
.page-content h3 { font-size: 1.35rem; margin-top: 1.75rem; margin-bottom: 0.6rem; color: var(--terracotta); }
.page-content ul, .page-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.page-content li { margin-bottom: 0.5rem; color: var(--brown-mid); line-height: 1.65; }
.page-content blockquote { border-left: 3px solid var(--terracotta); padding-left: 1.5rem; margin: 2rem 0; font-family: var(--font-display); font-size: 1.2rem; font-style: italic; color: var(--charcoal); }
.page-content .wp-block-image { margin: 2rem 0; border-radius: 12px; overflow: hidden; }

/* Info Box (Gutenberg custom class) */
.info-box { background: var(--sage-pale); border: 1px solid rgba(61,107,79,0.2); border-radius: 12px; padding: 1.5rem 1.75rem; margin: 1.75rem 0; }
.info-box p { color: var(--sage); margin: 0; }

/* =====================================================
   BLOG ARCHIVE / SINGLE
   ===================================================== */
.blog-archive { padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4rem); }
.blog-archive-inner { max-width: 1100px; margin: 0 auto; }
.blog-archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.75rem; }

.single-post { max-width: 780px; margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4rem); }
.single-post-header { margin-bottom: 2rem; }
.single-post-cat { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--terracotta); display: block; margin-bottom: 0.5rem; }
.single-post-title { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.15; margin-bottom: 0.75rem; }
.single-post-meta { font-size: 0.85rem; color: #B0A090; }
.single-post-featured { border-radius: 16px; overflow: hidden; margin-bottom: 2rem; }
.single-post-featured img { width: 100%; height: 400px; object-fit: cover; }
.single-post-content p { font-size: 1.05rem; line-height: 1.8; color: var(--brown-mid); margin-bottom: 1.25rem; }

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  text-decoration: none; font-weight: 600;
  border-radius: 8px; transition: all 0.2s;
  font-family: var(--font-body); cursor: pointer; border: none;
}
.btn-primary { background: var(--terracotta); color: var(--white); padding: 0.7rem 1.5rem; font-size: 0.95rem; }
.btn-primary:hover { background: var(--terracotta-dark); color: var(--white); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--terracotta); border: 1.5px solid var(--terracotta); padding: 0.65rem 1.4rem; font-size: 0.9rem; }
.btn-outline:hover { background: var(--terracotta); color: var(--white); }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer { background: #1A1410; padding: clamp(3rem, 5vw, 4.5rem) clamp(1.5rem, 5vw, 4rem) 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; max-width: 1100px; margin: 0 auto 3rem; }
.footer-brand p { font-size: 0.875rem; color: rgba(255,255,255,0.45); line-height: 1.65; margin-top: 1rem; max-width: 260px; }
.footer-col-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 1.1rem; }
.footer-menu { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-menu a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.footer-menu a:hover { color: var(--terracotta); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; max-width: 1100px; margin: 0 auto; }
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.3); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.8rem; color: rgba(255,255,255,0.3); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: rgba(255,255,255,0.6); }

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .charities-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .why-section    { grid-template-columns: 1fr; }
  .paths-grid     { grid-template-columns: 1fr; }
  .featured-grid  { grid-template-columns: 1fr; }
  .blog-grid      { grid-template-columns: 1fr; }
  .tips-inner     { grid-template-columns: 1fr; }
  .charities-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
@media (max-width: 600px) {
  .menu-toggle        { display: flex; }
  #primary-menu-wrapper { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--cream-dark); padding: 1rem; }
  #primary-menu-wrapper.open { display: flex; flex-direction: column; }
  #primary-menu { flex-direction: column; width: 100%; }
  #primary-menu li a { padding: 0.75rem 1rem; border-radius: 8px; }
  .hero-stats         { gap: 1.25rem; }
  .search-box         { flex-wrap: wrap; }
  .search-divider     { display: none; }
  .charities-grid     { grid-template-columns: 1fr; }
  .footer-grid        { grid-template-columns: 1fr; }
  .newsletter-form    { flex-direction: column; }
  .footer-bottom      { flex-direction: column; gap: 0.75rem; text-align: center; }
  .tips-grid          { grid-template-columns: 1fr; }
}
