/*
Theme Name: Heart in Italy
Theme URI: https://www.heartinitaly.com
Author: Heart in Italy
Author URI: https://www.heartinitaly.com
Description: A warm, rustic Italian culture and lifestyle blog theme. Features blog with categories & tags, custom homepage, and beautiful typography.
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: heartinitaly
Tags: blog, custom-header, custom-menu, featured-images, translation-ready, one-column, two-columns
*/

/* ═══════════════════════════════════════════
   CSS VARIABLES & RESET
   ═══════════════════════════════════════════ */
:root {
  --terracotta: #C4613A;
  --terracotta-light: #D4815F;
  --terracotta-dark: #A14E2E;
  --olive: #6B7A40;
  --olive-light: #8A9A5B;
  --olive-dark: #4F5C2E;
  --cream: #FAF6F0;
  --cream-warm: #F5EDE0;
  --cream-dark: #EDE4D3;
  --espresso: #2C1810;
  --espresso-light: #4A3228;
  --gold: #C9A96E;
  --gold-light: #DBBF8A;
  --wine: #722F37;
  --linen: #F0E8DA;
  --stone: #A89B8C;
  --stone-light: #C4B9AD;
  --white: #FDFCFA;
  --shadow: rgba(44, 24, 16, 0.08);
  --shadow-md: rgba(44, 24, 16, 0.12);
  --shadow-lg: rgba(44, 24, 16, 0.18);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Lora', Georgia, serif;
  color: var(--espresso);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  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.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--terracotta); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--terracotta-dark); }

/* ── Utility ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes gentlePulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
@keyframes floatUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Ornament divider ── */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 48px auto;
  max-width: 280px;
}
.ornament::before, .ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--stone-light), transparent);
}
.ornament-icon {
  color: var(--terracotta);
  font-size: 18px;
  animation: gentlePulse 3s ease-in-out infinite;
}

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(196, 97, 58, 0.1);
  transition: all 0.4s ease;
}
.site-header.scrolled {
  box-shadow: 0 2px 20px var(--shadow);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.site-logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--espresso);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-logo .heart {
  color: var(--terracotta);
  font-size: 20px;
  display: inline-block;
  transition: transform 0.3s ease;
}
.site-logo:hover .heart { transform: scale(1.2); }
.site-logo .in { color: var(--olive); font-style: italic; font-weight: 400; }

/* WP Nav Menu */
.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-navigation ul li a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--espresso-light);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}
.main-navigation ul li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--terracotta);
  transition: width 0.3s ease;
}
.main-navigation ul li a:hover { color: var(--terracotta); }
.main-navigation ul li a:hover::after { width: 100%; }
.main-navigation ul li.current-menu-item a,
.main-navigation ul li.current_page_item a {
  color: var(--terracotta);
}
.main-navigation ul li.current-menu-item a::after,
.main-navigation ul li.current_page_item a::after {
  width: 100%;
}

/* Sub-menus */
.main-navigation ul li { position: relative; }
.main-navigation ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: -16px;
  flex-direction: column;
  gap: 0;
  background: rgba(250, 246, 240, 0.98);
  backdrop-filter: blur(16px);
  min-width: 200px;
  padding: 12px 0;
  box-shadow: 0 8px 24px var(--shadow-md);
  border: 1px solid rgba(196, 97, 58, 0.08);
}
.main-navigation ul li:hover > ul { display: flex; }
.main-navigation ul ul li a {
  padding: 10px 24px;
  font-size: 14px;
  letter-spacing: 1px;
  display: block;
}
.main-navigation ul ul li a::after { display: none; }

.nav-cta {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 10px 24px;
  background: var(--terracotta);
  color: var(--cream) !important;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}
.nav-cta:hover {
  background: var(--terracotta-dark);
  color: var(--cream) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(196, 97, 58, 0.3);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--espresso);
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ═══════════════════════════════════════════
   HERO (Front Page)
   ═══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, var(--cream) 0%, var(--cream-warm) 40%, var(--linen) 100%);
}
.hero-bg-pattern {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(196, 97, 58, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(107, 122, 64, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(201, 169, 110, 0.04) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content {
  text-align: center;
  max-width: 800px;
  padding: 120px 24px 80px;
  position: relative;
  z-index: 2;
}
.hero-tag {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--terracotta);
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease both;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 800;
  line-height: 1.05;
  color: var(--espresso);
  margin-bottom: 8px;
  animation: fadeUp 0.8s ease 0.15s both;
}
.hero h1 .accent { color: var(--terracotta); font-style: italic; font-weight: 600; }
.hero h1 .olive-accent { color: var(--olive); }
.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 400;
  font-style: italic;
  color: var(--stone);
  margin: 24px 0 40px;
  animation: fadeUp 0.8s ease 0.3s both;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.45s both;
}
.btn-primary {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  padding: 16px 40px;
  background: var(--terracotta);
  color: var(--cream);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover {
  background: var(--terracotta-dark);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196, 97, 58, 0.3);
}
.btn-secondary {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  padding: 16px 40px;
  background: transparent;
  color: var(--espresso);
  border: 1.5px solid var(--espresso);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  background: var(--espresso);
  color: var(--cream);
  transform: translateY(-2px);
}
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: floatUp 2.5s ease-in-out infinite;
  z-index: 2;
}
.hero-scroll a {
  color: var(--stone);
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-scroll .arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--stone), transparent);
}

/* ═══════════════════════════════════════════
   SECTION STYLES
   ═══════════════════════════════════════════ */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-tag {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--terracotta);
  margin-bottom: 16px;
  display: block;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--espresso);
  margin-bottom: 16px;
}
.section-subtitle {
  font-family: 'Lora', serif;
  font-size: 17px;
  color: var(--stone);
  max-width: 600px;
  margin: 0 auto;
  font-style: italic;
}

/* ═══════════════════════════════════════════
   HOMEPAGE CATEGORIES GRID
   ═══════════════════════════════════════════ */
.home-categories {
  padding: 100px 0;
  background: var(--white);
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.cat-card {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.5s ease;
  aspect-ratio: 3/4;
  background: var(--cream-warm);
  display: block;
  text-decoration: none;
  color: var(--cream);
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px var(--shadow-lg);
  color: var(--cream);
}
.cat-card-img {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
  transition: transform 0.6s ease;
}
.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.6s ease;
}
.cat-card:hover .cat-card-img,
.cat-card:hover img { transform: scale(1.05); }
.cat-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44, 24, 16, 0.75) 0%, rgba(44, 24, 16, 0.1) 60%, transparent 100%);
  transition: background 0.4s ease;
}
.cat-card:hover .cat-card-overlay {
  background: linear-gradient(to top, rgba(196, 97, 58, 0.8) 0%, rgba(196, 97, 58, 0.15) 60%, transparent 100%);
}
.cat-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 24px;
}
.cat-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}
.cat-card-count {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.8;
}

/* ═══════════════════════════════════════════
   BLOG INDEX & ARCHIVE
   ═══════════════════════════════════════════ */
.page-header-banner {
  background: linear-gradient(165deg, var(--cream) 0%, var(--cream-warm) 40%, var(--linen) 100%);
  padding: 140px 0 60px;
  text-align: center;
}
.page-header-banner h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  color: var(--espresso);
  margin-bottom: 12px;
}
.page-header-banner .archive-description {
  font-family: 'Lora', serif;
  font-size: 17px;
  color: var(--stone);
  font-style: italic;
  max-width: 600px;
  margin: 0 auto;
}

.blog-main {
  padding: 80px 0;
  background: var(--white);
}
.blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.blog-grid.has-sidebar {
  grid-template-columns: 2fr 1fr;
  gap: 60px;
}
.blog-grid.has-sidebar .posts-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* Post Card */
.post-card {
  background: var(--cream);
  border-radius: 2px;
  overflow: hidden;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px var(--shadow-md);
}
.post-card-thumbnail {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--cream-warm);
}
.post-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.post-card:hover .post-card-thumbnail img { transform: scale(1.04); }
.post-card-thumbnail .placeholder-emoji {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  background: linear-gradient(135deg, var(--cream-warm) 0%, var(--linen) 100%);
}
.post-card-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.post-card-category {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--terracotta);
  margin-bottom: 12px;
}
.post-card-category a { color: var(--terracotta); text-decoration: none; }
.post-card-category a:hover { color: var(--terracotta-dark); }
.post-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--espresso);
  margin-bottom: 12px;
}
.post-card-title a { color: var(--espresso); text-decoration: none; }
.post-card-title a:hover { color: var(--terracotta); }
.post-card-excerpt {
  font-size: 15px;
  color: var(--stone);
  line-height: 1.7;
  margin-bottom: 16px;
  flex: 1;
}
.post-card-meta {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  color: var(--stone-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.post-card-meta a { color: var(--stone-light); }

/* Featured post (first on homepage) */
.post-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}
.post-card.featured .post-card-thumbnail { aspect-ratio: auto; min-height: 400px; }
.post-card.featured .post-card-body { padding: 40px; justify-content: center; }
.post-card.featured .post-card-title { font-size: 30px; }

/* ═══════════════════════════════════════════
   SINGLE POST
   ═══════════════════════════════════════════ */
.single-post-header {
  background: linear-gradient(165deg, var(--cream) 0%, var(--cream-warm) 40%, var(--linen) 100%);
  padding: 140px 0 60px;
  text-align: center;
}
.single-post-header .post-category {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--terracotta);
  margin-bottom: 20px;
  display: block;
}
.single-post-header .post-category a { color: var(--terracotta); }
.single-post-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--espresso);
  max-width: 800px;
  margin: 0 auto 20px;
}
.single-post-header .post-meta {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.single-post-header .post-meta a { color: var(--stone); }

.single-post-featured {
  max-width: 900px;
  margin: -40px auto 0;
  position: relative;
  z-index: 2;
}
.single-post-featured img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  box-shadow: 0 16px 48px var(--shadow-lg);
}

