/*
Theme Name: MenuPricePH Blog
Theme URI: https://rabbyitfirm.com/wordpress-themes/MenuPricePH
Author: Rabbi
Author URI: https://rabbyitfirm.com
Description: A modern, warm editorial WordPress blog theme for Filipino restaurant reviews, menu prices, and food guides. AI-SEO optimized, fully responsive, admin customizable.
Version: 2.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: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: menupriceph
Tags: blog, food, restaurant, editorial, light, responsive, custom-colors, custom-logo, featured-images, full-site-editing
*/

/* ============================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
  /* Colors */
  --color-cream:      #FAF7F2;
  --color-paper:      #F4EFE6;
  --color-white:      #FFFFFF;
  --color-ink:        #1A1208;
  --color-ink-light:  #3D3020;
  --color-muted:      #8C7B65;
  --color-border:     #E5DDD0;
  --color-tag:        #EEE8DE;
  --color-accent:     #C4622D;
  --color-accent-2:   #D4A017;
  --color-accent-3:   #2D6B4A;
  --color-accent-hover: #A8531F;

  /* Typography */
  --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', Consolas, monospace;

  /* Spacing Scale */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Layout */
  --container-max:  1160px;
  --sidebar-width:  320px;
  --nav-height:     66px;
  --radius-sm:      8px;
  --radius-md:      12px;
  --radius-lg:      20px;
  --radius-xl:      24px;
  --radius-pill:    999px;

  /* Shadows */
  --shadow-xs:  0 1px 3px rgba(26,18,8,.06);
  --shadow-sm:  0 2px 8px rgba(26,18,8,.07);
  --shadow-md:  0 4px 20px rgba(26,18,8,.09);
  --shadow-lg:  0 12px 40px rgba(26,18,8,.13);
  --shadow-xl:  0 24px 64px rgba(26,18,8,.16);

  /* Transitions */
  --transition: all 0.25s cubic-bezier(.4,0,.2,1);
  --transition-fast: all 0.15s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--color-cream);
  color: var(--color-muted);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Links */
a {
  color: var(--color-accent);
  text-decoration: none;
  transition: var(--transition-fast);
}
a:hover { color: var(--color-accent-hover); }
a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-ink);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(36px, 6vw, 64px); }
h2 { font-size: clamp(26px, 4vw, 40px); }
h3 { font-size: clamp(20px, 3vw, 28px); }
h4 { font-size: clamp(17px, 2.5vw, 22px); }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

/* Text */
p { margin-bottom: var(--space-md); }
strong { color: var(--color-ink-light); font-weight: 600; }
em { font-style: italic; }
small { font-size: 0.875em; }

/* Lists */
ul, ol { padding-left: 1.5em; }
li { margin-bottom: var(--space-xs); }

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* HR */
hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-xl) 0;
}

/* Blockquote */
blockquote {
  border-left: 4px solid var(--color-accent);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-xl) 0;
  background: var(--color-paper);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-heading);
  font-size: 1.15em;
  font-style: italic;
  color: var(--color-ink-light);
}
blockquote cite {
  display: block;
  font-style: normal;
  font-size: 0.8em;
  color: var(--color-muted);
  margin-top: var(--space-sm);
  font-family: var(--font-body);
}

/* Code */
code {
  font-family: var(--font-mono);
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.875em;
}
pre {
  background: var(--color-ink);
  color: #e8ddd0;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: var(--space-md);
}
pre code { background: none; border: none; padding: 0; color: inherit; }

/* Tables */
table { width: 100%; border-collapse: collapse; margin-bottom: var(--space-md); }
thead tr { background: var(--color-paper); }
th {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-muted);
  border-bottom: 2px solid var(--color-border);
}
td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-ink-light);
  font-size: 14px;
}
tbody tr:hover { background: var(--color-cream); }

/* Forms */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-ink);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  width: 100%;
  transition: var(--transition-fast);
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(196,98,45,.12);
}
textarea { resize: vertical; min-height: 120px; }
label { font-size: 13px; font-weight: 600; color: var(--color-ink-light); display: block; margin-bottom: 6px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-border);
}
.btn-outline:hover {
  background: var(--color-white);
  border-color: var(--color-ink);
  color: var(--color-ink);
}
.btn-ghost {
  background: transparent;
  color: var(--color-muted);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--color-paper); color: var(--color-ink); }
