/* ============================================================
   Gelateria Golosia – Design System & Stylesheet
   Premium Italian Artisan Brand Identity
   ============================================================
   Architecture:
   1. Design Tokens (CSS Custom Properties)
   2. Reset & Base
   3. Typography
   4. Layout
   5. Navbar (glass, sticky, shrink)
   6. Hero
   7. (reserved)
   8. Sections & Content
   9. Flavor Grid
   10. Product Grid
   11. Modal
   12. Cookie & Newsletter
   13. Footer
   14. Toast
   15. Lightbox
   16. Animations & Transitions
   17. Responsive
   18. Reduced Motion
   ============================================================ */

/* ──────────────────────────────────────────────────────────
   1. DESIGN TOKENS
   ────────────────────────────────────────────────────────── */
:root {
  /* ── Color Palette ── */
  --color-primary:       #8ec5b0;   /* pastel aqua green */
  --color-primary-light: #b5ddd0;
  --color-primary-dark:  #6aab94;
  --color-primary-alpha: rgba(142, 197, 176, 0.15);
  --color-accent:        #d4b896;   /* muted gold */
  --color-accent-light:  #e8d5be;

  /* Neutrals */
  --color-bg:         #faf9f7;   /* warm white */
  --color-bg-cream:   #f5f0eb;   /* cream white */
  --color-bg-light:   #f0eeeb;
  --color-text:       #3a3a3a;   /* charcoal */
  --color-text-light: #6b6b6b;
  --color-text-inv:   #ffffff;
  --color-border:     #e2ddd7;

  /* ── Typography Scale (fluid via clamp) ── */
  --font-body:    'Inter', sans-serif;
  --font-heading: 'Playfair Display', serif;

  --text-xs:   clamp(0.75rem,  1.5vw,  0.8125rem);  /* 12–13px */
  --text-sm:   clamp(0.8125rem, 1.8vw, 0.875rem);    /* 13–14px */
  --text-base: clamp(0.9375rem, 2vw,   1rem);         /* 15–16px */
  --text-lg:   clamp(1.0625rem, 2.2vw, 1.125rem);     /* 17–18px */
  --text-xl:   clamp(1.25rem,   2.5vw, 1.5rem);       /* 20–24px */
  --text-2xl:  clamp(1.5rem,    3vw,   2rem);          /* 24–32px */
  --text-3xl:  clamp(1.8rem,    3.5vw, 2.6rem);        /* 29–42px */
  --text-4xl:  clamp(2.2rem,    5vw,   3.5rem);        /* 35–56px */
  --text-hero: clamp(2.5rem,    6vw,   4.5rem);        /* 40–72px */

  /* ── Spacing Scale (8px system) ── */
  --space-1:  0.25rem;   /* 4px */
  --space-2:  0.5rem;    /* 8px */
  --space-3:  0.75rem;   /* 12px */
  --space-4:  1rem;      /* 16px */
  --space-5:  1.5rem;    /* 24px */
  --space-6:  2rem;      /* 32px */
  --space-8:  3rem;      /* 48px */
  --space-10: 4rem;      /* 64px */
  --space-12: 5rem;      /* 80px */
  --space-16: 8rem;      /* 128px */

  /* ── Border Radius ── */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* ── Shadows ── */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 12px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:   0 10px 30px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
  --shadow-xl:   0 20px 50px rgba(0,0,0,0.1);

  /* ── Motion Duration Tokens ── */
  --duration-xs: 0.2s;
  --duration-sm: 0.3s;
  --duration-md: 0.5s;
  --duration-lg: 0.8s;

  /* ── Easing ── */
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:    cubic-bezier(0.0, 0, 0.2, 1);
  --ease-in:     cubic-bezier(0.4, 0, 1, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ── Layout ── */
  --container-max: 1200px;
  --nav-height: 88px;
  --nav-height-scrolled: 64px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

/* Custom selection color */
::selection {
  background: var(--color-primary-alpha);
  color: var(--color-text);
}

::-moz-selection {
  background: var(--color-primary-alpha);
  color: var(--color-text);
}

a {
  color: var(--color-primary-dark);
  text-decoration: none;
  transition: color var(--duration-xs) var(--ease);
}

a:hover {
  color: var(--color-primary);
}

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

ul, ol { list-style: none; }

/* ── Hidden attribute override ──
   The HTML [hidden] attribute sets display:none via the UA stylesheet,
   but author styles (display:flex, display:grid, etc.) override it
   because author > UA in CSS specificity. This ensures [hidden] always
   wins, preventing modals/popups from becoming uncloseable. */
[hidden] {
  display: none !important;
}

/* ── Skip to content (accessibility) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-primary-dark);
  color: var(--color-text-inv);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  z-index: 10000;
  font-weight: 600;
  transition: top var(--duration-xs) var(--ease);
}

.skip-link:focus {
  top: var(--space-2);
}

/* ──────────────────────────────────────────────────────────
   3. TYPOGRAPHY
   ────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
}

/* ──────────────────────────────────────────────────────────
   4. LAYOUT
   ────────────────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.025em;
  transition: all var(--duration-sm) var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-inv);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

/* ──────────────────────────────────────────────────────────
   5. NAVBAR – Glass, Sticky, Shrink on Scroll
   ────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(250, 249, 247, 0.82);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(226, 221, 215, 0.5);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  transition: height var(--duration-sm) var(--ease),
              background var(--duration-sm) var(--ease),
              box-shadow var(--duration-sm) var(--ease);
}

.navbar--scrolled {
  height: var(--nav-height-scrolled);
  background: rgba(250, 249, 247, 0.95);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.1);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-8);
  height: 100%;
}

/* Nav links */
.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.navbar__link {
  position: relative;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: var(--space-1) 0;
  transition: color var(--duration-xs) var(--ease);
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-primary);
  transition: width var(--duration-sm) var(--ease-out);
}

.navbar__link:hover::after,
.navbar__link.active::after {
  width: 100%;
}

.navbar__link:hover {
  color: var(--color-primary-dark);
}

.navbar__link.active {
  color: var(--color-primary-dark);
  font-weight: 500;
}

.navbar__link--multiline span {
  display: block;
  font-size: var(--text-xs);
  line-height: 1;
  margin-top: 1px;
}

/* Logo */
.navbar__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.navbar__logo img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  transition: transform var(--duration-sm) var(--ease-spring),
              width var(--duration-sm) var(--ease),
              height var(--duration-sm) var(--ease);
}

