/* ==========================================================================
   CAFETERIA EL MOLINO — ARTISANAL TEMPLATE DESIGN SYSTEM
   Exact Palette, Dual-Typography & Depth-of-Field Visual Language
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Palette (Exact Match to Design Specs) */
  --bg-cream: #FAF7F2;
  --bg-cream-alt: #F4EFEB;
  --bg-terracotta: #E5C3B8;
  --bg-terracotta-light: #ECD2C8;
  --bg-terracotta-dark: #D4A89B;
  
  --accent-terracotta: #C86D51;
  --accent-terracotta-hover: #B0573D;
  --accent-terracotta-light: rgba(200, 109, 81, 0.12);
  --accent-terracotta-border: rgba(200, 109, 81, 0.35);

  --text-espresso: #281B17;
  --text-espresso-muted: #5C433C;
  --text-espresso-light: #8A6E65;

  --card-bg: #FFFFFF;
  --card-border: rgba(40, 27, 23, 0.06);

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(40, 27, 23, 0.04);
  --shadow-md: 0 10px 30px -5px rgba(40, 27, 23, 0.07), 0 4px 12px -2px rgba(40, 27, 23, 0.04);
  --shadow-lg: 0 20px 40px -10px rgba(40, 27, 23, 0.12), 0 8px 20px -4px rgba(40, 27, 23, 0.06);
  --shadow-hover: 0 24px 48px -12px rgba(40, 27, 23, 0.16), 0 12px 24px -6px rgba(40, 27, 23, 0.08);

  /* Radii */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-cream);
  color: var(--text-espresso);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  selection-background-color: var(--accent-terracotta);
  selection-color: #FFFFFF;
}

::selection {
  background: var(--accent-terracotta);
  color: #FFFFFF;
}

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

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

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

/* --- Layout Container --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.75rem;
  position: relative;
  z-index: 2;
}

/* --- Typography Utilities --- */
.font-heading {
  font-family: var(--font-heading);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-espresso);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.heading-flourish {
  position: relative;
  display: inline-block;
}

.heading-flourish::after {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--accent-terracotta);
  margin-left: 6px;
  vertical-align: baseline;
}

/* Subtle Icon Divider */
.section-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.section-divider .divider-line {
  height: 1.5px;
  width: 32px;
  background: var(--accent-terracotta);
  opacity: 0.6;
}