.btn-lg { padding: 14px 32px; font-size: 15px; border-radius: var(--radius-md); }
.btn-sm { padding: 7px 14px; font-size: 12px; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.badge-accent  { background: rgba(196,98,45,.1);  color: var(--color-accent); }
.badge-gold    { background: rgba(212,160,23,.12); color: var(--color-accent-2); }
.badge-green   { background: rgba(45,107,74,.1);   color: var(--color-accent-3); }
.badge-solid   { background: var(--color-accent);  color: #fff; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}
.container-narrow {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.grid-2  { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
.grid-3  { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.grid-4  { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
.flex    { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm  { gap: var(--space-sm); }
.gap-md  { gap: var(--space-md); }
.gap-lg  { gap: var(--space-lg); }

.section { padding: var(--space-2xl) 0; }
.section-lg { padding: var(--space-3xl) 0; }
.text-center { text-align: center; }
.text-muted  { color: var(--color-muted); }
.text-ink    { color: var(--color-ink); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-height);
  background: rgba(250,247,242,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.site-header.scrolled {
  background: rgba(255,255,255,0.97);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

/* Logo */
.site-logo {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
  color: var(--color-ink);
  letter-spacing: -0.5px;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo em {
  color: var(--color-accent);
  font-style: italic;
  font-weight: 300;
}
.site-logo img { height: 36px; width: auto; }

/* Primary Nav */
.primary-nav { display: flex; align-items: center; gap: 2px; }
.primary-nav a {
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition-fast);
}
.primary-nav a:hover,
.primary-nav a.current-menu-item {
  color: var(--color-ink);
  background: var(--color-paper);
}

/* Search form in nav */
.nav-search { position: relative; }
.nav-search input {
  width: 200px;
  padding: 7px 12px 7px 34px;
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  transition: var(--transition);
}
.nav-search input:focus { width: 260px; border-color: var(--color-accent); }
.nav-search-icon {
  position: absolute; left: 11px; top: 50%;
  transform: translateY(-50%);
  color: var(--color-muted);
  pointer-events: none;
  font-size: 13px;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer;
  padding: var(--space-sm);
  color: var(--color-ink);
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-md) var(--space-lg);
  z-index: 199;
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  gap: var(--space-xs);
  max-height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--color-ink-light);
  font-size: 16px;
  font-weight: 500;
  padding: var(--space-md) var(--space-md);
  border-radius: var(--radius-sm);
  border-bottom: 1px solid var(--color-border);
}
.mobile-nav a:hover { background: var(--color-cream); }
.mobile-nav .mobile-nav-search { margin-top: var(--space-md); }
.mobile-nav .mobile-nav-search input { width: 100%; }

/* ============================================================
   HERO — HOMEPAGE
   ============================================================ */
.hero {
  padding-top: calc(var(--nav-height) + var(--space-2xl));
  padding-bottom: var(--space-2xl);
  background: linear-gradient(180deg, #FDF8F0 0%, var(--color-cream) 100%);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 6px 14px 6px 8px;
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-xs);
}
.hero-title {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 900;
  color: var(--color-ink);
  line-height: 1.05;
  letter-spacing: -2.5px;
  margin-bottom: var(--space-md);
}
.hero-title em {
  color: var(--color-accent);
  font-style: italic;
  font-weight: 300;
}
.hero-subtitle {
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-muted);
  max-width: 460px;
  margin-bottom: var(--space-xl);
}
.hero-ctas { display: flex; gap: var(--space-md); flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
  padding-top: var(--space-xl);
  margin-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}
.hero-stat-value {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 900;
  color: var(--color-ink);
  display: block;
}
.hero-stat-label { font-size: 13px; color: var(--color-muted); }

/* Floating preview cards */
.hero-visual {
  position: relative;
  height: 380px;
}
.hero-card-float {
  position: absolute;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-lg);
  width: 210px;
  cursor: pointer;
  transition: var(--transition);
}
.hero-card-float:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.hero-card-float:nth-child(1) { top: 10%;  left: 10%; z-index: 3; transform: rotate(-3deg); }
.hero-card-float:nth-child(2) { top: 20%;  left: 38%; z-index: 2; transform: rotate(4deg); }
.hero-card-float:nth-child(3) { top: 38%;  left: 5%;  z-index: 1; transform: rotate(-2deg); }
.hero-card-float:hover { z-index: 10; }
.hero-card-img {
  border-radius: var(--radius-md);
  height: 90px;
  display: flex; align-items: center; justify-content: center;
  font-size: 44px;
  margin-bottom: var(--space-sm);
}
.hero-card-title { font-family: var(--font-heading); font-size: 12px; font-weight: 700; color: var(--color-ink); line-height: 1.3; margin-bottom: 4px; }
.hero-card-meta  { font-size: 11px; color: var(--color-muted); }

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-md) 0;
  position: sticky;
  top: var(--nav-height);
  z-index: 100;
}
.filter-bar-inner {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  flex-wrap: wrap;
}
.filter-search { position: relative; flex: 1; min-width: 220px; max-width: 360px; }
.filter-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--color-muted); width: 16px; height: 16px; }
.filter-search input {
  padding-left: 38px;
  background: var(--color-cream);
  border-radius: var(--radius-sm);
  width: 100%;
}
.filter-cats { display: flex; gap: var(--space-sm); flex-wrap: wrap; flex: 1; }
.filter-btn {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}
.filter-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }
.filter-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* ============================================================
   POST CARDS
   ============================================================ */

