/* =========================================
   VELVET BREW - CSS
   ========================================= */

/* --- CSS VARIABLES --- */
:root {
  /* Colors */
  --bg-color: #FAF7F2;      /* Off-white background */
  --primary: #6F4E37;       /* Coffee brown */
  --primary-light: #8B6B53;
  --accent-1: #E6CBA8;      /* Beige */
  --accent-2: #D9A5B3;      /* Dusty pink */
  --text-main: #332B25;     /* Dark brown for text */
  --text-muted: #6B5E54;    /* Lighter brown/grey text */
  --white: #FFFFFF;
  --card-bg: rgba(255, 255, 255, 0.6);
  
  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  
  /* Radii & Shadows */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  
  --shadow-soft: 0 10px 30px rgba(111, 78, 55, 0.08);
  --shadow-hover: 0 20px 40px rgba(111, 78, 55, 0.12);
  --shadow-nav: 0 4px 20px rgba(0, 0, 0, 0.03);
  
  /* Transitions */
  --trans-fast: 0.2s ease-out;
  --trans-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth; /* Smooth scrolling enabled */
}

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

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

ul {
  list-style: none;
}

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

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

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

h1 { font-size: clamp(3rem, 8vw, 5.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: 1.5rem; }

p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: var(--space-sm);
}

/* --- LAYOUT --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.section {
  padding: var(--space-xl) 0;
}

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

.section-eyebrow {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.section-title {
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  max-width: 600px;
  margin: 0 auto;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 1rem;
  transition: all var(--trans-fast);
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(111, 78, 55, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px) scale(1.03); /* Slight scale */
  box-shadow: 0 6px 20px rgba(111, 78, 55, 0.3);
}

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

.btn-outline:hover {
  background-color: var(--accent-1);
  border-color: var(--accent-1);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* --- NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 100;
  transition: all var(--trans-normal);
}

.navbar.scrolled {
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 0;
  box-shadow: var(--shadow-nav);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.8rem;
  font-weight: 700;
  z-index: 101;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--trans-fast);
  position: relative;
  padding: 0.5rem;
  display: inline-block;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-2);
  transition: width var(--trans-fast);
}

.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }

.nav-cart {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: transform var(--trans-fast);
  z-index: 101;
}

.nav-cart:hover {
  transform: scale(1.1);
  color: var(--primary);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--accent-2);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-hamburger {
  display: none;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 101;
}

.nav-hamburger span {
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: var(--trans-fast);
}

.nav-hamburger span:nth-child(1) { top: 0; }
.nav-hamburger span:nth-child(2) { top: 9px; }
.nav-hamburger span:nth-child(3) { top: 18px; }

.nav-hamburger.active span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { top: 9px; transform: rotate(-45deg); }


/* --- CART SIDEBAR --- */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--trans-normal);
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--bg-color);
  z-index: 1001;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: var(--trans-normal);
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

.cart-overlay.active { opacity: 1; visibility: visible; }
.cart-sidebar.active { right: 0; }

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(111, 78, 55, 0.1);
}

.cart-header h3 { font-size: 1.5rem; }
.cart-header button { font-size: 1.5rem; color: var(--text-muted); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: var(--white);
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.cart-item img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.cart-item-details { flex: 1; }
.cart-item-title { font-weight: 600; color: var(--primary); margin-bottom: 0.2rem; }
.cart-item-price { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0;}

.cart-item-remove {
  color: #ff6b6b;
  font-size: 0.85rem;
  margin-top: 0.3rem;
  display: inline-block;
  cursor: pointer;
}

.cart-footer {
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(111, 78, 55, 0.1);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary);
}

/* --- HERO --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
}

.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: slowZoom 20s infinite alternate linear;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(51,43,37,0.3) 0%, rgba(51,43,37,0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 5%;
}

.hero-eyebrow {
  color: var(--accent-1);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.hero-title {
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero-tagline {
  color: rgba(255,255,255,0.9);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  margin-bottom: 2.5rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--white);
  opacity: 0.8;
  animation: bounce 2s infinite;
  transition: opacity var(--trans-fast);
}

.hero-scroll:hover { opacity: 1; }

@keyframes slowZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-15px) translateX(-50%); }
  60% { transform: translateY(-7px) translateX(-50%); }
}

/* --- MENU --- */
.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255,255,255,0.5);
  transition: all var(--trans-fast);
}

.tab-btn:hover, .tab-btn.active {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(111, 78, 55, 0.15);
}

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

.menu-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.8);
  transition: all var(--trans-normal);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  animation: cardAppear 0.5s forwards ease-out;
}

@keyframes cardAppear {
  to { opacity: 1; transform: translateY(0); }
}

.menu-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  background: var(--white);
}

.menu-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  transition: transform var(--trans-slow);
}

.menu-card:hover .menu-card-img {
  transform: scale(1.03);
}

.menu-card-img-wrap {
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}

.menu-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.menu-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.menu-card-title {
  font-size: 1.25rem;
  font-family: var(--font-heading);
}

.menu-card-price {
  font-weight: 600;
  color: var(--primary);
  font-size: 1.1rem;
}

.menu-card-desc {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  flex: 1;
}

/* --- ABOUT --- */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-md);
}

.about-image img {
  border-radius: var(--radius-md);
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-soft);
}

.about-img-accent {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--accent-1);
  border-radius: var(--radius-md);
  z-index: 1;
}

.about-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--white);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

/* --- GALLERY --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 250px;
  gap: 1.5rem;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--trans-slow);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

/* --- TESTIMONIALS --- */
.testimonials-section {
  background-color: var(--white);
}

.testimonials-slider {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform var(--trans-normal);
}

.testimonial-card {
  min-width: 100%;
  padding: 2rem;
  text-align: center;
}

.stars {
  color: var(--accent-1);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
}

.testimonial-card p {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 2rem;
  font-family: var(--font-heading);
}

.reviewer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.reviewer img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.reviewer div {
  text-align: left;
}

.reviewer span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.slider-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-color);
  color: var(--primary);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans-fast);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.slider-btn:hover {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.1);
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #E0D5CC;
  cursor: pointer;
  transition: var(--trans-fast);
}

.dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

/* --- CONTACT --- */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 4rem;
  box-shadow: var(--shadow-soft);
}

.contact-list {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-list span {
  font-size: 1.5rem;
  margin-top: 0.2rem;
}

.contact-list p {
  margin: 0;
  font-size: 0.95rem;
}

.contact-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 350px;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.05);
}

/* --- FOOTER --- */
.footer {
  background: var(--primary);
  color: var(--accent-1);
  padding: 4rem 0 2rem;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-brand .nav-logo {
  color: var(--white);
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  transition: color var(--trans-fast);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-copy {
  margin-top: 2rem;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* --- UTILITIES & ANIMATIONS --- */
/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--primary);
  color: var(--white);
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transition: all var(--trans-normal);
  z-index: 2000;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
  .about-container, .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-image { order: -1; }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-hamburger { display: block; }
  
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 70%; height: 100vh;
    background: rgba(250, 247, 242, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--trans-normal);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  }
  
  .nav-links.active { right: 0; }
  .nav-links li { margin: 1rem 0; }
  
  .hero-title { font-size: 3.5rem; }
  
  .contact-container { padding: 2rem; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.tall, .gallery-item.wide { grid-column: auto; grid-row: auto; }
  .contact-btns { flex-direction: column; }
  .btn-full-mobile { width: 100%; }
}
