/* ==========================================================================
   MAISON SABLÉ - Premium Cookie Shop Styles
   ==========================================================================

   Table of Contents:
   1. CSS Variables
   2. Reset & Base Styles
   3. Typography
   4. Layout & Container
   5. Header & Navigation
   6. Hero Section
   7. Product Section
   8. Ingredients Section
   9. Heritage Section
   10. Testimonials Section
   11. Gift & Storage Section
   12. FAQ Section
   13. Order Section
   14. Footer
   15. Components (Buttons, Forms, Cards)
   16. Cookie Consent & Modal
   17. Animations & Transitions
   18. Utilities
   19. Media Queries
   ========================================================================== */

/* ==========================================================================
   1. CSS VARIABLES
   ========================================================================== */

:root {
  /* Colors */
  --color-ivory: #FAF6EE;
  --color-parchment: #F3E9D2;
  --color-cocoa: #4B2E2A;
  --color-cocoa-light: #5C3F3B;        /* WCAG AA: Darkened from #6B4E4A for 4.5:1 contrast on ivory */
  --color-gold: #C4A356;               /* Decorative use only (borders, icons) */
  --color-gold-text: #7A6530;          /* WCAG AA: 5.2:1 contrast on ivory for text */
  --color-gold-text-parchment: #6B5828; /* WCAG AA: 5.0:1 contrast on parchment for text */
  --color-gold-light: #D4B366;
  --color-gold-dark: #A48336;
  --color-green: #2F4A3F;
  --color-green-light: #3F5A4F;
  --color-green-dark: #1F3A2F;
  --color-white: #FFFFFF;
  --color-black: #1A1A1A;

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Font Sizes - Fluid Typography */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  --text-3xl: clamp(2rem, 1.5rem + 2.5vw, 3rem);
  --text-4xl: clamp(2.5rem, 1.8rem + 3.5vw, 4rem);
  --text-5xl: clamp(3rem, 2rem + 5vw, 5rem);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
  --header-height: 80px;

  /* Borders */
  --border-thin: 1px solid var(--color-gold);
  --border-hairline: 0.5px solid var(--color-gold);
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(75, 46, 42, 0.08);
  --shadow-md: 0 4px 20px rgba(75, 46, 42, 0.1);
  --shadow-lg: 0 8px 40px rgba(75, 46, 42, 0.12);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-smooth: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* RTL Arabic Typography Override */
[dir="rtl"] {
  --font-serif: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  --font-sans: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
}

/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  overflow-x: hidden;
}

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

/* Subtle parchment texture via CSS */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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");
  opacity: 0.03;
  z-index: -1;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

ul, ol {
  list-style: none;
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* Selection color */
::selection {
  background-color: var(--color-gold);
  color: var(--color-ivory);
}

/* Screen reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link styles (in HTML critical CSS) */
.skip-link:focus {
  top: 0;
  outline: none;
}

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

p {
  margin-bottom: var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

/* ==========================================================================
   4. LAYOUT & CONTAINER - Mobile First
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md); /* Mobile: smaller padding */
}

@media (min-width: 480px) {
  .container {
    padding: 0 var(--space-lg);
  }
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-2xl);
  }
}

@media (min-width: 1200px) {
  .container {
    padding: 0 var(--space-3xl);
  }
}

section {
  padding: var(--space-2xl) 0; /* Mobile: smaller section padding */
  overflow-x: clip;
}

@media (min-width: 480px) {
  section {
    padding: var(--space-3xl) 0;
  }
}

@media (min-width: 768px) {
  section {
    padding: var(--space-4xl) 0;
  }
}

@media (min-width: 1024px) {
  section {
    padding: var(--space-5xl) 0;
  }
}

/* ==========================================================================
   5. HEADER & NAVIGATION
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px; /* Mobile: smaller header */
  background-color: rgba(250, 246, 238, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: var(--border-hairline);
  z-index: 100;
  transition: all var(--transition-base);
}

@media (min-width: 768px) {
  .site-header {
    height: var(--header-height);
  }
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  background-color: rgba(250, 246, 238, 0.98);
}

/* Elegant gold accent line at top */
.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.site-header.scrolled::before {
  opacity: 1;
}

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

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-cocoa);
  transition: color var(--transition-fast);
}

.logo:hover {
  color: var(--color-gold-text);  /* WCAG AA: Darker gold for hover visibility */
}

.logo-mark {
  color: currentColor;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Mobile nav toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
  z-index: 110;
}

.nav-toggle-line {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--color-cocoa);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Navigation */
.main-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 320px;
  height: 100vh;
  background-color: var(--color-ivory);
  padding: calc(var(--header-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  border-left: var(--border-hairline);
  z-index: 105;
  overflow: hidden;
}

/* Mobile nav decorative background */
.main-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(196, 163, 86, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(196, 163, 86, 0.06) 0%, transparent 40%);
  pointer-events: none;
  z-index: -1;
}

