/* style.css - Design System & Custom Styling for Nüma Coffee Kitchen */

/* --- Typography & Custom Imports --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* --- CSS Variables & Design System --- */
:root {
  /* Requested Color Palette */
  --palette-dark-burgundy: #561C24;
  --palette-wine: #6D2932;
  --palette-clay: #C7B7A3;
  --palette-cream: #E8D8C4;

  /* Theme Extensions */
  --bg-primary: #FCF9F5;      /* Ultra-light cream for clean, soft contrast */
  --bg-secondary: #F4ECE3;    /* Slightly deeper cream for section backgrounds */
  --bg-dark: #1F0709;         /* Dark burgundy/chocolate for dark sections */
  --bg-card: #FFFFFF;
  --bg-glass: rgba(252, 249, 245, 0.75);
  --bg-glass-dark: rgba(31, 7, 9, 0.85);
  
  --text-dark: #2A1013;       /* High-contrast body copy */
  --text-muted: #7E6C5C;      /* Muted descriptors */
  --text-light: #FBF7F4;      /* Text on dark backgrounds */
  --text-accent: #6D2932;     /* Medium dark accent */
  
  --accent-gold: #D2A268;     /* Warm gold for ratings/special tags */
  --accent-success: #4E7C5E;  /* Modern forest green for success alerts/cart add */

  /* Fonts */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Borders & Shadows */
  --border-color: rgba(109, 41, 50, 0.15);
  --border-color-light: rgba(232, 216, 196, 0.25);
  --border-radius-xs: 6px;
  --border-radius-sm: 10px;
  --border-radius-md: 18px;
  --border-radius-lg: 32px;
  
  --shadow-sm: 0 4px 12px rgba(86, 28, 36, 0.03);
  --shadow-md: 0 12px 32px rgba(86, 28, 36, 0.06);
  --shadow-lg: 0 24px 48px rgba(86, 28, 36, 0.1);

  /* Transitions */
  --transition-smooth: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  
  /* Scroll Margin for Navbar offset */
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- Styled Scrollbar --- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--palette-wine);
  border: 2px solid var(--bg-secondary);
  border-radius: var(--border-radius-xs);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--palette-dark-burgundy);
}

/* --- Typography Defaults --- */
h1, h2, h3, h4, .brand-font {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

button, input, textarea {
  font-family: inherit;
  outline: none;
  border: none;
  background: none;
}

/* --- Global Utilities --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

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

.section-header {
  max-width: 600px;
  margin: 0 auto 60px auto;
}
.section-header .subtitle {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--palette-wine);
  display: block;
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: 2.5rem;
  color: var(--palette-dark-burgundy);
  margin-bottom: 16px;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--border-radius-lg);
  cursor: pointer;
  transition: var(--transition-smooth);
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--palette-wine), var(--palette-dark-burgundy));
  color: var(--text-light);
  box-shadow: 0 6px 20px rgba(86, 28, 36, 0.15);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(86, 28, 36, 0.25);
  filter: brightness(1.1);
}

.btn-secondary {
  background: transparent;
  color: var(--palette-dark-burgundy);
  border: 2px solid var(--palette-wine);
}
.btn-secondary:hover {
  background: rgba(109, 41, 50, 0.05);
  transform: translateY(-2px);
}

.btn-light {
  background: var(--palette-cream);
  color: var(--palette-dark-burgundy);
}
.btn-light:hover {
  background: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* --- Navigation Bar --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 900;
  background-color: var(--bg-glass);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

header.scrolled {
  padding: 10px 0;
  box-shadow: var(--shadow-md);
  background-color: rgba(252, 249, 245, 0.9);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  transition: var(--transition-smooth);
}

header.scrolled .navbar-container {
  padding: 12px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-icon {
  font-size: 1.8rem;
  color: var(--palette-wine);
  animation: steam-gentle 4s ease-in-out infinite;
}
.logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--palette-dark-burgundy);
}
.logo-text span {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  display: block;
  margin-top: -4px;
  color: var(--palette-clay);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dark);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--palette-wine);
  transition: var(--transition-smooth);
}
.nav-links a:hover {
  color: var(--palette-wine);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Nav Cart Button */
.cart-trigger {
  position: relative;
  background: var(--palette-cream);
  color: var(--palette-dark-burgundy);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-bounce);
}
.cart-trigger:hover {
  transform: scale(1.05);
  background: var(--palette-clay);
  color: var(--bg-primary);
}
.cart-trigger svg {
  width: 20px;
  height: 20px;
}
.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--palette-wine);
  color: var(--text-light);
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-primary);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: var(--transition-bounce);
  transform: scale(0);
}
.cart-count.pop {
  transform: scale(1);
}