.navbar--scrolled .navbar__logo img {
  width: 44px;
  height: 44px;
}

.navbar__logo:hover img {
  transform: scale(1.08);
}

/* Social links */
.navbar__social {
  color: var(--color-text-light);
  transition: color var(--duration-xs) var(--ease);
}

.navbar__social:hover {
  color: var(--color-primary-dark);
}

.navbar__social--text {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Language switcher */
.navbar__lang {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-left: var(--space-4);
}

.lang-btn {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-light);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  transition: all var(--duration-xs) var(--ease);
}

.lang-btn.active {
  color: var(--color-primary-dark);
  background: var(--color-primary-alpha);
  font-weight: 600;
}

.lang-btn:hover:not(.active) {
  color: var(--color-text);
}

.lang-sep {
  color: var(--color-border);
  font-size: var(--text-xs);
}

/* Hamburger */
.navbar__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  padding: 0;
  z-index: 1001;
}

.navbar__burger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--duration-sm) var(--ease);
  transform-origin: center;
}

.navbar__burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}

.navbar__burger.open span:nth-child(2) {
  opacity: 0;
}

.navbar__burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* Mobile menu */
.navbar__mobile {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(250, 249, 247, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-6) var(--space-5);
  box-shadow: var(--shadow-lg);
}

