/*
Theme Name: KeeCooks
Theme URI: https://keecooks.com
Author: Keeroot Solutions
Author URI: https://www.keeroot.com
Description: A powerful SEO-optimized WordPress theme for KeeCooks - Tamil Traditional Cooking Teaching. Features recipe cards, health tips, and a beautiful orange-green color scheme.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: keecooks
Tags: food, recipe, cooking, blog, custom-colors, custom-logo, featured-images, full-width-template, sticky-post, threaded-comments, translation-ready
*/

/* =========================================================
   CSS VARIABLES
   ========================================================= */
:root {
  --orange:       #E8612C;
  --orange-dark:  #C94E1E;
  --orange-light: #F4895A;
  --green:        #4A7043;
  --green-dark:   #355230;
  --green-light:  #6A9962;
  --cream:        #FDF6EE;
  --cream-dark:   #F5EAD8;
  --text:         #2C2416;
  --text-muted:   #6B5B45;
  --white:        #FFFFFF;
  --shadow-sm:    0 2px 8px rgba(44,36,22,.08);
  --shadow-md:    0 6px 24px rgba(44,36,22,.12);
  --shadow-lg:    0 16px 48px rgba(44,36,22,.16);
  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    28px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', 'Helvetica Neue', sans-serif;
  --font-accent:  'Dancing Script', cursive;
  --transition:   all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  min-width: 0; /* critical: prevents flex/grid children from overflowing */
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip; /* clip is stronger than hidden for mobile */
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: clip;
  width: 100%;
}

/* Site wrapper — the single hard clip container */
.site-wrapper {
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
  position: relative;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--orange); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--orange-dark); }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--green-dark);
  line-height: 1.25;
}

p { margin-bottom: 1rem; }

/* =========================================================
   TYPOGRAPHY SCALE
   ========================================================= */
.display-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 700;
}
.accent-script {
  font-family: var(--font-accent);
  color: var(--orange);
  font-size: 1.4em;
}

/* =========================================================
   UTILITY CLASSES
   ========================================================= */
.container        { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; }
.container--wide  { max-width: 1440px; margin: 0 auto; padding: 0 32px; width: 100%; }
.text-center      { text-align: center; }
.text-orange      { color: var(--orange); }
.text-green       { color: var(--green); }
.bg-cream         { background: var(--cream); }
.bg-green         { background: var(--green); color: var(--white); }
.bg-orange        { background: var(--orange); color: var(--white); }
.sr-only          { position: absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }

.section-pad { padding: 80px 0; }
.section-pad--lg { padding: 120px 0; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
}
.btn--primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn--primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,97,44,.35);
}
.btn--secondary {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn--secondary:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-2px);
}
.btn--ghost {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: var(--white);
  color: var(--orange);
  border-color: var(--white);
}
.btn--sm { padding: 10px 22px; font-size: 0.85rem; }
.btn--lg { padding: 18px 44px; font-size: 1.05rem; }

/* =========================================================
   TOP BAR
   ========================================================= */
.top-bar {
  background: var(--green-dark);
  color: var(--cream);
  font-size: 0.8rem;
  padding: 8px 0;
  overflow: hidden;
  width: 100%;
}
.top-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  width: 100%;
}
.top-bar__desc {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
  font-size: .8rem;
}
.top-bar a { color: var(--cream); }
.top-bar a:hover { color: var(--orange-light); }
.top-bar__social { display: flex; gap: 16px; flex-shrink: 0; }

/* =========================================================
   HEADER & NAVIGATION
   ========================================================= */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  overflow: hidden;
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
  width: 100%;
  min-width: 0;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;    /* logo never shrinks */
  text-decoration: none;
}
.site-logo img { height: 56px; width: auto; max-width: none; }
.site-logo__text { display: flex; flex-direction: column; }
.site-logo__name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  white-space: nowrap;
}
.site-logo__name span { color: var(--green); }
.site-logo__tagline {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

/* Main Nav — desktop only (≥1280px), hamburger below that */
.main-nav {
  display: none; /* always hidden — opened only via .open class from JS toggle */
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  overflow: hidden;
}
/* Inline nav REMOVED — always use hamburger toggle for all screen sizes */
.main-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transition: var(--transition);
  border-radius: 2px;
}
.main-nav a:hover,
.main-nav a.current-menu-item {
  color: var(--orange);
  background: rgba(232,97,44,.06);
}
.main-nav a:hover::after,
.main-nav a.current-menu-item::after { transform: scaleX(1); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;  /* actions never shrink */
}
/* Donate button class for targeted hiding */
.header-donate { white-space: nowrap; }

