/* ═══════════════════════════════════════════════════════════════
   AajKyaBanau — New Design System
   Cream / Burgundy / Gold palette
   Fonts: Cormorant Garamond (serif) + Josefin Sans (sans)
═══════════════════════════════════════════════════════════════ */

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ── DESIGN TOKENS ── */
:root {
  --cream:      #FDFAF6;
  --cream2:     #F5EDE0;
  --cream3:     #EDE0CD;
  --burgundy:   #7B1D1D;
  --burgundy-dk:#5A1515;
  --gold:       #C9A96E;
  --gold-lt:    #E8D5B0;
  --text:       #1C0A0A;
  --muted:      #8B5A3A;
  --border:     #E8D5C4;
  --border2:    #D8C4B0;
  --white:      #fff;
  --veg:        #15803D;
  --nveg:       #DC2626;
  --serif:      'Cormorant Garamond', Georgia, serif;
  --sans:       'Josefin Sans', sans-serif;
  --nav-h:      76px;
}

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; height: auto; }
/* Prevent global img rules from breaking fixed-size images */
.nd-mq-img,
.nd-rc-img img { height: 100% !important; max-width: none !important; }

/* ════════════════════════════════════
   NAV
════════════════════════════════════ */
.nd-nav {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  position: sticky;
  top: 0;
  z-index: 500;
  transition: box-shadow .3s;
}
.nd-nav.scrolled { box-shadow: 0 2px 12px rgba(28,10,10,.07); }

.nd-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  line-height: 1.1;
  text-decoration: none;
  flex-shrink: 1;
  min-width: 0; /* allow flex child to shrink below intrinsic width */
}
.nd-logo-img {
  height: 50px;
  width: auto;
  border-radius: 4px;
  flex-shrink: 0;
}
.nd-logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.nd-logo-main {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}
.nd-logo-sub {
  font-size: .52rem;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 2px;
  white-space: nowrap;
}

.nd-nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
}
.nd-nav-links a {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}
.nd-nav-links a:hover,
.nd-nav-links a.active { color: var(--burgundy); }

.nd-nav-right { display: flex; align-items: center; gap: .8rem; }

.nd-nav-search {
  display: flex;
  align-items: center;
  background: var(--cream2);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.nd-nav-search input {
  border: none;
  background: transparent;
  font-family: var(--sans);
  font-size: .75rem;
  color: var(--text);
  padding: .48rem 1rem;
  width: 170px;
  outline: none;
  letter-spacing: .5px;
}
.nd-nav-search input::placeholder { color: var(--muted); }
.nd-nav-sbtn {
  background: var(--burgundy);
  color: var(--cream);
  border: none;
  font-family: var(--sans);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: .48rem .9rem;
  cursor: pointer;
  transition: background .2s;
}
.nd-nav-sbtn:hover { background: var(--burgundy-dk); }

/* Hamburger */
.nd-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nd-hamburger span {
  width: 24px;
  height: 1.5px;
  background: var(--text);
  display: block;
}

/* Mobile search icon (visible <767px only) */
.nd-search-icon {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text);
  margin-right: .25rem;
}
.nd-search-icon:hover { color: var(--burgundy); }

/* Drop-down search panel (visible <767px when open) */
.nd-search-drop {
  display: none;
  position: sticky;
  top: var(--nav-h);
  z-index: 498;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: .75rem 5%;
  box-shadow: 0 4px 12px rgba(28,10,10,.06);
}
.nd-search-drop[hidden] { display: none !important; }
.nd-search-drop.open { display: block; }
.nd-search-drop-form {
  display: flex;
  align-items: center;
  background: var(--cream2);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}
.nd-search-drop-form input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--sans);
  font-size: .85rem;
  color: var(--text);
  padding: .55rem 1rem;
  outline: none;
  letter-spacing: .5px;
  min-width: 0;
}
.nd-search-drop-form input::placeholder { color: var(--muted); }