.navbar__mobile-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.navbar__mobile-links a {
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: 0.02em;
  transition: color var(--duration-xs) var(--ease);
}

.navbar__mobile-links a:hover {
  color: var(--color-primary-dark);
}

.navbar__mobile-social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.navbar__mobile-social a {
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

.navbar__mobile-lang {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

/* ──────────────────────────────────────────────────────────
   6. HERO
   ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
  /* Subtle scale for depth + blur for readability */
  transform: scale(1.05);
  filter: blur(4px);
}

.hero__slide.active {
  opacity: 1;
}

/* Warm white-tinted overlay for text readability */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(255, 255, 255, 0.25);
}

/* Hero content */
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-text);
  padding: var(--space-5);
  max-width: 700px;
}

.hero__logo {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.hero__title {
  font-size: clamp(2.875rem, 6.9vw, 5.175rem);
  font-family: var(--font-heading);
  font-weight: 700;
  color: #2a2a2a;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 500;
  letter-spacing: 0.3px;
  color: #2a2a2a;
  margin-bottom: 0;
}

.hero__tagline {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-style: italic;
  font-family: var(--font-heading);
  font-weight: 400;
  color: #2a2a2a;
  letter-spacing: 0.3px;
  margin-top: 12px;
}


/* ──────────────────────────────────────────────────────────
   8. SECTIONS & CONTENT
   ────────────────────────────────────────────────────────── */
.section {
  padding: 80px 0 24px;
}

.section--cream {
  background: var(--color-bg-cream);
}

.section__title {
  font-size: var(--text-3xl);
  text-align: center;
  margin-top: 0;
  margin-bottom: 16px;
  position: static;
  clear: both;
  color: var(--color-text);
}

.section__subtitle {
  font-size: var(--text-base);
  text-align: center;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto var(--space-8);
  line-height: 1.7;
}

.section__category {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  padding-bottom: var(--space-3);
  margin: 80px 0 16px;
  border-bottom: 2px solid var(--color-primary-light);
  color: var(--color-text);
  position: static;
  clear: both;
}

.section__subtitle + .section__category {
  margin-top: 0;
}

/* Visual separator */
.visual-separator {
  position: relative;
  height: clamp(200px, 30vw, 400px);
  overflow: hidden;
  margin: var(--space-10) 0;
}

.visual-separator__img {
  position: absolute;
  inset: -15% 0;
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  /* will-change applied dynamically by GSAP ScrollTrigger, not statically */
}

/* ──────────────────────────────────────────────────────────
   9. FLAVOR GRID
   ────────────────────────────────────────────────────────── */
.flavors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.flavor-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--duration-sm) var(--ease),
              box-shadow var(--duration-sm) var(--ease);
  box-shadow: var(--shadow-sm);
}

.flavor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.6);
}

.flavor-card:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.flavor-card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform var(--duration-md) var(--ease);
}

.flavor-card:hover .flavor-card__img {
  transform: scale(1.04);
}

.flavor-card__name {
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  text-align: center;
  color: var(--color-text);
}

/* ──────────────────────────────────────────────────────────
   10. PRODUCT GRID
   ────────────────────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-bottom: 0;
}

.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--duration-sm) var(--ease),
              box-shadow var(--duration-sm) var(--ease);
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.6);
}

.product-card:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.product-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--duration-md) var(--ease);
}

.product-card:hover .product-card__img {
  transform: scale(1.04);
}

.product-card__body {
  padding: var(--space-4) var(--space-5);
}

.product-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.product-card__detail {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: var(--space-3);
}

.product-card__price {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-primary-dark);
}

/* ──────────────────────────────────────────────────────────
   11. MODAL
   ────────────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
}

.modal__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal__content {
  position: relative;
  z-index: 1; /* above overlay — backdrop-filter creates stacking context */
  background: #fff;
  border-radius: var(--radius-xl);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}

.modal__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
  font-size: 1.4rem;
  z-index: 1;
  transition: background var(--duration-xs) var(--ease),
              transform var(--duration-xs) var(--ease);
}