/* Menu Toggle for Mobile */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
  padding: 4px;
}
.mobile-menu-btn span {
  width: 24px;
  height: 2.5px;
  background-color: var(--palette-dark-burgundy);
  border-radius: 2px;
  transition: var(--transition-smooth);
}
.mobile-menu-btn.open span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}
.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.open span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--bg-primary) 50%, var(--bg-secondary) 100%);
  padding-top: 120px;
  overflow: hidden;
}

/* Styled aesthetic floating elements */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 70%;
  background: radial-gradient(circle, rgba(232, 216, 196, 0.4) 0%, rgba(252, 249, 245, 0) 70%);
  z-index: 1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 640px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: var(--palette-cream);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--palette-dark-burgundy);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(109, 41, 50, 0.1);
}
.hero-badge span.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--palette-wine);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot-anim 1.8s infinite;
}

.hero-content h1 {
  font-size: 4.2rem;
  color: var(--palette-dark-burgundy);
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero-content h1 span.highlight {
  color: var(--palette-wine);
  position: relative;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 36px;
  opacity: 0.85;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: transparent;
  padding: 12px;
  animation: rotate-slow 20s linear infinite;
}

.hero-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 50%;
}

/* Floating Coffee Steam animation for visual interest */
.steam-container {
  position: absolute;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 100px;
  display: flex;
  justify-content: space-around;
  pointer-events: none;
  opacity: 0.8;
}
.steam-line {
  width: 6px;
  height: 60px;
  background: linear-gradient(to top, rgba(232, 216, 196, 0.7) 10%, rgba(252, 249, 245, 0) 100%);
  border-radius: 3px;
  animation: steam-drift 5s infinite ease-in-out;
  filter: blur(2px);
}
.steam-line:nth-child(1) { animation-delay: 0.2s; animation-duration: 4.2s; }
.steam-line:nth-child(2) { animation-delay: 0.8s; animation-duration: 5.5s; }
.steam-line:nth-child(3) { animation-delay: 1.5s; animation-duration: 4.8s; }

.hero-decorative-badge {
  position: absolute;
  bottom: 5%;
  right: 5%;
  background: var(--palette-dark-burgundy);
  color: var(--palette-cream);
  padding: 18px;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--palette-cream);
  animation: rotate-slow 20s linear infinite;
  z-index: 10;
}
.hero-decorative-badge span {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1.5px;
}
.hero-decorative-badge strong {
  font-family: var(--font-serif);
  font-size: 1.1rem;
}

/* --- Interactive Coffee Finder Quiz --- */
.quiz-section {
  background-color: var(--bg-secondary);
  position: relative;
}

.quiz-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  position: relative;
}

.quiz-progress-bar {
  height: 4px;
  width: 100%;
  background: var(--bg-secondary);
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 2px;
}
.quiz-progress-fill {
  height: 100%;
  width: 33.33%;
  background: linear-gradient(to right, var(--palette-clay), var(--palette-wine));
  transition: width 0.5s ease;
}

.quiz-step {
  display: none;
  animation: slide-in-quiz 0.5s var(--transition-smooth);
}
.quiz-step.active {
  display: block;
}

.quiz-step h3 {
  font-size: 1.8rem;
  color: var(--palette-dark-burgundy);
  margin-bottom: 30px;
  text-align: center;
}

.quiz-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.quiz-card {
  background: var(--bg-primary);
  border: 2px solid transparent;
  border-radius: var(--border-radius-md);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-bounce);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.quiz-card:hover {
  transform: translateY(-6px);
  border-color: var(--palette-cream);
  box-shadow: var(--shadow-md);
}
.quiz-card.selected {
  border-color: var(--palette-wine);
  background: rgba(109, 41, 50, 0.04);
}
.quiz-card-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  color: var(--palette-wine);
}
.quiz-card h4 {
  font-size: 1.15rem;
  color: var(--palette-dark-burgundy);
  margin-bottom: 8px;
}
.quiz-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--bg-secondary);
  padding-top: 24px;
}

/* Result Page Layout */
.quiz-result-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: center;
  text-align: left;
}

.quiz-result-img-wrapper {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/5;
  background: #ECE5DC;
}
.quiz-result-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quiz-result-details h4 {
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--palette-wine);
  margin-bottom: 8px;
}
.quiz-result-details h3 {
  font-size: 2.2rem;
  color: var(--palette-dark-burgundy);
  margin-bottom: 12px;
}
.quiz-result-details p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 1.05rem;
}
.quiz-result-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}
.quiz-result-tag {
  background: var(--bg-secondary);
  color: var(--palette-dark-burgundy);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
}

/* --- Artisanal Menu Section --- */
.menu-section {
  background-color: var(--bg-primary);
}

.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.menu-tab {
  padding: 10px 24px;
  border-radius: 25px;
  background: var(--bg-secondary);
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
}
.menu-tab:hover {
  background: var(--palette-cream);
  color: var(--palette-dark-burgundy);
}
.menu-tab.active {
  background: var(--palette-dark-burgundy);
  color: var(--palette-cream);
  box-shadow: var(--shadow-sm);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.menu-item {
  background: var(--bg-card);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition-bounce);
  display: flex;
  flex-direction: column;
}
.menu-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--palette-cream);
}

.menu-item-media {
  position: relative;
  width: 100%;
  height: 200px;
  background-color: #ECE5DC;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-item-img {
  transition: opacity 0.3s ease, transform 0.5s var(--transition-smooth);
  opacity: 0;
  transition: 0.75s ease;
}
.menu-item:hover .menu-item-img {
  transform: scale(1.12);
  transition: 0.5s ease;
}
.menu-item-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--bg-glass);
  backdrop-filter: blur(6px);
  color: var(--palette-dark-burgundy);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--palette-cream);
}

.menu-item-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.menu-item-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 8px;
}
.menu-item-title-row h3 {
  font-size: 1.25rem;
  color: var(--palette-dark-burgundy);
  min-width: 0;
}
.menu-item-price {
  font-weight: 700;
  color: var(--palette-wine);
  font-size: 1.15rem;
  flex: 0 0 auto;
  white-space: nowrap;
}

.menu-item-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.menu-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--bg-secondary);
  padding-top: 16px;
}

.menu-item-tags {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.menu-item-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--palette-clay);
  border: 1px solid var(--palette-cream);
  padding: 4px 7px;
  border-radius: 4px;
  line-height: 1;
  white-space: nowrap;
}

.btn-add-to-cart {
  background: var(--palette-cream);
  color: var(--palette-dark-burgundy);
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  cursor: pointer;
  transition: var(--transition-bounce);
}
.btn-add-to-cart:hover {
  background: var(--palette-dark-burgundy);
  color: var(--palette-cream);
  transform: scale(1.1);
}
.btn-add-to-cart svg {
  width: 16px;
  height: 16px;
}

/* --- Cozy Space & Gallery Section --- */
.space-section {
  background: var(--bg-dark);
  color: var(--text-light);
}
.space-section .section-header h2 {
  color: var(--palette-cream);
}
.space-section .section-header p {
  color: var(--palette-clay);
}

.space-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.space-content h3 {
  font-size: 2.2rem;
  color: var(--palette-cream);
  margin-bottom: 20px;
}
.space-content p {
  color: var(--palette-clay);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.space-highlights {
  list-style: none;
  margin-bottom: 36px;
}
.space-highlights li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-weight: 500;
}
.space-highlights li svg {
  color: var(--palette-cream);
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.gallery-item {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  aspect-ratio: 1.2;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color-light);
  background-color: rgba(232, 216, 196, 0.1);
}
.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(31, 7, 9, 0.85) 0%, rgba(31, 7, 9, 0.1) 80%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: var(--transition-smooth);
}
.gallery-overlay h4 {
  font-size: 1.2rem;
  color: var(--palette-cream);
}
.gallery-item:hover .gallery-img {
  transform: scale(1.08);
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* --- Testimonials / Reviews Section --- */
.reviews-section {
  background-color: var(--bg-secondary);
}

.reviews-carousel-wrapper {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}

.reviews-carousel {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.review-slide {
  flex: 0 0 100%;
  width: 100%;
  padding: 0 40px;
  text-align: center;
}

.review-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  position: relative;
}
.review-card::before {
  content: '“';
  position: absolute;
  top: 10px;
  left: 36px;
  font-family: var(--font-serif);
  font-size: 7rem;
  line-height: 1;
  color: var(--palette-cream);
  opacity: 0.35;
}

.review-stars {
  color: var(--accent-gold);
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 4px;
}
.review-stars svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.review-text {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--palette-dark-burgundy);
  line-height: 1.5;
  margin-bottom: 28px;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.review-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--palette-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--palette-dark-burgundy);
  border: 2px solid var(--palette-wine);
}
.review-author-info {
  text-align: left;
}
.review-author-name {
  font-weight: 600;
  color: var(--text-dark);
}
.review-author-title {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--palette-clay);
  cursor: pointer;
  transition: var(--transition-smooth);
}
.carousel-dot.active {
  background: var(--palette-wine);
  transform: scale(1.25);
}

/* --- Contact & Hours Section --- */
.contact-section {
  background-color: var(--bg-primary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
}

.contact-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}
.contact-card h3 {
  font-size: 1.8rem;
  color: var(--palette-dark-burgundy);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--palette-wine);
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--border-radius-sm);
  background: var(--bg-primary);
  border: 1px solid var(--palette-cream);
  color: var(--text-dark);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}
.form-control:focus {
  border-color: var(--palette-wine);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(109, 41, 50, 0.1);
}
textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.info-box {
  background: var(--bg-secondary);
  border-radius: var(--border-radius-md);
  padding: 30px;
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
}
.info-box h4 {
  font-size: 1.25rem;
  color: var(--palette-dark-burgundy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.info-box h4 svg {
  color: var(--palette-wine);
  width: 20px;
  height: 20px;
}
.info-box p {
  color: var(--text-dark);
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.info-box a {
  color: var(--palette-wine);
  font-weight: 700;
  text-decoration: none;
}
.info-box a:hover {
  text-decoration: underline;
}

.map-card {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}
.map-frame {
  display: block;
  width: 100%;
  height: 260px;
  background: #ECE5DC;
}
.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.map-directions-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 20px;
  color: var(--palette-wine);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  background: var(--bg-card);
}
.map-directions-link:hover {
  color: var(--palette-dark-burgundy);
  background: var(--bg-secondary);
}
.map-directions-link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

/* --- Shopping Cart Drawer --- */
.cart-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(31, 7, 9, 0.4);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}
.cart-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  max-width: 100%;
  height: 100%;
  background: var(--bg-card);
  box-shadow: -10px 0 40px rgba(86, 28, 36, 0.15);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 1px solid var(--border-color);
}
.cart-drawer.open {
  right: 0;
}