/* Mobile menu */
.nd-mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0; bottom: 0;
  background: var(--cream);
  z-index: 499;
  padding: 2rem 5%;
  flex-direction: column;
  border-top: 1px solid var(--border);
  overflow-y: auto;
}
.nd-mobile-menu.open { display: flex; }
.nd-mobile-menu a {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

/* ════════════════════════════════════
   MEAL TAB BAR
════════════════════════════════════ */
.nd-meal-bar {
  background: var(--cream2);
  border-bottom: 1px solid var(--border);
  padding: .9rem 5%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
}
.nd-meal-bar::-webkit-scrollbar { display: none; }
.nd-meal-inner { display: inline-flex; gap: .3rem; }
.nd-mtab {
  font-family: var(--sans);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  padding: .5rem 1.1rem;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: .2s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}
.nd-mtab:hover { border-color: var(--border2); background: var(--cream); color: var(--muted); }
.nd-mtab.active { background: var(--burgundy); color: var(--cream); border-color: var(--burgundy); }

/* ════════════════════════════════════
   HERO — HOME PAGE
════════════════════════════════════ */
.nd-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 88vh;
  position: relative;
  overflow: hidden;
}
.nd-hero-left {
  padding: 6% 5% 5% 5%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--cream);
  position: relative;
  z-index: 1;
}
.nd-hero-left::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 1px;
  background: var(--border);
}
.nd-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.nd-eyebrow-line { width: 30px; height: 1px; background: var(--gold); }
.nd-eyebrow-text {
  font-size: .65rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.nd-hero h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 5.5vw, 5.8rem);
  line-height: 1;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.nd-hero h1 em { color: var(--burgundy); font-style: italic; display: block; }
.nd-hero-sub {
  font-size: .85rem;
  color: var(--muted);
  line-height: 2;
  letter-spacing: .3px;
  max-width: 440px;
  margin-bottom: 2.5rem;
}
.nd-hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.nd-hero-stats {
  display: flex;
  gap: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.nd-stat strong {
  font-family: var(--serif);
  font-size: 2.5rem;
  color: var(--burgundy);
  display: block;
  font-weight: 700;
  line-height: 1;
}
.nd-stat span {
  font-size: .6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .25rem;
  display: block;
}

/* Hero Right — 2×2 four-image grid */
.nd-hero-right {
  position: relative;
  background: var(--cream3);
  min-height: 88vh;
}
.nd-hero-right-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  height: 100%;
  min-height: 88vh;
}
.nd-hg-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  padding: 1.2rem 1.4rem;
}
.nd-hg-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.nd-hg-item:hover img { transform: scale(1.06); }
.nd-hg-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,10,10,.82) 0%, rgba(28,10,10,.1) 50%, transparent 100%);
}
.nd-hg-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  opacity: .25;
}
.nd-hg-label { position: relative; z-index: 1; }
.nd-hg-region {
  font-size: .62rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: .3rem;
}
.nd-hg-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.nd-hero-time-chip {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: var(--gold);
  color: var(--text);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: .5rem 1rem;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}

/* ════════════════════════════════════
   BUTTONS (shared)
════════════════════════════════════ */
.nd-btn-fill {
  background: var(--burgundy);
  color: var(--cream);
  border: none;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 1rem 2rem;
  cursor: pointer;
  transition: background .2s;
  display: inline-block;
}
.nd-btn-fill:hover { background: var(--burgundy-dk); color: var(--cream); }
.nd-btn-border {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 1rem 2rem;
  cursor: pointer;
  transition: .2s;
  display: inline-block;
}
.nd-btn-border:hover { background: var(--text); color: var(--cream); }

/* ════════════════════════════════════
   SECTIONS
════════════════════════════════════ */
.nd-section { padding: 2% 5%; }
.nd-section.alt { background: var(--white); }

/* Dedicated veg / non-veg section accents */
.nd-sec-veg    { background: #F0F7F0 !important; }
.nd-sec-nonveg { background: #FDF5F5 !important; }
.nd-sec-veg    .nd-sec-eyebrow { color: var(--veg) !important; }
.nd-sec-nonveg .nd-sec-eyebrow { color: var(--nveg) !important; }

.nd-sec-hdr {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.nd-sec-eyebrow {
  font-size: .62rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: .5rem;
  display: block;
}
.nd-sec-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--text);
}
.nd-sec-title em { color: var(--burgundy); font-style: italic; }
.nd-see-all {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--burgundy);
  display: flex;
  align-items: center;
  gap: .4rem;
  transition: gap .2s;
  white-space: nowrap;
}
.nd-see-all:hover { gap: .7rem; color: var(--burgundy); }

/* ════════════════════════════════════
   RECIPE GRID
════════════════════════════════════ */
.nd-recipe-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);   /* always exactly 4 per row */
  gap: 1.5rem;
}

/* Horizontal scroll */
.nd-fscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: .5rem; }
.nd-fscroll::-webkit-scrollbar { display: none; }
.nd-frow { display: inline-flex; gap: 1.5rem; }
.nd-frow .nd-rcard { width: 300px; flex-shrink: 0; }