.modal__close:hover {
  background: var(--color-bg-cream);
  transform: scale(1.1);
}

.modal__close:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.modal__img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal__title {
  font-size: var(--text-2xl);
  padding: var(--space-5) var(--space-5) var(--space-2);
}

.modal__desc {
  font-size: var(--text-base);
  color: var(--color-text-light);
  padding: 0 var(--space-5);
  line-height: 1.7;
}

.modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5) var(--space-5);
}

.modal__meta li {
  background: var(--color-primary-alpha);
  color: var(--color-primary-dark);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
}

/* ──────────────────────────────────────────────────────────
   12. COOKIE BANNER & NEWSLETTER POPUP
   ────────────────────────────────────────────────────────── */

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9500;
  background: rgba(58, 58, 58, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--space-4) var(--space-5);
  color: var(--color-text-inv);
}

.cookie-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.cookie-inner p {
  flex: 1;
  min-width: 280px;
  font-size: var(--text-sm);
  line-height: 1.6;
}

.cookie-inner a {
  color: var(--color-primary-light);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: var(--space-3);
}

/* Garante 2021: Accept and Reject must have equal visual weight */
.btn--cookie {
  background: var(--color-primary);
  color: var(--color-text-inv);
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  border: 2px solid var(--color-primary);
  cursor: pointer;
  font-size: var(--text-sm);
  transition: all var(--duration-sm) var(--ease);
}

.btn--cookie:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-1px);
}

/* "Gestisci preferenze" link */
.cookie-manage-link {
  background: none;
  border: none;
  color: var(--color-primary-light);
  text-decoration: underline;
  cursor: pointer;
  font-size: var(--text-xs);
  padding: 0;
  margin-top: var(--space-1);
}

.cookie-manage-link:hover {
  color: var(--color-text-inv);
}

/* Granular consent panel */
.cookie-manage {
  width: 100%;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.cookie-manage__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) 0;
}

.cookie-manage__label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-inv);
  cursor: pointer;
}

.cookie-manage__label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.cookie-manage__label input[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-manage__badge {
  font-size: var(--text-xs);
  color: var(--color-primary-light);
  font-style: italic;
}

.cookie-manage .btn--cookie {
  margin-top: var(--space-3);
}

/* Map consent placeholder */
.map-consent-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 450px;
  background: var(--color-bg-cream);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
}

.map-consent-placeholder__content {
  text-align: center;
  padding: var(--space-6);
}

.map-consent-placeholder__content svg {
  margin-bottom: var(--space-3);
  opacity: 0.5;
}

.map-consent-placeholder__content h3 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.map-consent-placeholder__content p {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-4);
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

/* Newsletter popup */
.newsletter-popup {
  position: fixed;
  inset: 0;
  z-index: 9100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
}

.newsletter-popup__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.newsletter-popup__content {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: var(--radius-xl);
  max-width: 480px;
  width: 100%;
  padding: var(--space-6) var(--space-6) var(--space-5);
  text-align: center;
  box-shadow: var(--shadow-xl);
  max-height: 90vh;
  overflow-y: auto;
}

.newsletter-popup__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text-light);
  font-size: 1.3rem;
  transition: color var(--duration-xs) var(--ease);
  z-index: 2;
}

.newsletter-popup__close:hover {
  color: var(--color-text);
}

/* Icon */
.newsletter-popup__icon {
  margin-bottom: var(--space-3);
}

/* State management */
.newsletter-popup__state {
  transition: opacity var(--duration-sm) var(--ease);
}

/* Heading & subtitle */
.newsletter-popup__content h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.newsletter-popup__subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-4);
  line-height: 1.5;
}

/* Perks list */
.newsletter-popup__perks {
  text-align: left;
  margin-bottom: var(--space-5);
  padding: 0;
  list-style: none;
}

.newsletter-popup__perks li {
  position: relative;
  padding-left: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: var(--space-2);
}

