/*
Theme Name: Decor Goals
Theme URI: https://homedecorgoals.com
Author: HomeDecorGoals.com
Author URI: https://homedecorgoals.com
Description: A warm, Pinterest-optimized WordPress theme purpose-built for home decor blogs. Features earthy terracotta + sage aesthetic, vertical-first image layout for Pinterest traffic, full AdSense readiness with auto-generated legal pages, schema markup for SEO, and category-driven homepage. Built for USA home decor audiences.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: decor-goals
Tags: blog, two-columns, custom-menu, featured-images, threaded-comments, translation-ready, theme-options, custom-logo
*/

/* ==========================================================================
   CSS RESET & VARIABLES
   ========================================================================== */
:root {
  /* Brand Colors — Warm Pinterest Home Decor Aesthetic */
  --color-terracotta: #B85C3D;
  --color-terracotta-dark: #9A4A30;
  --color-terracotta-light: #D17A5B;
  --color-sage: #8FA68E;
  --color-sage-dark: #6F8770;
  --color-sage-light: #B5C5B0;
  --color-gold: #C9954A;
  --color-gold-light: #DEB068;
  --color-cream: #FAF6F0;
  --color-cream-dark: #F2EBE0;
  --color-text: #2A2520;
  --color-text-light: #635A52;
  --color-text-muted: #8B7F73;
  --color-border: #E8E2D9;
  --color-white: #FFFFFF;
  --color-black: #1A1612;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-xxl: 6rem;

  /* Container */
  --container-max: 1240px;
  --container-narrow: 760px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(42, 37, 32, 0.06);
  --shadow-md: 0 4px 16px rgba(42, 37, 32, 0.08);
  --shadow-lg: 0 12px 36px rgba(42, 37, 32, 0.12);

  /* Transitions */
  --t-fast: 0.18s ease;
  --t-base: 0.28s ease;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-terracotta); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--color-terracotta-dark); }
a:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1.2em; }

ul, ol { margin: 0 0 1.2em 1.5em; }
li { margin-bottom: 0.4em; }

blockquote {
  border-left: 4px solid var(--color-gold);
  padding: 1em 1.5em;
  margin: 1.5em 0;
  background: var(--color-cream-dark);
  font-style: italic;
  color: var(--color-text-light);
  border-radius: var(--radius-sm);
}

code { background: var(--color-cream-dark); padding: 0.2em 0.4em; border-radius: 3px; font-size: 0.9em; }
pre { background: var(--color-black); color: #f8f8f2; padding: 1em; border-radius: var(--radius-md); overflow-x: auto; }

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-md); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--space-md); }
.section { padding: var(--space-xl) 0; }
.section-tight { padding: var(--space-lg) 0; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-top {
  background: var(--color-text);
  color: var(--color-cream);
  font-size: 0.85rem;
  padding: 0.5rem 0;
}
.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.header-top a { color: var(--color-cream); }
.header-top a:hover { color: var(--color-gold-light); }
.header-tagline { font-style: italic; opacity: 0.85; }
.header-social { display: flex; gap: 0.8rem; align-items: center; }

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem var(--space-md);
  max-width: var(--container-max);
  margin: 0 auto;
  gap: var(--space-md);
}

.site-branding { display: flex; align-items: center; gap: 0.8rem; }
.site-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}
.site-title a { color: var(--color-text); }
.site-title .accent { color: var(--color-terracotta); }
.site-description { display: none; }

/* Primary Navigation */
.primary-menu-wrapper { flex: 1; display: flex; justify-content: center; }
.primary-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
  align-items: center;
}
.primary-menu li { margin: 0; position: relative; }
.primary-menu a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.5em 0;
  display: inline-block;
  position: relative;
}
.primary-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-terracotta);
  transform: scaleX(0);
  transition: transform var(--t-base);
}
.primary-menu a:hover::after,
.primary-menu .current-menu-item > a::after { transform: scaleX(1); }
.primary-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--t-base);
  list-style: none;
  z-index: 50;
}
.primary-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.primary-menu .sub-menu li { width: 100%; }
.primary-menu .sub-menu a {
  display: block;
  padding: 0.5rem 1.2rem;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.92rem;
}
.primary-menu .sub-menu a::after { display: none; }
.primary-menu .sub-menu a:hover { background: var(--color-cream); color: var(--color-terracotta); }