/* Search form in header */
.header-search {
  display: flex;
  align-items: center;
  background: var(--cream);
  border: 2px solid var(--cream-dark);
  border-radius: 50px;
  padding: 8px 16px;
  transition: var(--transition);
}
.header-search:focus-within {
  border-color: var(--orange);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(232,97,44,.15);
}
.header-search input {
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  width: 160px;
  min-width: 0;
}
.header-search input::placeholder { color: var(--text-muted); }
.header-search button {
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1rem;
  padding: 0;
  transition: var(--transition);
  flex-shrink: 0;
}
.header-search button:hover { color: var(--orange); }

/* Hamburger — always visible on ALL screen sizes */
.menu-toggle {
  display: flex;   /* always shown */
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  transition: background .2s;
}
.menu-toggle:hover { background: var(--cream); }
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s ease;
}

/* =========================================================
   HERO SLIDER
   ========================================================= */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 100%;
  contain: layout; /* isolate from page flow */
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 40%, #3d7a45 100%);
}
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(232,97,44,.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.05) 0%, transparent 40%);
}
.hero__pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 80px 0;
  max-width: 650px;
}
.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  color: var(--cream);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,.2);
}
.hero__label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--orange-light);
  border-radius: 50%;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.hero__title .script {
  font-family: var(--font-accent);
  color: var(--orange-light);
  font-size: 1.1em;
  font-weight: 400;
}
.hero__subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.7;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.hero__stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--orange-light);
  line-height: 1;
}
.hero__stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}
.hero__image {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 45%;
  overflow: hidden;
}
.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  mix-blend-mode: luminosity;
}
.hero__image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--green-dark) 0%, transparent 50%);
  z-index: 1;
}

/* =========================================================
   MARQUEE TICKER
   ========================================================= */
.ticker {
  background: var(--orange);
  padding: 12px 0;
  /* Hard containment — the wide track must NEVER set page width */
  overflow: hidden;
  width: 100%;
  position: relative;
  /* Isolate stacking context so the wide child can't bleed */
  contain: layout style;
}
.ticker__track {
  display: flex;
  gap: 60px;
  animation: ticker-scroll 30s linear infinite;
  white-space: nowrap;
  width: max-content; /* explicit: be as wide as needed, but INSIDE the overflow:hidden parent */
  position: relative;
}
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  flex-shrink: 0;
}
.ticker__item::before {
  content: '🍳';
  font-size: 1rem;
}
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =========================================================
   FEATURED CATEGORIES STRIP
   ========================================================= */
.categories-strip { padding: 60px 0; background: var(--white); overflow: hidden; }
.categories-strip__grid {
  display: grid;
  /* 6 columns on desktop, responsive via media queries */
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.cat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px;
  background: var(--cream);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  min-width: 0; /* critical: allow flex child to shrink */
}
.cat-pill:hover {
  border-color: var(--orange);
  background: var(--white);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.cat-pill__icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-dark);
  border-radius: 50%;
  transition: var(--transition);
}
.cat-pill:hover .cat-pill__icon {
  background: rgba(232,97,44,.12);
}
.cat-pill__name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cat-pill__count {
  font-size: 0.75rem;
  color: var(--orange);
  font-weight: 600;
}

/* =========================================================
   SECTION HEADER
   ========================================================= */
.section-header { text-align: center; margin-bottom: 52px; }
.section-header__eyebrow {
  font-family: var(--font-accent);
  font-size: 1.4rem;
  color: var(--orange);
  margin-bottom: 8px;
  display: block;
}
.section-header__title { color: var(--green-dark); margin-bottom: 16px; }
.section-header__line {
  width: 64px;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  border-radius: 4px;
  margin: 0 auto 20px;
}
.section-header__desc {
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* =========================================================
   RECIPE CARDS
   ========================================================= */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  width: 100%;           /* never exceed parent */
}
.recipe-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}
.recipe-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.recipe-card__image {
  position: relative;
  overflow: hidden;
  height: 220px;
}
.recipe-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.recipe-card:hover .recipe-card__image img { transform: scale(1.06); }
.recipe-card__category {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 50px;
}
.recipe-card__save {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(4px);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}
.recipe-card__save:hover { transform: scale(1.1); }
.recipe-card__body { padding: 20px 22px 22px; }
.recipe-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}
.recipe-card__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recipe-card__meta {
  display: flex;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--cream-dark);
}
.recipe-card__meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}
.recipe-card__meta-item svg { color: var(--orange); width: 14px; height: 14px; }

/* =========================================================
   FEATURED RECIPE (Big Card)
   ========================================================= */