.main-nav::after {
  content: '';
  position: absolute;
  bottom: 40px;
  right: 20px;
  width: 180px;
  height: 180px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='45' fill='none' stroke='%23C4A356' stroke-width='0.5' opacity='0.15'/%3E%3Ccircle cx='50' cy='50' r='35' fill='none' stroke='%23C4A356' stroke-width='0.3' opacity='0.1'/%3E%3Ccircle cx='30' cy='35' r='4' fill='%23C4A356' opacity='0.12'/%3E%3Ccircle cx='55' cy='25' r='3' fill='%23C4A356' opacity='0.1'/%3E%3Ccircle cx='70' cy='45' r='3.5' fill='%23C4A356' opacity='0.12'/%3E%3Ccircle cx='40' cy='60' r='4' fill='%23C4A356' opacity='0.1'/%3E%3Ccircle cx='65' cy='65' r='3' fill='%23C4A356' opacity='0.12'/%3E%3Ccircle cx='50' cy='50' r='3.5' fill='%23C4A356' opacity='0.1'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(0.8) rotate(-10deg);
  transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
  pointer-events: none;
  z-index: -1;
}

.main-nav.is-open {
  transform: translateX(0);
}

.main-nav.is-open::after {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Mobile nav flourish */
.nav-flourish {
  text-align: center;
  margin-bottom: var(--space-xl);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

.main-nav.is-open .nav-flourish {
  opacity: 1;
  transform: translateY(0);
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.nav-link {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-cocoa);
  position: relative;
  padding: var(--space-sm) 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-gold);
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--color-gold-text);  /* WCAG AA: Darker gold for hover visibility */
}

.nav-link:hover::after,
.nav-link:focus::after {
  width: 100%;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-flourish {
    display: none;
  }

  .main-nav {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    background: none;
    padding: 0;
    transform: none;
    border: none;
  }

  .main-nav::before,
  .main-nav::after {
    display: none;
  }

  .nav-list {
    flex-direction: row;
    gap: var(--space-xl);
  }

  .nav-link {
    font-size: var(--text-sm);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
}

/* ==========================================================================
   6. HERO SECTION
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for mobile */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + var(--space-xl)) var(--space-md) var(--space-xl);
  overflow: hidden;
}

@media (min-width: 480px) {
  .hero {
    padding: calc(var(--header-height) + var(--space-2xl)) var(--space-lg) var(--space-2xl);
  }
}

@media (min-width: 768px) {
  .hero {
    padding: calc(var(--header-height) + var(--space-3xl)) var(--space-lg) var(--space-3xl);
  }
}

.hero-parallax {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background-image: url('/assets/hero-bg.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(250, 246, 238, 0.85) 0%,
    rgba(250, 246, 238, 0.9) 50%,
    rgba(250, 246, 238, 0.95) 100%
  );
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 700px;
  z-index: 1;
}

.hero-badge {
  position: relative;
  margin-bottom: var(--space-lg);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Decorative frame around video */
.hero-badge::before {
  content: '';
  position: absolute;
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  border: 1px solid var(--color-gold);
  border-radius: 12px;
  opacity: 0.4;
  pointer-events: none;
}

.hero-badge::after {
  content: '';
  position: absolute;
  width: calc(100% + 24px);
  height: calc(100% + 24px);
  border: 0.5px solid var(--color-gold);
  border-radius: 8px;
  opacity: 0.6;
  pointer-events: none;
}

/* Corner ornaments */
.hero-corner {
  position: absolute;
  z-index: 2;
  opacity: 0.8;
}

.hero-corner-tl {
  top: -8px;
  left: -8px;
}

.hero-corner-tr {
  top: -8px;
  right: -8px;
}

.hero-corner-bl {
  bottom: -8px;
  left: -8px;
}

.hero-corner-br {
  bottom: -8px;
  right: -8px;
}

@media (min-width: 768px) {
  .hero-corner {
    width: 40px;
    height: 40px;
  }

  .hero-corner-tl {
    top: -12px;
    left: -12px;
  }

  .hero-corner-tr {
    top: -12px;
    right: -12px;
  }

  .hero-corner-bl {
    bottom: -12px;
    left: -12px;
  }

  .hero-corner-br {
    bottom: -12px;
    right: -12px;
  }
}

/* Video container styling */
.badge-video {
  position: relative;
  border-radius: 8px;
  box-shadow:
    0 8px 32px rgba(75, 46, 42, 0.15),
    0 2px 8px rgba(75, 46, 42, 0.1),
    inset 0 0 0 1px rgba(196, 163, 86, 0.3);
  max-width: 320px;
  width: 100%;
  height: auto;
}

@media (min-width: 480px) {
  .badge-video {
    max-width: 380px;
  }
}

@media (min-width: 768px) {
  .hero-badge {
    margin-bottom: var(--space-xl);
  }

  .badge-video {
    max-width: 420px;
  }

  .hero-badge::before {
    width: calc(100% + 60px);
    height: calc(100% + 60px);
    border-radius: 16px;
  }

  .hero-badge::after {
    width: calc(100% + 36px);
    height: calc(100% + 36px);
    border-radius: 12px;
  }
}

.badge-svg {
  margin: 0 auto;
  width: 80px;
  height: 80px;
}

@media (min-width: 768px) {
  .badge-svg {
    width: 100px;
    height: 100px;
  }
}

.hero-title {
  font-size: var(--text-3xl);
  font-weight: 500;
  color: var(--color-cocoa);
  margin-bottom: var(--space-md);
  letter-spacing: 0.02em;
}

@media (min-width: 480px) {
  .hero-title {
    font-size: var(--text-4xl);
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: var(--text-5xl);
  }
}

.flourish {
  margin: var(--space-md) auto;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-style: italic;
  font-weight: 400;
  color: var(--color-gold-text);  /* WCAG AA compliant */
  margin-bottom: var(--space-md);
}

@media (min-width: 768px) {
  .hero-tagline {
    font-size: var(--text-2xl);
  }
}

.hero-description {
  font-size: var(--text-sm);
  color: var(--color-cocoa-light);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .hero-description {
    font-size: var(--text-base);
    margin-bottom: var(--space-2xl);
    line-height: 1.8;
  }
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
}

@media (min-width: 480px) {
  .hero-ctas {
    flex-direction: row;
    justify-content: center;
  }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-cocoa-light);
}