.header-actions { display: flex; gap: 0.8rem; align-items: center; }
.search-toggle, .mobile-menu-toggle {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast);
}
.search-toggle:hover, .mobile-menu-toggle:hover {
  background: var(--color-terracotta);
  color: var(--color-white);
  border-color: var(--color-terracotta);
}
.mobile-menu-toggle { display: none; }

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(42, 37, 32, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: var(--space-md);
}
.search-overlay.active { display: flex; }
.search-overlay form { width: 100%; max-width: 600px; position: relative; }
.search-overlay input {
  width: 100%;
  padding: 1.2rem 1.5rem;
  font-size: 1.2rem;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  font-family: var(--font-body);
}
.search-overlay .close-search {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: none;
  color: var(--color-cream);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   HERO / HOMEPAGE
   ========================================================================== */
.hero {
  background: linear-gradient(135deg, var(--color-cream-dark) 0%, var(--color-cream) 100%);
  padding: var(--space-xxl) 0 var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-sage-light) 0%, transparent 70%);
  opacity: 0.45;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-terracotta-light) 0%, transparent 70%);
  opacity: 0.3;
}
.hero-inner { position: relative; z-index: 2; }
.hero-eyebrow {
  display: inline-block;
  padding: 0.35em 1.1em;
  background: var(--color-white);
  color: var(--color-terracotta);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow-sm);
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.hero-title .accent { color: var(--color-terracotta); font-style: italic; }
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-light);
  max-width: 620px;
  margin: 0 auto 2rem;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9em 2em;
  background: var(--color-terracotta);
  color: var(--color-white);
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: all var(--t-base);
  box-shadow: var(--shadow-md);
}
.hero-cta:hover {
  background: var(--color-terracotta-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Category Pills (under hero) */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 2rem;
}
.category-pill {
  padding: 0.5em 1.1em;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  color: var(--color-text);
  font-weight: 500;
  transition: all var(--t-fast);
}
.category-pill:hover {
  background: var(--color-terracotta);
  color: var(--color-white);
  border-color: var(--color-terracotta);
}

/* ==========================================================================
   POST CARDS / GRIDS
   ========================================================================== */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.section-header h2 { margin: 0; }
.section-header .view-all {
  color: var(--color-terracotta);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.section-header .view-all::after { content: ' →'; }

.eyebrow {
  display: block;
  color: var(--color-sage-dark);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.post-grid.two-col { grid-template-columns: repeat(2, 1fr); }
.post-grid.four-col { grid-template-columns: repeat(4, 1fr); }

.post-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--t-base);
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--color-border);
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.post-card-image {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--color-cream-dark);
}
.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.post-card:hover .post-card-image img { transform: scale(1.05); }

/* Pinterest "Save" overlay button */
.pin-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #E60023;
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 0.5em 1em;
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(-8px);
  transition: all var(--t-base);
  z-index: 3;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}
.post-card:hover .pin-overlay { opacity: 1; transform: translateY(0); }
.pin-overlay:hover { background: #B5001C; color: #fff; }

.post-card-cat {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255,255,255,0.95);
  color: var(--color-terracotta);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35em 0.9em;
  border-radius: var(--radius-pill);
  z-index: 2;
}

.post-card-body {
  padding: 1.2rem 1.4rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.post-card-title {
  font-size: 1.2rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}
.post-card-title a { color: var(--color-text); }
.post-card-title a:hover { color: var(--color-terracotta); }
.post-card-excerpt {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
  flex: 1;
}
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}
.post-card-meta .dot { width: 3px; height: 3px; background: var(--color-text-muted); border-radius: 50%; }