.single-post-content {
  max-width: 740px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.single-post-content .entry-content {
  font-size: 17px;
  line-height: 1.9;
  color: var(--espresso-light);
}
.single-post-content .entry-content p { margin-bottom: 24px; }
.single-post-content .entry-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--espresso);
  margin: 48px 0 20px;
}
.single-post-content .entry-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--espresso);
  margin: 36px 0 16px;
}
.single-post-content .entry-content blockquote {
  border-left: 3px solid var(--terracotta);
  margin: 32px 0;
  padding: 20px 32px;
  background: var(--cream-warm);
  font-style: italic;
  font-size: 19px;
  color: var(--espresso);
}
.single-post-content .entry-content img {
  border-radius: 2px;
  margin: 32px 0;
  box-shadow: 0 8px 24px var(--shadow);
}
.single-post-content .entry-content ul,
.single-post-content .entry-content ol {
  margin: 20px 0;
  padding-left: 24px;
}
.single-post-content .entry-content li { margin-bottom: 8px; }
.single-post-content .entry-content a {
  color: var(--terracotta);
  text-decoration: underline;
  text-decoration-color: rgba(196, 97, 58, 0.3);
  text-underline-offset: 3px;
}
.single-post-content .entry-content a:hover {
  text-decoration-color: var(--terracotta);
}

/* Tags */
.post-tags {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--cream-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.post-tags-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--stone);
  margin-right: 8px;
}
.post-tags a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border: 1px solid var(--stone-light);
  color: var(--espresso-light);
  text-decoration: none;
  transition: all 0.3s ease;
}
.post-tags a:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
  background: rgba(196, 97, 58, 0.05);
}

/* Post navigation */
.post-navigation {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.post-navigation a {
  display: block;
  padding: 24px;
  background: var(--cream);
  text-decoration: none;
  transition: all 0.3s ease;
}
.post-navigation a:hover {
  background: var(--cream-warm);
  transform: translateY(-2px);
}
.post-navigation .nav-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--stone);
  margin-bottom: 8px;
  display: block;
}
.post-navigation .nav-title {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--espresso);
}

/* ═══════════════════════════════════════════
   SIDEBAR & WIDGETS
   ═══════════════════════════════════════════ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.widget {
  padding: 28px;
  background: var(--cream);
}
.widget-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--espresso);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--terracotta);
}
.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.widget ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--cream-dark);
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a {
  font-size: 15px;
  color: var(--espresso-light);
  text-decoration: none;
  transition: color 0.3s;
}
.widget ul li a:hover { color: var(--terracotta); }

/* Tag cloud widget */
.widget .tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.widget .tagcloud a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 14px;
  border: 1px solid var(--cream-dark);
  color: var(--espresso-light);
  text-decoration: none;
  transition: all 0.3s;
}
.widget .tagcloud a:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
}

/* ═══════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 48px 0;
}
.pagination a, .pagination span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--espresso-light);
  border: 1px solid var(--cream-dark);
  transition: all 0.3s;
}
.pagination a:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
}
.pagination .current {
  background: var(--terracotta);
  color: var(--cream);
  border-color: var(--terracotta);
}

/* ═══════════════════════════════════════════
   NEWSLETTER SECTION
   ═══════════════════════════════════════════ */
