/**
 * vs-delights.css
 * V's Delights — Drupal 11 custom theme stylesheet
 * Full design token system + all section styles
 */

/* ─── DESIGN TOKENS ─── */
:root {
  --cocoa:    #1a0a00;
  --espresso: #2e1503;
  --truffle:  #4a2209;
  --caramel:  #c47b2b;
  --gold:     #e8b84b;
  --cream:    #fdf5e6;
  --parchment:#f5e6c8;
  --milk:     #ffe9c3;
  --blush:    #f9d49b;
  --text-dark:#1a0a00;
  --text-mid: #4a2209;
  --radius:   4px;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cocoa);
  color: var(--cream);
  overflow-x: hidden;
  cursor: default;
}

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

/* ─── DRUPAL ADMIN TOOLBAR COMPATIBILITY ─────────────────────────────────────
 * Drupal toolbar heights:
 *   Horizontal bar only:      39px
 *   Horizontal + tray open:   79px
 *   Vertical sidebar:         handled by body padding-left, not top
 *
 * Our #navbar is position:fixed. When toolbar is present it must sit
 * BELOW the toolbar, not on top of it.
 */

/* Horizontal toolbar — push our navbar down by toolbar height */
body.toolbar-fixed #navbar {
  top: 39px;
}
body.toolbar-fixed.toolbar-tray-open #navbar {
  top: 79px;
}

/* Vertical sidebar toolbar — navbar stays at top:0 but shifts right */
body.toolbar-vertical.toolbar-fixed #navbar {
  top: 0;
}

/* Force Drupal toolbar above everything in our theme */
#toolbar-administration,
#toolbar-administration *,
.toolbar-bar,
.toolbar-tray {
  z-index: 100000 !important;
}

/* Hero: reduce min-height when toolbar takes space at the top */
body.toolbar-fixed #hero {
  min-height: calc(100vh - 39px);
}
body.toolbar-fixed.toolbar-tray-open #hero {
  min-height: calc(100vh - 79px);
}

/* Contextual links must show above content but below toolbar */
.contextual {
  z-index: 500 !important;
}

/* Visually hidden (accessibility) */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ─── CUSTOM CURSOR ─── */
.cursor {
  width: 18px; height: 18px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none !important; /* never intercept clicks */
  transform: translate(-50%, -50%);
  transition: transform .15s ease, background .2s;
  z-index: 499; /* safely below everything admin-related */
  /* mix-blend-mode removed — caused toolbar text to become invisible */
}
/* Hide custom cursor entirely when admin toolbar is present */
body.toolbar-fixed .cursor,
body.toolbar-vertical .cursor {
  display: none;
}
.cursor.grow {
  transform: translate(-50%,-50%) scale(2.4);
  background: rgba(232,184,75,.15);
}

/* ─── NAVBAR ─── */
#navbar {
  position: fixed; top: 0; width: 100%;
  padding: 1.2rem 4rem;
  display: flex; align-items: center; justify-content: space-between;
  z-index: 100; /* well below Drupal toolbar at 100000 */
  background: linear-gradient(to bottom, rgba(26,10,0,.95), transparent);
  transition: background .4s, top .2s;
}
#navbar.scrolled {
  background: rgba(26,10,0,.97);
  backdrop-filter: blur(12px);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-style: italic; font-weight: 700;
  color: var(--gold);
  letter-spacing: .03em;
  text-decoration: none;
}
.nav-links {
  display: flex; gap: 2.2rem; list-style: none;
}
.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: .82rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--parchment); text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover,
.nav-links a:focus { color: var(--gold); }
.nav-cta {
  font-family: 'DM Sans', sans-serif;
  font-size: .82rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--cocoa);
  background: var(--gold);
  border: none; padding: .6rem 1.6rem;
  border-radius: 2px; cursor: pointer;
  transition: background .2s, transform .2s;
  text-decoration: none;
}
.nav-cta:hover, .nav-cta:focus {
  background: var(--blush);
  transform: translateY(-1px);
}

/* Drupal menu item wrappers */
.nav-links .menu-item { list-style: none; }

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse 80% 80% at 50% 40%, #3b1500 0%, var(--cocoa) 70%);
  /* padding-top set by Drupal via body.toolbar-fixed — don't override */
  box-sizing: border-box;
}
.hero-bg-text {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Playfair Display', serif;
  font-size: clamp(8rem, 22vw, 22rem);
  font-weight: 900; font-style: italic;
  color: rgba(196,123,43,.07);
  white-space: nowrap; user-select: none;
  letter-spacing: -.02em;
}
.hero-particles {
  position: absolute; inset: 0;
  pointer-events: none;
}
.particle {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  animation: float-up var(--dur, 6s) var(--delay, 0s) ease-in-out infinite;
}
@keyframes float-up {
  0%   { opacity: 0; transform: translateY(0) scale(1); }
  20%  { opacity: .6; }
  80%  { opacity: .3; }
  100% { opacity: 0; transform: translateY(-120px) scale(.4); }
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 2rem;
  animation: fade-up .9s ease forwards;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-badge {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: .72rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(232,184,75,.35);
  padding: .45rem 1.4rem; border-radius: 2px;
  margin-bottom: 1.8rem;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 900; font-style: italic;
  line-height: .95;
  color: var(--cream);
  margin-bottom: .6rem;
}
.hero-title span { color: var(--gold); }
.hero-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
  font-weight: 300; font-style: italic;
  color: var(--parchment);
  letter-spacing: .04em;
  margin-bottom: 2.8rem;
  opacity: .85;
}
.hero-actions {
  display: flex; gap: 1.2rem;
  justify-content: center; flex-wrap: wrap;
}
.btn-primary {
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase;
  background: var(--gold); color: var(--cocoa);
  border: none; padding: .9rem 2.6rem;
  border-radius: 2px; cursor: pointer;
  transition: all .25s; text-decoration: none;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--blush);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(232,184,75,.25);
}
.btn-outline {
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase;
  background: transparent; color: var(--cream);
  border: 1px solid rgba(253,245,230,.4);
  padding: .9rem 2.6rem; border-radius: 2px;
  cursor: pointer; transition: all .25s; text-decoration: none;
  display: inline-block;
}
.btn-outline:hover, .btn-outline:focus {
  border-color: var(--gold); color: var(--gold);
  transform: translateY(-2px);
}
.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: rgba(253,245,230,.4);
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, rgba(253,245,230,.4), transparent);
  animation: scroll-pulse 2s ease infinite;
}
@keyframes scroll-pulse {
  0%,100% { transform: scaleY(1); }
  50%      { transform: scaleY(.6); }
}

/* ─── SECTION COMMONS ─── */
section { padding: 7rem 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 3rem; }
.section-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: .72rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700; font-style: italic;
  line-height: 1.1;
}
.divider {
  width: 60px; height: 2px;
  background: linear-gradient(to right, var(--gold), transparent);
  margin: 1.6rem 0;
}

/* ─── FEATURED PRODUCTS ─── */
#featured { background: var(--espresso); }
.featured-header { text-align: center; margin-bottom: 4rem; }
.featured-header .divider { margin: 1.6rem auto; }
.featured-header p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; font-weight: 300; font-style: italic;
  color: rgba(253,245,230,.7); max-width: 540px; margin: 0 auto;
}
.items-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
}
/* Responsive: 2 cols on tablet, 1 on mobile */
@media (max-width: 900px) {
  .items-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .items-grid { grid-template-columns: 1fr; }
}
.item-card {
  background: var(--truffle);
  border: 1px solid rgba(196,123,43,.2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
  cursor: pointer;
}
.item-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.item-card:hover .item-img-wrap::after { opacity: 1; }

.item-img-wrap {
  position: relative; height: 240px; overflow: hidden;
}
.item-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}
.item-img-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,10,0,.8) 0%, transparent 60%);
  opacity: .5; transition: opacity .3s;
}
.item-emoji {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 5.5rem;
  background: linear-gradient(135deg, var(--truffle), #3b1500);
}
.item-badge {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--gold); color: var(--cocoa);
  font-size: .65rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .3rem .8rem; border-radius: 2px;
  z-index: 1;
}
.item-body { padding: 1.6rem; }
.item-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 700; font-style: italic;
  color: var(--cream); margin-bottom: .5rem;
  min-height: 1.5rem; /* always visible even when empty */
}
.item-name a { text-decoration: none; color: var(--cream); }
.item-name a:hover { color: var(--gold); }
.item-desc {
  font-size: .88rem; color: rgba(253,245,230,.65);
  line-height: 1.65; margin-bottom: 1.2rem;
}
/* Strip Drupal paragraph wrappers inside .item-desc */
.item-desc p { margin: 0; }
.item-footer {
  display: flex; align-items: center; justify-content: space-between;
}
.item-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 700;
  color: var(--gold);
}
.item-enquire {
  font-size: .75rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  background: transparent; color: var(--gold);
  border: 1px solid var(--gold);
  padding: .45rem 1.1rem; border-radius: 2px;
  cursor: pointer; transition: all .2s;
  text-decoration: none; display: inline-block;
}
.item-enquire:hover, .item-enquire:focus {
  background: var(--gold); color: var(--cocoa);
}

/* ─── OUR STORY ─── */
#story { background: var(--cocoa); position: relative; overflow: hidden; }
#story::before {
  content: '"';
  position: absolute; top: -2rem; left: -1rem;
  font-family: 'Playfair Display', serif;
  font-size: 22rem; font-style: italic;
  color: rgba(196,123,43,.05);
  line-height: 1; pointer-events: none;
}
.story-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6rem; align-items: center;
}
.story-visual { position: relative; }
.story-img-main {
  width: 100%; aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--truffle) 0%, #3b1500 100%);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 9rem;
  border: 1px solid rgba(196,123,43,.2);
  overflow: hidden;
}
.story-img-main img { width: 100%; height: 100%; object-fit: cover; }
.story-img-accent {
  position: absolute; bottom: -2.5rem; right: -2.5rem;
  width: 55%; aspect-ratio: 1;
  background: var(--espresso);
  border: 3px solid var(--cocoa);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 4.5rem;
  overflow: hidden;
}
.story-img-accent img { width: 100%; height: 100%; object-fit: cover; }
.story-year {
  position: absolute; top: 2rem; left: -1.5rem;
  font-family: 'Playfair Display', serif;
  font-size: .85rem; font-style: italic;
  color: var(--gold);
  background: var(--espresso);
  border: 1px solid rgba(196,123,43,.3);
  padding: .5rem 1rem; border-radius: 2px;
  letter-spacing: .06em;
  z-index: 1;
}
.story-text { padding-right: 1rem; }
.story-body p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; font-weight: 300;
  line-height: 1.85; color: rgba(253,245,230,.78);
  margin-bottom: 1.4rem;
}
.story-body strong { color: var(--gold); font-weight: 600; }
.story-stats {
  display: flex; gap: 2.5rem;
  margin-top: 2.5rem; padding-top: 2.5rem;
  border-top: 1px solid rgba(196,123,43,.2);
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem; font-weight: 700;
  color: var(--gold); line-height: 1;
}
.stat-label {
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(253,245,230,.5); margin-top: .3rem;
}

/* ─── INGREDIENTS ─── */
#ingredients { background: var(--espresso); }
.ing-header { text-align: center; margin-bottom: 4rem; }
.ing-header .divider { margin: 1.6rem auto; }
.ing-header p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; font-style: italic;
  color: rgba(253,245,230,.65); max-width: 520px; margin: 0 auto;
}
.ing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
}
@media (max-width: 900px) {
  .ing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .ing-grid { grid-template-columns: 1fr; }
}