/* Featured / Hero Post */
.featured-post {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-xl);
}
.featured-post .post-card-image { aspect-ratio: 4 / 3; }
.featured-post .post-card-body { padding: var(--space-lg); }
.featured-post .post-card-title { font-size: 2rem; line-height: 1.2; }
.featured-post .post-card-excerpt { font-size: 1.05rem; }

/* ==========================================================================
   CATEGORY SHOWCASE (Homepage)
   ========================================================================== */
.category-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.category-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  transition: transform var(--t-base);
  box-shadow: var(--shadow-md);
}
.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(42,37,32,0.85) 0%, rgba(42,37,32,0.2) 60%, rgba(42,37,32,0) 100%);
}
.category-card:hover { transform: scale(1.02); color: var(--color-white); }
.category-card-inner { position: relative; z-index: 2; }
.category-card-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin: 0 0 0.2rem;
  color: var(--color-white);
}
.category-card-count {
  font-size: 0.8rem;
  opacity: 0.9;
  letter-spacing: 0.05em;
}

/* Gradient fallbacks for categories without images */
.cat-grad-1 { background: linear-gradient(135deg, #B85C3D 0%, #D17A5B 100%); }
.cat-grad-2 { background: linear-gradient(135deg, #8FA68E 0%, #B5C5B0 100%); }
.cat-grad-3 { background: linear-gradient(135deg, #C9954A 0%, #DEB068 100%); }
.cat-grad-4 { background: linear-gradient(135deg, #6F8770 0%, #8FA68E 100%); }
.cat-grad-5 { background: linear-gradient(135deg, #9A4A30 0%, #B85C3D 100%); }
.cat-grad-6 { background: linear-gradient(135deg, #B5C5B0 0%, #D9E2D6 100%); color: #2A2520 !important; }
.cat-grad-7 { background: linear-gradient(135deg, #DEB068 0%, #F0CB8E 100%); color: #2A2520 !important; }
.cat-grad-8 { background: linear-gradient(135deg, #3A3A3A 0%, #5C5C5C 100%); }
.cat-grad-6 .category-card-name, .cat-grad-7 .category-card-name { color: var(--color-text); }
.cat-grad-6::before, .cat-grad-7::before { background: linear-gradient(to top, rgba(0,0,0,0.15), transparent 60%); }

/* ==========================================================================
   SINGLE POST
   ========================================================================== */
.single-post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
}
.single-post-main { min-width: 0; }
.single-post-sidebar { min-width: 0; }

.post-header { margin-bottom: var(--space-lg); }
.post-header .eyebrow { margin-bottom: 0.8rem; }
.post-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.post-meta .author-avatar { width: 36px; height: 36px; border-radius: 50%; }
.post-meta strong { color: var(--color-text); font-weight: 600; }

.post-featured-image {
  margin: 0 0 var(--space-lg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.post-featured-image img { width: 100%; height: auto; }

.post-content {
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--color-text);
}
.post-content > * { max-width: 720px; margin-left: auto; margin-right: auto; }
.post-content > .alignfull, .post-content > .wp-block-image { max-width: 100%; }
.post-content h2 { margin-top: 2.2em; margin-bottom: 0.6em; font-size: 1.8rem; }
.post-content h3 { margin-top: 1.8em; margin-bottom: 0.5em; font-size: 1.35rem; }
.post-content img { border-radius: var(--radius-md); margin: 1.5em 0; box-shadow: var(--shadow-sm); }
.post-content figure { margin: 1.5em 0; }
.post-content figcaption {
  text-align: center;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-top: 0.5em;
  font-style: italic;
}
.post-content ul, .post-content ol { padding-left: 1.5em; margin-bottom: 1.5em; }
.post-content li { margin-bottom: 0.5em; }
.post-content strong { color: var(--color-text); font-weight: 600; }
.post-content a { color: var(--color-terracotta); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.table-of-contents {
  background: var(--color-cream-dark);
  border-left: 4px solid var(--color-gold);
  padding: 1.2em 1.5em;
  margin: 2em 0;
  border-radius: var(--radius-md);
}
.table-of-contents h3 { margin-top: 0; margin-bottom: 0.5em; font-size: 1.1rem; }
.table-of-contents ol { margin-bottom: 0; }
.table-of-contents li { font-size: 0.95rem; }

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.2rem;
}
.breadcrumbs a { color: var(--color-text-light); }
.breadcrumbs a:hover { color: var(--color-terracotta); }
.breadcrumbs .sep { margin: 0 0.5em; opacity: 0.5; }

/* Share buttons */
.share-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: var(--space-lg) 0;
  padding: 1rem;
  background: var(--color-cream-dark);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}
.share-label {
  font-weight: 600;
  color: var(--color-text);
  margin-right: 0.5rem;
  font-size: 0.9rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  color: var(--color-white);
  transition: all var(--t-fast);
  font-size: 1rem;
  text-decoration: none;
}
.share-btn:hover { transform: translateY(-2px); color: var(--color-white); box-shadow: var(--shadow-md); }
.share-pinterest { background: #E60023; }
.share-facebook { background: #1877F2; }
.share-twitter { background: #000; }
.share-whatsapp { background: #25D366; }
.share-reddit { background: #FF4500; }
.share-email { background: #6B7280; }
.share-link { background: var(--color-text); }

/* Pin-it sticky button (vertical) */
.share-sticky {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 50;
}
.share-sticky .share-btn { width: 44px; height: 44px; box-shadow: var(--shadow-md); }
@media (max-width: 1100px) { .share-sticky { display: none; } }

/* Author Box */
.author-box {
  display: flex;
  gap: 1.2rem;
  padding: var(--space-md);
  background: var(--color-cream-dark);
  border-radius: var(--radius-md);
  margin: var(--space-lg) 0;
}
.author-box img { width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0; }
.author-box h4 { margin-bottom: 0.3rem; font-size: 1.15rem; }
.author-box p { margin-bottom: 0; font-size: 0.95rem; color: var(--color-text-light); }

/* Related Posts */
.related-posts { margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: 1px solid var(--color-border); }
.related-posts h2 { margin-bottom: var(--space-md); }

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.sidebar-widget {
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  border: 1px solid var(--color-border);
}
.sidebar-widget h3, .sidebar-widget .widget-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--color-terracotta);
  display: inline-block;
}
.sidebar-widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar-widget li { padding: 0.5rem 0; border-bottom: 1px solid var(--color-border); font-size: 0.95rem; }
.sidebar-widget li:last-child { border-bottom: none; }
.sidebar-widget a { color: var(--color-text); }
.sidebar-widget a:hover { color: var(--color-terracotta); }

.about-widget { text-align: center; }
.about-widget img { width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 1rem; object-fit: cover; }
.about-widget p { font-size: 0.95rem; color: var(--color-text-light); }

/* ==========================================================================
   NEWSLETTER
   ========================================================================== */
.newsletter-section {
  background: linear-gradient(135deg, var(--color-sage) 0%, var(--color-sage-dark) 100%);
  color: var(--color-white);
  padding: var(--space-xl) 0;
  text-align: center;
}
.newsletter-section h2 { color: var(--color-white); margin-bottom: 0.5rem; }
.newsletter-section p { color: rgba(255,255,255,0.92); max-width: 500px; margin: 0 auto 1.5rem; }
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 500px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-form input {
  flex: 1;
  min-width: 240px;
  padding: 0.9em 1.2em;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 1rem;
}
.newsletter-form button {
  padding: 0.9em 2em;
  background: var(--color-text);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background var(--t-fast);
}
.newsletter-form button:hover { background: var(--color-terracotta); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--color-text);
  color: var(--color-cream);
  padding: var(--space-xl) 0 var(--space-md);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.footer-widget h4 {
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}
.footer-widget p, .footer-widget li { color: rgba(250,246,240,0.75); font-size: 0.92rem; line-height: 1.65; }
.footer-widget ul { list-style: none; margin: 0; padding: 0; }
.footer-widget li { padding: 0.3rem 0; }
.footer-widget a { color: rgba(250,246,240,0.75); transition: color var(--t-fast); }
.footer-widget a:hover { color: var(--color-gold-light); }

.footer-brand .site-title { color: var(--color-white); font-size: 1.6rem; margin-bottom: 0.8rem; }
.footer-brand .site-title a { color: var(--color-white); }
.footer-brand .site-title .accent { color: var(--color-gold-light); }

.footer-social { display: flex; gap: 0.6rem; margin-top: 1rem; }
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cream);
  transition: all var(--t-fast);
}
.footer-social a:hover { background: var(--color-terracotta); color: var(--color-white); transform: translateY(-2px); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: rgba(250,246,240,0.6);
}
.footer-bottom-menu { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-bottom-menu a { color: rgba(250,246,240,0.7); }
.footer-bottom-menu a:hover { color: var(--color-gold-light); }

/* ==========================================================================
   AD ZONES
   ========================================================================== */
.ad-zone {
  background: var(--color-cream-dark);
  border: 1px dashed var(--color-border);
  padding: 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: var(--space-md) 0;
  border-radius: var(--radius-sm);
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-zone-large { min-height: 280px; }
.ad-zone-sticky { position: sticky; top: 100px; }

/* ==========================================================================
   FORMS, COMMENTS, ETC
   ========================================================================== */
input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea, select {
  width: 100%;
  padding: 0.7em 1em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-white);
  transition: border-color var(--t-fast);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-terracotta);
}

button, .button, input[type="submit"] {
  display: inline-block;
  padding: 0.8em 1.8em;
  background: var(--color-terracotta);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--t-base);
  text-decoration: none;
}
button:hover, .button:hover, input[type="submit"]:hover {
  background: var(--color-terracotta-dark);
  color: var(--color-white);
  transform: translateY(-1px);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin: var(--space-lg) 0;
  flex-wrap: wrap;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.8em;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-weight: 500;
  transition: all var(--t-fast);
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--color-terracotta);
  color: var(--color-white);
  border-color: var(--color-terracotta);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .single-post-layout { grid-template-columns: 1fr; }
  .single-post-sidebar { order: 2; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid.four-col { grid-template-columns: repeat(3, 1fr); }
  .category-showcase { grid-template-columns: repeat(3, 1fr); }
  .featured-post { grid-template-columns: 1fr; }
  .featured-post .post-card-body { padding: var(--space-md); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .header-top { display: none; }
  .header-main { padding: 0.8rem var(--space-md); }
  .site-title { font-size: 1.4rem; }
  .primary-menu-wrapper { display: none; }
  .primary-menu-wrapper.mobile-open {
    display: block;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-white);
    padding: var(--space-md);
    overflow-y: auto;
    z-index: 99;
  }
  .primary-menu-wrapper.mobile-open .primary-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .primary-menu-wrapper.mobile-open .primary-menu li {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }
  .primary-menu-wrapper.mobile-open .primary-menu a {
    padding: 1em 0;
    width: 100%;
    display: block;
  }
  .primary-menu-wrapper.mobile-open .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 1.2rem;
    background: var(--color-cream);
  }
  .mobile-menu-toggle { display: inline-flex; }
  .post-grid, .post-grid.two-col, .post-grid.four-col { grid-template-columns: repeat(2, 1fr); }
  .category-showcase { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: var(--space-lg) 0; }
  .section { padding: var(--space-lg) 0; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .post-grid, .post-grid.two-col { grid-template-columns: 1fr; }
  .category-showcase { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 1.8rem; }
  .post-card-image { aspect-ratio: 4/3; }
}

/* Print */
@media print {
  .site-header, .site-footer, .share-bar, .share-sticky, .ad-zone, .sidebar-widget { display: none !important; }
}

/* Accessibility */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-terracotta);
  color: var(--color-white);
  padding: 0.6em 1em;
  z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }
