@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

/* --- DESIGN SYSTEM & CSS VARIABLES --- */
:root {
  --primary-color: #8c6239; /* Warm Milk Tea / Cacao Brown */
  --primary-hover: #704e2d;
  --primary-glow: rgba(140, 98, 57, 0.15);
  --bg-color: #FDFBF7; /* Bright warm milk cream background */
  --card-bg: rgba(255, 255, 255, 0.85);
  --card-glow: rgba(253, 251, 247, 0.95);
  --text-dark: #3c2f2f; /* Deep warm espresso coffee bean */
  --text-muted: #7a6f68; /* Soft warm coffee dust gray */
  --border-color: rgba(140, 98, 57, 0.08);
  --border-hover: rgba(140, 98, 57, 0.25);
  --white: #ffffff;
  --accent-color: #f7d070; /* Sweet warm butter yellow */
  
  --font-serif: 'Outfit', sans-serif; /* Modern rounded feel */
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-handwritten: 'Caveat', cursive; /* Cute chalk sticker handwriting */
  
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s ease;
  
  --shadow-sm: 0 4px 10px rgba(140, 98, 57, 0.02);
  --shadow-md: 0 10px 25px rgba(140, 98, 57, 0.04);
  --shadow-lg: 0 20px 40px rgba(140, 98, 57, 0.06);
  --shadow-inset: inset 0 2px 4px 0 rgba(0, 0, 0, 0.01);
  
  --nav-height: 80px;
  --container-width: 1200px;
}

/* --- BASE STYLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-size: 16px;
  overflow-x: hidden;
}

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

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: rgba(140, 98, 57, 0.3);
  border-radius: 5px;
  border: 2px solid var(--bg-color);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Selection highlight */
::selection {
  background: var(--primary-glow);
  color: var(--text-dark);
}

/* Skip link for Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--primary-color);
  color: var(--white);
  padding: 10px 20px;
  z-index: 1000;
  transition: top 0.2s;
  text-decoration: none;
  font-weight: 500;
}
.skip-link:focus {
  top: 0;
}

/* --- REUSABLE UTILITIES --- */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

.section {
  padding: 80px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px auto;
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-smooth);
}

.section-header.revealed {
  opacity: 1;
  transform: translateY(0);
}

.section-subtitle {
  font-family: var(--font-sans);
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.section-title span {
  font-style: italic;
  font-weight: 400;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Divider Decoration */
.gold-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  margin: 20px auto 0 auto;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: none; /* Soft title case instead of harsh uppercase */
  letter-spacing: 0.5px;
  border-radius: 50px; /* Cozy pill shape */
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  gap: 8px; /* Gap between icon and text */
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  border: 1px solid var(--primary-color);
  box-shadow: 0 10px 20px rgba(140, 98, 57, 0.12);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: var(--white);
  border-color: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(140, 98, 57, 0.22);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.8);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--primary-color);
  background-color: var(--white);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-gold {
  background-color: var(--primary-color);
  color: var(--white);
  border: 1px solid var(--primary-color);
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-gold:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

/* --- NAVIGATION HEADER --- */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 100;
  transition: var(--transition-smooth);
  background-color: rgba(250, 243, 235, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

.header-nav.scrolled {
  background-color: rgba(250, 243, 235, 0.9);
  height: 70px;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-family: var(--font-handwritten);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--text-dark); /* High contrast deep espresso */
  letter-spacing: -0.5px;
  text-transform: none;
  transition: var(--transition-fast);
  line-height: 1;
}

.nav-logo span {
  color: var(--text-dark);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
  align-items: center;
}

.nav-item a {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: var(--transition-fast);
  position: relative;
  padding: 8px 0;
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--primary-color);
  transition: var(--transition-fast);
}

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

.nav-item a:hover,
.nav-item a.active {
  color: var(--primary-color);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  position: relative;
  z-index: 101;
}

.mobile-nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-dark);
  position: absolute;
  left: 0;
  transition: var(--transition-fast);
}