.scroll-text {
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.5; transform: scaleY(0.8); }
}

/* ==========================================================================
   7. PRODUCT SECTION
   ========================================================================== */

.product-section {
  background-color: var(--color-ivory);
}

.section-ornament {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: var(--space-2xl);
  }
}

.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold-text);  /* WCAG AA compliant */
  margin-bottom: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  border: 1px solid rgba(196, 163, 86, 0.3);
  border-radius: var(--border-radius-sm);
  background: rgba(196, 163, 86, 0.05);
}

@media (min-width: 768px) {
  .section-label {
    font-size: var(--text-xs);
    padding: var(--space-sm) var(--space-lg);
  }
}

.section-title {
  color: var(--color-cocoa);
  font-size: var(--text-2xl);
}

@media (min-width: 768px) {
  .section-title {
    font-size: var(--text-3xl);
  }
}

.product-grid {
  display: grid;
  gap: var(--space-3xl);
}

@media (min-width: 900px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* Product Image */
.product-image-wrapper {
  position: relative;
}

.product-figure {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--border-radius-md);
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition-slow);
}

.product-figure:hover .product-image {
  transform: scale(1.02);
}

.product-image-frame {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: var(--border-hairline);
  border-radius: var(--border-radius-sm);
  pointer-events: none;
}

/* Product Details */
.product-details {
  padding: var(--space-lg) 0;
}

.product-intro {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--color-gold-text);  /* WCAG AA compliant */
  margin-bottom: var(--space-md);
}

.product-description {
  margin-bottom: var(--space-xl);
}

.product-meta {
  display: grid;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-top: var(--border-hairline);
  border-bottom: var(--border-hairline);
  margin-bottom: var(--space-xl);
}

.meta-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-md);
}

.meta-label {
  font-size: var(--text-sm);
  color: var(--color-cocoa-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.meta-value {
  font-family: var(--font-serif);
  font-style: italic;
}

/* Product Form */
.product-form {
  margin-bottom: var(--space-lg);
}

.quantity-selector {
  border: none;
  margin-bottom: var(--space-lg);
}

.quantity-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.quantity-option {
  cursor: pointer;
}

.quantity-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.quantity-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-lg);
  border: 1px solid var(--color-parchment);
  border-radius: var(--border-radius-md);
  background-color: var(--color-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.quantity-option input:checked + .quantity-box {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 1px var(--color-gold);
}

.quantity-option input:focus-visible + .quantity-box {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.quantity-count {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.quantity-price {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-gold-text);  /* WCAG AA compliant */
}

/* Baker notes */
.baker-notes {
  margin-bottom: var(--space-lg);
}

.notes-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.optional {
  font-weight: 400;
  color: var(--color-cocoa-light);
}

.notes-input {
  width: 100%;
  padding: var(--space-md);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--color-cocoa);
  background-color: var(--color-white);
  border: 1px solid var(--color-parchment);
  border-radius: var(--border-radius-sm);
  resize: vertical;
  transition: border-color var(--transition-fast);
}

.notes-input:focus {
  border-color: var(--color-gold);
  outline: none;
}

.notes-input::placeholder {
  color: var(--color-cocoa-light);
}

.notes-hint {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-cocoa-light);
  margin-top: var(--space-xs);
}

/* Cart button */
.btn-cart {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-xl);
}

.btn-price {
  font-weight: 600;
}

/* Freshness note */
.freshness-note {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-cocoa-light);
}

.icon-leaf {
  flex-shrink: 0;
  color: var(--color-green);
}

/* ==========================================================================
   8. INGREDIENTS SECTION
   ========================================================================== */

.ingredients-section {
  background-color: var(--color-parchment);
}

