/* ==========================================================================
   SIVA BAKERY — ARTISANAL HEARTH DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  --bg-flour: #faf7f2;
  --bg-warm: #f4eee5;
  --bg-card: #ffffff;
  --terracotta: #b85028;
  --terracotta-hover: #9c3f19;
  --terracotta-light: #f6e8e2;
  --espresso: #1f1612;
  --sourdough-gold: #d99b26;
  --sand-border: #e6dccf;
  --text-main: #2c221e;
  --text-muted: #73675e;
  --text-light: #faf7f2;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --shadow-sm: 0 4px 12px rgba(31, 22, 18, 0.04);
  --shadow-md: 0 12px 32px rgba(31, 22, 18, 0.08);
  --shadow-lg: 0 20px 48px rgba(31, 22, 18, 0.12);
  --glass-shadow: 0 16px 36px rgba(184, 80, 40, 0.06);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-flour);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

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

button {
  cursor: pointer;
}

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

.container {
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
}

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

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

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

.margin-bottom-lg {
  margin-bottom: 48px;
}

/* --- Custom Cursor Glow --- */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(184, 80, 40, 0.25);
  border: 1px solid rgba(184, 80, 40, 0.4);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
  backdrop-filter: blur(2px);
}

.custom-cursor.active {
  width: 48px;
  height: 48px;
  background: rgba(217, 155, 38, 0.3);
  border-color: rgba(217, 155, 38, 0.6);
}

/* --- WhatsApp Floating Action Button (+94 72 3554 729) --- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 500;
  width: 54px;
  height: 54px;
  background-color: #25D366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #20ba5a;
}

.whatsapp-icon {
  width: 32px;
  height: 32px;
}

.whatsapp-tooltip {
  position: absolute;
  left: 64px;
  background: rgba(31, 22, 18, 0.9);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateX(-8px);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* --- Audio Ambiance Toggle --- */
.audio-toggle {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(31, 22, 18, 0.85);
  color: var(--bg-flour);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.audio-toggle:hover {
  transform: translateY(-2px) scale(1.03);
  background: var(--terracotta);
}

.audio-icon {
  width: 20px;
  height: 20px;
}

.sound-wave {
  animation: pulseWave 1.5s infinite alternate ease-in-out;
}

.sound-wave.wave-2 {
  animation-delay: 0.4s;
}

@keyframes pulseWave {
  0% { opacity: 0.3; }
  100% { opacity: 1; }
}

.audio-label {
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --- Sticky Glassmorphic Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 500;
  padding: 20px 0;
  transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  padding: 12px 0;
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--sand-border);
  box-shadow: var(--shadow-sm);
}

.header-container {
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.2s ease;
}

.logo-img {
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.brand-logo:hover .logo-img {
  transform: scale(1.05);
}

.footer-logo-img {
  height: 56px;
  filter: brightness(1.1);
}

.brand-logo:hover {
  opacity: 0.85;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-main);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

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

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

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

.admin-nav-tag {
  color: var(--sourdough-gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--espresso);
  transition: 0.3s ease;
}

/* --- Buttons System --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  transition: all var(--transition-normal);
}

.btn-primary {
  background-color: var(--espresso);
  color: var(--bg-flour);
}

.btn-primary:hover {
  background-color: var(--terracotta);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(184, 80, 40, 0.25);
}

.btn-terracotta {
  background-color: var(--terracotta);
  color: var(--bg-flour);
}

.btn-terracotta:hover {
  background-color: var(--terracotta-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(184, 80, 40, 0.3);
}

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

.btn-outline:hover {
  background-color: var(--espresso);
  color: var(--bg-flour);
  transform: translateY(-2px);
}

.btn-light {
  background-color: var(--bg-flour);
  color: var(--terracotta);
}

.btn-light:hover {
  background-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--bg-flour);
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--bg-flour);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.775rem;
}

.btn-full {
  width: 100%;
}

.btn-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--terracotta);
  letter-spacing: 0.05em;
  padding: 0;
  margin-top: 12px;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.btn-text:hover {
  color: var(--espresso);
  transform: translateX(4px);
}

/* --- View Routing & Page Transitions --- */
.page-container {
  min-height: 80vh;
  margin-top: 80px;
}

.page-view {
  display: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.page-view.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* --- Section Typography Tokens --- */
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--terracotta);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--espresso);
}

.section-title em {
  font-style: italic;
  color: var(--terracotta);
}

.body-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 16px;
}

.glassmorphism {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid var(--sand-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
}

/* ========================================== */
/* VIEW 1: HOME PAGE STYLES & VIDEO BACKGROUND */
/* ========================================== */
.hero-section {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
  overflow: hidden;
  background-color: var(--espresso);
}

/* HTML5 Background Video */
.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  filter: brightness(0.75) contrast(1.05);
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(31, 22, 18, 0.45) 0%,
    rgba(184, 80, 40, 0.15) 50%,
    rgba(31, 22, 18, 0.45) 100%
  );
}