.featured-recipe {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--green-dark);
  box-shadow: var(--shadow-lg);
}
.featured-recipe__image {
  position: relative;
  min-height: 480px;
}
.featured-recipe__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.featured-recipe__body {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
}
.featured-recipe__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange-light);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.featured-recipe__title {
  font-size: 2.2rem;
  color: var(--white);
  margin-bottom: 16px;
}
.featured-recipe__desc {
  color: rgba(255,255,255,.75);
  margin-bottom: 32px;
  font-size: 1.02rem;
  line-height: 1.7;
}
.featured-recipe__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.tag {
  background: rgba(255,255,255,.1);
  color: var(--cream);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.15);
}

/* =========================================================
   INFO CARDS (Healthy Tips, Amazing Facts, Cooking Tips)
   ========================================================= */
.info-cards { background: var(--cream-dark); }
.info-cards__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.info-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.info-card__image {
  height: 200px;
  overflow: hidden;
}
.info-card__image img { width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.info-card:hover .info-card__image img { transform:scale(1.05); }
.info-card__body { padding: 24px; }
.info-card__icon {
  width: 44px;
  height: 44px;
  background: var(--orange);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
  margin-top: -44px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(232,97,44,.35);
}
.info-card__title {
  font-size: 1.2rem;
  color: var(--green-dark);
  margin-bottom: 10px;
}
.info-card__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}
.info-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.info-card__link:hover { gap: 10px; }

/* =========================================================
   QUOTE SECTION
   ========================================================= */
.quote-section {
  background: var(--green);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.quote-section::before {
  content: '"';
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 20rem;
  color: rgba(255,255,255,.05);
  line-height: 1;
  pointer-events: none;
}
.quote-section blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--white);
  max-width: 800px;
  margin: 0 auto 20px;
  font-style: italic;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}
.quote-section cite {
  color: var(--orange-light);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-style: normal;
}

/* =========================================================
   TODAY'S MENU
   ========================================================= */
.todays-menu { background: var(--white); }
.menu-board {
  background: var(--green-dark);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
}
.menu-board__date {
  text-align: center;
  color: var(--white);
}
.menu-board__day-num {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  color: var(--orange-light);
  line-height: 1;
}
.menu-board__day-name {
  font-size: 1rem;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.menu-board__icon { font-size: 3rem; }
.menu-board__meals { display: grid; gap: 16px; }
.meal-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 16px;
  align-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  padding: 16px;
  transition: var(--transition);
}
.meal-item:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--orange-light);
}
.meal-item__emoji { font-size: 2rem; text-align: center; }
.meal-item__name { font-family: var(--font-display); font-size: 1.05rem; color: var(--white); }
.meal-item__type { font-size: 0.78rem; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: 0.06em; }
.meal-item__badge {
  background: var(--orange);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
}

/* =========================================================
   NEWSLETTER
   ========================================================= */
.newsletter {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
}
.newsletter__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.newsletter__title { font-size: 2.2rem; color: var(--white); margin-bottom: 12px; }
.newsletter__desc { color: rgba(255,255,255,.85); font-size: 1.05rem; }
.newsletter__form { display: flex; gap: 12px; }
.newsletter__input {
  flex: 1;
  padding: 16px 22px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.15);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}
.newsletter__input::placeholder { color: rgba(255,255,255,.65); }
.newsletter__input:focus {
  border-color: var(--white);
  background: rgba(255,255,255,.2);
}
.newsletter__btn {
  background: var(--white);
  color: var(--orange);
  border: none;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.newsletter__btn:hover {
  background: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,.75);
  padding: 72px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 280px 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__brand {}
.footer__logo-name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
}
.footer__logo-name span { color: var(--orange-light); }
.footer__tagline {
  font-family: var(--font-accent);
  color: var(--orange-light);
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.footer__desc {
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 24px;
}
.footer__social { display: flex; gap: 12px; }
.social-btn {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.95rem;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,.15);
}
.social-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-2px);
}
.footer__widget-title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--white);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
}
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a {
  color: rgba(255,255,255,.65);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.footer__links a::before { content: '›'; color: var(--orange); font-size: 1.1rem; line-height: 1; }
.footer__links a:hover { color: var(--white); padding-left: 4px; }
.footer__bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}
.footer__bottom a { color: rgba(255,255,255,.55); }
.footer__bottom a:hover { color: var(--orange-light); }

/* =========================================================
   PAGE BANNER
   ========================================================= */
.page-banner {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.page-banner::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40%;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M40 40 L80 0 L80 80 Z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-banner__title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--white);
  margin-bottom: 10px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,.6);
}
.breadcrumb a { color: var(--orange-light); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb__sep { color: rgba(255,255,255,.3); }

/* =========================================================
   RECIPES PAGE
   ========================================================= */
.recipes-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
  width: 100%;
}