/* Strip Views wrappers inside ing-grid */
.ing-grid > .views-row,
.ing-grid > .view,
.ing-grid > .view-content {
  display: contents;
}
.ing-card {
  background: var(--cocoa);
  border: 1px solid rgba(196,123,43,.18);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: border-color .3s, transform .3s;
  position: relative; overflow: hidden;
}
.ing-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--gold);
  transition: height .35s ease;
}
.ing-card:hover {
  border-color: rgba(196,123,43,.5);
  transform: translateY(-4px);
}
.ing-card:hover::before { height: 100%; }
.ing-icon { font-size: 2.8rem; margin-bottom: 1.1rem; }
.ing-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 700; font-style: italic;
  color: var(--cream); margin-bottom: .6rem;
}
.ing-benefit {
  font-size: .88rem; color: rgba(253,245,230,.62);
  line-height: 1.65;
}
.ing-benefit p { margin: 0; }
.ing-tag {
  display: inline-block; margin-top: 1rem;
  font-size: .68rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); background: rgba(196,123,43,.12);
  padding: .28rem .75rem; border-radius: 2px;
}

/* ─── REVIEWS ─── */
#reviews { background: var(--cocoa); position: relative; overflow: hidden; }
.reviews-header { text-align: center; margin-bottom: 4rem; }
.reviews-header .divider { margin: 1.6rem auto; }
.stars-row {
  display: flex; gap: .3rem;
  justify-content: center; margin-bottom: 1rem;
}
.star { color: var(--gold); font-size: 1.1rem; }
.reviews-header p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; font-style: italic;
  color: rgba(253,245,230,.65);
}
.reviews-carousel { position: relative; }
.reviews-track {
  display: flex; gap: 1.8rem;
  overflow: hidden;
  position: relative;
}
.review-card {
  min-width: calc(33.333% - 1.2rem);
  background: var(--espresso);
  border: 1px solid rgba(196,123,43,.18);
  border-radius: var(--radius);
  padding: 2.4rem;
  flex-shrink: 0;
  transition: transform .3s ease;
}
.review-card:hover { transform: translateY(-5px); }
.review-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem; font-style: italic; font-weight: 300;
  color: rgba(253,245,230,.8); line-height: 1.75;
  margin-bottom: 1.8rem;
  border: none; padding: 0;
}
.review-quote::before {
  content: '\201C';
  color: var(--gold); font-size: 1.6rem;
  line-height: 0; vertical-align: -.35rem; margin-right: .2rem;
}
/* Strip Drupal paragraph wrapper */
.review-quote p { display: inline; margin: 0; }
.review-meta { display: flex; align-items: center; gap: 1rem; }
.review-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--caramel), var(--truffle));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  border: 2px solid rgba(196,123,43,.3);
  flex-shrink: 0;
}
.reviewer-name { font-size: .92rem; font-weight: 500; color: var(--cream); }
.reviewer-loc  { font-size: .78rem; color: rgba(253,245,230,.4); margin-top: .15rem; }
.review-stars  { display: flex; gap: .2rem; margin-top: .4rem; }
.review-stars span { color: var(--gold); font-size: .8rem; }
.carousel-btns {
  display: flex; gap: 1rem;
  justify-content: center; margin-top: 3rem;
}
.carousel-btn {
  width: 48px; height: 48px;
  background: transparent;
  border: 1px solid rgba(196,123,43,.4);
  border-radius: 50%; cursor: pointer;
  color: var(--gold); font-size: 1.1rem;
  transition: all .2s;
  display: flex; align-items: center; justify-content: center;
}
.carousel-btn:hover, .carousel-btn:focus {
  background: var(--gold);
  color: var(--cocoa);
  border-color: var(--gold);
}

/* ─── GALLERY ─── */
#gallery {
  background: var(--espresso);
  overflow: hidden; /* prevent tiles bleeding outside section */
}
.gallery-header { text-align: center; margin-bottom: 3.5rem; }
.gallery-header .divider { margin: 1.6rem auto; }

/* 4-column grid with fixed row height */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 1rem;
  width: 100%;
}