.newsletter-popup__perks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  background: var(--color-primary-alpha);
  border: 1.5px solid var(--color-primary);
}

.newsletter-popup__perks li::after {
  content: '';
  position: absolute;
  left: 5px;
  top: calc(0.35em + 4px);
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--color-primary-dark);
  border-bottom: 2px solid var(--color-primary-dark);
  transform: rotate(-45deg);
}

/* Popup form */
.newsletter-popup__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.newsletter-popup__field input,
.newsletter-popup__field select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--duration-xs) var(--ease),
              box-shadow var(--duration-xs) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.newsletter-popup__field select {
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b6b6b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-8);
  cursor: pointer;
}

.newsletter-popup__field input:focus,
.newsletter-popup__field select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-alpha);
}

.newsletter-popup__field input::placeholder {
  color: var(--color-text-light);
}

/* Popup submit button (full width) */
.newsletter-popup__submit {
  width: 100%;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: var(--space-1);
}

/* Loading state disabled */
.newsletter-popup__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Trust signal */
.newsletter-popup__trust {
  font-size: var(--text-xs);
  color: var(--color-text-light);
  margin-top: var(--space-3);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.newsletter-popup__gdpr {
  font-size: var(--text-xs);
  color: var(--color-text-light);
  margin-top: var(--space-2);
  line-height: 1.5;
}

.newsletter-popup__gdpr a {
  text-decoration: underline;
}

/* Loading spinner */
.newsletter-popup__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: nl-spin 0.7s linear infinite;
  margin: var(--space-6) auto var(--space-4);
}

@keyframes nl-spin {
  to { transform: rotate(360deg); }
}

.newsletter-popup__state--loading p {
  color: var(--color-text-light);
  font-size: var(--text-sm);
}

/* Success state */
.newsletter-popup__success-icon {
  margin-bottom: var(--space-3);
}

.newsletter-popup__state--success h3 {
  color: var(--color-primary-dark);
}

.newsletter-popup__state--success p {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: 1.6;
  margin-top: var(--space-3);
}

/* Error state */
.newsletter-popup__error-msg {
  font-size: var(--text-sm);
  color: #c0392b;
  margin-bottom: var(--space-4);
  padding: var(--space-6) 0 0;
}

.newsletter-popup__retry {
  margin: 0 auto;
}

/* Already subscribed state */
.newsletter-popup__state--already {
  padding: var(--space-6) 0;
}

.newsletter-popup__state--already h3 {
  color: var(--color-primary-dark);
  margin-bottom: var(--space-3);
}

.newsletter-popup__state--already p {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: 1.6;
}

/* Newsletter form (shared — footer) */
.newsletter-form {
  display: flex;
  gap: var(--space-2);
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--duration-xs) var(--ease);
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* ──────────────────────────────────────────────────────────
   13. FOOTER
   ────────────────────────────────────────────────────────── */
.footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.85);
  padding-top: var(--space-12);
}

.footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-8);
}

.footer__col h4 {
  font-size: var(--text-base);
  font-family: var(--font-heading);
  color: var(--color-text-inv);
  margin-bottom: var(--space-4);
  font-weight: 600;
}

.footer__col p,
.footer__col a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.footer__col a:hover {
  color: var(--color-primary-light);
}

.footer__hours {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-1) var(--space-4);
  font-size: var(--text-sm);
}

.footer__hours dt {
  color: rgba(255, 255, 255, 0.5);
}

.footer__hours dd {
  color: rgba(255, 255, 255, 0.8);
}

.footer__social {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__gdpr {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
  margin-top: var(--space-3);
  line-height: 1.5;
}

.footer__gdpr a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: underline;
}

/* Footer newsletter form overrides */
.footer .newsletter-form input[type="email"] {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--color-text-inv);
}

.footer .newsletter-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.footer .newsletter-form input[type="email"]:focus {
  border-color: var(--color-primary);
}

