/* =========================================================
   SOVEREIGN-TERMINAL — Healthy Food Blog Theme
   ========================================================= */

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

:root {
  /* Brand */
  --accent:           #CE7C77;
  --accent-hover:     #b8615c;
  --accent-light:     #F2D6D0;
  --bg-warm:          #fcf5f3;
  --surface:          #ffffff;

  /* Text */
  --on-surface:       #2d2016;
  --on-surface-muted: #7a6055;
  --on-accent:        #ffffff;

  /* Borders & radius */
  --border:           #e8d9d5;
  --radius:           8px;
  --radius-img:       16px;
  --radius-card:      14px;

  /* Typography */
  --font-headline: "DM Sans", system-ui, sans-serif;
  --font-body:     "Lato", system-ui, sans-serif;
  --font-script:   "Dancing Script", cursive;

  /* Layout */
  --container-w: 1200px;
  --section-py:  72px;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}
body {
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--on-surface);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.site-main { flex: 1; }

img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ── UTILITY ──────────────────────────────────────────── */
.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
  border: 2px solid transparent;
  line-height: 1;
}
.btn--accent  { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn--outline { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn--outline:hover { background: var(--accent); color: var(--on-accent); }

.section-heading { margin-bottom: 40px; }
.section-heading--center { text-align: center; }
.section-title {
  font-family: var(--font-headline);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--on-surface);
  line-height: 1.2;
}
.section-sub {
  margin-top: 10px;
  color: var(--on-surface-muted);
  font-size: 1.05rem;
}

/* ── TOP BAR ──────────────────────────────────────────── */
.top-bar {
  background: var(--accent-light);
  text-align: center;
  padding: 8px 16px;
  color: var(--on-surface);
  font-family: var(--font-headline);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ── HEADER ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.header-inner {
  max-width: var(--container-w);
  margin-inline: auto;
  padding: 0 24px;
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.header-logo { display: flex; align-items: center; }
.header-logo img { height: 54px; width: auto; object-fit: contain; }
.header-logo .custom-logo-link { display: flex; align-items: center; }
.header-logo .site-title-text {
  font-family: var(--font-headline);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--on-surface);
  white-space: nowrap;
}
.header-nav { justify-self: center; }
.header-nav .nav-list { display: flex; list-style: none; gap: 8px; }
.header-nav .nav-list a {
  color: var(--on-surface);
  font-size: .9rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color .2s, background .2s;
}
.header-nav .nav-list a:hover { color: var(--accent); background: var(--accent-light); }

/* Desktop dropdown */
.header-nav .nav-list > li {
  position: relative;
}
.header-nav .nav-list > li > a.menu-item-has-children-toggle::after,
.header-nav .nav-list li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  margin-left: 5px;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  vertical-align: middle;
  transition: transform .2s;
}
.header-nav .nav-list li.menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}
.header-nav .nav-list li.menu-item-has-children .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  padding: 6px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 200;
}
.header-nav .nav-list li.menu-item-has-children:hover .sub-menu,
.header-nav .nav-list li.menu-item-has-children:focus-within .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.header-nav .nav-list .sub-menu a {
  display: block;
  padding: 9px 18px;
  font-size: .87rem;
  color: var(--on-surface);
  border-radius: 0;
  background: none;
  white-space: nowrap;
}
.header-nav .nav-list .sub-menu a:hover { color: var(--accent); background: var(--accent-light); }
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.header-search-btn, .burger-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--on-surface);
  padding: 8px;
  border-radius: 6px;
  transition: color .2s, background .2s;
}
.header-search-btn:hover, .burger-btn:hover { color: var(--accent); background: var(--accent-light); }
.burger-btn { display: none; }

/* Search Bar */
.header-search-bar {
  border-top: 1px solid var(--border);
  background: var(--bg-warm);
  padding: 12px 0;
  display: flex;
  justify-content: center;
}
.header-search-bar[hidden] { display: none; }
.header-search-bar .search-form {
  display: flex;
  gap: 0;
  width: 100%;
  max-width: var(--container-w);
  padding-inline: 24px;
}
.header-search-bar input[type="search"] {
  flex: 1;
  border: 2px solid var(--border);
  border-right: none;
  border-radius: 10px 0 0 10px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: .95rem;
  outline: none;
  background: var(--surface);
  color: var(--on-surface);
  transition: border-color .2s;
  min-width: 0;
}
.header-search-bar input[type="search"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(206,124,119,.12);
}
.header-search-bar input[type="search"]::placeholder { color: var(--on-surface-muted); opacity: .7; }
.header-search-bar button[type="submit"] {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 12px 28px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background .2s, border-color .2s;
  flex-shrink: 0;
}
.header-search-bar button[type="submit"]:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.header-search-bar button[type="submit"] svg { display: block; }