/* Filter Bar — always single row, horizontal scroll */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;          /* NEVER wrap to multiple rows */
  overflow-x: auto;           /* scroll horizontally */
  -webkit-overflow-scrolling: touch;
  padding: 14px 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  /* hide scrollbar visually but keep scrollable */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-bar__label {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
}
.filter-chip {
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 2px solid var(--cream-dark);
  background: var(--cream);
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;        /* chips never wrap internally */
  flex-shrink: 0;             /* chips never shrink */
}
.filter-chip:hover, .filter-chip.active {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--white);
}

/* Sidebar */
.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.sidebar-widget__title {
  font-size: 1.05rem;
  color: var(--green-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--orange);
}
.sidebar-search {
  display: flex;
  border: 2px solid var(--cream-dark);
  border-radius: 8px;
  overflow: hidden;
}
.sidebar-search input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  background: transparent;
}
.sidebar-search button {
  padding: 12px 18px;
  background: var(--orange);
  border: none;
  color: var(--white);
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}
.sidebar-search button:hover { background: var(--orange-dark); }
.sidebar-category-list { display: flex; flex-direction: column; gap: 4px; }
.sidebar-category-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}
.sidebar-category-list a:hover { background: var(--cream); color: var(--orange); }
.sidebar-category-list span {
  background: var(--cream-dark);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 50px;
  font-weight: 700;
}
.sidebar-category-list a:hover span { background: var(--orange); color: var(--white); }

/* Recent posts in sidebar */
.recent-post {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--cream-dark);
}
.recent-post:last-child { border-bottom: none; }
.recent-post__img {
  width: 72px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.recent-post__title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: var(--green-dark);
  line-height: 1.35;
  margin-bottom: 4px;
}
.recent-post__title a { color: inherit; }
.recent-post__title a:hover { color: var(--orange); }
.recent-post__date { font-size: 0.75rem; color: var(--text-muted); }

/* Tag cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  background: var(--cream);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--cream-dark);
  transition: var(--transition);
}
.tag-cloud a:hover { background: var(--orange); color: var(--white); border-color: var(--orange); }

/* =========================================================
   SINGLE RECIPE PAGE
   ========================================================= */
.recipe-hero { background: var(--cream-dark); padding: 60px 0; }
.recipe-hero__inner { display: grid; grid-template-columns: 1fr 420px; gap: 56px; align-items: start; }
.recipe-hero__image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.recipe-hero__image img { width: 100%; height: 420px; object-fit: cover; }
.recipe-hero__meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.recipe-meta-item { text-align: center; flex: 1; min-width: 80px; }
.recipe-meta-item__value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 4px;
}
.recipe-meta-item__label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.recipe-difficulty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}
.difficulty-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cream-dark);
}
.difficulty-dot.active { background: var(--orange); }
.recipe-body { padding: 60px 0; }
.recipe-body__layout { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: start; }
.ingredients-box {
  background: var(--green-dark);
  border-radius: var(--radius-md);
  padding: 32px;
  color: var(--white);
  position: sticky;
  top: 100px;
}
.ingredients-box__title { color: var(--white); font-size: 1.3rem; margin-bottom: 24px; }
.ingredients-list { display: flex; flex-direction: column; gap: 12px; }
.ingredient-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.ingredient-item:last-child { border-bottom: none; }
.ingredient-item__check {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 4px;
  flex-shrink: 0;
  cursor: pointer;
  transition: var(--transition);
}
.ingredient-item__check:checked { background: var(--orange); border-color: var(--orange); }
.ingredient-item__qty { color: var(--orange-light); font-weight: 700; font-size: 0.9rem; min-width: 60px; }
.ingredient-item__name { color: rgba(255,255,255,.85); font-size: 0.9rem; }
.steps-list { display: flex; flex-direction: column; gap: 32px; }
.step-item { display: grid; grid-template-columns: 48px 1fr; gap: 20px; }
.step-item__num {
  width: 48px;
  height: 48px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-item__title { font-size: 1.1rem; color: var(--green-dark); margin-bottom: 8px; }
.step-item__desc { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; }

/* =========================================================
   HEALTH TIPS PAGE
   ========================================================= */
.health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}
.health-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid transparent;
  transition: var(--transition);
}
.health-card:hover { border-left-color: var(--green); box-shadow: var(--shadow-md); transform: translateX(4px); }
.health-card__icon { font-size: 2.5rem; margin-bottom: 16px; }
.health-card__title { font-size: 1.2rem; color: var(--green-dark); margin-bottom: 12px; }
.health-card__text { font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; }