/* Legal bar */
.footer__legal {
  margin-top: var(--space-8);
  padding: var(--space-4) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__legal .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.footer__business {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
}

.footer__business strong {
  color: rgba(255, 255, 255, 0.7);
}

.footer__legal-links {
  display: flex;
  gap: var(--space-4);
}

.footer__legal-links a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
}

.footer__legal-links a:hover {
  color: var(--color-primary-light);
}

.footer__legal-sep {
  color: rgba(255, 255, 255, 0.2);
}

.footer__bottom {
  padding: var(--space-4) 0;
  text-align: center;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ──────────────────────────────────────────────────────────
   14. TOAST
   ────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  background: var(--color-text);
  color: var(--color-text-inv);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: all var(--duration-sm) var(--ease);
  z-index: 9999;
  pointer-events: none;
}

.toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ──────────────────────────────────────────────────────────
   15. LIGHTBOX
   ────────────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9200;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--duration-sm) var(--ease);
}

.lightbox.active {
  opacity: 1;
}

.lightbox__content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-text-inv);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: background var(--duration-xs) var(--ease);
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-text-inv);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-xs) var(--ease);
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox__nav--prev {
  left: var(--space-4);
}

.lightbox__nav--next {
  right: var(--space-4);
}

.lightbox__counter {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
}

/* ──────────────────────────────────────────────────────────
   15b. GRAIN / NOISE TEXTURE OVERLAY
   ────────────────────────────────────────────────────────── */
/* Subtle film grain for artisan premium feel — CSS-only, no image dependency.
   Applied to body::after so it sits above content at low opacity. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ──────────────────────────────────────────────────────────
   15c. GLOBAL FOCUS-VISIBLE
   ────────────────────────────────────────────────────────── */
/* Consistent focus ring for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Remove redundant focus outlines — :focus-visible handles keyboard */
:focus:not(:focus-visible) {
  outline: none;
}

/* ──────────────────────────────────────────────────────────
   16. ANIMATIONS & TRANSITIONS
   ────────────────────────────────────────────────────────── */
.anim-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-lg) var(--ease),
              transform var(--duration-lg) var(--ease);
}

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

/* ──────────────────────────────────────────────────────────
   17. RESPONSIVE
   ────────────────────────────────────────────────────────── */

/* ── Tablet (max-width: 900px) ── */
@media (max-width: 900px) {
  .navbar__links { display: none; }
  .navbar__lang { display: none; }
  .navbar__burger { display: flex; }

  .flavors-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .section {
    padding: 60px 0 24px;
  }

  .section__category {
    margin-top: 60px;
  }

  .section__subtitle + .section__category {
    margin-top: 0;
  }

  .visual-separator {
    height: 220px;
  }
}

