/* ============================================
   BigMacSauceMenu.com — Main Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --red: #DA291C;
  --red-dark: #B71C1C;
  --gold: #FFC72C;
  --gold-dark: #E5A800;
  --dark: #27251F;
  --dark-light: #3A3832;
  --white: #FFFFFF;
  --off-white: #F8F8F8;
  --gray-100: #F5F5F5;
  --gray-200: #EEEEEE;
  --gray-300: #E0E0E0;
  --gray-500: #9E9E9E;
  --gray-700: #616161;
  --gray-800: #424242;
  --text-primary: #1A1A1A;
  --text-secondary: #555555;
  --font-primary: 'Outfit', sans-serif;
  --font-secondary: 'Inter', sans-serif;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.2);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-secondary);
  background-color: var(--white);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul,
ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--dark);
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(39, 37, 31, 0.97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-primary);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gold);
  /* letter-spacing: -0.5px; */
  display: flex;
  align-items: center;
  /* gap: 6px; */
}

.nav-logo span {
  color: var(--white);
}

.nav-logo .dot {
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.nav-links a.active {
  color: var(--gold);
}

.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  padding: 10px 22px !important;
  border-radius: var(--radius-sm) !important;
  transition: all var(--transition) !important;
}

.nav-cta:hover {
  background: var(--red-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(218, 41, 28, 0.4);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---------- HERO SECTION ---------- */
.hero {
  background: var(--red);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255, 199, 44, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -10%;
  width: 50%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  text-align: left;
}

.hero-text {
  min-width: 0;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  transition: transform 0.6s ease;
  transform: scale(1.03) rotate(-2deg);
}

.hero-image img:hover {
  transform: scale(1.03) rotate(0deg);
}

.hero-text .hero-btns {
  justify-content: flex-start;
}

.hero-text .hero-trust {
  justify-content: flex-start;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero h1 {
  font-family: var(--font-primary);
  font-size: 4rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero h1 span {
  color: var(--gold);
}

.hero-subtitle {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 12px;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 680px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  letter-spacing: 0.2px;
}

.btn-gold {
  background: var(--gold);
  color: var(--dark);
}

.btn-gold:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 199, 44, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.btn-red {
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
}

.btn-red:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(218, 41, 28, 0.35);
}

.hero-trust {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-trust span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-trust span::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
}

/* ---------- SECTION UTILITIES ---------- */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-family: var(--font-primary);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-header h2 .icon {
  margin-right: 8px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- BROWSE BY TOPIC CARDS ---------- */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.topic-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--gray-200);
  border-left: 5px solid var(--gray-300);
}

.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Card accent borders */
.topic-card--sauce {
  border-left-color: var(--red);
}

.topic-card--price {
  border-left-color: var(--gold);
}

.topic-card--sliders {
  border-left-color: #2D6A4F;
}

.topic-card--salad {
  border-left-color: #1565C0;
}

/* Card description text at top */
.topic-card-desc {
  font-size: 0.82rem;
  color: var(--gray-500);
  font-style: italic;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-100);
}

/* Card body: left sidebar + right links */
.topic-card-body {
  display: flex;
  min-height: 260px;
}

/* Left sidebar with icon, title, button, stats */
.topic-card-left {
  width: 175px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  text-align: center;
  border-right: 1px solid var(--gray-200);
  background: var(--off-white);
}

.topic-card-icon {
  font-size: 2.8rem;
  margin-bottom: 8px;
  line-height: 1;
}

.topic-card h3 {
  font-family: var(--font-primary);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.3;
}

/* Browse All button */
.topic-card-btn {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 6px;
  color: var(--white);
  margin-bottom: 16px;
  transition: all var(--transition);
  letter-spacing: 0.3px;
}

.topic-card--sauce .topic-card-btn {
  background: var(--red);
}

.topic-card--sauce .topic-card-btn:hover {
  background: var(--red-dark);
}

.topic-card--price .topic-card-btn {
  background: var(--gold);
  color: var(--dark);
}

.topic-card--price .topic-card-btn:hover {
  background: var(--gold-dark);
}

.topic-card--sliders .topic-card-btn {
  background: #2D6A4F;
}

.topic-card--sliders .topic-card-btn:hover {
  background: #1B4332;
}

.topic-card--salad .topic-card-btn {
  background: #1565C0;
}

.topic-card--salad .topic-card-btn:hover {
  background: #0A3D62;
}

/* Stats at bottom of left sidebar */
.topic-card-stats {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.78rem;
  color: var(--gray-500);
}

.topic-card--sauce .stat-highlight {
  color: var(--red);
  font-weight: 700;
}

.topic-card--price .stat-highlight {
  color: #2D6A4F;
  font-weight: 700;
}

.topic-card--sliders .stat-highlight {
  color: var(--red);
  font-weight: 700;
}

.topic-card--salad .stat-highlight {
  color: #1565C0;
  font-weight: 700;
}

/* Right side: link rows */
.topic-card-links {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.topic-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-primary);
  border-bottom: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.topic-link:last-child {
  border-bottom: none;
}

.topic-link:hover {
  background: var(--gray-100);
  padding-left: 24px;
}

.topic-link span {
  color: var(--gray-500);
  font-size: 1rem;
  transition: transform var(--transition);
}

.topic-link:hover span {
  transform: translateX(4px);
}

.topic-card--sauce .topic-link:hover span {
  color: var(--red);
}

.topic-card--price .topic-link:hover span {
  color: var(--gold-dark);
}

.topic-card--sliders .topic-link:hover span {
  color: #2D6A4F;
}

.topic-card--salad .topic-link:hover span {
  color: #1565C0;
}

/* ---------- TRENDING NOW ---------- */
.trending {
  background: var(--off-white);
}

.trending-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.trending-chip {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-align: center;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.trending-chip::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.trending-chip:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.trending-chip:hover::before {
  transform: scaleX(1);
}

.trending-chip .fire {
  color: var(--red);
  margin-right: 4px;
}

/* ---------- PRICE SNAPSHOT ---------- */
.price-snapshot {
  background: var(--white);
}

.price-table-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-table thead th {
  background: var(--red);
  color: var(--white);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 16px 20px;
  text-align: left;
}

.price-table tbody td {
  padding: 14px 20px;
  font-size: 0.93rem;
  border-bottom: 1px solid var(--gray-200);
  color: var(--text-primary);
}

.price-table tbody tr {
  transition: background var(--transition);
}

.price-table tbody tr:hover {
  background: var(--gray-100);
}

.price-table tbody tr:last-child td {
  border-bottom: none;
}

.price-table .flag {
  margin-right: 8px;
  background: #ffc72c;
  line-height: 1;
  padding: 3px 3px 5px 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  height: 18px;
  min-width: 22px;
}

.price-diff {
  font-weight: 600;
  font-size: 0.85rem;
  padding: 3px 10px;
  border-radius: 50px;
  display: inline-block;
}

.price-diff.up {
  background: rgba(76, 175, 80, 0.12);
  color: #2E7D32;
}

.price-diff.down {
  background: rgba(244, 67, 54, 0.12);
  color: #C62828;
}

.price-diff.neutral {
  background: rgba(158, 158, 158, 0.12);
  color: var(--gray-700);
}

.price-note {
  text-align: center;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--gray-500);
}

.btn-view-all {
  display: block;
  width: fit-content;
  margin: 28px auto 0;
}

/* ---------- RECIPE QUICK LOOK ---------- */
.recipe-section {
  background: var(--off-white);
}

.recipe-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

/* Recipe meta badges bar */
.recipe-meta {
  display: flex;
  justify-content: center;
  gap: 0;
  background: linear-gradient(135deg, var(--red) 0%, #B71C1C 100%);
  padding: 0;
}

.recipe-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 28px;
  color: var(--white);
  position: relative;
}

.recipe-meta-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.recipe-meta-icon {
  font-size: 1.4rem;
}

.recipe-meta-item div {
  display: flex;
  flex-direction: column;
}

.recipe-meta-item strong {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

.recipe-meta-item div span {
  font-size: 1rem;
  font-weight: 700;
}

.recipe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.recipe-col {
  padding: 32px;
}

.recipe-col-ingredients {
  background: linear-gradient(180deg, #FFF8E1 0%, var(--white) 100%);
  border-right: 1px solid var(--gray-200);
}

.recipe-col-steps {
  background: linear-gradient(180deg, #FFF0F0 0%, var(--white) 100%);
}

.recipe-col h3 {
  font-family: var(--font-primary);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-200);
}

/* Ingredient items */
.ingredient-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ingredient-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.ingredient-item:hover {
  border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(255, 199, 44, 0.15);
  transform: translateX(4px);
}

.ingredient-qty {
  font-family: var(--font-primary);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red);
  background: rgba(218, 41, 28, 0.08);
  padding: 4px 10px;
  border-radius: 50px;
  white-space: nowrap;
  min-width: 55px;
  text-align: center;
}

.ingredient-name {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Step items */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.step-list::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: linear-gradient(180deg, var(--red), var(--gold));
  border-radius: 2px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}

.step-item:hover {
  background: rgba(218, 41, 28, 0.04);
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(218, 41, 28, 0.3);
  transition: all var(--transition);
}

.step-item:hover .step-num {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(218, 41, 28, 0.4);
}

.step-item p {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.5;
}

.recipe-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 24px 32px 32px;
  border-top: 1px solid var(--gray-200);
}

.recipe-btns .btn {
  font-size: 0.9rem;
  padding: 14px 28px;
  border-radius: 50px;
  flex: 1;
  text-align: center;
  justify-content: center;
  min-width: 160px;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-grid--3col {
  grid-template-columns: 2fr 1fr 1fr;
}

.footer-brand .nav-logo {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 12px;
}

.footer-brand p:last-child {
  margin-bottom: 0;
}

.footer-col h4 {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer-col ul li a:hover {
  color: var(--gold);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--red-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ---------- ANIMATIONS ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- SEARCH OVERLAY ---------- */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(27, 25, 19, 0.92);
  backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-overlay-inner {
  width: 100%;
  max-width: 640px;
  padding: 0 24px;
  transform: translateY(-20px);
  transition: transform 0.4s ease;
}

.search-overlay.active .search-overlay-inner {
  transform: translateY(0);
}

.search-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.8rem;
  transition: all var(--transition);
}

.search-close:hover {
  color: var(--white);
  transform: rotate(90deg);
}

.search-overlay h2 {
  font-family: var(--font-primary);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
  text-align: center;
}

.search-input-wrap {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.search-input-wrap:focus-within {
  border-color: var(--gold);
}

.search-input-wrap input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 16px 20px;
  font-size: 1.1rem;
  color: var(--white);
  font-family: var(--font-secondary);
}

.search-input-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.search-submit {
  background: var(--red);
  color: var(--white);
  padding: 16px 24px;
  font-size: 1.2rem;
  transition: background var(--transition);
}

.search-submit:hover {
  background: var(--red-dark);
}

.search-results {
  margin-top: 16px;
  max-height: 300px;
  overflow-y: auto;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  color: var(--white);
  transition: all var(--transition);
  text-decoration: none;
}

.search-result-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.search-result-item .result-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.search-result-item .result-text {
  flex: 1;
}

.search-result-item .result-text strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.search-result-item .result-text span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

.search-suggestions {
  margin-top: 28px;
  text-align: center;
}

.search-suggestions p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.search-tag {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.search-tag:hover {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}

/* ============================================
   INNER PAGE STYLES
   ============================================ */

/* ---------- INNER HERO ---------- */
.inner-hero {
  padding: 160px 0 70px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.inner-hero--sauce {
  background-color: var(--dark);
}

.inner-hero--price {
  background-color: var(--dark);
}

.inner-hero--sliders {
  background-color: var(--dark);
}

.inner-hero--salad {
  background-color: var(--dark);
}

.inner-hero--legal {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 140px 0 50px;
}

/* Dark overlay on top of background image */
.inner-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(27, 25, 19, 0.75) 0%,
    rgba(27, 25, 19, 0.88) 50%,
    rgba(27, 25, 19, 0.96) 100%
  );
  z-index: 1;
}

.inner-hero .container {
  position: relative;
  z-index: 2;
}

/* Centered content layout */
.inner-hero-center {
  max-width: 720px;
  text-align: center;
  margin: 0 auto;
}

/* Inner hero grid — kept for other pages that may use it */
.inner-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.inner-hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.inner-hero-image img {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  transform: rotate(-2deg);
  transition: transform 0.6s ease;
}

.inner-hero-image img:hover {
  transform: rotate(0deg) scale(1.03);
}

/* Breadcrumb */
.breadcrumb {
  margin-bottom: 24px;
  font-size: 0.85rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb-sep {
  color: rgba(255, 255, 255, 0.25);
  margin: 0 10px;
}

.breadcrumb-current {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

/* Inner hero content */
.inner-hero-content {
  max-width: 780px;
}

.inner-hero-badge {
  display: inline-block;
  background: rgba(255, 199, 44, 0.15);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 20px;
  border-radius: 50px;
  margin-bottom: 20px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 199, 44, 0.25);
}

.inner-hero h1 {
  font-family: var(--font-primary);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.inner-hero h1 span {
  background: linear-gradient(135deg, var(--gold) 0%, #FFD54F 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.inner-hero-subtitle {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}

.inner-hero-desc {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 24px;
}

.inner-hero-author {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.45);
  font-style: italic;
  line-height: 1.6;
}

/* Article meta bar */
.inner-hero-meta {
  display: inline-flex;
  gap: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.inner-hero-meta span {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  padding: 12px 22px;
  position: relative;
}

.inner-hero-meta span:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}

/* ---------- ARTICLE BLOCK (Text + Image side-by-side) ---------- */
.article-block {
  display: grid;
  gap: 36px;
  align-items: start;
  margin-bottom: 32px;
}

.article-block--img-right {
  grid-template-columns: 1.3fr 0.7fr;
}

.article-block--img-left {
  grid-template-columns: 0.7fr 1.3fr;
}

.article-block-text p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 18px;
}

.article-block-text p strong {
  color: var(--text-primary);
}

.article-block-text p em {
  color: var(--gray-700);
}

.article-block-img {
  position: sticky;
  top: 140px;
}

.article-block-img img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.article-block-img img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.img-caption {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 10px;
  font-style: italic;
}

/* Content body text (for standalone paragraphs) */
.content-body-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

/* ---------- RECIPE DETAIL BANNER ---------- */
.recipe-detail-banner {
  width: 100%;
  max-height: 260px;
  overflow: hidden;
}

.recipe-detail-banner img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.recipe-detail-banner:hover img {
  transform: scale(1.03);
}

/* ---------- TABLE OF CONTENTS BAR ---------- */
.toc-bar {
  background: var(--white);
  border-bottom: 2px solid var(--gray-200);
  position: sticky;
  top: 64px;
  z-index: 900;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.toc-scroll {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.toc-scroll::-webkit-scrollbar {
  display: none;
}

.toc-link {
  font-family: var(--font-primary);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 16px 18px;
  white-space: nowrap;
  transition: all var(--transition);
  position: relative;
  border-bottom: 3px solid transparent;
}

.toc-link:hover {
  color: var(--red);
  background: rgba(218, 41, 28, 0.04);
}

.toc-link.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* ---------- INNER SECTION ---------- */
.inner-section {
  padding: 72px 0;
}

.inner-section--alt {
  background: var(--off-white);
}

.content-wrap {
  margin: 0 auto;
}

.content-header {
  margin-bottom: 36px;
}

.content-icon {
  display: inline-block;
  font-size: 2rem;
  margin-bottom: 8px;
}

.content-header h2 {
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.content-header-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 6px;
}

.content-body p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.content-body p strong {
  color: var(--text-primary);
}

.content-body p em {
  color: var(--gray-700);
}

.content-note {
  font-size: 0.88rem !important;
  color: var(--gray-500) !important;
  font-style: italic;
  text-align: center;
}

/* ---------- HIGHLIGHT BOXES ---------- */
.highlight-box {
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 28px;
}

.highlight-box h3 {
  font-family: var(--font-primary);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.highlight-box p {
  font-size: 0.95rem !important;
  line-height: 1.75 !important;
  margin-bottom: 12px !important;
}

.highlight-box p:last-child {
  margin-bottom: 0 !important;
}

.highlight-box--gold {
  background: linear-gradient(135deg, #FFF8E1 0%, #FFFDE7 100%);
  border: 1px solid rgba(255, 199, 44, 0.3);
  border-left: 4px solid var(--gold);
}

.highlight-box--subtle {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--gray-500);
}

/* ---------- KEY FACTS ---------- */
.key-facts {
  margin: 28px 0;
}

.key-facts h3 {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.key-facts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.key-fact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.key-fact-item:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.key-fact-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.key-fact-item strong {
  display: block;
  font-family: var(--font-primary);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.key-fact-item p {
  font-size: 0.82rem !important;
  color: var(--gray-500) !important;
  margin-bottom: 0 !important;
  line-height: 1.4 !important;
}

/* ---------- INNER TABLES ---------- */
.inner-table-wrap {
  margin: 28px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.inner-table-title {
  font-family: var(--font-primary);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.inner-table {
  width: 100%;
  border-collapse: collapse;
}

.inner-table thead th {
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 20px;
  text-align: left;
}

.inner-table tbody td {
  padding: 14px 20px;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--gray-200);
  color: var(--text-primary);
}

.inner-table tbody tr {
  transition: background var(--transition);
}

.inner-table tbody tr:hover {
  background: var(--gray-100);
}

.inner-table tbody tr:last-child td {
  border-bottom: none;
}

/* ---------- PRO TIP ---------- */
.pro-tip {
  background: linear-gradient(135deg, #E8F5E9 0%, #F1F8E9 100%);
  border: 1px solid rgba(76, 175, 80, 0.25);
  border-left: 4px solid #4CAF50;
  border-radius: var(--radius-md);
  padding: 22px 28px;
  margin: 28px 0;
}

.pro-tip-badge {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #2E7D32;
  margin-bottom: 10px;
}

.pro-tip p {
  font-size: 0.95rem !important;
  color: #37474F !important;
  margin-bottom: 0 !important;
}

/* ---------- ALLERGEN CARDS ---------- */
.allergen-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
}

.allergen-card {
  text-align: center;
  padding: 28px 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.allergen-card:hover {
  border-color: #FF9800;
  box-shadow: 0 4px 16px rgba(255, 152, 0, 0.12);
  transform: translateY(-3px);
}

.allergen-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 12px;
}

.allergen-card strong {
  display: block;
  font-family: var(--font-primary);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.allergen-card p {
  font-size: 0.85rem !important;
  color: var(--gray-500) !important;
  margin-bottom: 0 !important;
}

/* ---------- RECIPE DETAIL CARD ---------- */
.recipe-detail-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  margin: 28px 0;
}

.recipe-detail-meta {
  display: flex;
  justify-content: center;
  background: linear-gradient(135deg, var(--red) 0%, #B71C1C 100%);
}

.recipe-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.recipe-detail-ingredients {
  padding: 32px;
  background: linear-gradient(180deg, #FFF8E1 0%, var(--white) 100%);
  border-right: 1px solid var(--gray-200);
}

.recipe-detail-steps {
  padding: 32px;
  background: linear-gradient(180deg, #FFF0F0 0%, var(--white) 100%);
}

.recipe-detail-ingredients h3,
.recipe-detail-steps h3 {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-200);
}

/* ---------- VARIATION CARDS ---------- */
.variation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.variation-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  border-top: 4px solid var(--gray-300);
}

.variation-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.variation-card--keto {
  border-top-color: #2D6A4F;
}

.variation-card--vegan {
  border-top-color: #4CAF50;
}

.variation-card--lowcal {
  border-top-color: #1565C0;
}

.variation-card--noketchup {
  border-top-color: var(--red);
}

.variation-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.variation-icon {
  font-size: 1.8rem;
}

.variation-card h3 {
  font-family: var(--font-primary);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.variation-card p {
  font-size: 0.92rem !important;
  color: var(--text-secondary) !important;
  line-height: 1.65 !important;
  margin-bottom: 14px !important;
}

.variation-highlight {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 14px 16px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  line-height: 1.6;
}

.stat-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 2px 10px;
  border-radius: 50px;
}

/* ---------- NUTRITION CARD ---------- */
.nutrition-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  margin: 28px 0;
}

.nutrition-card h3 {
  font-family: var(--font-primary);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  background: var(--dark);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.nutrition-badge {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 14px;
  border-radius: 50px;
}

.nutrition-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.nutrition-item {
  text-align: center;
  padding: 22px 16px;
  border-right: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.nutrition-item:hover {
  background: var(--gray-100);
}

.nutrition-item:nth-child(3n) {
  border-right: none;
}

.nutrition-item--highlight {
  background: linear-gradient(135deg, #FFF8E1 0%, #FFFDE7 100%);
}

.nutrition-value {
  display: block;
  font-family: var(--font-primary);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 6px;
}

.nutrition-item--highlight .nutrition-value {
  color: var(--red);
  font-size: 2rem;
}

.nutrition-label {
  font-size: 0.78rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* ---------- STORAGE CARDS ---------- */
.storage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
}

.storage-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.storage-card:hover {
  box-shadow: var(--shadow-sm);
}

.storage-card h3 {
  font-family: var(--font-primary);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

/* Styled list */
.styled-list {
  list-style: none;
  padding: 0;
}

.styled-list li {
  position: relative;
  padding: 8px 0 8px 22px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.styled-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
  font-size: 1.1rem;
}

.styled-list--check li::before {
  content: '✓';
  color: #2E7D32;
}

.styled-list--cross li::before {
  content: '✗';
  color: var(--red);
}

/* Warning box */
.warning-box {
  background: linear-gradient(135deg, #FFF3E0 0%, #FFF8E1 100%);
  border: 1px solid rgba(255, 152, 0, 0.3);
  border-left: 4px solid #FF9800;
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 28px 0;
}

.warning-box h3 {
  font-family: var(--font-primary);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.spoilage-signs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.spoilage-item {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  background: rgba(255, 152, 0, 0.12);
  color: #E65100;
  border-radius: 50px;
}

.warning-box p {
  font-size: 0.92rem;
  color: #5D4037;
  margin-bottom: 0;
}

/* ---------- BUY OPTIONS ---------- */
.buy-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
}

.buy-option {
  text-align: center;
  padding: 28px 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.buy-option:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.buy-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
}

.buy-option p {
  font-size: 0.92rem !important;
  color: var(--text-secondary) !important;
  margin-bottom: 0 !important;
}

/* ---------- FLAVOR BREAKDOWN ---------- */
.flavor-breakdown {
  margin: 28px 0;
}

.flavor-item {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
  padding: 14px 20px;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.flavor-item:hover {
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.flavor-bar {
  display: block;
  width: 120px;
  height: 10px;
  background: var(--gray-200);
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.flavor-bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: var(--bar-width, 50%);
  background: var(--bar-color, var(--red));
  border-radius: 50px;
  transition: width 0.8s ease;
}

.flavor-info {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flavor-info strong {
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.flavor-info span {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ---------- COMPARISON BOX ---------- */
.comparison-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--gray-200);
  margin: 28px 0;
  box-shadow: var(--shadow-sm);
}

.comparison-box h3 {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  text-align: center;
}

.comparison-box>p {
  text-align: center;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 20px 0;
}

.comparison-col {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--gray-100);
}

.comparison-col h4 {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gray-200);
}

/* ---------- FAQ ACCORDION ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: all var(--transition);
}

.faq-item:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-sm);
}

.faq-item.open {
  border-color: var(--red);
  box-shadow: 0 4px 16px rgba(218, 41, 28, 0.1);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 24px;
  background: none;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition);
}

.faq-question:hover {
  color: var(--red);
}

.faq-toggle {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--gray-500);
  transition: transform var(--transition);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gray-100);
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
  background: var(--red);
  color: var(--white);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

/* ---------- FINAL THOUGHTS ---------- */
.final-thoughts-box {
  background: linear-gradient(135deg, #FFF8E1 0%, #FFFDE7 100%);
  border: 1px solid rgba(255, 199, 44, 0.3);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 28px;
}

.final-thoughts-box p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* CTA Box */
.cta-box {
  text-align: center;
  padding: 40px 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px solid var(--gray-200);
}

.cta-box h3 {
  font-family: var(--font-primary);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  font-size: 0.9rem;
  padding: 14px 28px;
  border-radius: 50px;
  min-width: 160px;
  justify-content: center;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.6rem;
  }

  .topics-grid {
    gap: 18px;
  }

  .footer-grid,
  .footer-grid--3col {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background: var(--dark);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-content-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text .hero-btns {
    justify-content: center;
  }

  .hero-text .hero-trust {
    justify-content: center;
  }

  .hero-image {
    margin-top: 20px;
  }

  .hero-image img {
    max-width: 300px;
  }

  .topic-card-body {
    flex-direction: column;
  }

  .topic-card-left {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    border-right: none;
    border-bottom: 1px solid var(--gray-200);
  }

  .topic-card-icon {
    font-size: 2rem;
    margin-bottom: 0;
  }

  .topic-card h3 {
    margin-bottom: 0;
  }

  .topic-card-stats {
    flex-direction: row;
    gap: 12px;
  }

  .topics-grid {
    grid-template-columns: 1fr;
  }

  .trending-grid {
    grid-template-columns: 1fr;
  }

  .recipe-grid {
    grid-template-columns: 1fr;
  }

  .recipe-col-ingredients {
    border-right: none;
    border-bottom: 1px solid var(--gray-200);
  }

  .recipe-meta {
    flex-wrap: wrap;
  }

  .recipe-meta-item {
    flex: 1 1 45%;
    justify-content: center;
    padding: 14px 16px;
  }

  .footer-grid,
  .footer-grid--3col {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 1.7rem;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .hero-trust {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .container {
    padding: 0 16px;
  }

  /* INNER PAGES RESPONSIVE */
  .inner-hero {
    padding: 120px 0 40px;
  }

  .inner-hero h1 {
    font-size: 1.8rem;
  }

  .inner-hero-subtitle {
    font-size: 1rem;
  }

  .inner-hero-meta {
    flex-direction: column;
    border-radius: var(--radius-sm);
  }

  .inner-hero-meta span:not(:last-child)::after {
    width: 100%;
    height: 1px;
    top: auto;
    bottom: 0;
    left: 0;
  }

  .inner-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .inner-hero-image {
    order: -1;
  }

  .inner-hero-image img {
    max-width: 260px;
    transform: rotate(0deg);
  }

  .article-block--img-right,
  .article-block--img-left {
    grid-template-columns: 1fr;
  }

  .article-block-img {
    position: static;
  }

  .article-block-img img {
    max-width: 100%;
  }

  .toc-scroll {
    padding: 0 8px;
  }

  .toc-link {
    padding: 14px 16px;
    font-size: 0.85rem;
  }

  .inner-section {
    padding: 50px 0;
  }

  .content-header h2 {
    font-size: 1.6rem;
  }

  .highlight-box {
    padding: 24px 20px;
  }

  .key-facts-grid {
    grid-template-columns: 1fr;
  }

  .allergen-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .recipe-detail-grid {
    grid-template-columns: 1fr;
  }

  .recipe-detail-ingredients {
    border-right: none;
    border-bottom: 1px solid var(--gray-200);
  }

  .recipe-detail-meta {
    flex-wrap: wrap;
  }

  .recipe-detail-meta .recipe-meta-item {
    flex: 1 1 45%;
    justify-content: center;
    padding: 14px;
  }

  .recipe-detail-meta .recipe-meta-item::after {
    display: none;
  }

  .variation-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .nutrition-card h3 {
    flex-direction: column;
    text-align: center;
  }

  .nutrition-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nutrition-item:nth-child(even) {
    border-right: none;
  }

  .nutrition-item:nth-child(3n) {
    border-right: 1px solid var(--gray-200);
  }

  .nutrition-item:last-child {
    grid-column: span 2;
    border-right: none;
  }

  .storage-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .buy-options {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .flavor-item {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .flavor-bar {
    width: 100%;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .faq-question {
    padding: 16px 20px;
    font-size: 0.95rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- LEGAL PAGES ---------- */
.legal-content h2 {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gray-200);
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content h3 {
  font-family: var(--font-primary);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 28px;
  margin-bottom: 12px;
}

.legal-content p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.legal-content ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-content ul li::before {
  content: '•';
  position: absolute;
  left: 8px;
  color: var(--red);
  font-weight: 700;
}

.legal-content a {
  color: var(--red);
  text-decoration: underline;
  transition: color var(--transition);
}

.legal-content a:hover {
  color: var(--red-dark);
}

/* ---------- CONTACT PAGE ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 28px 0;
}

.contact-card {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: box-shadow var(--transition), transform var(--transition);
}

.contact-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.contact-card-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-card h3 {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.contact-card a {
  color: var(--red);
  font-weight: 600;
  font-size: 0.92rem;
}

.contact-card p {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-top: 4px;
  line-height: 1.5;
}

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.contact-form-card h2 {
  font-family: var(--font-primary);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.contact-form-card > p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-group label .required {
  color: var(--red);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-secondary);
  font-size: 0.92rem;
  color: var(--text-primary);
  background: var(--gray-50);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(218, 41, 28, 0.1);
  background: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8.825L.375 3.2l.85-.85L6 7.125l4.775-4.775.85.85z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.btn-full {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.form-note {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 14px;
  text-align: center;
}

.form-note a {
  color: var(--red);
  text-decoration: underline;
}