.cart-header {
  padding: 24px;
  border-bottom: 1px solid var(--bg-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-header h3 {
  font-size: 1.4rem;
  color: var(--palette-dark-burgundy);
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--palette-dark-burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.cart-close-btn:hover {
  background: var(--palette-cream);
}

.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 24px;
}

/* Empty Cart View */
.cart-empty-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--text-muted);
}
.cart-empty-view svg {
  width: 64px;
  height: 64px;
  color: var(--palette-clay);
  margin-bottom: 16px;
  animation: float-gentle 5s ease-in-out infinite;
}
.cart-empty-view p {
  margin-bottom: 24px;
}

/* Cart Item Card */
.cart-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--bg-secondary);
  animation: slide-in-quiz 0.4s var(--transition-smooth);
}
.cart-item-img-wrapper {
  width: 70px;
  height: 70px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  background: #ECE5DC;
  flex-shrink: 0;
}
.cart-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-item-info {
  flex-grow: 1;
}
.cart-item-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--palette-dark-burgundy);
  margin-bottom: 4px;
}
.cart-item-price {
  color: var(--palette-wine);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.cart-item-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.quantity-selector {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border-radius: 20px;
  padding: 2px;
}
.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: bold;
  color: var(--palette-dark-burgundy);
  transition: var(--transition-smooth);
}
.qty-btn:hover {
  background: var(--palette-cream);
}
.qty-val {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0 10px;
}
.cart-item-remove-btn {
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-smooth);
}
.cart-item-remove-btn:hover {
  color: var(--palette-wine);
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--bg-secondary);
  background: var(--bg-primary);
}
.cart-totals-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.95rem;
}
.cart-totals-row.total {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--palette-dark-burgundy);
  border-top: 1px solid rgba(109, 41, 50, 0.1);
  padding-top: 12px;
  margin-top: 12px;
  margin-bottom: 24px;
}

/* Success Modal Overlay */
.success-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}
.success-modal.active {
  opacity: 1;
  visibility: visible;
}
.success-icon {
  width: 80px;
  height: 80px;
  background: rgba(78, 124, 94, 0.1);
  color: var(--accent-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  animation: float-gentle 4s ease-in-out infinite;
}
.success-icon svg {
  width: 40px;
  height: 40px;
}
.success-modal h4 {
  font-size: 1.8rem;
  color: var(--palette-dark-burgundy);
  margin-bottom: 12px;
}
.success-modal p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 30px;
}

/* --- Toast Notification --- */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.toast {
  background: var(--bg-glass-dark);
  backdrop-filter: blur(12px);
  color: var(--text-light);
  border: 1px solid var(--border-color-light);
  padding: 16px 24px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  font-weight: 500;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast-icon {
  color: var(--palette-cream);
  display: flex;
  align-items: center;
}
.toast-icon.success {
  color: var(--accent-success);
}

/* --- Footer --- */
footer {
  background: var(--bg-dark);
  color: var(--palette-cream);
  border-top: 1px solid rgba(232, 216, 196, 0.1);
  padding: 80px 0 40px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand h3 {
  font-size: 1.8rem;
  color: var(--palette-cream);
  margin-bottom: 18px;
}
.footer-brand p {
  color: var(--palette-clay);
  font-size: 0.95rem;
  margin-bottom: 24px;
  max-width: 280px;
}
.social-links {
  display: flex;
  gap: 12px;
}
.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(232, 216, 196, 0.1);
  color: var(--palette-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-bounce);
}
.social-link:hover {
  background: var(--palette-cream);
  color: var(--palette-dark-burgundy);
  transform: translateY(-3px);
}
.social-link svg {
  width: 16px;
  height: 16px;
}

.footer-col h4 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--palette-cream);
  margin-bottom: 24px;
  font-family: var(--font-sans);
}

.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  color: var(--palette-clay);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}
.footer-links a:hover {
  color: var(--palette-cream);
  padding-left: 4px;
}