/* ── Mobile (max-width: 600px) ── */
@media (max-width: 600px) {
  :root {
    --nav-height: 68px;
    --nav-height-scrolled: 58px;
  }

  .container {
    padding: 0 var(--space-4);
  }

  .flavors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
    padding: 0 var(--space-4);
  }

  .flavor-card__img {
    height: 140px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .section {
    padding: 48px 0 24px;
  }

  .section__category {
    margin-top: 48px;
  }

  .section__subtitle + .section__category {
    margin-top: 0;
  }

  .section__subtitle {
    margin-bottom: var(--space-6);
  }

  .hero__logo {
    width: 100px;
    height: 100px;
  }

  .visual-separator {
    height: 160px;
  }

  .modal__content {
    border-radius: var(--radius-lg);
  }

  .modal__img {
    height: 200px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .cookie-inner {
    flex-direction: column;
    text-align: center;
  }

  .cookie-actions {
    width: 100%;
    justify-content: center;
    flex-direction: column;
  }

  .cookie-actions .btn--cookie {
    width: 100%;
  }

  .cookie-manage__row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .footer__legal .container {
    flex-direction: column;
    text-align: center;
  }
}

/* ──────────────────────────────────────────────────────────
   17b. BACKDROP-FILTER FALLBACK
   ────────────────────────────────────────────────────────── */
@supports not (backdrop-filter: blur(1px)) {
  .navbar {
    background: rgba(250, 249, 247, 0.96);
  }
  .navbar--scrolled {
    background: rgba(250, 249, 247, 0.98);
  }
  .navbar__mobile {
    background: rgba(250, 249, 247, 0.99);
  }
  .modal__overlay {
    background: rgba(0, 0, 0, 0.65);
  }
  .newsletter-popup__overlay {
    background: rgba(0, 0, 0, 0.6);
  }
  .cookie-banner {
    background: rgba(58, 58, 58, 0.99);
  }
}

/* ──────────────────────────────────────────────────────────
   17c. CONTENT-VISIBILITY (paint containment)
   ────────────────────────────────────────────────────────── */
/* Defer rendering of off-screen sections for faster initial paint */
.section--products,
.section--semifreddi,
.section--mono {
  padding-bottom: 48px;
}

/* ──────────────────────────────────────────────────────────
   18. REDUCED MOTION
   ────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero__slide {
    transition: none;
  }

  .anim-fade {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .flavor-card:hover,
  .product-card:hover {
    transform: none;
  }

  /* Remove grain overlay in reduced motion */
  body::after {
    display: none;
  }
}

/* ──────────────────────────────────────────────────────────
   ABOUT PAGE STYLES (imported from existing)
   ────────────────────────────────────────────────────────── */
.about-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-10) var(--space-5);
}

.about-duo--reverse {
  direction: rtl;
}

.about-duo--reverse > * {
  direction: ltr;
}

.about-duo__img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.about-duo__text h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.about-duo__text p {
  font-size: var(--text-base);
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

/* About section divider */
.about-section--divider {
  position: relative;
  height: 400px;
  overflow: hidden;
  margin: var(--space-10) 0;
}

.about-divider-img {
  width: 100%;
  height: 130%;
  background-size: cover;
  background-position: center;
  position: absolute;
  top: -15%;
}

/* About CTA section */
.about-section--cta {
  padding: var(--space-10) 0;
}

.about-cta {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.about-cta h2 {
  margin-bottom: var(--space-4);
}

.about-cta p {
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: var(--space-5);
}

/* About team section */
.about-section--team {
  margin-bottom: var(--space-12);
}

/* Team grid */
.about-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-6);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.about-team-grid--5 {
  grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 900px) {
  .about-team-grid--5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .about-team-grid--5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.about-team-card {
  text-align: center;
}

.about-team-card img {
  width: 160px;
  height: 160px;
  border-radius: var(--radius-full);
  object-fit: cover;
  margin: 0 auto var(--space-4);
  box-shadow: var(--shadow-md);
}

.about-team-card h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.about-team-card p {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .about-duo {
    grid-template-columns: 1fr;
  }

  .about-duo--reverse {
    direction: ltr;
  }

  .about-section--divider {
    height: 260px;
  }
}

@media (max-width: 480px) {
  .about-section--divider {
    height: 200px;
  }
}

/* ── Non-hero page top offset (fixed navbar clearance) ── */
.menu-page,
.contact-page,
.about-page,
.privacy-page {
  padding-top: var(--nav-height);
}

/* ──────────────────────────────────────────────────────────
   CONTACT PAGE STYLES
   ────────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.contact-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-4);
}

.contact-card h3 {
  font-size: var(--text-lg);
  margin-bottom: 16px;
  color: var(--color-primary);
}

.contact-card p {
  line-height: 1.6;
  margin: 4px 0 0;
  color: var(--color-text);
}

.contact-card p a {
  color: var(--color-text);
}

.contact-card p:first-of-type {
  margin-top: 0;
}

/* Hours grid (contact page) */
.hours-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 32px;
  margin: 0;
}

.hours-grid dt {
  font-weight: 600;
  color: var(--color-text);
}

.hours-grid dd {
  margin: 0;
  color: var(--color-text);
}

.hours-closed {
  color: var(--color-accent);
  font-style: italic;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
  border-radius: var(--radius-lg);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ──────────────────────────────────────────────────────────
   REVIEWS PAGE STYLES
   ────────────────────────────────────────────────────────── */
.reviews-hero {
  background: var(--color-bg-cream);
  padding: calc(var(--nav-height) + var(--space-10)) 0 var(--space-10);
  text-align: center;
}

.review-card {
  max-width: 800px;
  margin: 0 auto var(--space-8);
  padding: var(--space-8) var(--space-6);
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.review-card__quote {
  position: relative;
  padding: 0 var(--space-6);
}

.review-card__quote::before,
.review-card__quote::after {
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--color-primary-light);
  position: absolute;
  line-height: 1;
}

.review-card__quote::before {
  content: '\201C';
  top: -0.3em;
  left: -0.1em;
}

.review-card__quote::after {
  content: '\201D';
  bottom: -0.6em;
  right: -0.1em;
}

.review-card__text {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--color-text);
}

.review-card__signature {
  margin-top: var(--space-5);
  text-align: center;
}

.review-card__name {
  font-weight: 600;
  font-size: var(--text-base);
}

.review-card__stars {
  color: var(--color-accent);
  font-size: var(--text-lg);
  margin-top: var(--space-1);
}

.review-card__meta {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-light);
}