/* ── Recipe Card ── */
.nd-rcard {
  background: var(--white);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: box-shadow .3s, transform .3s;
  text-decoration: none;
  color: inherit;
  display: flex !important;           /* VERTICAL card */
  flex-direction: column !important;  /* image top, text bottom */
  overflow: hidden;
}
.nd-rcard:hover {
  box-shadow: 0 16px 48px rgba(28,10,10,.14);
  transform: translateY(-4px);
  color: inherit;
}

/* Image area — full width, 4:3 ratio, flex-shrink:0 so it doesn't collapse */
.nd-rc-img {
  width: 100%;
  flex-shrink: 0;            /* prevent collapse in flex column */
  height: 220px;             /* explicit height — reliable cross-browser */
  position: relative;
  overflow: hidden;
  background: var(--cream2);
  display: block;
}
.nd-rc-img img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  transition: transform .5s ease;
  display: block !important;
}
.nd-rcard:hover .nd-rc-img img { transform: scale(1.06); }
/* Prevent global img rule from capping absolutely-positioned images */
.nd-rc-img img {
  max-width: none !important;
  height: 100% !important;
  width: 100% !important;
}
.nd-rc-img-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--border2);
}

/* Badges over image */
.nd-rc-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--burgundy);
  color: var(--cream);
  font-family: var(--sans);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: .3rem .75rem;
  z-index: 1;
}
.nd-rc-diet {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  border-radius: 2px;
}
.nd-rc-diet.veg  { border: 2px solid var(--veg); }
.nd-rc-diet.veg::after  { content: ''; width: 9px; height: 9px; background: var(--veg);  border-radius: 50%; display: block; }
.nd-rc-diet.nveg { border: 2px solid var(--nveg); }
.nd-rc-diet.nveg::after { content: ''; width: 9px; height: 9px; background: var(--nveg); border-radius: 50%; display: block; }