.mobile-nav-toggle span:nth-child(1) { top: 4px; }
.mobile-nav-toggle span:nth-child(2) { top: 11px; }
.mobile-nav-toggle span:nth-child(3) { top: 18px; }

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

/* --- HERO SECTION --- */
.hero {
  height: 100vh;
  min-height: 700px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #1e140e;
}

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

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(30, 20, 14, 0.4) 0%, rgba(30, 20, 14, 0.85) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: var(--white);
  max-width: 750px;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
}

.hero-subtitle {
  font-size: 0.9rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 24px;
  display: block;
  font-weight: 600;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 4.5rem;
  line-height: 1.1;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-title span {
  font-style: italic;
  font-weight: 400;
}

.hero-description {
  font-size: 1.15rem;
  color: rgba(250, 243, 235, 0.85);
  margin-bottom: 40px;
  max-width: 600px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 20px;
}

.hero-actions .btn-primary {
  background-color: var(--accent-color); /* Bright sweet warm butter yellow pops beautifully! */
  border-color: var(--accent-color);
  color: var(--text-dark);
  box-shadow: 0 10px 25px rgba(247, 208, 112, 0.25);
}

.hero-actions .btn-primary:hover {
  background-color: var(--white);
  border-color: var(--white);
  color: var(--text-dark);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(255, 255, 255, 0.35);
}

.hero-actions .btn-secondary {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-actions .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(255, 255, 255, 0.15);
}

/* Scroll Down Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition-fast);
}

.scroll-indicator:hover {
  color: var(--primary-color);
}

.scroll-indicator span {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-indicator span::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background: var(--primary-color);
  animation: scrollDown 2s infinite ease-in-out;
}

/* --- OUR STORY SECTION --- */
.story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.story-text {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-smooth);
}

.story-text.revealed {
  opacity: 1;
  transform: translateY(0);
}

.story-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.story-features {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.feature-item h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-item h3 span {
  color: var(--primary-color);
  font-size: 1.4rem;
}

.feature-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.story-image {
  position: relative;
  opacity: 0;
  transform: scale(0.95);
  transition: var(--transition-smooth);
}

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

.story-img-wrapper {
  position: relative;
  padding-bottom: 125%; /* Golden ratio aspect */
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border-radius: 24px;
}

.story-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.story-img-wrapper:hover img {
  transform: scale(1.05);
}

.story-image-overlay {
  position: absolute;
  bottom: -30px;
  left: -30px;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 30px;
  max-width: 260px;
  box-shadow: var(--shadow-lg);
  z-index: 2;
  border-radius: 20px;
}

.story-image-overlay h4 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 8px;
  line-height: 1.2;
}

.story-image-overlay p {
  font-size: 0.85rem;
  opacity: 0.9;
  letter-spacing: 0.5px;
  text-transform: none;
  margin: 0;
}

/* --- SEASONAL FAVORITES --- */
.favorites {
  background-color: rgba(255, 255, 255, 0.4);
}

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

.favorite-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 45px 30px 40px;
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(40px);
  border-radius: 24px; /* Soft cozy rounded corner */
  box-shadow: var(--shadow-md);
}

.favorite-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.favorite-card:nth-child(2) {
  transition-delay: 0.15s;
}
.favorite-card:nth-child(3) {
  transition-delay: 0.3s;
}

.favorite-card::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1.5px dashed var(--border-color); /* Cute chalkboard dashed border */
  border-radius: 16px;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.favorite-card:hover {
  transform: translateY(-8px);
  background-color: var(--white);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg);
}

.favorite-card:hover::before {
  border-color: var(--primary-color);
  inset: 8px;
}

.fav-badge {
  position: absolute;
  top: 25px;
  left: 25px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.5px;
  color: var(--white);
  background-color: var(--primary-color);
  border-radius: 20px;
  padding: 5px 12px;
  z-index: 2;
}