/* Mobile nav backdrop */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 299;
}
.nav-backdrop.is-open { display: block; }

/* Mobile nav drawer — slides from left */
.nav-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: min(300px, 85vw);
  background: var(--bg-warm);
  z-index: 300;
  display: flex;
  flex-direction: column;
  transform: translateX(-110%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  box-shadow: 4px 0 32px rgba(0,0,0,.16);
  overflow-y: auto;
}
.nav-menu.is-open { transform: translateX(0); }
.nav-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.nav-menu__brand {
  font-family: var(--font-headline);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--on-surface);
}
.nav-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--on-surface);
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .2s, background .2s;
}
.nav-close:hover { color: var(--accent); background: var(--accent-light); }
.nav-menu__body { padding: 8px 0; }

/* Mobile nav dropdown: items expand inline */
.nav-menu .menu li.menu-item-has-children > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-menu .menu li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  flex-shrink: 0;
  transition: transform .25s;
}
.nav-menu .menu li.menu-item-has-children.is-open > a::after {
  transform: rotate(180deg);
}
.nav-menu .menu .sub-menu {
  display: none;
  list-style: none;
  background: var(--accent-light);
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}
.nav-menu .menu li.menu-item-has-children.is-open > .sub-menu {
  display: block;
}
.nav-menu .menu .sub-menu a {
  padding: 10px 24px 10px 32px;
  font-size: .93rem;
  border-left-color: transparent;
}
.nav-menu .menu { list-style: none; display: flex; flex-direction: column; gap: 0; }
.nav-menu .menu li a {
  display: block;
  font-family: var(--font-body);
  font-size: .98rem;
  font-weight: 600;
  color: var(--on-surface);
  padding: 14px 24px;
  border-left: 3px solid transparent;
  transition: color .2s, background .2s, border-color .2s;
}
.nav-menu .menu li a:hover {
  color: var(--accent);
  background: var(--accent-light);
  border-left-color: var(--accent);
}
.nav-menu__subscribe {
  padding: 20px 20px 24px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.nav-menu__subscribe .btn { display: block; text-align: center; }

/* ── HERO EDITORIAL SLIDER ────────────────────────────── */
.hero-section {
  background: var(--bg-warm);
  padding: 64px 0 80px;
  position: relative;
  overflow: hidden;
}

/* Subtle grain texture over the warm background */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}

/* White editorial card canvas */
.hs-canvas {
  position: relative;
  background: var(--surface);
  border-radius: 28px;
  box-shadow:
    0 2px 4px rgba(206,124,119,.07),
    0 12px 40px rgba(0,0,0,.07),
    0 40px 80px rgba(0,0,0,.04);
  overflow: hidden;
  z-index: 1;
}



/* Botanical line art */
.hs-botanical {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  color: var(--accent);
  opacity: 0.15;
}
.hs-botanical--tl {
  top: -20px; left: -20px;
  width: 210px; height: 210px;
}
.hs-botanical--br {
  bottom: -20px; right: -20px;
  width: 170px; height: 170px;
}

/* Slide container — fixed height keeps absolute children visible */
.hero-slider {
  position: relative;
  height: 520px;
  z-index: 2;
}

/* ── Individual slide ── */
.hs-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  opacity: 0;
  visibility: hidden;
  transition: opacity .75s cubic-bezier(.4,0,.2,1), visibility .75s;
  z-index: 1;
}
.hs-slide--active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Image column */
.hs-slide__media {
  position: relative;
  flex: 0 0 50%;
  overflow: hidden;
}
.hs-slide__img-wrap {
  display: block;
  height: 100%;
  overflow: hidden;
}
.hs-slide__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform .95s cubic-bezier(.4,0,.2,1);
}
.hs-slide--active .hs-slide__img { transform: scale(1); }
.hs-slide__img-placeholder {
  width: 100%; height: 100%;
  background: var(--accent-light);
}