.section-divider .divider-icon {
  width: 18px;
  height: 18px;
  color: var(--accent-terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--accent-terracotta-light);
  color: var(--accent-terracotta);
  border: 1px solid var(--accent-terracotta-border);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* --- Floating Out-Of-Focus Coffee Bean Depth Effects --- */
.depth-canvas-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.depth-bean {
  position: absolute;
  pointer-events: none;
  user-select: none;
  border-radius: 50%;
  background-image: url('assets/images/coffee_bean_single.png');
  background-size: cover;
  background-position: center;
  mix-blend-mode: multiply;
  opacity: 0.85;
  transition: transform 0.2s ease-out;
}

/* Depth variations */
.depth-bean.blur-xs {
  filter: blur(1.5px);
  width: 32px;
  height: 42px;
  opacity: 0.65;
  animation: floatSlow 8s ease-in-out infinite;
}

.depth-bean.blur-sm {
  filter: blur(3.5px);
  width: 48px;
  height: 62px;
  opacity: 0.75;
  animation: floatMedium 10s ease-in-out infinite alternate;
}

.depth-bean.blur-md {
  filter: blur(6px);
  width: 72px;
  height: 94px;
  opacity: 0.8;
  animation: floatSlow 12s ease-in-out infinite alternate-reverse;
}

.depth-bean.blur-lg {
  filter: blur(10px);
  width: 110px;
  height: 140px;
  opacity: 0.85;
  animation: floatFast 14s ease-in-out infinite alternate;
}

@keyframes floatSlow {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(8deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes floatMedium {
  0% { transform: translateY(0px) rotate(0deg) scale(1); }
  50% { transform: translateY(-22px) rotate(-12deg) scale(1.03); }
  100% { transform: translateY(0px) rotate(0deg) scale(1); }
}

@keyframes floatFast {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(15deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* --- Header / Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
  border-bottom: 1px solid rgba(40, 27, 23, 0.05);
  transition: all var(--transition-smooth);
}

.site-header.scrolled {
  background: rgba(250, 247, 242, 0.98);
  box-shadow: 0 4px 20px rgba(40, 27, 23, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.site-logo:hover {
  transform: translateY(-2px);
}

.site-logo-img {
  max-height: 68px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-smooth), filter var(--transition-smooth);
}

.site-logo:hover .site-logo-img {
  transform: scale(1.04);
}

.site-logo-footer {
  display: inline-block;
  margin-bottom: 1.2rem;
  transition: transform var(--transition-fast);
}

.site-logo-footer:hover {
  transform: translateY(-2px);
}

.site-logo-footer .site-logo-img {
  max-height: 78px;
}

/* Navigation Links */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-espresso-muted);
  position: relative;
  padding: 0.35rem 0;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-espresso);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-terracotta);
  border-radius: var(--radius-pill);
  transition: width var(--transition-smooth);
}

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

/* CTA Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: all var(--transition-smooth);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-terracotta);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(200, 109, 81, 0.3);
}

.btn-primary:hover {
  background: var(--accent-terracotta-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 109, 81, 0.4);
}

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

.btn-secondary:hover {
  background: var(--text-espresso);
  color: #FFFFFF;
  transform: translateY(-2px);
}

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

.btn-outline-terracotta:hover {
  background: var(--accent-terracotta);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.85rem;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 26px;
  height: 2.5px;
  background: var(--text-espresso);
  border-radius: 2px;
  transition: all var(--transition-smooth);
}

/* Mobile Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 340px;
  height: 100vh;
  background: var(--bg-cream);
  z-index: 200;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: -10px 0 30px rgba(40, 27, 23, 0.15);
  transition: right var(--transition-smooth);
}

.mobile-nav-drawer.open {
  right: 0;
}

.drawer-close {
  align-self: flex-end;
  font-size: 1.5rem;
  color: var(--text-espresso);
  cursor: pointer;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(40, 27, 23, 0.4);
  backdrop-filter: blur(4px);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  padding: 4.5rem 0 6rem;
  overflow: hidden;
  background: var(--bg-cream);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero-title {
  font-size: clamp(2.5rem, 4.5vw, 3.75rem);
  line-height: 1.1;
  margin-bottom: 1.35rem;
  font-weight: 800;
  color: var(--text-espresso);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-espresso-muted);
  max-width: 520px;
  margin-bottom: 2.25rem;
  line-height: 1.6;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}

.hero-badges {
  display: flex;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(40, 27, 23, 0.08);
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.badge-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-terracotta-light);
  color: var(--accent-terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.badge-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-espresso);
  line-height: 1.25;
}

.badge-sub {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-espresso-muted);
}

/* Hero Visual (3D Bags & Depth) */
.hero-visual-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.hero-image-card:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.hero-image-card img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}

.hero-floating-tag {
  position: absolute;
  bottom: 24px;
  left: -20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(40, 27, 23, 0.05);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 5;
  animation: floatSlow 7s ease-in-out infinite alternate;
}

.tag-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-terracotta);
  box-shadow: 0 0 0 4px rgba(200, 109, 81, 0.2);
}

.tag-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-espresso-muted);
}

.tag-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-espresso);
}

/* --- Section Styling: Terracotta & Cream --- */
.section {
  padding: 6.5rem 0;
  position: relative;
}

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

.section-terracotta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

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

/* --- Section 2: Our Story (About Us) --- */
.story-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
}

.story-content {
  position: relative;
  z-index: 3;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 1.75rem;
  color: var(--text-espresso);
}

.story-block {
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
  padding: 1.35rem 1.6rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-sm);
}

.story-block-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-espresso);
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.story-block-title::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-terracotta);
}

.story-block p {
  color: var(--text-espresso);
  font-size: 0.96rem;
  line-height: 1.68;
}