.ingredients-grid {
  display: grid;
  gap: var(--space-3xl);
}

@media (min-width: 900px) {
  .ingredients-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.ingredients-figure {
  position: relative;
}

.section-image {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
}

.image-ornament {
  position: absolute;
  bottom: calc(var(--space-lg) * -1);
  right: calc(var(--space-lg) * -1);
}

.ingredients-content .section-header {
  text-align: left;
}

/* Ingredient list */
.ingredient-list {
  margin-bottom: var(--space-2xl);
}

.ingredient-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-md) 0;
  border-bottom: var(--border-hairline);
}

.ingredient-name {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 500;
}

.ingredient-origin {
  font-size: var(--text-sm);
  color: var(--color-cocoa-light);
  text-align: right;
}

/* Craft process */
.craft-title {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold-text-parchment);  /* WCAG AA compliant on parchment bg */
  margin-bottom: var(--space-lg);
}

.process-list {
  counter-reset: process;
}

.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-lg);
  padding: var(--space-md) 0;
}

.step-number {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-gold-text-parchment);  /* WCAG AA compliant on parchment bg */
  line-height: 1;
}

.step-content strong {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.step-content p {
  font-size: var(--text-sm);
  color: var(--color-cocoa-light);
  margin: 0;
}

/* ==========================================================================
   9. HERITAGE SECTION
   ========================================================================== */

.heritage-section {
  position: relative;
  background-color: var(--color-ivory);
  overflow: hidden;
}

.heritage-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(196, 163, 86, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(196, 163, 86, 0.05) 0%, transparent 50%);
}

.heritage-content {
  display: grid;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

@media (min-width: 900px) {
  .heritage-content {
    grid-template-columns: 2fr 1fr;
  }
}

/* Heritage story */
.heritage-story {
  max-width: var(--container-narrow);
}

.story-frame {
  position: relative;
  padding: var(--space-2xl);
  margin-bottom: var(--space-xl);
}

.corner {
  position: absolute;
}

.corner-tl { top: 0; left: 0; }
.corner-tr { top: 0; right: 0; }
.corner-bl { bottom: 0; left: 0; }
.corner-br { bottom: 0; right: 0; }

.heritage-quote {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-style: italic;
  text-align: center;
  color: var(--color-cocoa);
}

/* Baker profile */
.baker-profile {
  display: flex;
  justify-content: center;
}

.baker-figure {
  text-align: center;
}

.baker-image-frame {
  position: relative;
  display: inline-block;
  padding: var(--space-md);
  border: var(--border-hairline);
}

.baker-image {
  max-width: 250px;
  filter: sepia(10%) contrast(95%);
}

.baker-info {
  margin-top: var(--space-lg);
}

.baker-title {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-cocoa-light);
  margin-bottom: var(--space-xs);
}

.baker-name {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-cocoa);
  margin-bottom: var(--space-sm);
}

.signature-flourish {
  display: block;
  margin: 0 auto;
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

@media (min-width: 768px) {
  .timeline {
    flex-direction: row;
    justify-content: center;
  }
}

.timeline-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.timeline-year {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-gold-text);  /* WCAG AA compliant */
}

.timeline-event {
  font-size: var(--text-sm);
  color: var(--color-cocoa-light);
}

.timeline-divider {
  display: none;
}

@media (min-width: 768px) {
  .timeline-divider {
    display: block;
    padding: 0 var(--space-lg);
  }
}

/* ==========================================================================
   10. TESTIMONIALS SECTION
   ========================================================================== */

.testimonials-section {
  background-color: var(--color-parchment);
}

.testimonials-carousel {
  max-width: var(--container-narrow);
  margin: 0 auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform var(--transition-smooth);
}

.testimonial-card {
  flex: 0 0 100%;
  padding: var(--space-2xl);
  text-align: center;
}

.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.testimonial-quote {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.testimonial-quote p {
  margin: 0;
}

.testimonial-author {
  font-style: normal;
}

.author-name {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.author-title {
  font-size: var(--text-sm);
  color: var(--color-cocoa-light);  /* WCAG AA: 5.8:1 contrast on parchment */
}

/* Sections on parchment background need darker gold text */
.testimonials-section .section-label,
.faq-section .section-label,
.ingredients-section .section-label {
  color: var(--color-gold-text-parchment);  /* WCAG AA compliant on parchment bg */
}

/* Carousel navigation */
.carousel-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-ivory);
  border: 1px solid var(--color-gold);
  transition: background-color var(--transition-fast);
  cursor: pointer;
}

.carousel-dot.active,
.carousel-dot:hover {
  background-color: var(--color-gold);
}

/* ==========================================================================
   11. GIFT & STORAGE SECTION
   ========================================================================== */

.gift-section {
  background-color: var(--color-ivory);
}

.gift-grid {
  display: grid;
  gap: var(--space-3xl);
}