/* Floating slide-number badge on the image */
.hs-slide__img-badge {
  position: absolute;
  bottom: 28px; left: 28px;
  width: 54px; height: 54px;
  border: 2px solid rgba(255,255,255,.55);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 4;
}
.hs-slide__img-badge-num {
  font-family: var(--font-headline);
  font-size: .9rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
  line-height: 1;
}

/* Content column */
.hs-slide__content {
  flex: 0 0 50%;
  position: relative;
  z-index: 4;
  margin-left: 0;
  background: var(--surface);
  border-radius: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  padding: 52px 48px 96px 48px;
  overflow: hidden;
}
.hs-slide__content-inner { width: 100%; }

/* Category label with leading rule */
.hs-slide__cat-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--accent);
  margin-bottom: 20px;
  transition: color .2s;
}
.hs-slide__cat-label::before {
  content: '';
  display: inline-block;
  width: 28px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  flex-shrink: 0;
}
.hs-slide__cat-label:hover { color: var(--accent-hover); }

/* Large editorial title */
.hs-slide__title {
  font-family: var(--font-headline);
  font-size: clamp(1.55rem, 2.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.17;
  color: var(--on-surface);
  margin-bottom: 18px;
}
.hs-slide__title a { color: inherit; transition: color .2s; }
.hs-slide__title a:hover { color: var(--accent); }

/* Short excerpt */
.hs-slide__excerpt {
  font-size: 1rem;
  color: var(--on-surface-muted);
  line-height: 1.72;
  margin-bottom: 36px;
  max-width: 34ch;
}

/* CTA row */
.hs-slide__footer {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hs-slide__date {
  font-size: .8rem;
  color: var(--on-surface-muted);
  letter-spacing: .02em;
}

/* Controls — pinned to bottom-right of content zone */
.hs-controls {
  position: absolute;
  bottom: 16px;
  right: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}
.hs-btn {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--on-surface);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transition: background .22s, color .22s, border-color .22s, transform .22s, box-shadow .22s;
}
.hs-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: scale(1.1);
  box-shadow: 0 4px 18px rgba(206,124,119,.38);
}
.hs-btn svg { display: block; }
.hs-dots { display: flex; gap: 6px; align-items: center; }
.hs-dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .3s, width .35s cubic-bezier(.4,0,.2,1);
}
.hs-dot--active {
  background: var(--accent);
  width: 22px;
}

/* ── COMMUNITY BANNER ─────────────────────────────────── */
.community-banner {
  background: var(--accent);
  color: var(--on-accent);
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.community-banner__inner {
  max-width: var(--container-w);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.community-banner__title {
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  margin: 0;
  opacity: .97;
  letter-spacing: .01em;
}
.community-banner .btn--accent {
  background: var(--surface);
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
  padding: 8px 22px;
  font-size: .8rem;
}
.community-banner .btn--accent:hover { background: var(--accent-light); }

/* ── RECIPES GRID ─────────────────────────────────────── */
.recipes-section {
  padding: var(--section-py) 0;
  background: var(--surface);
}
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.recipe-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transition: transform .2s, box-shadow .2s;
}
.recipe-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.recipe-card__img-link { display: block; aspect-ratio: 4/5; overflow: hidden; }
.recipe-card__img, .recipe-card__img-placeholder {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.recipe-card__img-placeholder { background: var(--accent-light); }
.recipe-card:hover .recipe-card__img { transform: scale(1.04); }
.recipe-card__body { padding: 14px 16px 18px; }
.recipe-card__cat {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: 6px;
}
.recipe-card__title {
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--on-surface);
}
.recipe-card__title a { color: inherit; }
.recipe-card__title a:hover { color: var(--accent); }

/* ── TIPS SECTION ─────────────────────────────────────── */
.tips-section {
  background: var(--bg-warm);
  padding: var(--section-py) 0;
}
.tips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.tip-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  transition: transform .2s;
}
.tip-card:hover { transform: translateY(-4px); }
.tip-card__icon { font-size: 2.4rem; margin-bottom: 14px; }
.tip-card__title {
  font-family: var(--font-headline);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--on-surface);
}
.tip-card__text { font-size: .9rem; color: var(--on-surface-muted); line-height: 1.6; }

