/* ── Custom CSS Variables ───────────────────────── */
:root {
  --cream: #faf8f5;
  --latte: #f0e8dc;
  --espresso: #3d1f0d;
  --mocha: #5a3825;
  --warm-tan: #c4a882;
  --sage: #5c7a4f;
  --text-muted: #7a5c48;
}

/* ── Base Typography ────────────────────────────── */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  scroll-behavior: smooth;
}

.font-display {
  font-family: 'Playfair Display', Georgia, serif;
}

/* ── Navigation ─────────────────────────────────── */
.nav-blur {
  background: rgba(250, 248, 245, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(200, 185, 165, 0.3);
  transition: all 0.3s ease;
}

/* ── Hero Section ───────────────────────────────── */
.hero-parallax {
  will-change: transform;
  transform: scale(1.08);
  transition: transform 0.1s linear;
}

.hero-overlay {
  background: linear-gradient(
    160deg,
    rgba(20, 8, 2, 0.55) 0%,
    rgba(30, 12, 4, 0.45) 40%,
    rgba(40, 20, 8, 0.65) 100%
  );
}

/* ── Buttons ─────────────────────────────────────── */
.btn-primary {
  background-color: var(--espresso);
  color: #f5ead8;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 12px rgba(61, 31, 13, 0.2);
}

.btn-primary:hover {
  background-color: #2c1208;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(61, 31, 13, 0.3);
}

.btn-hero-primary {
  background-color: #f5ead8;
  color: var(--espresso);
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.btn-hero-primary:hover {
  background-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.btn-hero-secondary {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.btn-hero-secondary:hover {
  background: rgba(255,255,255,0.22);
  transform: translateY(-2px);
}

.btn-instagram {
  background: linear-gradient(135deg, #d47a3d 0%, #c45a2d 40%, #8a3a6a 100%);
  color: #fff;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(196, 90, 45, 0.35);
}

.btn-instagram:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(196, 90, 45, 0.45);
}

.btn-newsletter {
  background-color: var(--warm-tan);
  color: var(--espresso);
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-newsletter:hover {
  background-color: #d4b896;
  transform: translateY(-1px);
}

/* ── Menu Tabs ───────────────────────────────────── */
.tab-active {
  background-color: var(--espresso);
  color: #f5ead8;
  box-shadow: 0 2px 12px rgba(61, 31, 13, 0.25);
}

.tab-inactive {
  background-color: #f0e8dc;
  color: var(--mocha);
  border: 1px solid #ddd0be;
}

.tab-inactive:hover {
  background-color: #e8ddd0;
}

/* ── Menu Cards ──────────────────────────────────── */
.menu-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(61, 31, 13, 0.1);
}

.seasonal-card {
  background: linear-gradient(135deg, #fdf6ec 0%, #f5ead8 100%) !important;
}

.price-tag {
  color: var(--sage);
  font-size: 1rem;
}

/* ── Gallery Grid ────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 280px 280px;
  gap: 12px;
}

.gallery-large {
  grid-column: 1;
  grid-row: 1 / 3;
}

.gallery-wide {
  grid-column: 2 / 4;
  grid-row: 2;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px 200px;
  }
  .gallery-large {
    grid-column: 1 / 3;
    grid-row: 1;
  }
  .gallery-wide {
    grid-column: 1 / 3;
    grid-row: 3;
  }
}

.gallery-img {
  transition: transform 0.5s ease;
}

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

/* ── Instagram Grid ──────────────────────────────── */
.instagram-item {
  position: relative;
}

.instagram-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(61, 31, 13, 0);
  transition: background 0.3s ease;
  border-radius: inherit;
}

.instagram-item:hover::after {
  background: rgba(61, 31, 13, 0.25);
}

.insta-img {
  transition: transform 0.4s ease;
}

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

/* ── Parallax Quote ──────────────────────────────── */
.parallax-bg {
  will-change: transform;
  transform: scale(1.1);
}

/* ── Hours ───────────────────────────────────────── */
.hours-row {
  transition: background 0.2s ease;
  border-radius: 8px;
  padding-left: 8px;
  padding-right: 8px;
}

.hours-row:hover {
  background: rgba(196, 168, 130, 0.12);
}

/* ── Scroll Indicator ────────────────────────────── */
.scroll-indicator {
  animation: bounce-down 2s ease-in-out infinite;
}

@keyframes bounce-down {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ── Fade-in Animations ──────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in-up {
  animation: fadeInUp 1s ease forwards;
}

.fade-in-observe {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in-observe.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Map Placeholder ─────────────────────────────── */
.map-placeholder {
  box-shadow: 0 8px 30px rgba(61, 31, 13, 0.08);
}

/* ── Smooth scroll offset for nav ───────────────── */
section[id] {
  scroll-margin-top: 80px;
}

/* ── Selection ───────────────────────────────────── */
::selection {
  background: rgba(196, 168, 130, 0.35);
  color: var(--espresso);
}

/* ── Nav link hover line ─────────────────────────── */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--espresso);
  transform: scaleX(0);
  transition: transform 0.2s ease;
  transform-origin: center;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

/* ── Focus states ────────────────────────────────── */
*:focus-visible {
  outline: 2px solid var(--warm-tan);
  outline-offset: 2px;
  border-radius: 4px;
}