.footer-newsletter p {
  color: var(--palette-clay);
  font-size: 0.95rem;
  margin-bottom: 18px;
}
.newsletter-form {
  display: flex;
  background: rgba(232, 216, 196, 0.1);
  border-radius: 30px;
  padding: 4px;
  border: 1px solid rgba(232, 216, 196, 0.2);
}
.newsletter-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  padding: 10px 16px;
  color: var(--text-light);
  font-size: 0.9rem;
}
.newsletter-input::placeholder {
  color: var(--palette-clay);
}
.newsletter-btn {
  background: var(--palette-cream);
  color: var(--palette-dark-burgundy);
  border-radius: 25px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-bounce);
}
.newsletter-btn:hover {
  background: var(--bg-primary);
  transform: scale(1.05);
}
.newsletter-btn svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(232, 216, 196, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-bottom p {
  font-size: 0.85rem;
  color: var(--palette-clay);
}
.footer-bottom-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-bottom-links a {
  font-size: 0.85rem;
  color: var(--palette-clay);
}
.footer-bottom-links a:hover {
  color: var(--palette-cream);
}

/* --- Scroll Reveal Framework --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* --- CSS Keyframe Animations --- */
@keyframes float-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes steam-drift {
  0% {
    transform: translateX(-50%) translateY(20px) scale(0.8);
    opacity: 0;
  }
  20% {
    opacity: 0.7;
  }
  80% {
    opacity: 0.2;
  }
  100% {
    transform: translateX(-40%) translateY(-60px) scale(1.3);
    opacity: 0;
  }
}

@keyframes steam-gentle {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(3deg) scale(1.05); }
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse-dot-anim {
  0% {
    box-shadow: 0 0 0 0 rgba(109, 41, 50, 0.5);
    transform: scale(0.95);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(109, 41, 50, 0);
    transform: scale(1);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(109, 41, 50, 0);
    transform: scale(0.95);
  }
}

@keyframes slide-in-quiz {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Media Queries (Mobile & Tablet Responsiveness) --- */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 3.4rem;
  }
  .hero-grid {
    gap: 30px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .section-padding {
    padding: 80px 0;
  }
  .navbar-container {
    padding: 16px 0;
  }
  .nav-actions {
    gap: 14px;
  }
  .btn-nav-order {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-card);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    border-left: 1px solid var(--border-color);
  }
  .nav-links.open {
    right: 0;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
  }
  .hero-content {
    margin: 0 auto;
  }
  .hero-badge {
    justify-content: center;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-media {
    order: -1;
  }
  .space-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .gallery-grid {
    max-width: 600px;
    margin: 0 auto;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 22px;
  }
  .navbar-container {
    padding: 14px 28px;
  }
  header.scrolled .navbar-container {
    padding: 12px 28px;
  }
  .logo {
    gap: 8px;
  }
  .logo-icon svg {
    width: 24px;
    height: 24px;
  }
  .logo-text {
    font-size: 1.15rem;
    letter-spacing: 0;
  }
  .logo-text span {
    font-size: 0.65rem;
    letter-spacing: 1.6px;
    margin-top: -2px;
  }
  .nav-actions {
    gap: 12px;
  }
  .cart-trigger {
    width: 40px;
    height: 40px;
  }
  .cart-trigger svg {
    width: 18px;
    height: 18px;
  }
  .mobile-menu-btn {
    gap: 5px;
    padding: 3px;
  }
  .mobile-menu-btn span {
    width: 22px;
  }
  .hero-content h1 {
    font-size: 2.8rem;
  }
  .quiz-options {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .quiz-container {
    padding: 24px;
  }
  .quiz-result-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .quiz-result-img-wrapper {
    max-width: 280px;
    margin: 0 auto;
  }
  .quiz-result-details h3 {
    font-size: 1.8rem;
  }
  .quiz-result-tags {
    justify-content: center;
  }
  .review-card {
    padding: 30px 20px;
  }
  .review-text {
    font-size: 1.15rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-bottom-links {
    justify-content: center;
  }
  .cart-drawer {
    width: 100%;
  }
}