/* ── CATEGORIES SECTION ──────────────────────────────── */
.categories-section {
  padding: var(--section-py) 0;
  background: var(--surface);
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cat-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 2px 14px rgba(0,0,0,.07);
  transition: transform .25s, box-shadow .25s;
  text-decoration: none;
  display: block;
}
.cat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0,0,0,.13);
}
.cat-card__img-wrap {
  aspect-ratio: 4/4;
  overflow: hidden;
  background: var(--accent-light);
}
.cat-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s;
}
.cat-card:hover .cat-card__img { transform: scale(1.06); }
.cat-card__img-placeholder {
  width: 100%; height: 100%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
}
.cat-card__title {
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 600;
  color: var(--on-surface);
  padding: 14px 16px 16px;
  text-align: center;
  line-height: 1.3;
  transition: color .2s;
}
.cat-card:hover .cat-card__title { color: var(--accent); }

/* ── WEIGHTLOSS SECTION ───────────────────────────────── */
.weightloss-section {
  padding: var(--section-py) 0;
  background: var(--bg-warm);
}
.weightloss-section .section-title { color: var(--on-surface); }
.wl-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.wl-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transition: transform .2s, box-shadow .2s;
}
.wl-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.wl-card__img-link { display: block; aspect-ratio: 4/5; overflow: hidden; }
.wl-card__img, .wl-card__img-placeholder {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.wl-card__img-placeholder { background: var(--accent-light); }
.wl-card:hover .wl-card__img { transform: scale(1.04); }
.wl-card__body { padding: 14px 16px 18px; }
.wl-card__title {
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 6px;
  color: var(--on-surface);
}
.wl-card__title a { color: inherit; }
.wl-card__title a:hover { color: var(--accent); }

/* ── TESTIMONIALS ─────────────────────────────────────── */
.testimonials-section {
  background: var(--surface);
  padding: var(--section-py) 0;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--bg-warm);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testimonial-card__stars { color: var(--accent); font-size: 1.1rem; letter-spacing: 2px; }
.testimonial-card__text {
  font-size: 1rem;
  color: var(--on-surface);
  line-height: 1.65;
  flex: 1;
  font-style: italic;
}
.testimonial-card__author { display: flex; align-items: center; gap: 12px; }
.testimonial-card__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--accent);
}
.testimonial-card__name { font-weight: 700; font-size: .95rem; color: var(--on-surface); }

/* ── NEWSLETTER ───────────────────────────────────────── */
.newsletter-section {
  background: var(--bg-warm);
  padding: var(--section-py) 0;
}
.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.newsletter-inner__title {
  font-family: var(--font-headline);
  font-size: clamp(1.5rem,2.6vw,2.1rem);
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--on-surface);
}
.newsletter-inner__sub { color: var(--on-surface-muted); margin-bottom: 24px; }
.newsletter-img {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-img);
  object-fit: cover;
  display: block;
}
.newsletter-inner .wpcf7-form { display: flex; flex-direction: column; gap: 12px; }
.newsletter-inner .wpcf7-form input[type="email"],
.newsletter-inner .wpcf7-form input[type="text"] {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--on-surface);
}
.newsletter-inner .wpcf7-form input[type="submit"] {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 13px 32px;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: background .2s;
}
.newsletter-inner .wpcf7-form input[type="submit"]:hover { background: var(--accent-hover); }

.wpcf7-spinner {
  display: none;
}

/* Form layout: stack email + button with gap, suppress the raw <br> */
.newsletter-inner .form-fields p {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}
.newsletter-inner .form-fields p br { display: none; }
.newsletter-inner .form-privacy p { margin: 0; }

/* Validation: red border on invalid email, hide CF7 tip text */
.newsletter-inner .wpcf7-not-valid-tip { display: none !important; }
.newsletter-inner .wpcf7-form input.wpcf7-not-valid {
  border-color: #c0392b;
}
/* Red underline on privacy label when acceptance is invalid */
.newsletter-inner .wpcf7-acceptance.wpcf7-not-valid .wpcf7-list-item-label {
  text-decoration: underline;
  text-decoration-color: #c0392b;
  text-underline-offset: 2px;
}