/* Featured (horizontal) */
.post-card-featured {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}
.post-card-featured:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.post-card-featured .card-visual {
  min-height: 300px;
  display: flex; align-items: center; justify-content: center;
  font-size: 88px;
  position: relative;
}
.post-card-featured .card-body {
  padding: var(--space-2xl) var(--space-xl);
  display: flex; flex-direction: column; justify-content: space-between;
}

/* Standard card */
.post-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
  display: flex; flex-direction: column;
}
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.post-card .card-visual {
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  font-size: 60px;
  position: relative;
  flex-shrink: 0;
}
.post-card .card-body { padding: var(--space-lg); flex: 1; display: flex; flex-direction: column; }

/* Wide list card */
.post-card-list {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  display: grid;
  grid-template-columns: 140px 1fr;
  box-shadow: var(--shadow-xs);
}
.post-card-list:hover { box-shadow: var(--shadow-md); }
.post-card-list .card-visual { height: 100%; font-size: 40px; min-height: 120px; }
.post-card-list .card-body { padding: var(--space-md) var(--space-lg); }

/* Shared card elements */
.card-cat-badge {
  position: absolute;
  top: var(--space-md); left: var(--space-md);
  color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.card-tags { display: flex; gap: var(--space-sm); flex-wrap: wrap; margin-bottom: var(--space-md); }
.card-tag {
  background: var(--color-tag);
  color: var(--color-muted);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}
.card-title {
  font-family: var(--font-heading);
  color: var(--color-ink);
  line-height: 1.3;
  margin-bottom: var(--space-sm);
}
.card-excerpt { color: var(--color-muted); font-size: 14px; line-height: 1.65; flex: 1; }
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  margin-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}
.card-author { display: flex; align-items: center; gap: var(--space-sm); }
.card-author-avatar { font-size: 28px; line-height: 1; }
.card-author-name { font-weight: 600; color: var(--color-ink); font-size: 13px; }
.card-author-date { color: var(--color-muted); font-size: 12px; }
.card-stats { display: flex; gap: var(--space-md); color: var(--color-muted); font-size: 12px; }

/* ============================================================
   MAIN + SIDEBAR LAYOUT
   ============================================================ */
.content-area {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--space-2xl);
  align-items: start;
  padding: var(--space-2xl) 0;
}
.sidebar { position: sticky; top: calc(var(--nav-height) + var(--space-lg)); }

/* Sidebar Widgets */
.widget {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.widget-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--color-border);
}
.widget-list { list-style: none; padding: 0; }
.widget-list li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}
.widget-list li:last-child { border-bottom: none; }
.widget-list a { color: var(--color-ink-light); }
.widget-list a:hover { color: var(--color-accent); }
.widget-list .count { color: var(--color-muted); font-size: 12px; float: right; }