.fav-image {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 30px;
  border: 2px solid var(--border-color);
  padding: 6px;
  background-color: var(--white);
  transition: var(--transition-smooth);
}

.fav-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.favorite-card:hover .fav-image {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.favorite-card:hover .fav-image img {
  transform: scale(1.05);
}

.fav-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.fav-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
  flex-grow: 1;
}

.fav-price {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-color);
}

/* --- SEASONAL MENU (SPRING COLLECTION) --- */
.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 60px;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.menu-tabs.revealed {
  opacity: 1;
  transform: translateY(0);
}

.tab-btn {
  background: none;
  border: 1px solid var(--border-color);
  padding: 12px 30px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  border-radius: 30px; /* Cozy rounded pill tab */
}

.tab-btn:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background-color: rgba(140, 98, 57, 0.05);
}

.tab-btn.active {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

/* Menu Grid */
.menu-grid-container {
  position: relative;
  min-height: 400px;
}

.menu-panel {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 50px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.menu-panel.active {
  display: grid;
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.menu-item {
  display: flex;
  gap: 20px;
  align-items: center;
  padding-bottom: 25px;
  border-bottom: 1px dashed var(--border-color);
  transition: var(--transition-fast);
}

.menu-item-thumb {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
  background-color: var(--white);
}

.menu-item:hover {
  border-bottom-style: solid;
  border-bottom-color: var(--primary-color);
}

.menu-item-info {
  max-width: 80%;
}

.menu-item-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.menu-item-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
}

.menu-item-tag {
  font-size: 0.7rem;
  text-transform: none;
  letter-spacing: 0.5px;
  background-color: rgba(140, 98, 57, 0.08);
  color: var(--primary-color);
  padding: 3px 10px;
  font-weight: 600;
  border-radius: 12px;
}

.menu-item-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.menu-item-price {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 2px;
}

/* Size-based Pricing Columns */
.menu-item-sizes {
  display: flex;
  gap: 15px;
  text-align: right;
  flex-shrink: 0;
}

.size-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 65px;
}

.size-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 2px;
  letter-spacing: 1px;
}

.price-val {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* Toppings Callout */
.toppings-container {
  margin: 50px auto 0 auto;
  max-width: 100%; /* Spans full width matching other containers */
  background-color: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--border-color);
  padding: 30px 40px;
  text-align: center;
  position: relative;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}

.toppings-container::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1.5px dashed var(--border-color);
  border-radius: 16px;
  pointer-events: none;
}

.toppings-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--text-dark);
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
  font-weight: 600;
}

.toppings-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 items in 1 row on desktop */
  gap: 15px;
  position: relative;
  z-index: 2;
}

@media (max-width: 992px) {
  .toppings-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets/mobile */
  }
  .toppings-grid .topping-card:last-child {
    grid-column: span 2; /* 5th card spans full width of last row for perfect symmetry */
  }
}

@media (max-width: 480px) {
  .toppings-container {
    padding: 25px 20px;
  }
}

.toppings-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.topping-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px 20px;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  border-radius: 20px;
}

.topping-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-md);
}

.topping-img-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 15px;
  border: 2px solid var(--border-color);
  background-color: var(--white);
  transition: var(--transition-smooth);
}

.topping-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.topping-card:hover .topping-img-wrapper {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.topping-card:hover .topping-img-wrapper img {
  transform: scale(1.08);
}

.topping-name {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
}

.topping-price {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-color);
}

/* --- GALLERY SECTION --- */
.gallery {
  background-color: var(--bg-color);
}

/* Asymmetric Grid Layout */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 240px;
  gap: 20px;
  opacity: 0;
  transform: translateY(40px);
  transition: var(--transition-smooth);
}

.gallery-grid.revealed {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  border-radius: 16px; /* Soft cozy rounded corner */
}