.newsletter-section {
  background: linear-gradient(135deg, var(--cream-warm) 0%, var(--linen) 100%);
  padding: 80px 0;
}
.newsletter-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.newsletter-inner .section-title {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 12px;
}
.newsletter-inner p {
  font-size: 16px;
  color: var(--stone);
  margin-bottom: 32px;
  font-style: italic;
}
.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 500px;
  margin: 0 auto;
}
.newsletter-form input[type="email"] {
  flex: 1;
  font-family: 'Lora', serif;
  font-size: 15px;
  padding: 16px 24px;
  border: 1.5px solid var(--stone-light);
  border-right: none;
  background: var(--white);
  color: var(--espresso);
  outline: none;
  transition: border-color 0.3s;
}
.newsletter-form input::placeholder { color: var(--stone-light); }
.newsletter-form input:focus { border-color: var(--terracotta); }
.newsletter-form button {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 16px 32px;
  background: var(--terracotta);
  color: var(--cream);
  border: 1.5px solid var(--terracotta);
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}
.newsletter-form button:hover {
  background: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
}

/* ═══════════════════════════════════════════
   PAGES (About, Contact, etc.)
   ═══════════════════════════════════════════ */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.page-content .entry-content {
  font-size: 17px;
  line-height: 1.9;
  color: var(--espresso-light);
}
.page-content .entry-content p { margin-bottom: 24px; }
.page-content .entry-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--espresso);
  margin: 48px 0 20px;
}

/* ═══════════════════════════════════════════
   COMMENTS
   ═══════════════════════════════════════════ */
.comments-area {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.comments-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
}
.comment-list {
  list-style: none;
  padding: 0;
}
.comment-body {
  padding: 24px 0;
  border-bottom: 1px solid var(--cream-dark);
}
.comment-author {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
}
.comment-metadata {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.comment-metadata a { color: var(--stone); }
.comment-content { font-size: 15px; color: var(--espresso-light); }

/* Comment form */
.comment-respond { margin-top: 48px; }
.comment-reply-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}
.comment-form p { margin-bottom: 20px; }
.comment-form label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--espresso-light);
  display: block;
  margin-bottom: 8px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  font-family: 'Lora', serif;
  font-size: 15px;
  padding: 14px 18px;
  border: 1.5px solid var(--cream-dark);
  background: var(--cream);
  color: var(--espresso);
  outline: none;
  transition: border-color 0.3s;
  width: 100%;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--terracotta); }
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form .submit {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 14px 36px;
  background: var(--terracotta);
  color: var(--cream);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.comment-form .submit:hover {
  background: var(--terracotta-dark);
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.site-footer {
  background: var(--espresso);
  color: var(--cream);
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}
.footer-brand .site-logo { color: var(--cream); margin-bottom: 16px; display: inline-flex; }
.footer-brand p {
  font-size: 14px;
  color: var(--stone);
  line-height: 1.7;
  max-width: 280px;
}
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  text-decoration: none;
  font-size: 16px;
  transition: all 0.3s;
}
.footer-social a:hover {
  border-color: var(--terracotta);
  background: var(--terracotta);
}
.footer-col h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--cream);
  margin-bottom: 24px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  font-size: 14px;
  color: var(--stone);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--terracotta-light); }

/* Footer widgets (WP) */
.footer-widgets .widget { background: transparent; padding: 0; }
.footer-widgets .widget-title {
  color: var(--cream);
  border-bottom-color: rgba(255,255,255,0.15);
}
.footer-widgets .widget ul li { border-bottom-color: rgba(255,255,255,0.06); }
.footer-widgets .widget ul li a { color: var(--stone); }
.footer-widgets .widget ul li a:hover { color: var(--terracotta-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--stone);
}
.footer-bottom a { color: var(--stone); text-decoration: none; }
.footer-bottom a:hover { color: var(--terracotta-light); }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-grid.has-sidebar { grid-template-columns: 1fr; }
  .post-card.featured { grid-template-columns: 1fr; }
  .post-card.featured .post-card-thumbnail { min-height: 300px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-navigation > ul { display: none; }
  .main-navigation.active > ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0; right: 0;
    background: rgba(250, 246, 240, 0.98);
    backdrop-filter: blur(20px);
    padding: 32px 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(196, 97, 58, 0.1);
    animation: fadeIn 0.3s ease;
  }
  .main-navigation.active > ul > li > ul {
    position: static;
    display: flex;
    box-shadow: none;
    border: none;
    padding: 8px 0 0 16px;
    min-width: auto;
    background: transparent;
  }
  .hamburger { display: flex; }
  .cat-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input[type="email"] { border-right: 1.5px solid var(--stone-light); }
  .post-navigation { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   WP UTILITY CLASSES
   ═══════════════════════════════════════════ */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 24px auto; }
.alignwide { max-width: 1000px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; margin-left: calc(-50vw + 50%); }
.wp-caption { max-width: 100%; }
.wp-caption-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  color: var(--stone);
  text-align: center;
  padding: 8px 0;
  font-style: italic;
}
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 24px 0; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); position: absolute; height: 1px; width: 1px; overflow: hidden; }