.hero-content {
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.badge-subtitle {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--terracotta);
  margin-bottom: 16px;
  display: inline-block;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--espresso);
}

.hero-title.text-light {
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-title em {
  font-style: italic;
  color: var(--sourdough-gold);
}

.hero-desc {
  max-width: 480px;
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 24px 0 36px 0;
  line-height: 1.6;
}

.hero-desc.text-light-sub {
  color: rgba(250, 247, 242, 0.88);
}

/* Floating Stamp Element */
.floating-stamp {
  position: absolute;
  right: 12%;
  bottom: 20%;
  width: 150px;
  height: 150px;
  background-color: var(--terracotta);
  color: var(--bg-flour);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  z-index: 10;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-stamp:hover {
  transform: scale(1.1) rotate(10deg);
}

.stamp-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rotating-text {
  width: 100%;
  height: 100%;
  animation: spinText 16s linear infinite;
  fill: var(--bg-flour);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 2px;
}

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

.stamp-icon {
  position: absolute;
  font-size: 1.8rem;
}

/* Signature Crumb Section */
.signature-section {
  background-color: var(--bg-flour);
}

.section-header-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-end;
  margin-bottom: 60px;
}

.section-intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.signature-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
}

.signature-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--sand-border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.card-large .card-image-wrap {
  height: 380px;
}

.card-small .card-image-wrap {
  height: 180px;
}

.card-image-wrap {
  position: relative;
  overflow: hidden;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  transition: transform 0.8s ease;
}

.signature-card:hover .card-image-wrap img {
  transform: scale(1.06);
}

.card-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(31, 22, 18, 0.75);
  color: var(--bg-flour);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
}

.card-content {
  padding: 28px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.card-meta h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--espresso);
}

.card-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--terracotta);
}

.signature-column {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* Meditation Section */
.meditation-section {
  background-color: var(--bg-warm);
}

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

.meditation-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.meditation-image-wrap img {
  width: 100%;
  height: 500px;
}

.image-experience-pill {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(250, 247, 242, 0.9);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--espresso);
  backdrop-filter: blur(10px);
}

.stats-row {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--sand-border);
}

.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--terracotta);
  line-height: 1;
}

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

.stat-divider {
  width: 1px;
  height: 60px;
  background-color: var(--sand-border);
}

/* Visit the Hearth Section / Official Map Wrapper */
.hearth-location-section {
  background-color: var(--bg-flour);
}

.location-card-container {
  position: relative;
  height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-iframe-wrapper {
  width: 100%;
  height: 100%;
}

.map-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.location-details-box {
  position: absolute;
  top: 40px;
  right: 40px;
  width: 380px;
  padding: 36px;
  z-index: 10;
}

.location-details-box h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 24px;
  color: var(--espresso);
}

.info-block {
  margin-bottom: 20px;
}

.info-block strong {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 4px;
}

.info-block p {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.5;
}


/* ========================================== */
/* VIEW 2: OUR STORY PAGE STYLES              */
/* ========================================== */
.hero-story {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-bg-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
}

.hero-bg-overlay.dark {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(31, 22, 18, 0.65);
}

.hero-content.centered {
  text-align: center;
}

.text-gold { color: var(--sourdough-gold); }
.text-light { color: var(--bg-flour); }

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

.story-img-col {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.story-img-col img {
  width: 100%;
  height: 480px;
}

.story-floating-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: var(--terracotta);
  color: var(--bg-flour);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* Ritual Cards */
.bg-cream {
  background-color: var(--bg-warm);
}

.ritual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.ritual-card {
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--sand-border);
  position: relative;
  transition: transform var(--transition-normal);
}

.ritual-card:hover {
  transform: translateY(-6px);
}

.ritual-img-wrap {
  height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
}

.ritual-img-wrap img {
  width: 100%;
  height: 100%;
}

.ritual-number {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--sourdough-gold);
  margin-bottom: 8px;
}

.ritual-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--espresso);
}

.ritual-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Team Showcase */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.team-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--sand-border);
  box-shadow: var(--shadow-sm);
}

.team-photo {
  height: 340px;
}

.team-photo img {
  width: 100%;
  height: 100%;
}

.team-info {
  padding: 28px;
}

.team-info h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--espresso);
}

.team-role {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--terracotta);
  margin: 6px 0 16px 0;
}

/* CTA Terracotta Banner */
.cta-banner-terracotta {
  background-color: var(--terracotta);
  color: var(--bg-flour);
  padding: 80px 0;
  text-align: center;
}

.cta-content {
  max-width: 640px;
  margin: 0 auto;
}

.cta-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.cta-content h2 {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 400;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 32px;
}

.cta-btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}


/* ========================================== */
/* VIEW 3: GALLERY PAGE STYLES                */
/* ========================================== */
.gallery-header-section {
  text-align: center;
  padding-top: 60px;
  padding-bottom: 40px;
}