@media (min-width: 900px) {
  .gift-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.gift-content .section-header {
  text-align: left;
}

.gift-info,
.storage-info {
  margin-bottom: var(--space-xl);
}

.gift-subtitle {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold-text);  /* WCAG AA compliant */
  margin-bottom: var(--space-md);
}

.seal-illustration {
  margin-top: var(--space-lg);
}

.storage-list {
  display: grid;
  gap: var(--space-md);
}

.storage-list li {
  padding-left: var(--space-lg);
  position: relative;
}

.storage-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border: 1px solid var(--color-gold);
  transform: rotate(45deg);
}

.gift-figure {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   12. FAQ SECTION
   ========================================================================== */

.faq-section {
  background-color: var(--color-parchment);
}

.faq-list {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.faq-item {
  border-bottom: var(--border-hairline);
}

.faq-item h3 {
  margin: 0;
}

.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) 0;
  text-align: left;
  color: var(--color-cocoa);
  transition: color var(--transition-fast);
}

.faq-trigger:hover {
  color: var(--color-gold-text-parchment);  /* WCAG AA: Darker gold for hover on parchment */
}

.faq-question {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 500;
}

.faq-icon {
  flex-shrink: 0;
  color: var(--color-gold-text-parchment);  /* WCAG AA: Darker gold for icons on parchment */
  transition: transform var(--transition-base);
}

.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-content {
  padding: 0 0 var(--space-lg);
  overflow: hidden;
}

.faq-content[hidden] {
  display: none;
}

.faq-content p {
  font-size: var(--text-base);
  color: var(--color-cocoa-light);
  line-height: 1.7;
}

/* ==========================================================================
   12.5. MENU SECTION
   ========================================================================== */

.menu-section {
  background-color: var(--color-ivory);
  padding: var(--space-4xl) 0;
}

.menu-intro {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.menu-tagline {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--color-cocoa-light);
  margin: 0;
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 640px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .menu-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2xl);
  }
}

.menu-item {
  background: var(--color-white);
  border: 1px solid var(--color-parchment);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: var(--transition-base);
  transition-property: transform, box-shadow;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.menu-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.menu-item-image {
  aspect-ratio: 1;
  background: var(--color-parchment);
  display: flex;
  align-items: center;
  justify-content: center;
  /* padding: var(--space-lg); */
  flex-shrink: 0;
}

.menu-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.menu-item-image-warm {
  background: #f9d6b5;
}

.menu-item-content {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.menu-item-badge-wrapper {
  min-height: 1.75rem;
  margin-bottom: var(--space-xs);
}

.menu-item-badge {
  display: inline-block;
  background: var(--color-gold);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25em 0.75em;
  border-radius: 2px;
}

.menu-item-name {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-cocoa);
  margin: 0 0 var(--space-sm);
}

.menu-item-description {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-cocoa-light);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.menu-item-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding-top: var(--space-md);
  margin-top: var(--space-md);
  border-top: 1px solid var(--color-parchment);
}

.menu-item-price {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-cocoa);
  font-weight: 500;
}

.menu-item-seasonal {
  border-color: var(--color-gold);
}

.menu-item-seasonal .menu-item-image {
  background: linear-gradient(135deg, var(--color-parchment) 0%, rgba(196, 163, 86, 0.1) 100%);
}

.menu-cta {
  text-align: center;
  margin-top: var(--space-3xl);
}

/* ==========================================================================
   13. ORDER SECTION - Delivery Partners
   ========================================================================== */

.order-section {
  position: relative;
  background-color: var(--color-cocoa);
  color: var(--color-ivory);
  overflow: hidden;
  padding: var(--space-3xl) 0;
}

@media (min-width: 768px) {
  .order-section {
    padding: var(--space-5xl) 0;
  }
}

.order-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(196, 163, 86, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 100%, rgba(196, 163, 86, 0.1) 0%, transparent 50%);
}

/* Floating decorative shapes */
.order-decorations {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  animation: floatShape 20s ease-in-out infinite;
}

.floating-shape.shape-1 {
  width: 300px;
  height: 300px;
  background: var(--color-gold);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.floating-shape.shape-2 {
  width: 200px;
  height: 200px;
  background: var(--color-gold);
  bottom: -50px;
  left: -50px;
  animation-delay: -7s;
}

.floating-shape.shape-3 {
  width: 150px;
  height: 150px;
  background: var(--color-ivory);
  top: 50%;
  left: 20%;
  animation-delay: -14s;
}

@keyframes floatShape {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(20px, -30px) rotate(5deg);
  }
  50% {
    transform: translate(-10px, 20px) rotate(-3deg);
  }
  75% {
    transform: translate(-30px, -10px) rotate(2deg);
  }
}

.order-content {
  position: relative;
  max-width: var(--container-narrow);
  margin: 0 auto;
  text-align: center;
}

.order-section .section-label {
  color: var(--color-gold);
}

.order-section .section-title {
  color: var(--color-ivory);
}