/* ── EDITOR SECTION ───────────────────────────────────── */
.editor-section {
  background: var(--surface);
  padding: var(--section-py) 0;
}
.editor-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: center;
}
.editor-photo {
  width: 280px; height: 280px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 5px solid var(--accent);
  justify-self: center;
  display: block;
}
.editor-bio__eyebrow {
  display: block;
  font-family: var(--font-script);
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 6px;
}
.editor-bio__name {
  font-family: var(--font-headline);
  font-size: clamp(1.6rem,2.8vw,2.4rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--on-surface);
}
.editor-bio__desc {
  color: var(--on-surface-muted);
  line-height: 1.75;
  margin-bottom: 24px;
  font-size: 1.02rem;
}

/* ── FOOTER ───────────────────────────────────────────── */
.site-footer {
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
}
.footer-inner {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}
.footer-brand-logo img { height: 40px; width: auto; }
.footer-brand-logo .site-title-text {
  font-family: var(--font-headline);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--on-surface);
}
.footer-nav ul { display: flex; list-style: none; gap: 24px; }
.footer-nav a { color: var(--on-surface-muted); font-size: .9rem; }
.footer-nav a:hover { color: var(--accent); }
.footer-divider { grid-column: 1/-1; border: none; border-top: 1px solid var(--border); margin: 4px 0; }
.footer-copy { grid-column: 1/-1; font-size: .82rem; color: var(--on-surface-muted); text-align: center; }

/* ── SHARED INNER-PAGE UTILITIES ─────────────────────── */
.container--narrow {
  max-width: 780px;
  margin-inline: auto;
  padding-inline: 24px;
}
.section-pad { padding: var(--section-py) 0; }

/* Category chip — plain accent text matching recipe card style */
.chip {
  display: inline;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  transition: color .2s;
}
.chip:hover { color: var(--accent-hover); }
.chip + .chip::before { content: ' · '; color: var(--on-surface-muted); }

/* ── POST GRID & TILE (archive, index, related) ──────── */
.post-grid {
  display: grid;
  gap: 28px;
  margin-bottom: 56px;
}
.post-grid--3 { grid-template-columns: repeat(3, 1fr); }
.post-grid--2 { grid-template-columns: repeat(2, 1fr); }

.post-tile {
  background: var(--surface);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.post-tile:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.12); }
.post-tile__thumb-link { display: block; aspect-ratio: 4/5; overflow: hidden; }
.post-tile__thumb { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-tile:hover .post-tile__thumb { transform: scale(1.04); }
.post-tile__body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.post-tile__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.post-tile__title {
  font-family: var(--font-headline);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--on-surface);
  margin-bottom: 8px;
}
.post-tile__title a { color: inherit; }
.post-tile__title a:hover { color: var(--accent); }
.post-tile__excerpt { font-size: .9rem; color: var(--on-surface-muted); line-height: 1.6; flex: 1; margin-bottom: 14px; }
.post-tile__meta { font-size: .8rem; color: var(--on-surface-muted); display: flex; align-items: center; gap: 8px; }
.post-tile__meta time { }

/* ── PAGINATION ──────────────────────────────────────── */
.pagination { margin-top: 26px; margin-bottom: 72px; }
.pagination .nav-links { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 10px;
  border-radius: 999px;
  font-size: .9rem; font-weight: 600;
  color: var(--on-surface);
  border: 1px solid var(--border);
  transition: background .2s, color .2s, border-color .2s;
}
.pagination .page-numbers:hover { background: var(--accent-light); border-color: var(--accent); color: var(--accent); }
.pagination .page-numbers.current { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination .page-numbers.dots { border: none; background: none; min-width: auto; padding: 0 4px; }

/* ── NO RESULTS ──────────────────────────────────────── */
.no-results { text-align: center; padding: 72px 0; }
.no-results p { font-size: 1.1rem; color: var(--on-surface-muted); margin-bottom: 24px; }

/* ── ARCHIVE / CATEGORY PAGE ─────────────────────────── */
.archive-main { padding: 56px 0 80px; }

.archive-header {
  padding: 48px 0 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 56px;
}
.archive-header__eyebrow {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 10px;
}
.archive-header__title {
  font-family: var(--font-headline);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--on-surface);
  line-height: 1.15;
  margin-bottom: 12px;
}
.archive-header__desc {
  color: var(--on-surface-muted);
  font-size: 1.05rem;
  max-width: 560px;
  line-height: 1.7;
}