/* ── Make ALL Drupal wrapper divs grid-transparent ──────────────────────────
 * The DOM path is:
 *   .gallery-grid
 *     > .region.region-gallery          (Drupal region wrapper)
 *       > .block.block-views            (block wrapper)
 *         > .contextual-region          (contextual links wrapper)
 *           > div                       (views output wrapper)
 *             > .gallery-item           (our tiles) ← grid children we want
 *
 * display:contents makes each intermediate div invisible to the grid,
 * so .gallery-item elements become direct grid children.
 */
.gallery-grid .region,
.gallery-grid .block,
.gallery-grid .contextual-region,
.gallery-grid .views-element-container,
.gallery-grid > div:not(.gallery-item),
.gallery-grid .region > div,
.gallery-grid .block > div:not([class*="contextual"]),
.gallery-grid [data-drupal-ajax-container] {
  display: contents !important;
}

/* Contextual links must NOT use display:contents — it breaks their position */
.gallery-grid .contextual {
  display: block !important;
  position: fixed !important;
  z-index: 500;
}

/* Base tile */
.gallery-item {
  background: var(--truffle);
  border-radius: var(--radius);
  overflow: hidden; /* clip the image inside the tile */
  position: relative;
  cursor: pointer;
  min-height: 220px;
}

/* Featured tile spans 2 cols × 2 rows */
.gallery-item--featured {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 440px;
}

/* Wider tiles every 7 items for rhythm */
.gallery-item:nth-child(7n) {
  grid-column: span 2;
}

/* Gallery cell — fills tile using flex, NOT absolute */
.gallery-cell {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg, var(--truffle), #3b1500);
}

/* Image fills cell */
.gallery-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.gallery-item:hover .gallery-cell img { transform: scale(1.06); }

/* Overlay sits above image inside the tile */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,10,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s;
  z-index: 1;
  pointer-events: none;
}
.gallery-item:hover .gallery-overlay,
.gallery-item:focus .gallery-overlay { background: rgba(26,10,0,.5); }
.gallery-overlay-icon {
  color: var(--gold); font-size: 2rem;
  opacity: 0; transform: scale(.7);
  transition: opacity .3s, transform .3s;
}
.gallery-item:hover .gallery-overlay-icon,
.gallery-item:focus .gallery-overlay-icon { opacity: 1; transform: scale(1); }
.gallery-item:focus { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Responsive */
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
}
@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
  }
}

/* ─── LIGHTBOX ─── */
.lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.9);
  z-index: 500; /* below Drupal toolbar at 10000 */
  align-items: center; justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox-content {
  font-size: 14rem; text-align: center;
  animation: lb-in .3s ease;
  max-width: 90vw; max-height: 90vh;
}
.lightbox-content img {
  max-width: 90vw; max-height: 80vh;
  object-fit: contain; border-radius: var(--radius);
}
@keyframes lb-in {
  from { opacity: 0; transform: scale(.8); }
  to   { opacity: 1; transform: scale(1); }
}
.lightbox-close {
  position: absolute; top: 2rem; right: 2rem;
  background: transparent; border: none;
  color: var(--gold); font-size: 2rem;
  cursor: pointer; opacity: .7;
  transition: opacity .2s;
}
.lightbox-close:hover, .lightbox-close:focus { opacity: 1; }

/* ─── TOAST ─── */
.toast {
  display: none !important; /* Add to Box removed */
  position: fixed; bottom: 2rem; right: 2rem;
  background: var(--gold); color: var(--cocoa);
  font-family: 'DM Sans', sans-serif;
  font-size: .88rem; font-weight: 600;
  padding: .9rem 1.8rem; border-radius: 2px;
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
  transform: translateY(80px); opacity: 0;
  transition: all .35s ease; z-index: 200;
  pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ─── FOOTER — Simple ─── */
footer.footer-simple {
  background: var(--cocoa);
  border-top: 1px solid rgba(196,123,43,.18);
  padding: 2.5rem 0;
}
.footer-simple-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-logo {
  font-size: 1.8rem;
}
.footer-contact {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* WhatsApp button */
.footer-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  padding: .6rem 1.3rem;
  border-radius: 2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  transition: background .2s, transform .2s;
}
.footer-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
}