.order-intro {
  font-size: var(--text-base);
  color: rgba(250, 246, 238, 0.9);  /* WCAG AA: Increased opacity for 4.5:1 contrast */
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .order-intro {
    font-size: var(--text-lg);
    margin-bottom: var(--space-2xl);
  }
}

/* Delivery Partners Grid - Mobile First */
.delivery-partners {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

@media (min-width: 480px) {
  .delivery-partners {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .delivery-partners {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
  }
}

/* Delivery Card */
.delivery-card {
  display: block;
  text-decoration: none;
  color: inherit;
  perspective: 1000px;
}

.delivery-card-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-lg);
  background: rgba(250, 246, 238, 0.03);
  border: 1px solid rgba(196, 163, 86, 0.25);
  border-radius: var(--border-radius-lg);
  transition: all var(--transition-smooth);
  overflow: hidden;
}

@media (min-width: 768px) {
  .delivery-card-inner {
    padding: var(--space-xl);
  }
}

/* Elegant shimmer effect on hover */
.delivery-card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(196, 163, 86, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

.delivery-card:hover .delivery-card-inner::before,
.delivery-card:focus .delivery-card-inner::before {
  left: 100%;
}

.delivery-card:hover .delivery-card-inner,
.delivery-card:focus .delivery-card-inner {
  background: rgba(250, 246, 238, 0.08);
  border-color: var(--color-gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.delivery-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(196, 163, 86, 0.15);
  border-radius: 50%;
  margin-bottom: var(--space-md);
  color: var(--color-gold);
  transition: all var(--transition-base);
}

@media (min-width: 768px) {
  .delivery-logo {
    width: 64px;
    height: 64px;
  }
}

.delivery-card:hover .delivery-logo,
.delivery-card:focus .delivery-logo {
  background: var(--color-gold);
  color: var(--color-cocoa);
  transform: scale(1.1);
}

.delivery-name {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-ivory);
  margin-bottom: var(--space-xs);
}

@media (min-width: 768px) {
  .delivery-name {
    font-size: var(--text-xl);
  }
}

.delivery-time {
  font-size: var(--text-sm);
  color: rgba(250, 246, 238, 0.85);  /* WCAG AA: Increased opacity for 4.5:1 contrast */
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.delivery-time::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--color-green);
  border-radius: 50%;
}

.delivery-arrow {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  opacity: 0;
  transform: translateX(-10px);
  transition: all var(--transition-base);
}

.delivery-card:hover .delivery-arrow,
.delivery-card:focus .delivery-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Availability Badge */
.delivery-availability {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
  .delivery-availability {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
  }
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: rgba(47, 74, 63, 0.3);
  border: 1px solid var(--color-green);
  border-radius: var(--border-radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ivory);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--color-green);
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.3);
  }
}

.availability-hours {
  font-size: var(--text-sm);
  color: rgba(250, 246, 238, 0.85);  /* WCAG AA: Increased opacity for 4.5:1 contrast */
  margin: 0;
}

/* Order Divider */
.order-divider {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-xl);
}

/* Order extras */
.order-extras {
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(196, 163, 86, 0.2);
}

@media (min-width: 768px) {
  .order-extras {
    padding-top: var(--space-xl);
  }
}

.corporate-cta {
  margin-bottom: var(--space-md);
  font-size: var(--text-sm);
}

@media (min-width: 768px) {
  .corporate-cta {
    font-size: var(--text-base);
  }
}

.link-gold {
  color: var(--color-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.link-gold:hover {
  color: var(--color-gold-light);
}

.preorder-note {
  font-size: var(--text-sm);
  color: rgba(250, 246, 238, 0.85);  /* WCAG AA: Increased opacity for 4.5:1 contrast */
}

.link-underline {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   14. FOOTER
   ========================================================================== */

.site-footer {
  background-color: var(--color-cocoa);
  color: var(--color-ivory);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(250, 246, 238, 0.1);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1.5fr 1fr;
  }
}

/* Footer brand */
.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.footer-brand-name {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  color: rgba(250, 246, 238, 0.85);  /* WCAG AA: Increased opacity for 4.5:1 contrast */
}

/* Footer headings */
.footer-heading {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);  /* Gold on dark cocoa bg has 7.5:1 contrast - WCAG AA pass */
  margin-bottom: var(--space-lg);
}

/* Contact info */
.contact-info {
  font-style: normal;
  line-height: 1.8;
}

.contact-info p {
  margin-bottom: var(--space-md);
}

.contact-link {
  color: rgba(250, 246, 238, 0.9);  /* WCAG AA: Increased opacity for 4.5:1 contrast */
  transition: color var(--transition-fast);
}

.contact-link:hover {
  color: var(--color-gold);
}

.hours {
  font-size: var(--text-sm);
  color: rgba(250, 246, 238, 0.85);  /* WCAG AA: Increased opacity for 4.5:1 contrast */
}

/* Newsletter */
.footer-newsletter p {
  font-size: var(--text-sm);
  color: rgba(250, 246, 238, 0.85);  /* WCAG AA: Increased opacity for 4.5:1 contrast */
  margin-bottom: var(--space-md);
}

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
}