/* Popular posts widget */
.popular-post { display: flex; gap: var(--space-md); padding: var(--space-md) 0; border-bottom: 1px solid var(--color-border); }
.popular-post:last-child { border-bottom: none; padding-bottom: 0; }
.popular-post-num { font-family: var(--font-heading); font-size: 22px; font-weight: 900; color: var(--color-border); width: 28px; flex-shrink: 0; }
.popular-post-info {}
.popular-post-title { font-size: 13px; font-weight: 600; color: var(--color-ink-light); line-height: 1.4; margin-bottom: 4px; }
.popular-post-meta { font-size: 12px; color: var(--color-muted); }

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-hero {
  padding-top: var(--nav-height);
}
.single-hero-visual {
  width: 100%;
  min-height: 380px;
  display: flex; align-items: center; justify-content: center;
  font-size: 100px;
  position: relative;
}
.single-hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg) var(--space-xl);
  text-align: center;
}
.single-hero-meta { display: flex; justify-content: center; align-items: center; gap: var(--space-lg); flex-wrap: wrap; margin-bottom: var(--space-lg); }
.single-title {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: -1.5px;
  margin-bottom: var(--space-lg);
}
.single-byline { display: flex; justify-content: center; align-items: center; gap: var(--space-md); flex-wrap: wrap; }
.single-byline-author { display: flex; align-items: center; gap: var(--space-sm); }

/* Reading progress bar */
.reading-progress {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  height: 3px;
  background: var(--color-accent);
  z-index: 201;
  transition: width 0.1s linear;
  width: 0%;
}

/* Article body */
.article-body {
  font-size: 16px;
  line-height: 1.85;
  color: var(--color-ink-light);
}
.article-body > * + * { margin-top: var(--space-md); }
.article-body h2 { margin-top: var(--space-xl); font-size: clamp(22px, 3vw, 32px); }
.article-body h3 { margin-top: var(--space-lg); font-size: clamp(18px, 2.5vw, 24px); }
.article-body ul, .article-body ol { padding-left: 1.5em; }
.article-body li { margin-bottom: var(--space-sm); }
.article-body img { border-radius: var(--radius-md); margin: var(--space-xl) 0; }
.article-body .wp-block-image img { width: 100%; }
.article-body .price-highlight {
  font-family: var(--font-heading);
  font-size: 1.2em;
  color: var(--color-accent);
  font-weight: 700;
}
.article-lead {
  font-family: var(--font-heading);
  font-size: 1.3em;
  line-height: 1.6;
  color: var(--color-ink-light);
  font-weight: 300;
  font-style: italic;
  border-left: 4px solid var(--color-accent);
  padding-left: var(--space-lg);
  margin-bottom: var(--space-xl);
}
.article-callout {
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  margin: var(--space-xl) 0;
}
.article-callout-title { font-family: var(--font-heading); font-size: 18px; margin-bottom: var(--space-sm); }

/* Author Box */
.author-box {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-lg);
  align-items: start;
  margin: var(--space-xl) 0;
}
.author-box-avatar { font-size: 64px; line-height: 1; }
.author-box-name { font-family: var(--font-heading); font-size: 20px; margin-bottom: 4px; }
.author-box-role { color: var(--color-accent); font-size: 13px; font-weight: 600; margin-bottom: var(--space-sm); }
.author-box-bio { color: var(--color-muted); font-size: 14px; line-height: 1.65; }

/* Related Posts */
.related-posts { padding: var(--space-2xl) 0; border-top: 2px solid var(--color-border); }
.related-posts-title { font-family: var(--font-heading); font-size: 26px; margin-bottom: var(--space-xl); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }

/* Comments */
.comments-area { padding: var(--space-xl) 0; }
.comment-form-wrap { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-xl); }
.comment-form-title { font-family: var(--font-heading); font-size: 22px; margin-bottom: var(--space-lg); }
.comment-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); margin-bottom: var(--space-md); }

/* Breadcrumb */
.breadcrumb { padding: var(--space-md) 0; }
.breadcrumb ol { list-style: none; display: flex; gap: var(--space-sm); flex-wrap: wrap; align-items: center; padding: 0; }
.breadcrumb li { font-size: 13px; color: var(--color-muted); }
.breadcrumb a { color: var(--color-muted); }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb-sep { color: var(--color-border); }