.story-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 800;
  color: var(--accent-terracotta);
  line-height: 1.15;
  margin-bottom: 0.25rem;
  word-break: break-word;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-espresso-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Story Visual Card */
.story-visual-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--card-bg);
  padding: 12px;
}

.story-visual-card img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.story-quote-tag {
  position: absolute;
  bottom: 28px;
  right: 28px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  max-width: 240px;
  border-left: 3px solid var(--accent-terracotta);
}

.story-quote-tag p {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--text-espresso);
  line-height: 1.35;
}

/* --- Section 3: Pastry (Specialists in Celebration) --- */
.pastry-header-wrap {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.pastry-filter-nav {
  display: inline-flex;
  background: var(--bg-cream-alt);
  padding: 0.35rem;
  border-radius: var(--radius-pill);
  margin-top: 1.75rem;
  border: 1px solid rgba(40, 27, 23, 0.06);
}

.filter-btn {
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-espresso-muted);
  transition: all var(--transition-fast);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--card-bg);
  color: var(--text-espresso);
  box-shadow: var(--shadow-sm);
}

.filter-btn.active {
  color: var(--accent-terracotta);
}

/* Pastry Grid */
.pastry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 2rem;
}

.pastry-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--card-border);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.pastry-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.pastry-img-box {
  position: relative;
  height: 240px;
  overflow: hidden;
}

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

.pastry-card:hover .pastry-img-box img {
  transform: scale(1.06);
}

.pastry-tag-category {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-terracotta);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pastry-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pastry-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.pastry-title {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-espresso);
}

.pastry-price {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent-terracotta);
  white-space: nowrap;
}

.pastry-desc {
  font-size: 0.88rem;
  color: var(--text-espresso-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.pastry-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(40, 27, 23, 0.06);
}

.pastry-notes {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-espresso-light);
}

.pastry-order-btn {
  padding: 0.45rem 1rem;
  background: var(--accent-terracotta-light);
  color: var(--accent-terracotta);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.pastry-order-btn:hover {
  background: var(--accent-terracotta);
  color: #FFFFFF;
}

/* Custom Cake Banner */
.custom-cake-banner {
  margin-top: 3.5rem;
  background: linear-gradient(135deg, #F5ECE8 0%, #EAD7CE 100%);
  border-radius: var(--radius-xl);
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(200, 109, 81, 0.2);
}

.cake-banner-content h3 {
  font-size: 1.65rem;
  margin-bottom: 0.5rem;
}

.cake-banner-content p {
  color: var(--text-espresso-muted);
  font-size: 0.95rem;
  max-width: 600px;
}

/* --- Section 4: The El Molino Gallery (Pictures Bento Grid) --- */
.gallery-header-wrap {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3.5rem;
}

.gallery-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 240px;
  gap: 1.5rem;
}

.bento-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  background: #281B17;
}

.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow), opacity var(--transition-smooth);
}

.bento-item:hover img {
  transform: scale(1.08);
  opacity: 0.88;
}

/* Bento Grid Spans */
.bento-col-8 {
  grid-column: span 8;
  grid-row: span 2;
}

.bento-col-4 {
  grid-column: span 4;
  grid-row: span 1;
}

.bento-col-4-tall {
  grid-column: span 4;
  grid-row: span 2;
}

.bento-col-6 {
  grid-column: span 6;
  grid-row: span 1;
}

.bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(40, 27, 23, 0.75) 0%, transparent 60%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: opacity var(--transition-smooth);
}

.bento-item:hover .bento-overlay {
  opacity: 1;
}

.bento-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.25rem;
}

.bento-caption {
  font-size: 0.82rem;
  color: #ECD2C8;
}

/* --- Section 5: Specialty Coffee & Equipment --- */
.coffee-experience-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.coffee-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.coffee-item-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--card-bg);
  padding: 1.35rem 1.6rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--card-border);
  transition: all var(--transition-smooth);
}

.coffee-item-card:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-terracotta-border);
}