.newsletter-input {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-ivory);
  background-color: rgba(250, 246, 238, 0.1);
  border: 1px solid rgba(250, 246, 238, 0.2);
  border-radius: var(--border-radius-sm);
  transition: border-color var(--transition-fast);
}

.newsletter-input:focus {
  border-color: var(--color-gold);
  outline: none;
}

.newsletter-input::placeholder {
  color: rgba(250, 246, 238, 0.7);  /* WCAG AA: Increased opacity for better visibility */
}

.btn-newsletter {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-cocoa);
  background-color: var(--color-gold);
  border-radius: var(--border-radius-sm);
  transition: background-color var(--transition-fast);
}

.btn-newsletter:hover {
  background-color: var(--color-gold-light);
}

/* Social links */
.social-links {
  display: flex;
  gap: var(--space-md);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: rgba(250, 246, 238, 0.85);  /* WCAG AA: Increased opacity for 4.5:1 contrast */
  border: 1px solid rgba(250, 246, 238, 0.3);
  border-radius: 50%;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.social-link:hover {
  color: var(--color-gold);
  border-color: var(--color-gold);
}

/* Footer bottom */
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
  text-align: center;
  padding-top: var(--space-xl);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.copyright {
  font-size: var(--text-sm);
  color: rgba(250, 246, 238, 0.75);  /* WCAG AA: Increased opacity for 4.5:1 contrast */
  margin: 0;
}

.footer-nav {
  display: flex;
  gap: var(--space-lg);
}

.footer-link {
  font-size: var(--text-sm);
  color: rgba(250, 246, 238, 0.85);  /* WCAG AA: Increased opacity for 4.5:1 contrast */
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-gold);
}

/* ==========================================================================
   15. COMPONENTS (Buttons, Forms, Cards)
   ========================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-base);
  cursor: pointer;
}

.btn-primary {
  color: var(--color-ivory);
  background-color: var(--color-green);
  border: 1px solid var(--color-green);
}

.btn-primary:hover {
  background-color: var(--color-green-light);
  border-color: var(--color-green-light);
}

.btn-secondary {
  color: var(--color-cocoa);
  background-color: transparent;
  border: 1px solid var(--color-gold);
}

.btn-secondary:hover {
  background-color: var(--color-gold);
  color: var(--color-ivory);
}

.btn-large {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--text-base);
}

.btn-small {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-xs);
}

.btn-text {
  color: rgba(250, 246, 238, 0.85);  /* WCAG AA: Increased opacity for 4.5:1 contrast */
  background: none;
  border: none;
  padding: var(--space-sm) var(--space-md);
}

.btn-text:hover {
  color: var(--color-ivory);
}

.btn-accept {
  background-color: var(--color-green);
  color: var(--color-ivory);
}

.btn-accept:hover {
  background-color: var(--color-green-light);
}

/* ==========================================================================
   16. COOKIE CONSENT & MODAL
   ========================================================================== */

/* Cookie consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-lg);
  background-color: var(--color-cocoa);
  color: var(--color-ivory);
  border-top: 1px solid var(--color-gold);
  z-index: 200;
  transform: translateY(100%);
  transition: transform var(--transition-smooth);
}

.cookie-consent:not([hidden]) {
  transform: translateY(0);
}

.cookie-consent[hidden] {
  display: flex;
}

@media (min-width: 768px) {
  .cookie-consent {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-2xl);
  }
}

.cookie-content p {
  font-size: var(--text-sm);
  margin: 0;
}

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

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(75, 46, 42, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.modal-overlay:not([hidden]) {
  opacity: 1;
  visibility: visible;
}

.modal-overlay[hidden] {
  display: flex;
}

.modal {
  position: relative;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  background-color: var(--color-ivory);
  border-radius: var(--border-radius-md);
  padding: var(--space-2xl);
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform var(--transition-smooth);
}

.modal-overlay:not([hidden]) .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cocoa-light);
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--color-cocoa);
}

.modal-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-lg);
  padding-right: var(--space-2xl);
}

.modal-body {
  font-size: var(--text-base);
  color: var(--color-cocoa-light);
  line-height: 1.7;
}

.modal-body h3 {
  font-size: var(--text-lg);
  color: var(--color-cocoa);
  margin: var(--space-xl) 0 var(--space-md);
}

.modal-body h3:first-child {
  margin-top: 0;
}

.modal-body ul {
  margin: var(--space-md) 0;
  padding-left: var(--space-lg);
}

.modal-body li {
  list-style: disc;
  margin-bottom: var(--space-sm);
}

/* Cart notification */
.cart-notification {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background-color: var(--color-green);
  color: var(--color-ivory);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  transition: transform var(--transition-smooth), opacity var(--transition-smooth);
  z-index: 150;
}

.cart-notification.show {
  transform: translateY(0);
  opacity: 1;
}

.cart-notification[hidden] {
  display: flex;
}