/* Image placements in grid for custom asymmetric artwork look */
.gallery-item.size-1 { grid-column: span 4; grid-row: span 2; }
.gallery-item.size-2 { grid-column: span 5; grid-row: span 1; }
.gallery-item.size-3 { grid-column: span 3; grid-row: span 2; }
.gallery-item.size-4 { grid-column: span 5; grid-row: span 1; }
.gallery-item.size-5 { grid-column: span 4; grid-row: span 1; }
.gallery-item.size-6 { grid-column: span 8; grid-row: span 1; }

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

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 20, 14, 0.8) 0%, rgba(30, 20, 14, 0.2) 60%, transparent 100%);
  opacity: 0;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  z-index: 2;
}

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

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

.gallery-item-overlay h4 {
  font-family: var(--font-serif);
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 6px;
  transform: translateY(10px);
  transition: var(--transition-smooth);
}

.gallery-item-overlay p {
  color: var(--primary-color);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  transform: translateY(10px);
  transition: var(--transition-smooth);
  transition-delay: 0.05s;
}

.gallery-item:hover .gallery-item-overlay h4,
.gallery-item:hover .gallery-item-overlay p {
  transform: translateY(0);
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(30, 20, 14, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
}

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

.lightbox-content {
  position: relative;
  max-width: 85%;
  max-height: 80vh;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: scale(0.95);
  transition: var(--transition-smooth);
}

.lightbox.active .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  font-weight: 300;
  line-height: 1;
}

.lightbox-close:hover {
  color: var(--primary-color);
}

.lightbox-caption {
  color: var(--white);
  text-align: center;
  margin-top: 15px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
}

/* --- BOOKING & CONTACT SECTION --- */
.booking-section {
  background-color: rgba(255, 255, 255, 0.35);
}

.booking-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  align-items: start;
}

.booking-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  padding: 50px;
  box-shadow: var(--shadow-lg);
  position: relative;
  opacity: 0;
  transform: translateX(-40px);
  transition: var(--transition-smooth);
  border-radius: 24px;
}

.booking-card.revealed {
  opacity: 1;
  transform: translateX(0);
}

.booking-card::before {
  content: '';
  position: absolute;
  inset: 15px;
  border: 1.5px dashed var(--border-color);
  border-radius: 16px;
  pointer-events: none;
}

.booking-form {
  position: relative;
  z-index: 2;
}

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

.form-group {
  margin-bottom: 24px;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  font-size: 0.95rem;
  transition: var(--transition-fast);
  border-radius: 12px; /* Soft input borders */
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: var(--white);
  box-shadow: 0 0 10px var(--primary-glow);
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

/* Form Error States */
.error-msg {
  color: #c93b2b;
  font-size: 0.75rem;
  margin-top: 6px;
  display: none;
}

.form-group.has-error .form-control {
  border-color: #c93b2b;
}

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

/* Contact Details Column */
.contact-info-col {
  opacity: 0;
  transform: translateX(40px);
  transition: var(--transition-smooth);
}

.contact-info-col.revealed {
  opacity: 1;
  transform: translateX(0);
}

.info-cards {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 40px;
}

.info-item {
  display: flex;
  gap: 20px;
}

.info-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(140, 98, 57, 0.08);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.2rem;
  flex-shrink: 0;
  border-radius: 50%;
}

.info-details h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.info-details p {
  color: var(--text-muted);
  font-size: 0.95rem;
  white-space: pre-line;
}

/* Premium Map Mockup */
.map-mockup {
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  height: 280px;
}

.map-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  filter: sepia(0.2) contrast(1.05);
}

.map-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 20, 14, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.map-marker {
  width: 140px;
  background-color: var(--white);
  border: 1px solid var(--primary-color);
  padding: 10px 14px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  border-radius: 0;
  transform: translateY(-10px);
}