.coffee-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-terracotta-light);
  color: var(--accent-terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.coffee-item-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.coffee-item-content p {
  font-size: 0.88rem;
  color: var(--text-espresso-muted);
  line-height: 1.5;
}

/* Barista Picture Card */
.coffee-visual-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.equipment-visual-card {
  position: relative;
  background: var(--card-bg);
  padding: 12px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--card-border);
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.equipment-visual-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.equipment-visual-card img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.equipment-spec-badge {
  position: absolute;
  bottom: 28px;
  left: 28px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.spec-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-terracotta);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

/* --- Section 6: Contact Us --- */
.contact-header-wrap {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1040px;
  margin: 0 auto;
}

.contact-action-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--card-border);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.contact-action-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.contact-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-terracotta-light);
  color: var(--accent-terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  transition: transform var(--transition-smooth);
}

.contact-action-card:hover .contact-card-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--accent-terracotta);
  color: #FFFFFF;
}

.contact-card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-card-detail {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-terracotta);
  margin-bottom: 0.45rem;
}

.contact-card-sub {
  font-size: 0.85rem;
  color: var(--text-espresso-muted);
  margin-bottom: 1.75rem;
}

/* Location and Hours Card */
.hours-info-bar {
  margin-top: 3.5rem;
  background: var(--bg-cream);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2.5rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  border: 1px solid rgba(40, 27, 23, 0.06);
}

.hours-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hours-icon {
  color: var(--accent-terracotta);
  font-size: 1.25rem;
}

.hours-text strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-espresso);
}

.hours-text span {
  font-size: 0.8rem;
  color: var(--text-espresso-muted);
  line-height: 1.4;
  display: block;
}

/* --- Section 7: Global Footer --- */
.site-footer {
  background-color: var(--bg-terracotta);
  color: var(--text-espresso);
  padding: 5rem 0 2.5rem;
  border-top: 1px solid rgba(40, 27, 23, 0.08);
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  font-size: 0.95rem;
  color: var(--text-espresso-muted);
  margin-top: 1.1rem;
  max-width: 440px;
  line-height: 1.65;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-espresso);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-espresso-muted);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-espresso);
  padding-left: 4px;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.newsletter-input {
  flex-grow: 1;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(40, 27, 23, 0.15);
  background: rgba(255, 255, 255, 0.75);
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text-espresso);
  outline: none;
  transition: border-color var(--transition-fast);
}

.newsletter-input:focus {
  border-color: var(--accent-terracotta);
  background: #FFFFFF;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(40, 27, 23, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-espresso-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

/* --- Modals & Lightbox --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(40, 27, 23, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  background: var(--card-bg);
  width: 100%;
  max-width: 580px;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-hover);
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: transform var(--transition-smooth);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-backdrop.active .modal-window {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-espresso);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--bg-terracotta);
}

/* Lightbox Modal */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 10, 0.9);
  backdrop-filter: blur(12px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.lightbox-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.lightbox-img-wrap {
  width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.lightbox-img-wrap img {
  width: 100%;
  height: 100%;
  max-height: 75vh;
  object-fit: contain;
}

.lightbox-caption-box {
  margin-top: 1.25rem;
  text-align: center;
  color: #FAF7F2;
}

.lightbox-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
}

.lightbox-sub {
  font-size: 0.9rem;
  color: #ECD2C8;
}

/* Form Elements inside Modal */
.form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-espresso);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(40, 27, 23, 0.15);
  background: var(--bg-cream);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-espresso);
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  border-color: var(--accent-terracotta);
  background: #FFFFFF;
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .story-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .coffee-experience-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .bento-col-8 {
    grid-column: span 12;
    grid-row: span 2;
  }

  .bento-col-4, .bento-col-4-tall, .bento-col-6 {
    grid-column: span 6;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .main-nav, .header-cta-btn {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-badges {
    flex-direction: column;
    gap: 1rem;
  }

  .bento-col-4, .bento-col-4-tall, .bento-col-6 {
    grid-column: span 12;
    grid-row: span 1;
  }

  .custom-cake-banner {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