/* =========================================================
   JOIN US PAGE
   ========================================================= */
.join-hero {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  padding: 80px 0;
  text-align: center;
  color: var(--white);
}
.join-hero__title { color: var(--white); margin-bottom: 16px; }
.join-hero__desc { color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 560px; margin: 0 auto 40px; }
.join-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  max-width: 680px;
  margin: 0 auto;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
.form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-control {
  padding: 14px 18px;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  transition: var(--transition);
  outline: none;
  background: var(--cream);
}
.form-control:focus {
  border-color: var(--orange);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(232,97,44,.12);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }

/* Benefits grid on join page */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 56px 0; }
.benefit-item {
  text-align: center;
  padding: 32px 24px;
  background: var(--cream);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.benefit-item:hover { background: var(--white); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.benefit-item__icon { font-size: 2.5rem; margin-bottom: 14px; }
.benefit-item__title { font-size: 1.05rem; color: var(--green-dark); margin-bottom: 8px; }
.benefit-item__desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* =========================================================
   DONATE PAGE
   ========================================================= */
.donate-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 32px 0; }
.donate-option {
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
}
.donate-option:hover, .donate-option.active {
  border-color: var(--orange);
  background: rgba(232,97,44,.05);
}
.donate-option__amount {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 4px;
}
.donate-option__label { font-size: 0.78rem; color: var(--text-muted); }

/* =========================================================
   PAGINATION
   ========================================================= */
.pagination { display: flex; justify-content: center; gap: 8px; padding: 48px 0; }
.page-numbers {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  border: 2px solid var(--cream-dark);
  background: var(--white);
  transition: var(--transition);
}
.page-numbers:hover, .page-numbers.current {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

/* =========================================================
   BACK TO TOP
   ========================================================= */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(232,97,44,.4);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  z-index: 999;
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: var(--orange-dark); transform: translateY(-3px); }

/* =========================================================
   PRELOADER
   ========================================================= */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--green-dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader__logo {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  animation: pulse 1s ease infinite;
}
.preloader__logo span { color: var(--orange-light); }
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.7; transform:scale(.97); } }

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