/* Instagram / Facebook icon buttons */
.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(196,123,43,.35);
  border-radius: 50%;
  color: rgba(253,245,230,.65);
  text-decoration: none;
  transition: all .2s;
}
.footer-social-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.footer-icon {
  width: 18px;
  height: 18px;
  display: block;
}
.footer-whatsapp .footer-icon {
  width: 20px;
  height: 20px;
}

/* Copyright line */
.footer-copy {
  font-size: .82rem;
  color: rgba(253,245,230,.3);
  width: 100%;
  text-align: center;
  margin-top: .5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(196,123,43,.1);
}

@media (max-width: 600px) {
  .footer-simple-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1.5rem;
  }
  .footer-contact { flex-wrap: wrap; justify-content: center; }
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  #navbar { padding: 1rem 1.8rem; }
  .nav-links { display: none; }
  .story-inner { grid-template-columns: 1fr; gap: 3rem; }
  .story-img-accent { right: -1rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  /* gallery responsive handled in gallery block above */
  .review-card { min-width: calc(85% - 1.2rem); }
}
@media (max-width: 600px) {
  section { padding: 5rem 0; }
  .container { padding: 0 1.4rem; }
  .footer-inner { grid-template-columns: 1fr; }
  /* gallery responsive handled in gallery block above */
  .story-inner { gap: 2rem; }
  .story-img-accent { display: none; }
}

/* ─── PRODUCT CARD IMAGE FIX ─────────────────────────────────────────────────
 * Ensures images rendered via file_url() fill the card correctly.
 * Hides any stray Drupal field label wrappers that leak through.
 */

/* Image fills the item-img-wrap exactly */
.item-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hide Drupal field label wrappers inside cards */
.item-card .field__label,
.item-card .field--label-above > .field__label,
.item-card .field--label-inline > .field__label {
  display: none !important;
}

/* Strip default field wrapper padding/margin inside card sections */
.item-img-wrap .field,
.item-img-wrap .field__item {
  height: 100%;
  margin: 0;
  padding: 0;
}

.item-desc .field__item p:first-child { margin-top: 0; }
.item-desc .field__item p:last-child  { margin-bottom: 0; }

/* ── Grid cell structure ───────────────────────────────────────────────────── */
/* item-card is always the direct grid child — flex column so body fills card */
.items-grid > article.item-card,
.items-grid article.item-card {
  display: flex;
  flex-direction: column;
  min-width: 0; /* prevent grid blowout */
}

/* Safety net: if any Views wrapper div leaks through, make it transparent */
.items-grid > .views-row,
.items-grid > .view,
.items-grid > .view-content {
  display: contents;
}

/* item-body fills remaining height so footer always sits at bottom of card */
.item-card .item-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.item-card .item-footer {
  margin-top: auto;
}

/* ─── INGREDIENT CARD GRID FIX ───────────────────────────────────────────────
 * Match product card height behaviour — flex column so tag sits at bottom.
 */
.ing-grid > article.ing-card,
.ing-grid article.ing-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ing-card .ing-tag {
  margin-top: auto;
  align-self: flex-start;
  padding-top: 1rem;
}

/* ─── MEDIA LIBRARY WIDGET STYLING ──────────────────────────────────────────
 * Style the media library button to match the theme.
 */
.media-library-widget .button,
.media-library-open-button {
  background: transparent !important;
  color: var(--gold) !important;
  border: 1px solid var(--gold) !important;
  border-radius: 2px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: .78rem !important;
  font-weight: 500 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  padding: .5rem 1.2rem !important;
  transition: all .2s !important;
}
.media-library-open-button:hover {
  background: var(--gold) !important;
  color: var(--cocoa) !important;
}

/* ─── INGREDIENT IMAGE ───────────────────────────────────────────────────────
 * When an ingredient has a media image, show it above the icon/name.
 */