/* ============================================================
   ARCHIVE / CATEGORY PAGE
   ============================================================ */
.archive-hero {
  background: var(--color-paper);
  padding: calc(var(--nav-height) + var(--space-2xl)) 0 var(--space-xl);
  border-bottom: 1px solid var(--color-border);
}
.archive-hero-label { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--color-accent); margin-bottom: var(--space-sm); }
.archive-hero-title { font-size: clamp(32px, 5vw, 52px); margin-bottom: var(--space-sm); }
.archive-hero-count { color: var(--color-muted); }

/* Posts grid */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.posts-list { display: flex; flex-direction: column; gap: var(--space-md); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: var(--space-sm); padding: var(--space-xl) 0; }
.page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  color: var(--color-muted);
  background: var(--color-white);
  transition: var(--transition-fast);
}
.page-numbers:hover { border-color: var(--color-accent); color: var(--color-accent); }
.page-numbers.current { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }

/* ============================================================
   NEWSLETTER SECTION
   ============================================================ */
.newsletter {
  background: linear-gradient(135deg, var(--color-accent) 0%, #a84e22 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-xl);
  margin: var(--space-2xl) 0;
}
.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.newsletter-title { font-family: var(--font-heading); font-size: clamp(28px, 4vw, 40px); font-weight: 900; color: #fff; line-height: 1.15; margin-bottom: var(--space-md); }
.newsletter-sub { color: rgba(255,255,255,0.8); font-size: 15px; line-height: 1.65; }
.newsletter-form { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.newsletter-input {
  flex: 1; min-width: 200px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.6); }
.newsletter-input:focus { border-color: rgba(255,255,255,0.7); }
.newsletter-btn {
  background: #fff;
  color: var(--color-accent);
  border: none;
  font-weight: 700;
  white-space: nowrap;
}
.newsletter-btn:hover { background: var(--color-cream); color: var(--color-accent-hover); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-ink);
  padding: var(--space-2xl) 0 var(--space-xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-xl);
}
.footer-logo {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  display: block;
  margin-bottom: var(--space-md);
}
.footer-logo em { color: var(--color-accent-2); font-style: italic; font-weight: 300; }
.footer-desc { color: #88786A; font-size: 14px; line-height: 1.7; max-width: 260px; }
.footer-heading { color: #fff; font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: var(--space-md); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: var(--space-sm); padding: 0; }
.footer-links a { color: #88786A; font-size: 14px; transition: var(--transition-fast); }
.footer-links a:hover { color: var(--color-accent-2); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.footer-copy { color: #554535; font-size: 13px; }
.footer-socials { display: flex; gap: var(--space-sm); }
.footer-social-link {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: #88786A;
  font-size: 16px;
  transition: var(--transition-fast);
}
.footer-social-link:hover { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }

/* ============================================================
   PRICE TABLE (for menu posts)
   ============================================================ */
.price-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin: var(--space-xl) 0;
}
.price-table { width: 100%; border-collapse: collapse; }
.price-table thead tr { background: var(--color-cream); }
.price-table th { padding: 14px 20px; border-bottom: 2px solid var(--color-border); }
.price-table td { padding: 14px 20px; }
.price-table tbody tr:nth-child(even) { background: rgba(250,247,242,0.5); }
.price-table tbody tr:hover { background: var(--color-paper); }
.price-table .item-name { color: var(--color-ink); font-weight: 500; }
.price-table .item-price { color: var(--color-accent); font-weight: 800; font-family: var(--font-heading); font-size: 18px; white-space: nowrap; }
.price-table .item-calories { color: var(--color-muted); }
.price-label-tag {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-left: 6px;
  vertical-align: middle;
}

/* ============================================================
   LOADING SKELETON
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--color-paper) 25%, var(--color-border) 50%, var(--color-paper) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-card { height: 320px; border-radius: var(--radius-lg); }

/* ============================================================
   UTILITY ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.animate-fade-up { animation: fadeInUp 0.55s ease both; }
.animate-delay-1 { animation-delay: 0.08s; }
.animate-delay-2 { animation-delay: 0.16s; }
.animate-delay-3 { animation-delay: 0.24s; }
.animate-delay-4 { animation-delay: 0.32s; }

/* ============================================================
   WORDPRESS CORE CLASSES (required)
   ============================================================ */
.alignleft { float: left; margin-right: var(--space-lg); margin-bottom: var(--space-md); }
.alignright { float: right; margin-left: var(--space-lg); margin-bottom: var(--space-md); }
.aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.alignwide { margin-left: -60px; margin-right: -60px; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--color-muted); text-align: center; margin-top: var(--space-sm); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: var(--space-md); }
.gallery-item img { border-radius: var(--radius-sm); width: 100%; object-fit: cover; }
.screen-reader-text { @extend .visually-hidden; }
.sticky { /* WP sticky post */ }
.bypostauthor { /* WP author highlight */ }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet: ≤ 1024px */
@media (max-width: 1024px) {
  :root { --sidebar-width: 280px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-subtitle { max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet Portrait: ≤ 900px */
@media (max-width: 900px) {
  .content-area { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .post-card-featured { grid-template-columns: 1fr; }
  .post-card-featured .card-visual { min-height: 220px; }
  .newsletter-inner { grid-template-columns: 1fr; }
  .author-box { grid-template-columns: auto 1fr; }
  .comment-form-grid { grid-template-columns: 1fr; }
}

/* Mobile Landscape: ≤ 768px */
@media (max-width: 768px) {
  :root {
    --nav-height: 58px;
    --space-2xl: 48px;
    --space-3xl: 72px;
  }
  .primary-nav { display: none; }
  .nav-search  { display: none; }
  .nav-toggle  { display: flex; }
  .posts-grid  { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding-top: calc(var(--nav-height) + var(--space-xl)); }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: var(--space-xl); }
  .filter-search { min-width: 0; width: 100%; max-width: 100%; }
  .filter-bar-inner { flex-direction: column; align-items: stretch; }
  .single-hero-visual { min-height: 240px; font-size: 72px; }
  .single-title { font-size: 28px; }
  .article-body { font-size: 15px; }
  .alignwide { margin-left: 0; margin-right: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .newsletter { padding: var(--space-xl) var(--space-lg); }
  .post-card-list { grid-template-columns: 100px 1fr; }
  .post-card-list .card-visual { font-size: 32px; min-height: 100px; }
  .price-table th, .price-table td { padding: 10px 12px; }
  .author-box { grid-template-columns: 1fr; }
  .author-box-avatar { font-size: 48px; }
}

/* Mobile Portrait: ≤ 480px */
@media (max-width: 480px) {
  :root { --space-lg: 16px; }
  .container, .container-narrow { padding-left: var(--space-md); padding-right: var(--space-md); }
  .hero-title { letter-spacing: -1.5px; }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .card-stats { gap: var(--space-sm); flex-wrap: wrap; }
  .breadcrumb li:not(:first-child):not(:last-child):not(.breadcrumb-sep) { display: none; }
  .newsletter-form { flex-direction: column; }
  .newsletter-btn { width: 100%; justify-content: center; }
  .pagination .page-numbers:not(.current):not(.prev):not(.next) { display: none; }
  .post-card-list { grid-template-columns: 1fr; }
  .post-card-list .card-visual { height: 140px; }
}

/* Print */
@media print {
  .site-header, .site-footer, .sidebar, .filter-bar,
  .reading-progress, .newsletter, .comments-area,
  .related-posts, .nav-toggle, .mobile-nav { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .container { max-width: 100%; padding: 0; }
  .content-area { grid-template-columns: 1fr; }
  a { color: #000; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 10pt; color: #666; }
}

/* ============================================================
   DARK MODE (system preference)
   ============================================================ */
@media (prefers-color-scheme: dark) {
  /* Intentionally left minimal — theme is light-first.
     Add .dark-mode-enabled class to body to activate if needed. */
}

/* ============================================================
   HIGH CONTRAST MODE
   ============================================================ */
@media (prefers-contrast: high) {
  :root {
    --color-muted: #5a4a3a;
    --color-border: #c0b0a0;
  }
  .btn-primary { border: 2px solid var(--color-accent-hover); }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero-card-float { transform: none !important; }
}