/* ---- Tablet 1024px ---- */
@media (max-width: 1024px) {
  .hero__image { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .info-cards__grid { grid-template-columns: 1fr 1fr; }
  .newsletter__inner { grid-template-columns: 1fr; gap: 32px; }
  .recipes-layout { grid-template-columns: 1fr; gap: 0; }
  .recipe-hero__inner { grid-template-columns: 1fr; }
  .recipe-body__layout { grid-template-columns: 1fr; }
  .ingredients-box { position: static; }
  /* Category strips: 4 cols on tablet */
  .categories-strip__grid { grid-template-columns: repeat(4, 1fr); }
  /* Category cards: 3 cols on tablet */
  .cat-cards-grid { grid-template-columns: repeat(3, 1fr); }
  /* Sidebar hidden on tablet — full width content */
  #sidebar { display: none; }
  /* Donate/search visibility handled globally in 768px block */
}

/* =========================================================
   NAV OVERLAY — applies at < 1280px (tablet + mobile)
   Toggle class .open added by JS
   ========================================================= */
/* When nav is NOT open it is hidden (display:none set in .main-nav default above) */
/* When open, full-screen overlay */
.main-nav.open {
  display: flex !important;
  position: fixed;
  inset: 0;
  background: rgba(44,68,40,.97);
  flex-direction: column;
  align-items: flex-start;
  padding: 72px 32px 48px;
  gap: 0;
  z-index: 998;
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}
.main-nav.open a {
  width: 100%;
  color: var(--white);
  font-size: 1.1rem;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.main-nav.open a:hover,
.main-nav.open a.current-menu-item {
  color: var(--orange-light);
  background: transparent;
  padding-left: 8px;
}
.main-nav.open a::after { display: none !important; }

/* Close × button inside open nav */
.main-nav.open::before {
  content: '✕';
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 1.2rem;
  color: rgba(255,255,255,.6);
  cursor: pointer;
  line-height: 1;
  pointer-events: none; /* JS handles close via outside click / Escape */
}

/* ---- Mobile 768px ---- */
@media (max-width: 768px) {

  /* === GLOBAL CLIP — every section must not bleed === */
  .top-bar, .site-header, .hero, .ticker,
  .categories-strip, .section-pad, .info-cards,
  .quote-section, .todays-menu, .newsletter,
  .site-footer, .page-banner, .recipes-page-hero,
  .recipes-search-bar, .cat-cards-section,
  .recipe-hero, .recipe-body, .site-wrapper,
  #main, .recipes-layout, .recipe-grid,
  .cat-cards-grid, .filter-bar {
    max-width: 100%;
    width: 100%;
  }
  .site-wrapper { overflow-x: clip; }

  /* === TOP BAR — hidden on mobile === */
  .top-bar { display: none; }

  /* === HEADER — only Logo + Hamburger on mobile === */
  .site-header { overflow: hidden; width: 100%; }
  .header__inner { padding: 10px 0; gap: 10px; min-width: 0; }

  /* Logo: show name only, hide tagline */
  .site-logo__name { font-size: 1.4rem; }
  .site-logo__tagline { display: none !important; }
  .site-logo img { height: 44px; }

  /* Nav overlay handled globally below 1280px — see non-media-query block above */

  /* Hamburger already visible (default); keep z-index */
  .menu-toggle { position: relative; z-index: 999; }

  /* Hide search and donate on mobile */
  .header-search { display: none !important; }
  .header-donate { display: none !important; }

  /* === HERO === */
  .hero { min-height: auto; overflow: hidden; width: 100%; }
  .hero__content { padding: 48px 0 40px; max-width: 100%; }
  .hero__title { font-size: clamp(1.8rem, 7vw, 2.6rem); }
  .hero__subtitle { font-size: .95rem; }
  .hero__actions { flex-direction: column; gap: 12px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__stats { flex-wrap: wrap; gap: 16px; padding-top: 24px; margin-top: 28px; }
  .hero__stat-num { font-size: 1.5rem; }

  /* === TICKER — hide on mobile (prevents overflow entirely) === */
  .ticker { display: none; }

  /* === CATEGORY PILLS — 3 cols on mobile === */
  .categories-strip { overflow: hidden; }
  .categories-strip__grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cat-pill { padding: 14px 8px; gap: 8px; border-radius: var(--radius-sm); }
  .cat-pill__icon { width: 44px; height: 44px; font-size: 1.4rem; }
  .cat-pill__name { font-size: .66rem; letter-spacing: .02em; }
  .cat-pill__count { font-size: .65rem; }

  /* === FILTER BAR — already horizontal scroll, tweak padding === */
  .filter-bar { padding: 12px 14px; gap: 6px; border-radius: var(--radius-sm); }
  .filter-chip { padding: 6px 14px; font-size: .78rem; }

  /* === RECIPE GRID — single column on mobile === */
  .recipe-grid { grid-template-columns: 1fr; gap: 16px; width: 100%; }
  .recipe-card { width: 100%; }
  .recipe-card__image { height: 200px; }

  /* === CATEGORY CARDS (Recipes page) === */
  .cat-cards-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .cat-card { min-height: 170px; }
  .cat-card--featured { grid-column: span 2; min-height: 200px; }
  .cat-card__title { font-size: 1rem; }
  .cat-card__body { padding: 14px 14px 16px; }
  .cat-card__emoji { font-size: 1.4rem; margin-bottom: 5px; }

  /* === INFO CARDS === */
  .info-cards__grid { grid-template-columns: 1fr; }

  /* === NEWSLETTER === */
  .newsletter { padding: 48px 0; }
  .newsletter__inner { grid-template-columns: 1fr; gap: 24px; }
  .newsletter__form { flex-direction: column; gap: 10px; }
  .newsletter__input, .newsletter__btn { width: 100%; }

  /* === FOOTER === */
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; padding: 16px 0; }

  /* === PAGE BANNER === */
  .page-banner { padding: 36px 0; }
  .page-banner__title { font-size: clamp(1.4rem, 6vw, 2rem); }
  .breadcrumb { font-size: .78rem; flex-wrap: wrap; }

  /* === RECIPES LAYOUT — single column, no sidebar === */
  .recipes-layout { grid-template-columns: 1fr; gap: 0; }
  #sidebar { display: none; } /* hide sidebar on mobile for clean layout */

  /* === FILTER BAR — horizontal scroll === */
  .filter-bar { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; padding: 12px 16px; gap: 8px; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-chip { white-space: nowrap; flex-shrink: 0; }

  /* === SINGLE RECIPE === */
  .recipe-hero { padding: 40px 0; }
  .recipe-hero__inner { grid-template-columns: 1fr; gap: 24px; }
  .recipe-hero__image img { height: 240px; }
  .recipe-hero__meta-bar { flex-wrap: wrap; gap: 10px; }
  .recipe-meta-item { min-width: 70px; flex: 1; }

  /* === RECIPES PAGE HERO === */
  .recipes-page-hero { padding: 44px 0; overflow: hidden; }
  .recipes-page-hero__title { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  .recipes-page-hero__floating { display: none; }
  .recipes-search-inner { flex-direction: column; gap: 12px; }
  .recipes-search-form { width: 100%; min-width: 0; }
  .recipes-search-count { text-align: center; }

  /* === SECTION SPACING === */
  .section-pad { padding: 44px 0; }
  .section-pad--lg { padding: 56px 0; }
  .section-header { margin-bottom: 32px; }

  /* === FORMS === */
  .form-grid { grid-template-columns: 1fr; }

  /* === MENU BOARD === */
  .menu-board { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .meal-item { grid-template-columns: 48px 1fr auto; gap: 10px; }

  /* === MISC === */
  .benefits-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .donate-options { grid-template-columns: 1fr 1fr; }
  .back-to-top { bottom: 20px; right: 16px; width: 40px; height: 40px; font-size: 1rem; }
}

/* ---- Small mobile 480px ---- */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .hero__title { font-size: clamp(1.6rem, 8vw, 2.2rem); }
  .hero__actions .btn { padding: 13px 20px; font-size: .9rem; }
  .hero__stats { gap: 12px; }
  .hero__stat-num { font-size: 1.35rem; }

  .categories-strip { padding: 28px 0; }
  .categories-strip__grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cat-pill { padding: 10px 5px; border-radius: var(--radius-sm); }
  .cat-pill__icon { width: 36px; height: 36px; font-size: 1.2rem; }
  .cat-pill__name { font-size: .6rem; letter-spacing: 0; }
  .cat-pill__count { font-size: .6rem; }

  .cat-cards-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat-card { min-height: 155px; }
  .cat-card--featured { min-height: 175px; }
  .cat-card__body { padding: 10px 10px 12px; }
  .cat-card__emoji { font-size: 1.2rem; }

  .recipe-grid { grid-template-columns: 1fr; }
  .recipe-card__image { height: 185px; }

  .section-title { font-size: clamp(1.3rem, 5vw, 1.8rem); }
  .section-pad { padding: 32px 0; }
  .section-header { margin-bottom: 20px; }

  .benefits-grid { grid-template-columns: 1fr; }
  .footer__grid { gap: 20px; }

  .filter-chip { font-size: .75rem; padding: 7px 12px; }

  .recipes-search-form input { font-size: .88rem; padding: 10px 14px; }
  .recipes-search-form button { padding: 10px 16px; font-size: .8rem; }
}

/* =========================================================
   ANIMATIONS/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInLeft { from { opacity:0; transform:translateX(-32px); } to { opacity:1; transform:translateX(0); } }

.animate-fade-up   { animation: fadeInUp   0.65s ease both; }
.animate-fade-in   { animation: fadeIn     0.65s ease both; }
.animate-slide-left{ animation: slideInLeft 0.65s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* =========================================================
   RECIPES PAGE — CATEGORY CARDS
   ========================================================= */
.recipes-page-hero {
  position: relative;
  background: var(--green-dark);
  overflow: hidden;
  padding: 80px 0;
}
.recipes-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(232,97,44,.25) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(74,112,67,.4) 0%, transparent 50%);
}
.recipes-page-hero__pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='40' cy='40' r='1.5' fill='%23ffffff' fill-opacity='0.06'/%3E%3C/svg%3E");
}
.recipes-page-hero__floating {
  position: absolute;
  font-size: 6rem;
  opacity: .07;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.recipes-page-hero__floating:nth-child(1) { top: -10px; right: 8%;  font-size: 9rem; }
.recipes-page-hero__floating:nth-child(2) { top: 40%;  right: 22%; font-size: 5rem; }
.recipes-page-hero__floating:nth-child(3) { bottom: -5px; right: 4%; font-size: 7rem; }
.recipes-page-hero__content { position: relative; z-index: 2; max-width: 700px; }
.recipes-page-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,97,44,.2);
  border: 1px solid rgba(232,97,44,.4);
  color: var(--orange-light);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.recipes-page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -.02em;
}
.recipes-page-hero__title em {
  font-style: normal;
  font-family: var(--font-accent);
  color: var(--orange-light);
  font-weight: 400;
  font-size: 1.1em;
}
.recipes-page-hero__desc {
  color: rgba(255,255,255,.75);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 540px;
}
.recipes-page-hero__stats {
  display: flex;
  gap: 36px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.12);
  flex-wrap: wrap;
}
.recipes-page-hero__stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--orange-light);
  line-height: 1;
}
.recipes-page-hero__stat-label {
  font-size: .75rem;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 4px;
}
.recipes-page-hero__image {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 42%;
  overflow: hidden;
}
.recipes-page-hero__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .18;
  mix-blend-mode: luminosity;
}
.recipes-page-hero__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--green-dark) 0%, transparent 60%);
}