.map-marker h5 {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.map-marker p {
  font-size: 0.7rem;
  color: var(--primary-color);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
}

/* --- BOOKING SUCCESS MODAL --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(30, 20, 14, 0.6);
  backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

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

.modal-box {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  padding: 50px 40px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: var(--transition-smooth);
  border-radius: 24px;
}

.modal-overlay.active .modal-box {
  transform: scale(1) translateY(0);
}

.modal-box::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1.5px dashed var(--border-color);
  border-radius: 16px;
  pointer-events: none;
}

.modal-success-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(140, 98, 57, 0.1);
  border: 1px solid var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 2rem;
  margin: 0 auto 25px auto;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.modal-text {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 30px;
  line-height: 1.5;
}

/* --- INSTAGRAM CHECK-IN FEED --- */
.instagram-feed {
  background-color: rgba(253, 251, 247, 0.4);
  padding: 80px 0;
  overflow: hidden;
}

.polaroid-wall {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin: 50px auto 40px auto;
  position: relative;
  max-width: 1200px;
}

.polaroid-card {
  background-color: var(--white);
  padding: 15px 15px 25px 15px;
  box-shadow: 0 15px 35px rgba(140, 98, 57, 0.08);
  border-radius: 4px; /* Polaroid cards have sharp photo margins but soft paper edges */
  width: 210px;
  transition: var(--transition-smooth);
  border: 1px solid var(--border-color);
  position: relative;
  cursor: pointer;
}

.polaroid-card.clone {
  display: none; /* Hide clones on desktop */
}

.polaroid-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border: 1px solid rgba(140, 98, 57, 0.05);
  margin-bottom: 15px;
}

.polaroid-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.polaroid-caption {
  text-align: left;
}

.polaroid-user {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 5px 0;
  letter-spacing: 0.5px;
}

.polaroid-text {
  font-family: var(--font-handwritten);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-dark);
  margin: 0;
  letter-spacing: -0.2px;
}

/* Scattered Rotations for Magnetic Sticker Polaroid Feel */
.polaroid-card.rotate-left { transform: rotate(-3deg); }
.polaroid-card.rotate-right { transform: rotate(3deg); }
.polaroid-card.rotate-left-deep { transform: rotate(-5deg); }
.polaroid-card.rotate-right-deep { transform: rotate(4deg); }
.polaroid-card.rotate-straight { transform: rotate(1deg); }

/* Hover animations */
.polaroid-card:hover {
  transform: translateY(-15px) rotate(0deg) scale(1.08);
  z-index: 10;
  box-shadow: 0 25px 50px rgba(140, 98, 57, 0.15);
  border-color: var(--primary-color);
}

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

.checkin-cta {
  text-align: center;
  margin-top: 50px;
}

.checkin-cta .btn {
  padding: 15px 40px;
  font-size: 0.95rem;
}