/* ── SINGLE POST ─────────────────────────────────────── */

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

.single-main { padding: 56px 0 80px; }
.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: start;
}

/* Article header */
.article-header { margin-bottom: 32px; }
.article-header__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.article-header__title {
  font-family: var(--font-headline);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--on-surface);
  line-height: 1.2;
  margin-bottom: 16px;
}
.article-header__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  color: var(--on-surface-muted);
}

/* Featured image */
.article-hero { margin-bottom: 40px; border-radius: var(--radius-img); overflow: hidden; }
.article-hero__img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.article-hero__caption {
  font-size: .8rem;
  color: var(--on-surface-muted);
  text-align: center;
  padding: 8px 0;
  font-style: italic;
}

/* Prose content */
.entry-content {
  color: var(--on-surface);
  font-size: 1.05rem;
  line-height: 1.8;
}
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--font-headline);
  font-weight: 700;
  color: var(--on-surface);
  margin: 1.8em 0 .6em;
  line-height: 1.25;
}
.entry-content h2 { font-size: 1.55rem; }
.entry-content h3 { font-size: 1.25rem; }
.entry-content h4 { font-size: 1.05rem; }
.entry-content p { margin-bottom: 1.4em; }
.entry-content ul,
.entry-content ol { padding-left: 1.5em; margin-bottom: 1.4em; }
.entry-content li { margin-bottom: .4em; }
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.entry-content a:hover { color: var(--accent-hover); }
.entry-content img { border-radius: var(--radius-img); margin: 1.5em 0; }
.entry-content blockquote {
  border-left: 4px solid var(--accent);
  margin: 2em 0;
  padding: 1em 1.5em;
  background: var(--bg-warm);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--on-surface-muted);
}
.entry-content blockquote p { margin: 0; }
.entry-content code {
  background: var(--accent-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .88em;
}
.entry-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5em 0;
}

/* Prev / Next post nav */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.article-nav__prev { text-align: left; }
.article-nav__next { text-align: right; }
.article-nav__label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: 6px;
}
.article-nav__link {
  font-family: var(--font-headline);
  font-size: .95rem;
  font-weight: 600;
  color: var(--on-surface);
  line-height: 1.35;
}
.article-nav__link:hover { color: var(--accent); }