/* Review gallery */
.review-gallery {
  margin-top: var(--space-5);
  display: grid;
  gap: var(--space-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.review-gallery--1 {
  grid-template-columns: 1fr;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.review-gallery--2 {
  grid-template-columns: 1.618fr 1fr;
}

.review-gallery--3 {
  grid-template-columns: 1.618fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.review-gallery--3 .review-gallery__img:first-child {
  grid-row: 1 / -1;
}

.review-gallery--4 {
  grid-template-columns: 1.618fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.review-gallery--4 .review-gallery__img:first-child {
  grid-row: 1 / -1;
}

.review-gallery--4-alt {
  grid-template-columns: 1.618fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.review-gallery--4-alt img:first-child {
  grid-row: 1 / -1;
}

.review-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1;
  cursor: pointer;
  transition: transform var(--duration-sm) var(--ease);
  border-radius: var(--radius-md);
}

.review-gallery img:hover {
  transform: scale(1.02);
}

/* Reviews CTA bottom */
.reviews-cta-bottom {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-8) 0;
}

/* ──────────────────────────────────────────────────────────
   MENU PAGE
   ────────────────────────────────────────────────────────── */
.menu-board {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.menu-board img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ──────────────────────────────────────────────────────────
   PRIVACY PAGE
   ────────────────────────────────────────────────────────── */
.privacy-page {
  padding-top: calc(var(--nav-height) + var(--space-8));
  padding-bottom: var(--space-10);
}

.privacy-section {
  max-width: 800px;
  margin: 0 auto var(--space-6);
  padding: 0 var(--space-5);
}

.privacy-section h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.privacy-section h3 {
  font-size: var(--text-xl);
  margin: var(--space-5) 0 var(--space-3);
}

.privacy-card {
  background: var(--color-bg-cream);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
}

.privacy-list {
  padding-left: var(--space-5);
}

.privacy-list li {
  list-style: disc;
  margin-bottom: var(--space-2);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-light);
}

/* Cookie/Privacy table */
.privacy-table-wrap {
  overflow-x: auto;
  margin: var(--space-4) 0;
  -webkit-overflow-scrolling: touch;
}

.privacy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  min-width: 600px;
}

.privacy-table th,
.privacy-table td {
  padding: var(--space-2) var(--space-3);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.privacy-table th {
  background: var(--color-bg-cream);
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}

.privacy-table td {
  color: var(--color-text-light);
}

.privacy-table code {
  font-size: 0.85em;
  background: var(--color-bg-light);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
}