/* Search bar on Recipes page */
.recipes-search-bar {
  background: var(--white);
  padding: 28px 0;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--cream-dark);
}
.recipes-search-inner {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.recipes-search-form {
  flex: 1;
  min-width: 260px;
  display: flex;
  border: 2px solid var(--cream-dark);
  border-radius: 50px;
  overflow: hidden;
  transition: var(--transition);
}
.recipes-search-form:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232,97,44,.12);
}
.recipes-search-form input {
  flex: 1;
  padding: 12px 20px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  outline: none;
}
.recipes-search-form button {
  padding: 12px 24px;
  background: var(--orange);
  border: none;
  color: var(--white);
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: var(--transition);
}
.recipes-search-form button:hover { background: var(--orange-dark); }
.recipes-search-count {
  color: var(--text-muted);
  font-size: .9rem;
  white-space: nowrap;
}
.recipes-search-count strong { color: var(--orange); }

/* Category Cards Grid */
.cat-cards-section { padding: 64px 0; }
.cat-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.cat-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
  display: block;
  min-height: 220px;
  text-decoration: none;
}
.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.cat-card__image-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.cat-card__image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.cat-card:hover .cat-card__image-wrap img { transform: scale(1.08); }
/* Gradient fallback when no image */
.cat-card__image-wrap .cat-card__gradient {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
/* Overlay */
.cat-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(30,50,28,.90) 0%,
    rgba(30,50,28,.50) 50%,
    rgba(30,50,28,.15) 100%
  );
  transition: var(--transition);
}
.cat-card:hover .cat-card__overlay {
  background: linear-gradient(
    to top,
    rgba(232,97,44,.88) 0%,
    rgba(200,60,20,.50) 50%,
    rgba(200,60,20,.15) 100%
  );
}
/* Card Body */
.cat-card__body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 20px 22px;
  z-index: 2;
}
.cat-card__emoji {
  font-size: 1.8rem;
  margin-bottom: 8px;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
}
.cat-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 6px;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.cat-card__count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,.25);
}
.cat-card__arrow {
  position: absolute;
  top: 16px; right: 16px;
  width: 34px; height: 34px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  border: 1px solid rgba(255,255,255,.25);
  transition: var(--transition);
  z-index: 2;
}
.cat-card:hover .cat-card__arrow {
  background: var(--white);
  color: var(--orange);
  transform: translate(2px, -2px);
}
/* Featured big card (first category) */
.cat-card--featured {
  grid-column: span 2;
  min-height: 300px;
}
.cat-card--featured .cat-card__title { font-size: 1.6rem; }
.cat-card--featured .cat-card__body { padding: 28px; }
.cat-card--featured .cat-card__emoji { font-size: 2.4rem; }