/* Related posts */
.related-posts { margin-top: 56px; }
.related-posts__heading {
  font-family: var(--font-headline);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* Sticky sidebar */
.single-sidebar { position: sticky; top: calc(var(--header-h, 64px) + 24px); }
.sidebar-panel {
  background: var(--bg-warm);
  border-radius: var(--radius-card);
  padding: 24px;
  border: 1px solid var(--border);
}
.sidebar-panel__heading {
  font-family: var(--font-headline);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 20px;
}
.side-article {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.side-article:last-child { border-bottom: none; padding-bottom: 0; }
.side-article__thumb-link {
  display: block;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
}
.side-article__thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.side-article__thumb-link:hover .side-article__thumb { transform: scale(1.05); }
.side-article__body { flex: 1; min-width: 0; margin-top: -5px; }
.side-article__title {
  font-family: var(--font-headline);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 4px;
}
.side-article__title a { color: var(--on-surface); }
.side-article__title a:hover { color: var(--accent); }

/* ── STATIC PAGE ─────────────────────────────────────── */
.page-main { padding: 56px 0 80px; }
.page-header { margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.page-header__title {
  font-family: var(--font-headline);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--on-surface);
  line-height: 1.2;
}
.page-hero { margin-bottom: 40px; border-radius: var(--radius-img); overflow: hidden; }
.page-hero__img { width: 100%; aspect-ratio: 16/6; object-fit: cover; }

/* ── 404 PAGE ────────────────────────────────────────── */
.error-main { padding: 80px 0 100px; }
.error-page { text-align: center; }
.error-page__code {
  font-family: var(--font-headline);
  font-size: clamp(6rem, 20vw, 10rem);
  font-weight: 800;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 8px;
  user-select: none;
}
.error-page__title {
  font-family: var(--font-headline);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 16px;
}
.error-page__desc {
  color: var(--on-surface-muted);
  font-size: 1.05rem;
  max-width: 500px;
  margin-inline: auto;
  line-height: 1.7;
  margin-bottom: 36px;
}
.error-page__actions { margin-bottom: 64px; }
.btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-hover); color: #fff; border-color: var(--accent-hover); }

.error-recent {
  max-width: 500px;
  margin-inline: auto;
  text-align: left;
}
.error-recent__heading {
  font-family: var(--font-headline);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 16px;
}
.error-recent__list { list-style: none; }
.error-recent__list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.error-recent__list li:last-child { border-bottom: none; }
.error-recent__list a {
  font-weight: 600;
  color: var(--on-surface);
  font-size: .95rem;
  flex: 1;
}
.error-recent__list a:hover { color: var(--accent); }
.error-recent__list time { font-size: .78rem; color: var(--on-surface-muted); white-space: nowrap; }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1024px) {
  /* Header — flex so logo stays left, icons stay right */
  .header-inner { display: flex; justify-content: space-between; padding: 0 16px; }
  .header-nav { display: none; }
  .burger-btn { display: flex; }

  .recipes-grid, .wl-grid  { grid-template-columns: repeat(2, 1fr); }
  .tips-grid, .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-slider { height: 440px; }
  .hs-slide__content { padding: 40px 40px 88px 40px; margin-left: 0; }
  .hs-slide__title { font-size: clamp(1.4rem, 2.2vw, 2rem); }

  /* Inner pages */
  .post-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .single-layout { grid-template-columns: 1fr; }
  .single-sidebar { position: static; }
  /* Related recipes: 2-col at tablet */
  .recipes-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {

  /* Hero — stacked column, natural height */
  .hero-section { padding: 32px 0 48px; }
  .hs-canvas { border-radius: 20px; padding-bottom: 52px; }
  .hero-slider { height: auto; min-height: 0; }
  .hs-slide {
    position: relative;
    inset: auto;
    display: none;
    opacity: 1;
    visibility: visible;
    transition: none;
    flex-direction: column;
  }
  .hs-slide--active { display: flex; }
  /* Image: ratio-driven height — ~5:3 scales naturally with screen width */
  .hs-slide__media { flex: none; width: 100%; aspect-ratio: 4/4; }
  /* Disable ken-burns on mobile (not worth the layout cost) */
  .hs-slide__img { transform: none; }
  .hs-slide--active .hs-slide__img { transform: none; }
  .hs-slide__img-badge { display: none; }
  .hs-slide__content {
    flex: none;
    margin-left: 0;
    border-radius: 0;
    box-shadow: 0 -8px 24px rgba(0,0,0,.07);
    padding: 24px 20px 20px;
    align-items: flex-start;
  }
  .hs-slide__excerpt { max-width: 100%; }
  .hs-botanical--tl { width: 140px; height: 140px; }
  .hs-botanical--br { display: none; }
  /* Controls centred in the canvas bottom strip (padding-bottom: 52px) */
  .hs-controls { bottom: 12px; left: 50%; right: auto; transform: translateX(-50%); }

  .community-banner__inner { gap: 14px; flex-direction: column; text-align: center; }
  .newsletter-inner { grid-template-columns: 1fr; gap: 32px; }
  .editor-inner { grid-template-columns: 1fr; text-align: center; }
  .editor-photo { width: 200px; height: 200px; margin-inline: auto; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-nav ul { justify-content: center; }

  /* Inner pages */
  .post-grid--3 { grid-template-columns: 1fr; }
  .article-nav { grid-template-columns: 1fr; gap: 16px; }
  .article-nav__next { text-align: left; }
  .article-hero__img { aspect-ratio: 4/3; }
  .archive-header { padding: 32px 0 36px; margin-bottom: 40px; }
}

@media (max-width: 560px) {
  .recipes-grid, .wl-grid, .tips-grid, .cat-grid { grid-template-columns: repeat(2, 1fr); }
  /* Below ~550px switch from ratio to a fixed compact image height */
  .tip-card { padding: 15px 12px; }
}