/* ==========================================================================
   17. ANIMATIONS & TRANSITIONS
   ========================================================================== */

/* Reveal on scroll - Base */
.reveal-element {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-element.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Fade from left */
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Fade from right */
.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Scale up reveal */
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Fade up with rotation */
.reveal-rotate {
  opacity: 0;
  transform: translateY(40px) rotate(-3deg);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-rotate.revealed {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

/* Blur reveal */
.reveal-blur {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(10px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-blur.revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Staggered reveal for children */
.reveal-element:nth-child(2),
.reveal-left:nth-child(2),
.reveal-right:nth-child(2),
.reveal-scale:nth-child(2),
.reveal-rotate:nth-child(2),
.reveal-blur:nth-child(2) { transition-delay: 0.1s; }

.reveal-element:nth-child(3),
.reveal-left:nth-child(3),
.reveal-right:nth-child(3),
.reveal-scale:nth-child(3),
.reveal-rotate:nth-child(3),
.reveal-blur:nth-child(3) { transition-delay: 0.2s; }

.reveal-element:nth-child(4),
.reveal-left:nth-child(4),
.reveal-right:nth-child(4),
.reveal-scale:nth-child(4),
.reveal-rotate:nth-child(4),
.reveal-blur:nth-child(4) { transition-delay: 0.3s; }

/* Stagger items within grids */
.menu-item.reveal-element:nth-child(1) { transition-delay: 0s; }
.menu-item.reveal-element:nth-child(2) { transition-delay: 0.15s; }
.menu-item.reveal-element:nth-child(3) { transition-delay: 0.3s; }
.menu-item.reveal-element:nth-child(4) { transition-delay: 0.45s; }

.timeline-item:nth-child(1) { transition-delay: 0s; }
.timeline-item:nth-child(2) { transition-delay: 0.2s; }
.timeline-item:nth-child(3) { transition-delay: 0.4s; }

/* Section-specific delays */
[data-delay="100"] { transition-delay: 0.1s !important; }
[data-delay="200"] { transition-delay: 0.2s !important; }
[data-delay="300"] { transition-delay: 0.3s !important; }
[data-delay="400"] { transition-delay: 0.4s !important; }
[data-delay="500"] { transition-delay: 0.5s !important; }

/* Link hover animations */
.nav-link,
.footer-link,
.contact-link {
  position: relative;
}

/* Gold accent animations */
@keyframes goldShimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Elegant hover lift effect */
@keyframes subtleFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Button press effect */
.btn:active {
  transform: scale(0.98);
}

/* Smooth image loading */
.section-image,
.product-image,
.baker-image {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.section-image.loaded,
.product-image.loaded,
.baker-image.loaded {
  opacity: 1;
}

/* Card hover shine effect */
@keyframes cardShine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Elegant underline animation for links */
.link-elegant {
  position: relative;
  display: inline-block;
}

.link-elegant::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  transition: width var(--transition-smooth);
}

.link-elegant:hover::after {
  width: 100%;
}

/* ==========================================================================
   18. UTILITIES
   ========================================================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

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

/* Touch-friendly minimum sizes */
@media (pointer: coarse) {
  .btn,
  .nav-link,
  .faq-trigger,
  .delivery-card {
    min-height: 44px;
  }

  .qty-btn,
  .carousel-dot,
  .social-link {
    min-width: 44px;
    min-height: 44px;
  }
}

/* Elegant gradient border utility */
.gradient-border {
  position: relative;
  background: var(--color-ivory);
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  background: linear-gradient(135deg, var(--color-gold), transparent, var(--color-gold));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  border-radius: inherit;
}

/* Glass morphism effect */
.glass-effect {
  background: rgba(250, 246, 238, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Subtle shadow on scroll */
.elevated {
  box-shadow:
    0 4px 6px -1px rgba(75, 46, 42, 0.1),
    0 2px 4px -1px rgba(75, 46, 42, 0.06);
}

/* Smooth fade in for lazy loaded content */
.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ==========================================================================
   19. MEDIA QUERIES
   ========================================================================== */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .hero-title {
    white-space: nowrap;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  :root {
    --header-height: 90px;
  }

  .header-inner {
    padding: 0 var(--space-2xl);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero {
    padding: calc(var(--header-height) + var(--space-4xl)) var(--space-2xl) var(--space-4xl);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    padding: 0 var(--space-3xl);
  }
}

/* Reduce animation distance on mobile */
@media (max-width: 767px) {
  .reveal-left {
    transform: translateX(-30px);
  }

  .reveal-right {
    transform: translateX(30px);
  }
}

/* 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;
  }

  .reveal-element,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .reveal-rotate,
  .reveal-blur {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .hero-parallax {
    transform: none !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --color-cocoa-light: var(--color-cocoa);
  }

  .btn {
    border-width: 2px;
  }
}

/* Print styles */
@media print {
  .site-header,
  .cookie-consent,
  .scroll-indicator,
  .carousel-nav,
  .btn {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  section {
    page-break-inside: avoid;
  }
}