/* No categories placeholder */
.cat-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
  background: var(--cream);
  border-radius: var(--radius-lg);
}

/* =========================================================
   WP ALIGNMENT CLASSES (Required)
   ========================================================= */
.alignleft  { float: left;  margin: 0 2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 2em; }
.aligncenter{ display: block; margin: 0 auto 1em; }
.wp-caption  { max-width: 100%; }
.wp-caption-text { font-size: 0.82rem; color: var(--text-muted); text-align: center; padding: 6px 0; }

/* =========================================================
   MOBILE RECIPE CARD — zero extra margin, full width
   ========================================================= */
@media (max-width: 768px) {
  /* Recipe cards fill full column — no extra offset */
  .recipe-card {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  /* Section padding reduced so cards start at container edge */
  .section-pad { padding-left: 0; padding-right: 0; }
  .section-pad > .container { padding-left: 16px; padding-right: 16px; }

  /* Recipe body layout — full width, no offset */
  .recipe-body__layout { gap: 24px; }
  .entry-content { padding: 0; }
  .entry-content img { width: 100%; height: auto; border-radius: var(--radius-sm); }

  /* Category cards — fill width */
  .cat-cards-grid { width: 100%; }
  .cat-card { margin: 0; }

  /* Ingredients box — full width */
  .ingredients-box { border-radius: var(--radius-sm); }

  /* Section headers — smaller on mobile */
  .section-header__eyebrow { font-size: 1.1rem; }
}

@media (max-width: 480px) {
  .section-pad > .container { padding-left: 14px; padding-right: 14px; }
  .recipe-card__body { padding: 16px; }
  .recipe-card__title { font-size: 1.05rem; }
  .recipe-card__meta { gap: 10px; }
}

/* Screen reader text */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute; width: 1px; word-wrap: normal !important;
}