.ing-img {
  width: 100%;
  height: 140px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  margin: -2rem -1.8rem 1.2rem;
  width: calc(100% + 3.6rem);
}
.ing-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* ─── GALLERY GRID — MULTI-IMAGE ─────────────────────────────────────────────
 * Tiles come from individual media items inside each gallery node.
 * Reset nth-child rules and let data drives layout via --featured class.
 */




/* ─── SYSTEM / ADMIN / USER PAGES ───────────────────────────────────────────
 * Clean minimal layout for login, admin, node edit, and all non-front pages.
 */
.vs-system-page {
  min-height: 100vh;
  background: var(--cocoa);
  color: var(--cream);
}
.vs-system-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3rem;
  background: rgba(26,10,0,.97);
  border-bottom: 1px solid rgba(196,123,43,.2);
  position: sticky;
  top: 0;
  z-index: 90; /* below Drupal toolbar */
}
.vs-system-nav a {
  color: rgba(253,245,230,.6);
  text-decoration: none;
  font-size: .85rem;
  letter-spacing: .08em;
  transition: color .2s;
}
.vs-system-nav a:hover { color: var(--gold); }
.vs-system-main {
  max-width: 700px;
  margin: 4rem auto;
  padding: 0 2rem;
}
.vs-system-content {
  background: var(--espresso);
  border: 1px solid rgba(196,123,43,.2);
  border-radius: var(--radius);
  padding: 2.5rem;
}

/* Style Drupal's default form elements within system pages */
.vs-system-content input[type="text"],
.vs-system-content input[type="email"],
.vs-system-content input[type="password"] {
  background: var(--cocoa);
  border: 1px solid rgba(196,123,43,.3);
  border-radius: 2px;
  color: var(--cream);
  padding: .7rem 1rem;
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  margin-bottom: .5rem;
}
.vs-system-content input[type="text"]:focus,
.vs-system-content input[type="email"]:focus,
.vs-system-content input[type="password"]:focus {
  border-color: var(--gold);
  outline: none;
}
.vs-system-content input[type="submit"],
.vs-system-content .button {
  background: var(--gold);
  color: var(--cocoa);
  border: none;
  padding: .8rem 2rem;
  border-radius: 2px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
}
.vs-system-content input[type="submit"]:hover,
.vs-system-content .button:hover { background: var(--blush); }
.vs-system-content label {
  color: rgba(253,245,230,.7);
  font-size: .88rem;
  display: block;
  margin-bottom: .3rem;
  margin-top: 1rem;
}
.vs-system-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

/* ─── TOOLBAR + NAVBAR SCROLL OFFSET FIX ────────────────────────────────────
 * When admin is logged in, anchor links (#featured, #story etc) scroll to
 * positions that are hidden behind the navbar + toolbar combined height.
 * Add scroll-margin-top to all sections so anchors land correctly.
 */
section {
  scroll-margin-top: 70px; /* navbar height */
}
body.toolbar-fixed section {
  scroll-margin-top: 109px; /* navbar (70) + toolbar (39) */
}
body.toolbar-fixed.toolbar-tray-open section {
  scroll-margin-top: 149px; /* navbar (70) + toolbar+tray (79) */
}

/* ─── ADMIN CONTEXTUAL EDIT BUTTONS ─────────────────────────────────────────
 * Style contextual links so they're visible against dark card backgrounds.
 */
.contextual-links-wrapper,
.contextual {
  position: absolute;
  z-index: 499;
}
.contextual-links a {
  color: var(--cocoa) !important;
  background: var(--gold) !important;
  font-size: .75rem;
}

/* ─── LOGGED-IN BODY SPACING ─────────────────────────────────────────────────
 * Drupal adds padding-top to body.toolbar-fixed automatically.
 * Make sure our theme doesn't fight it.
 */
body.toolbar-fixed,
body.toolbar-vertical {
  /* Let Drupal control these — don't override */
  padding-top: unset;
}

/* Hide Enquire button — temporarily removed */
.item-enquire { display: none !important; }