.instagram-hash {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.instagram-hash i {
  color: #e1306c; /* Instagram Pink Accent */
  font-size: 1.1rem;
}

/* Tablet & Mobile responsive adaptations for Polaroid Wall: Infinite Marquee Scroll left to right! */
@media (max-width: 992px) {
  .instagram-feed {
    overflow: hidden; /* Prevent horizontal page scrollbar */
  }

  .polaroid-wall {
    display: flex;
    flex-wrap: nowrap; /* Keep on a single horizontal row */
    width: max-content; /* Let the track stretch fully */
    gap: 24px;
    padding: 30px 0 45px 0; /* Space for shadow & vertical lift */
    justify-content: flex-start;
    animation: marquee-left-to-right 10s linear infinite; /* Smooth left-to-right slide, fast 10s scroll */
  }

  .polaroid-wall:hover,
  .polaroid-wall:active {
    animation-play-state: paused; /* Pause animation on user touch-hold or mouse hover */
  }

  .polaroid-card {
    flex: 0 0 220px; /* Fixed card width */
    width: 220px;
    cursor: pointer;
  }

  .polaroid-card.clone {
    display: block; /* Show clones on mobile to make loop seamless */
  }

  /* Keep cute slightly softer angles for mobile horizontal swipe clothesline */
  .polaroid-card.rotate-left { transform: rotate(-2deg) !important; }
  .polaroid-card.rotate-right { transform: rotate(2deg) !important; }
  .polaroid-card.rotate-left-deep { transform: rotate(-3deg) !important; }
  .polaroid-card.rotate-right-deep { transform: rotate(3deg) !important; }
  .polaroid-card.rotate-straight { transform: rotate(1deg) !important; }

  .polaroid-card:active,
  .polaroid-card:hover {
    transform: translateY(-8px) rotate(0deg) scale(1.03) !important;
    z-index: 5;
  }
}

/* Infinite Marquee Animation (Moves from -50% to 0 for left-to-right direction) */
@keyframes marquee-left-to-right {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

/* --- FOOTER --- */
.footer {
  background-color: #2E2218; /* Soft cozy warm cocoa brown */
  color: var(--white);
  padding: 80px 0 40px 0;
  border-top: 1px solid var(--border-color);
}

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

.footer-brand h3 {
  font-family: var(--font-handwritten);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--secondary-color); /* Soft warm sand color contrast */
  margin-bottom: 15px;
  letter-spacing: -0.5px;
  text-transform: none;
  line-height: 1;
}

.footer-brand h3 span {
  color: var(--secondary-color);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  margin-bottom: 25px;
  max-width: 280px;
}

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

.social-link {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 1rem;
  transition: var(--transition-fast);
  border-radius: 50%;
}

.social-link:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background-color: rgba(140, 98, 57, 0.05);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: 0.5px;
  color: var(--primary-color);
  margin-bottom: 25px;
  font-weight: 600;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.newsletter-form {
  display: flex;
  margin-top: 15px;
}

.newsletter-input {
  flex-grow: 1;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: rgba(255, 255, 255, 0.08);
}

.newsletter-btn {
  background-color: var(--primary-color);
  color: var(--white);
  border: 1px solid var(--primary-color);
  padding: 0 20px;
  cursor: pointer;
  transition: var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 30px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

/* --- KEYFRAME ANIMATIONS --- */
@keyframes slowZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollDown {
  0% { top: -20px; }
  50% { top: 60px; }
  100% { top: 60px; }
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.5rem;
  }
  .story-grid {
    gap: 40px;
  }
  .favorites-grid {
    gap: 20px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 70px;
  }
  
  .section {
    padding: 50px 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  /* Navigation mobile menu */
  .mobile-nav-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--bg-color);
    box-shadow: -10px 0 30px rgba(30, 20, 14, 0.08);
    flex-direction: column;
    justify-content: flex-start; /* Align vertically to the top */
    align-items: flex-start; /* Align horizontally to the left */
    padding: 110px 40px 40px 40px; /* Clear header space and align padding top-left */
    gap: 25px;
    z-index: 100;
    transition: var(--transition-smooth);
    border-left: 1px solid var(--border-color);
    visibility: hidden; /* Hide from layout calculation when offscreen */
  }
  
  .nav-links.active {
    right: 0;
    visibility: visible;
  }
  
  .nav-links .btn {
    margin-left: 0 !important;
    margin-top: 10px;
  }
  
  .hero {
    text-align: center;
    justify-content: center;
  }
  
  .hero-content {
    align-items: center;
    display: flex;
    flex-direction: column;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    gap: 12px;
  }
  
  .story-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  
  .story-text {
    order: 2;
  }
  
  .story-image {
    order: 1;
    max-width: 500px;
    margin: 0 auto;
    width: 85%;
  }
  
  .story-image-overlay {
    bottom: -20px;
    left: -15px;
    padding: 20px;
    max-width: 200px;
  }
  
  .favorites-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .menu-panel {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
    gap: 15px;
  }
  
  .gallery-item.size-1,
  .gallery-item.size-2,
  .gallery-item.size-3,
  .gallery-item.size-4,
  .gallery-item.size-5,
  .gallery-item.size-6 {
    grid-column: span 1;
    grid-row: span 1;
  }
  
  .booking-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .booking-card {
    padding: 30px 20px;
  }
  
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .story-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .gallery-grid {
    grid-auto-rows: 140px;
    gap: 10px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}