.gallery-page-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 500;
  color: var(--espresso);
  margin-bottom: 32px;
}

.filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 24px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: var(--radius-pill);
  border: 1px solid var(--sand-border);
  color: var(--text-muted);
  background-color: var(--bg-card);
  transition: all var(--transition-fast);
}

.tab-btn:hover, .tab-btn.active {
  background-color: var(--espresso);
  color: var(--bg-flour);
  border-color: var(--espresso);
}

/* Masonry Gallery Grid */
.masonry-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--bg-card);
  border: 1px solid var(--sand-border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.gallery-item.hide {
  display: none;
  opacity: 0;
}

.gallery-img-wrap {
  position: relative;
  height: 320px;
  overflow: hidden;
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(31, 22, 18, 0.88) 0%, rgba(31, 22, 18, 0.2) 60%, transparent 100%);
  color: var(--bg-flour);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.item-cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--sourdough-gold);
  margin-bottom: 6px;
}

.gallery-overlay h4 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.2;
}

.gallery-overlay p {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-top: 4px;
}

.btn-icon.view-lightbox-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  color: var(--bg-flour);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.taste-art-banner {
  background-color: var(--bg-warm);
}

.taste-art-box {
  padding: 60px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.taste-art-box h2 {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--espresso);
  margin-bottom: 16px;
}

.taste-art-box p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.btn-group {
  display: flex;
  gap: 20px;
  justify-content: center;
}


/* ========================================== */
/* VIEW 4: ORDER NOW PAGE STYLES              */
/* ========================================== */
.order-header-section {
  padding-top: 60px;
  padding-bottom: 40px;
}

.order-page-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 500;
  color: var(--espresso);
}

.order-subtitle {
  max-width: 600px;
  margin: 16px auto 0 auto;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.order-layout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  margin-bottom: 80px;
}

.inquiry-form-card {
  padding: 44px;
}

.inquiry-form-card h3 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--espresso);
}

.form-subtext {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 4px 0 32px 0;
}

.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--espresso);
}

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--sand-border);
  background-color: var(--bg-flour);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(184, 80, 40, 0.15);
  background-color: #ffffff;
}

.error-msg {
  font-size: 0.75rem;
  color: #c93b2b;
  display: none;
}

.form-group.has-error input, .form-group.has-error textarea {
  border-color: #c93b2b;
}

.form-group.has-error .error-msg {
  display: block;
}

.interest-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill-btn {
  padding: 10px 18px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: var(--radius-pill);
  border: 1px solid var(--sand-border);
  background-color: var(--bg-flour);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.pill-btn:hover, .pill-btn.active {
  background-color: var(--terracotta);
  color: var(--bg-flour);
  border-color: var(--terracotta);
}

.order-info-column {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.visit-card {
  padding: 36px;
}

.visit-card h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin-bottom: 24px;
}

.visit-detail {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.detail-icon {
  font-size: 1.5rem;
}

.visit-detail strong {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--terracotta);
  margin-bottom: 4px;
}

.visit-detail p {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.5;
}

.storefront-photo-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 280px;
}

.storefront-photo-card img {
  width: 100%;
  height: 100%;
}

.photo-floating-pill {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(250, 247, 242, 0.9);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.chef-quote-block {
  padding: 60px 0;
  border-top: 1px solid var(--sand-border);
}

.quote-text {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-style: italic;
  color: var(--espresso);
  max-width: 760px;
  margin: 0 auto 16px auto;
}

.quote-author {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--terracotta);
}


/* --- Global Footer --- */
.site-footer {
  background-color: var(--espresso);
  color: var(--bg-flour);
  padding: 80px 0 40px 0;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand-col .brand-logo {
  color: var(--bg-flour);
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 0.95rem;
  opacity: 0.7;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--sourdough-gold);
  margin-bottom: 20px;
}

.footer-col p {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background-color: var(--terracotta);
  border-color: var(--terracotta);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  opacity: 0.5;
}


/* --- Modal & Lightbox Styles --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 22, 18, 0.75);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

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

.modal-card {
  background-color: var(--bg-flour);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: scale(0.92);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: var(--espresso);
  line-height: 1;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast-item {
  background: var(--espresso);
  color: var(--bg-flour);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--terracotta);
  animation: slideInToast 0.4s ease forwards;
}

@keyframes slideInToast {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}


/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .section-header-split, .signature-grid, .meditation-grid, .story-split-grid, .team-grid, .order-layout-grid, .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .floating-stamp {
    display: none;
  }
  
  .masonry-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-flour);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--sand-border);
  }

  .main-nav.open {
    display: flex;
  }

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

  .ritual-grid, .masonry-gallery {
    grid-template-columns: 1fr;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .location-details-box {
    position: relative;
    top: 0; right: 0;
    width: 100%;
    border-radius: 0;
  }

  .location-card-container {
    height: auto;
  }
}