/* Text body */
.nd-rc-body {
  padding: 1.3rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex-grow: 1;
}
.nd-rc-region {
  font-size: .65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  line-height: 1;
}
.nd-rc-region a { color: var(--gold); }
.nd-rc-region a:hover { color: var(--burgundy); }
.nd-rc-name {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.nd-rc-name a { color: var(--text); }
/* Ingredient chips */
.nd-rc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.nd-rc-tag, .nd-rc-tag-link {
  background: var(--cream2);
  color: var(--muted);
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .3px;
  padding: .28rem .65rem;
  border: 1px solid var(--border);
  display: inline-block;
  transition: .2s;
}
.nd-rc-tag-link:hover { background: var(--cream3); color: var(--burgundy); border-color: var(--gold-lt); }

/* Footer row */
.nd-rc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .9rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

/* Modern Like Button */
.nd-rc-likes {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  background: var(--cream2);
  color: var(--text);
  font-weight: 600;
  font-size: 0.8rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid transparent;
}
.nd-rc-likes:hover {
  background: #fff0f0;
  color: #e02424;
  border-color: #fababa;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(224, 36, 36, 0.1);
}
.nd-rc-likes:active {
  transform: translateY(0) scale(0.95);
}
.like-icon {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.nd-rc-likes:hover .like-icon {
  transform: scale(1.15);
}
.bi-heart-fill.text-pink,
.nd-rc-likes .bi-heart-fill {
  color: #e02424 !important; /* Turn heart RED */
  transform: scale(1.15);
}
.nd-rc-time {
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .5px;
  display: flex;
  align-items: center;
  gap: .3rem;
}
.nd-rc-btn {
  background: var(--burgundy);
  color: var(--cream);
  border: none;
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: .45rem 1.1rem;
  cursor: pointer;
  transition: background .2s;
}
.nd-rc-btn:hover { background: var(--burgundy-dk); }

/* ════════════════════════════════════
   MARQUEE
════════════════════════════════════ */
.nd-marquee {
  background: var(--burgundy);
  padding: .6rem 0;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
}
.nd-marquee-inner {
  display: inline-flex;
  align-items: center;
  animation: nd-scroll 60s linear infinite;
  will-change: transform;
}
/* Pause on hover */
.nd-marquee:hover .nd-marquee-inner { animation-play-state: paused; }
@keyframes nd-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* Individual marquee item — now an anchor */
.nd-mq-item {
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  color: rgba(255,255,255,.80);
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: 0 2.5rem 0 0;
  text-decoration: none;
  transition: color .2s;
  white-space: nowrap;
}
.nd-mq-item:hover { color: var(--gold); }
/* Circular dish image */
.nd-mq-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(201,169,110,.4);
  flex-shrink: 0;
  transition: border-color .2s, transform .2s;
}
.nd-mq-item:hover .nd-mq-img { border-color: var(--gold); transform: scale(1.1); }
.nd-mq-name { display: inline; }
.nd-mq-dot { width: 5px; height: 5px; background: var(--gold); border-radius: 50%; flex-shrink: 0; opacity: .55; margin-left: 2rem; }

/* ════════════════════════════════════
   DOSHA PROMO BANNER
════════════════════════════════════ */
.nd-promo {
  background: var(--text);
  padding: 4rem 5%;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.nd-promo::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(201,169,110,.08), transparent 70%);
  pointer-events: none;
}
.nd-promo-eyebrow {
  font-size: .62rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  display: block;
  margin-bottom: 1rem;
}
.nd-promo h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--cream);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: .8rem;
}
.nd-promo h2 em { color: var(--gold); font-style: italic; }
.nd-promo p { font-size: .82rem; color: #999; line-height: 1.9; letter-spacing: .3px; margin-bottom: 1.5rem; max-width: 440px; }
.nd-dosha-cards { display: flex; flex-direction: column; gap: .75rem; }
.nd-dosha-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(201,169,110,.2);
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: .25s;
}
.nd-dosha-card:hover { background: rgba(201,169,110,.1); border-color: var(--gold); color: inherit; }
.nd-dosha-info { display: flex; align-items: center; gap: 1rem; }
.nd-dosha-icon { font-size: 1.6rem; }
.nd-dosha-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; color: var(--cream); }
.nd-dosha-sub { font-size: .62rem; letter-spacing: 1.5px; text-transform: uppercase; color: #777; margin-top: .1rem; }
.nd-dosha-arr { color: var(--gold); font-size: .9rem; font-weight: 700; }

/* ════════════════════════════════════
   CATEGORIES GRID
════════════════════════════════════ */
.nd-cat-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.nd-cat-item {
  background: var(--white);
  padding: 1.8rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: .2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.nd-cat-item:hover { background: var(--cream2); color: var(--text); }
.nd-cat-icon { font-size: 1.8rem; margin-bottom: .65rem; }
.nd-cat-name { font-size: .68rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text); }
.nd-cat-count { font-size: .6rem; color: var(--muted); margin-top: .25rem; letter-spacing: .5px; }

/* ════════════════════════════════════
   REGION STRIP
════════════════════════════════════ */
.nd-region-strip { padding: 4% 5%; background: var(--cream); }
.nd-regions-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 2rem; }
.nd-regions-scroll::-webkit-scrollbar { display: none; }
.nd-regions-row { display: inline-flex; gap: 1rem; }
.nd-region-card {
  min-width: 160px;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem;
  transition: .25s;
  flex-shrink: 0;
  text-decoration: none;
}
.nd-region-card:hover { transform: translateY(-4px); }
.nd-region-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,10,10,.8) 0%, rgba(28,10,10,.1) 60%, transparent 100%);
}
.nd-region-emoji {
  font-size: 2.2rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -70%);
  z-index: 1;
}
.nd-region-name {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.nd-region-count {
  font-size: .6rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  position: relative;
  z-index: 1;
  margin-top: .2rem;
}

/* ════════════════════════════════════
   FOOTER
════════════════════════════════════ */
.nd-footer { background: var(--text); color: #888; padding: 5% 5% 2%; }
.nd-fg {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.nd-fl-main {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cream);
  display: block;
  margin-bottom: .2rem;
}
.nd-fl-sub {
  font-size: .52rem;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: 1.2rem;
}
.nd-fdesc { font-size: .82rem; line-height: 1.8; max-width: 260px; letter-spacing: .3px; color: #666; }
.nd-fc h4 { font-size: .6rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.nd-fc ul { list-style: none; }
.nd-fc li { margin-bottom: .55rem; }
.nd-fc a { color: #666; font-size: .82rem; letter-spacing: .5px; transition: color .2s; }
.nd-fc a:hover { color: var(--gold); }
.nd-fb {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .72rem;
  letter-spacing: .5px;
  color: #444;
}
.nd-footer-social { display: flex; gap: .75rem; margin-top: 1rem; }
.nd-social-btn {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: .9rem;
  transition: .2s;
  border-radius: 2px;
}
.nd-social-btn:hover { border-color: var(--gold); color: var(--gold); }

/* ════════════════════════════════════
   PAGE BANNER (category pages)
════════════════════════════════════ */
.nd-page-banner {
  background: var(--text);
  padding: 5% 5% 4%;
  position: relative;
  overflow: hidden;
}
.nd-page-banner::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(201,169,110,.08), transparent 65%);
  pointer-events: none;
}
.nd-breadcrumb { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.5rem; }
.nd-breadcrumb a, .nd-breadcrumb span {
  font-size: .65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #666;
}
.nd-breadcrumb a:hover { color: var(--gold); }
.nd-breadcrumb .nd-sep { color: #444; }
.nd-breadcrumb .nd-cur { color: var(--gold); }
.nd-page-banner h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1;
  margin-bottom: .8rem;
}
.nd-page-banner h1 em { color: var(--gold); font-style: italic; }
.nd-page-banner p { font-size: .85rem; color: #999; letter-spacing: .5px; line-height: 1.8; max-width: 500px; margin-bottom: 2rem; }
.nd-banner-stats { display: flex; gap: 3rem; }
.nd-bstat strong { font-family: var(--serif); font-size: 2rem; color: var(--cream); display: block; font-weight: 700; }
.nd-bstat span { font-size: .6rem; letter-spacing: 2px; text-transform: uppercase; color: #666; }

/* ════════════════════════════════════
   RESPONSIVE
════════════════════════════════════ */
/* ════════════════════════════════════
   RESPONSIVE
════════════════════════════════════ */
@media (max-width: 1200px) {
  .nd-recipe-grid  { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1100px) {
  .nd-cat-grid     { grid-template-columns: repeat(4, 1fr); }
  .nd-recipe-grid  { grid-template-columns: repeat(2, 1fr); }
  .nd-frow .nd-rcard { width: 270px; }
}
@media (max-width: 900px) {
  .nd-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .nd-hero-right-grid { min-height: 60vw; }
  .nd-promo          { grid-template-columns: 1fr; gap: 3rem; }
  .nd-fg             { grid-template-columns: 1fr 1fr; }
  .nd-recipe-grid    { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
}
/* ── Below 980px: hide nav links, show hamburger, center the search box ── */
@media (max-width: 979px) {
  .nd-nav        { justify-content: flex-start; gap: 1rem; }
  .nd-nav-links  { display: none; }
  .nd-hamburger  { display: flex; order: 99; margin-left: auto; }
  /* Search box centered between logo (left) and hamburger (right) */
  .nd-nav-right  { flex: 1; display: flex; justify-content: center; }
  .nd-nav-search input { width: 200px; }
}

/* ── Below 767px: hide centered search box, show search icon that toggles a drop-down ── */
@media (max-width: 767px) {
  :root { --nav-h: 64px; }
  .nd-nav          { padding: 0 4%; gap: .5rem; }
  .nd-nav-right    { display: none; }
  .nd-search-icon  { display: inline-flex; order: 98; margin-left: auto; }
  .nd-hamburger    { margin-left: 0; }
  .nd-search-drop.open { display: block; }
  .nd-logo-img     { height: 40px; }
  .nd-logo-main    { font-size: 1.15rem; letter-spacing: 1.2px; }
  .nd-logo-sub     { font-size: .48rem; letter-spacing: 2.5px; }
}

/* ── ≤480px: shrink logo further so logo + icon + hamburger fit ── */
@media (max-width: 480px) {
  .nd-logo-img     { height: 36px; }
  .nd-logo-main    { font-size: 1rem; letter-spacing: 1px; }
  .nd-logo-sub     { font-size: .44rem; letter-spacing: 2px; }
  .nd-logo         { gap: 8px; }
}

/* ── ≤423px: hide the sub-tagline so the logo still fits cleanly ── */
@media (max-width: 423px) {
  .nd-logo-sub     { display: none; }
  .nd-logo-main    { font-size: .95rem; letter-spacing: .8px; }
}

/* ── ≤360px: shrink logo image and tighten everything for ~320 phones ── */
@media (max-width: 360px) {
  .nd-nav          { padding: 0 3%; gap: .35rem; }
  .nd-logo-img     { height: 32px; }
  .nd-logo-main    { font-size: .85rem; letter-spacing: .5px; }
  .nd-search-icon  { padding: 4px; }
}

/* ════════════════════════════════════════════════════════════
   COLLAPSIBLE "REFINE RESULTS" SIDEBAR (mobile only, <767px)
   The arrow + click handler are added by JS; collapsed-by-default
   uses the .is-collapsed class set on first paint.
   ════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .sidebar .sidebar-title {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: 0;
    padding-bottom: .8rem;
  }
  .sidebar .sidebar-title::after {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .25s ease;
    margin-right: .25rem;
    flex-shrink: 0;
  }
  /* Collapsed: arrow points right (-45deg), filters hidden */
  .sidebar.is-collapsed .sidebar-title::after { transform: rotate(-45deg); }
  .sidebar.is-collapsed .sidebar-title {
    border-bottom: 0;
    padding-bottom: 0;
  }
  .sidebar.is-collapsed .filter-group,
  .sidebar.is-collapsed .apply-btn { display: none; }
  /* Expanded state restores the title bottom border + spacing */
  .sidebar:not(.is-collapsed) .sidebar-title { margin-bottom: 1.2rem; }
}

@media (max-width: 768px) {
  .nd-section      { padding: 8% 4%; }
  .nd-promo        { padding: 8% 4%; }
  .nd-region-strip { padding: 8% 4%; }
  .nd-cat-grid     { grid-template-columns: repeat(4, 1fr); }
  .nd-recipe-grid  { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .nd-frow .nd-rcard { width: 240px; }
  .nd-fg           { grid-template-columns: 1fr 1fr; }
  .nd-fb           { flex-direction: column; gap: .5rem; text-align: center; }
  .nd-hero-stats   { gap: 2rem; }
  .nd-hero-right-grid { grid-template-columns: 1fr 1fr; min-height: 70vw; }
  .nd-hg-name      { font-size: 1rem; }
  .nd-sec-hdr      { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .nd-promo h2     { font-size: 2rem; }
}
@media (max-width: 480px) {
  .nd-hero-left     { padding: 10% 4%; }
  .nd-hero h1       { font-size: 2.2rem; }
  .nd-hero-sub      { font-size: .8rem; }
  .nd-hero-btns     { flex-direction: column; }
  .nd-btn-fill,
  .nd-btn-border    { text-align: center; }
  .nd-cat-grid      { grid-template-columns: repeat(4, 1fr); }
  .nd-cat-item      { padding: 1.2rem .5rem; }
  .nd-cat-icon      { font-size: 1.3rem; }
  .nd-cat-name      { font-size: .55rem; letter-spacing: 1px; }
  .nd-cat-count     { display: none; }
  .nd-fg            { grid-template-columns: 1fr; }
  .nd-fg > div:not(:first-child) { display: none; } /* show only brand on very small */
  .nd-fg            { grid-template-columns: 1fr; }
  .nd-recipe-grid   { grid-template-columns: 1fr; }
  .nd-hero-right-grid { grid-template-columns: 1fr 1fr; min-height: 55vw; }
  .nd-hg-name       { font-size: .9rem; }
  .nd-hg-region     { font-size: .52rem; }
  .nd-hero-stats    { flex-wrap: wrap; gap: 1rem; }
  .nd-stat strong   { font-size: 2rem; }
  .nd-promo         { padding: 10% 4%; }
  .nd-dosha-cards   { gap: .5rem; }
  .nd-region-card   { min-width: 130px; }
}

/* ════════════════════════════════════
   TEXT PAGES (Privacy, Terms, FAQ)
════════════════════════════════════ */
.nd-text-page { max-width: 900px; margin: 0 auto; color: var(--text); background: var(--white); padding: 4rem; border: 1px solid var(--border); border-top: 4px solid var(--burgundy); box-shadow: 0 10px 40px rgba(0,0,0,0.03); }
.nd-text-page h4.sub_title { font-family: var(--serif); font-size: 1.8rem; font-weight: 700; color: var(--burgundy); margin-top: 2.5rem; margin-bottom: 1rem; }
.nd-text-page p { font-size: 1rem; line-height: 1.8; color: #444; margin-bottom: 1.2rem; }
.nd-text-page ul { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.nd-text-page ul li { font-size: 1rem; line-height: 1.8; color: #444; margin-bottom: .6rem; }
.nd-text-page ul li strong { color: var(--text); }
.nd-text-page a { color: var(--gold); font-weight: 700; text-decoration: none; }
.nd-text-page a:hover { color: var(--burgundy); text-decoration: underline; }
.nd-text-pg-hdr { text-align: center; margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px dashed var(--border); }
.nd-text-pg-title { font-family: var(--serif); font-size: 3.5rem; color: var(--text); line-height: 1.1; margin-bottom: .5rem; }
.nd-text-pg-meta { font-size: .8rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); font-weight: 700; }
