/* ============================================================
       MAISON NOIR — RESTAURANT TEMPLATE
       Designed for Gumroad. Version 1.0
       ============================================================
       CUSTOMIZATION GUIDE:
       - Change --gold to your accent color
       - Change --cream / --bg-deep to your palette
       - Replace font families in :root to switch typography
       - Edit content in each section's HTML
       ============================================================ */

/* ── THEME TOKENS ─────────────────────────────────────────── */

:root {
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --cream: #f5edd6;
  --cream-soft: #faf5e9;
  --text-main: #1a1208;
  --text-mid: #5a4a2f;
  --text-soft: #9a8060;
  --bg-deep: #0e0a04;
  --bg-card: #1c1509;
  --bg-section: #120d06;
  --border: rgba(201, 168, 76, 0.18);
  --radius: 4px;
  --transition: 0.42s cubic-bezier(0.16, 1, 0.3, 1);
  --white: #ffffff;

  /* FONT FAMILIES */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", sans-serif;

  --nav-text: #ffffff;
  --nav-backdrop: rgba(0, 0, 0, 0.2);
  --overlay-bg: rgba(14, 10, 4, 0.92);
}

/* Light theme overrides */
[data-theme="light"] {
  --cream: #1a1208;
  --cream-soft: #5a4a2f;
  --text-main: #1a1208;
  --text-mid: #5a4a2f;
  --text-soft: #9a8060;
  --bg-deep: #f9f4ea;
  --bg-card: #fdf8ee;
  --bg-section: #f3ebd5;
  --border: rgba(201, 168, 76, 0.22);
  --nav-text: #1a1208;
  --nav-backdrop: rgba(255, 255, 255, 0.2);
  --overlay-bg: rgba(255, 255, 255, 0.85);
}

/* ── RESET ─────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden; /* prevent horizontal scroll on all browsers */
}
body {
  background: var(--bg-deep);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  max-width: 100vw;
}
::selection {
  background: rgba(201, 168, 76, 0.28);
  color: var(--cream);
}

/* ── CUSTOM SCROLLBAR ───────────────────────────────────────── */
/* WebKit: Chrome, Safari, Edge, Opera */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-light);
}
::-webkit-scrollbar-corner {
  background: var(--bg-deep);
}
/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--bg-deep);
}
/* Light theme */
[data-theme="light"] ::-webkit-scrollbar-track,
[data-theme="light"] ::-webkit-scrollbar-corner {
  background: var(--bg-section);
}
[data-theme="light"] html {
  scrollbar-color: var(--gold) var(--bg-section);
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}
ul {
  list-style: none;
}

/* Better keyboard accessibility */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ── UTILITIES ─────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section-header-spaced {
  margin-bottom: 3.5rem;
}
.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--cream);
}
.section-title em {
  font-style: italic;
  color: var(--gold);
}
.divider {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 1.4rem 0;
}
.divider.center {
  margin: 1.4rem auto;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.delay-1 {
  transition-delay: 0.1s;
}
.delay-2 {
  transition-delay: 0.2s;
}
.delay-3 {
  transition-delay: 0.3s;
}
.delay-4 {
  transition-delay: 0.45s;
}

/* ── NAVBAR ────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.6rem 0;
  transition:
    background var(--transition),
    padding var(--transition),
    border-color var(--transition);
  border-bottom: 1px solid transparent;
  background: var(--nav-backdrop);
  backdrop-filter: blur(3px);
}
#navbar.scrolled {
  background: rgba(14, 10, 4, 0.94);
  backdrop-filter: blur(3px);
  padding: 1rem 0;
  border-color: var(--border);
}
[data-theme="light"] #navbar.scrolled {
  background: rgba(249, 244, 234, 0.94);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0; /* allow flex children to shrink */
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #ffffff; /* Stay white at top */
}
#navbar.scrolled .nav-logo {
  color: var(--cream);
}
.nav-logo span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 2.4rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff; /* Stay white at top */
  transition: color var(--transition);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}
#navbar.scrolled .nav-links a {
  color: var(--nav-text);
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.nav-links a:hover {
  color: #d4af37;
}
.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.6rem 1.5rem;

  border: 1px solid var(--gold);
  color: #ffffff; /* Stay white at top */
  transition: color var(--transition), background var(--transition);
}
#navbar.scrolled .nav-cta {
  color: var(--nav-text);
}
.nav-cta:hover {
  background: var(--gold);
  color: #0e0a04 !important;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0; /* never shrink and push hamburger off screen */
}

/* Theme toggle */
.theme-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff; /* Stay white at top */
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition:
    color var(--transition),
    border-color var(--transition);
}
#navbar.scrolled .theme-btn {
  color: var(--text-soft);
}
.theme-btn:hover {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
  transform: scale(1.1);
}
.theme-btn svg {
  width: 16px;
  height: 16px;
}
.icon-moon {
  display: block;
}
.icon-sun {
  display: none;
}
[data-theme="light"] .icon-moon {
  display: none;
}
[data-theme="light"] .icon-sun {
  display: block;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.hamburger span {
  display: block;
  height: 1px;
  background: #ffffff; /* Stay white at top */
  transition:
    transform var(--transition),
    opacity var(--transition);
}
#navbar.scrolled .hamburger span {
  background: var(--cream);
}
.hamburger.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg-deep);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.4rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--cream);
  transition: color var(--transition);
}
.mobile-nav a:hover {
  color: var(--gold);
}

/* ── HERO ──────────────────────────────────────────────────── */
#hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(14, 10, 4, 0.95) 0%,
      rgba(14, 10, 4, 0.4) 50%,
      rgba(14, 10, 4, 0.2) 100%
    ),
    url("images/hero.jpg") center/cover no-repeat;
  transform: scale(1.04);
  transition: transform 8s ease;
}
#hero.loaded .hero-bg {
  transform: scale(1);
}

.hero-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.18;
}
.hero-badge::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 2rem 8vh;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #ffcf4a;
  margin-bottom: 1.4rem;
  opacity: 0;
  animation: fadeUp 1s 0.3s forwards;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 10vw, 8rem);
  font-weight: 300;
  line-height: 0.96;
  color: #ffffff; /* Stay white regardless of theme */
  margin-bottom: 1.8rem;
  opacity: 0;
  animation: fadeUp 1s 0.5s forwards;
}
.hero-title em {
  font-style: italic;
  display: block;
}
.hero-tagline {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7); /* Always semi-transparent white */
  max-width: 420px;
  margin-bottom: 3rem;
  line-height: 1.8;
  opacity: 0;
  animation: fadeUp 1s 0.7s forwards;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s 0.9s forwards;
}
.btn-primary {
  display: inline-block;
  padding: 1rem 2.2rem;
  background: var(--gold);
  color: var(--bg-deep);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition:
    background var(--transition),
    transform var(--transition);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}
.btn-outline {
  display: inline-block;
  padding: 1rem 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #ffffff; /* Light in hero */
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition:
    border-color var(--transition),
    color var(--transition),
    transform var(--transition);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 3rem;
  right: 3rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  animation: fadeIn 1s 1.4s forwards;
}
.hero-scroll span {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}
@keyframes fadeIn {
  to {
    opacity: 1;
  }
  from {
    opacity: 0;
  }
}
@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

/* ── ABOUT ─────────────────────────────────────────────────── */
#about {
  padding: 8rem 0;
  background: var(--bg-section);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.about-image-wrap {
  position: relative;
}
.about-image-wrap img {
  width: 100%;
  height: 560px;
  object-fit: cover;
}
.about-image-accent {
  position: absolute;
  top: -24px;
  left: -24px;
  width: 120px;
  height: 120px;
  border: 1px solid var(--gold);
  opacity: 0.3;
  pointer-events: none;
}
.about-image-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--bg-deep);
}
.badge-year {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1;
}
.badge-label {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
}

.about-text p {
  color: var(--text-soft);
  font-size: 1.2rem;
  line-height: 1.9;
  margin-bottom: 1.4rem;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.8rem;
  padding-top: 2.8rem;
  border-top: 1px solid var(--border);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: 0.4rem;
}

/* ── MENU ──────────────────────────────────────────────────── */
#menu {
  padding: 8rem 0;
  background: var(--bg-deep);
}
.menu-header {
  text-align: center;
  margin-bottom: 4rem;
}

.menu-tabs {
  display: flex;
  gap: 0;
  justify-content: center;
  margin-bottom: 3.5rem;
  border: 1px solid var(--border);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.tab-btn {
  padding: 0.75rem 2rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-soft);
  border-right: 1px solid var(--border);
  transition:
    background var(--transition),
    color var(--transition);
}
.tab-btn:last-child {
  border-right: none;
}
.tab-btn.active {
  background: var(--gold);
  color: var(--bg-deep);
}
.tab-btn:not(.active):hover {
  color: var(--cream);
  background: rgba(201, 168, 76, 0.08);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.menu-panel {
  display: none;
}
.menu-panel.active {
  display: contents;
}

.menu-card {
  background: var(--bg-card);
  padding: 2rem;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  transition: background var(--transition);
  position: relative;
  overflow: hidden;
}
.menu-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--transition);
}
.menu-card:hover {
  background: rgba(201, 168, 76, 0.04);
}
.menu-card:hover::before {
  transform: scaleY(1);
}

.menu-card-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  flex-shrink: 0;
}
.menu-card-body {
  flex: 1;
}

.menu-card-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 0.35rem;
}
.menu-card-desc {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 0.6rem;
}
.menu-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.menu-card-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 400;
}
.menu-card-tag {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--border);
  color: var(--text-soft);
}

/* ── FEATURED DISHES ───────────────────────────────────────── */
#featured {
  padding: 8rem 0;
  background: var(--bg-section);
}
.featured-header {
  text-align: center;
  margin-bottom: 4.5rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.dish-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
}
.dish-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

#creme-brule-img {
  position: absolute;
  height: 100%;
  right: 3px;
  z-index: -10;
}

.dish-card:hover img {
  transform: scale(1.08);
}
.dish-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--overlay-bg) 0%,
    transparent 55%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  transition: background var(--transition);
}
.dish-card:hover .dish-card-overlay {
  background: linear-gradient(
    to top,
    rgba(14, 10, 4, 0.96) 0%,
    rgba(14, 10, 4, 0.2) 55%
  );
}
.dish-category {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffd45d;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.dish-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.dish-desc {
  font-size: 0.82rem;
  color: rgba(245, 237, 214, 0.55);
  line-height: 1.6;
  transform: translateY(10px);
  opacity: 0;
  transition:
    opacity var(--transition),
    transform var(--transition);
}
.dish-card:hover .dish-desc {
  opacity: 1;
  transform: translateY(0);
}
.dish-price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold);
  margin-top: 0.8rem;
}

/* ── TESTIMONIALS ──────────────────────────────────────────── */
#testimonials {
  padding: 8rem 0;
  background: var(--bg-deep);
  text-align: center;
}
.testi-header {
  margin-bottom: 4rem;
}

.testi-track-wrap {
  overflow: hidden;
  position: relative;
}
.testi-track-wrap::before,
.testi-track-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.testi-track-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-deep), transparent);
}
.testi-track-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-deep), transparent);
}

.testi-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.testi-card {
  min-width: 380px;
  padding: 2.5rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-align: left;
  flex-shrink: 0;
}
.testi-stars {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
}
.testi-quote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  line-height: 1.7;
  margin-bottom: 1.6rem;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}
.testi-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--cream);
}
.testi-role {
  font-size: 0.72rem;
  color: var(--text-soft);
}

.testi-controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 3rem;
}
.testi-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  transition:
    border-color var(--transition),
    color var(--transition),
    background var(--transition);
}
.testi-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 168, 76, 0.06);
}
.testi-btn svg {
  width: 18px;
  height: 18px;
}
/* Dot indicators */
.testi-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.testi-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition:
    background var(--transition),
    transform var(--transition);
}
.testi-dot.active {
  background: var(--gold);
  transform: scale(1.4);
}

/* Testimonial card — width controlled by JS */
.testi-card {
  padding: 2.2rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-align: left;
  box-sizing: border-box;
}

/* 2 cards at medium screens */
@media (max-width: 1100px) {
  .testi-card {
    flex: 0 0 calc(50% - 0.75rem);
    width: calc(50% - 0.75rem);
  }
}

/* 1 full-width card on mobile */
@media (max-width: 768px) {
  .testi-card {
    flex: 0 0 100%;
    width: 100%;
    padding: 1.8rem;
  }
  .testi-quote {
    font-size: 1.08rem;
  }
  .testi-track {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .testi-card {
    padding: 1.5rem;
  }
  .testi-quote {
    font-size: 1rem;
  }
}

/* ── GALLERY ───────────────────────────────────────────────── */
#gallery {
  padding: 8rem 0;
  background: var(--bg-section);
}
.gallery-header {
  text-align: center;
  margin-bottom: 4rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 2px;
}
.gallery-item {
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 1;
}
.gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-item:hover img {
  transform: scale(1.07);
}
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 10, 4, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.gallery-item:hover .gallery-item-overlay {
  background: rgba(14, 10, 4, 0.45);
}
.gallery-zoom {
  width: 40px;
  height: 40px;
  border: 1px solid var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  opacity: 0;
  transform: scale(0.7);
  transition:
    opacity var(--transition),
    transform var(--transition);
}
.gallery-item:hover .gallery-zoom {
  opacity: 1;
  transform: scale(1);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-size: 1.2rem;
  transition: border-color var(--transition);
}
.lightbox-close:hover {
  border-color: var(--gold);
}

/* ── RESERVATION ───────────────────────────────────────────── */
#reservation {
  padding: 8rem 0;
  background: var(--bg-deep);
  position: relative;
}
#reservation::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/reservation-bg.jpg") center/cover no-repeat;
  opacity: 0.07;
}
.reservation-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.reservation-inner .section-title {
  margin-bottom: 0.6rem;
}
.reservation-sub {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin-bottom: 3.5rem;
  line-height: 1.8;
}

.booking-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 1px;
}
.booking-form .full {
  grid-column: 1 / -1;
}
.form-field {
  background: var(--bg-card);
  padding: 0 1.4rem;
  position: relative;
}
.form-field label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 1rem;
  margin-bottom: 0.2rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  padding-bottom: 1rem;
  appearance: none;
}
.form-field select option {
  background: var(--bg-card);
  color: var(--cream);
}
.form-field textarea {
  resize: none;
  height: 80px;
  padding-top: 0.4rem;
}
.form-submit {
  display: block;
  width: 100%;
  padding: 1.2rem;
  background: var(--gold);
  color: var(--bg-deep);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background var(--transition);
}
.form-submit:hover {
  background: var(--gold-light);
}

/* ── CONTACT ───────────────────────────────────────────────── */
#contact {
  padding: 8rem 0;
  background: var(--bg-section);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}

.contact-detail {
  margin-bottom: 2.5rem;
}
.contact-detail-label {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.contact-detail-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--cream);
  line-height: 1.5;
}
.contact-hours {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-soft);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.06);
}
.hours-row span:last-child {
  color: var(--cream);
}

.map-wrap {
  height: 400px;
  overflow: hidden;
  border: 1px solid var(--border);
  filter: grayscale(1) contrast(1.1) brightness(0.7);
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ── FOOTER ────────────────────────────────────────────────── */
#footer {
  padding: 5rem 0 2.5rem;
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 1rem;
}
.footer-logo span {
  color: var(--gold);
}
.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.7;
  max-width: 230px;
}
.footer-socials {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.8rem;
}
.social-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  transition:
    border-color var(--transition),
    color var(--transition);
  font-size: 0.8rem;
}
.social-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer-col h4 {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.footer-col ul li a {
  font-size: 0.85rem;
  color: var(--text-soft);
  transition: color var(--transition);
}
.footer-col ul li a:hover {
  color: var(--cream);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--text-soft);
}
.footer-copy a {
  color: var(--gold);
}
.footer-legal {
  display: flex;
  gap: 1.5rem;
}
.footer-legal a {
  font-size: 0.75rem;
  color: var(--text-soft);
  transition: color var(--transition);
}
.footer-legal a:hover {
  color: var(--cream);
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
/* ── RESPONSIVE ────────────────────────────────────────────── */

/* ── TABLET LANDSCAPE (≤1200px) ─────────────────────────────── */
@media (max-width: 1200px) {
  .container {
    padding: 0 1.5rem;
  }
  .contact-grid {
    gap: 2.5rem;
  }
  .footer-top {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 2rem;
  }
}

/* ── TABLET (≤1024px) ────────────────────────────────────────── */
@media (max-width: 1024px) {
  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-image-wrap img {
    height: 400px;
  }
  .about-image-accent {
    top: -14px;
    left: -14px;
  }
  .about-image-badge {
    bottom: -14px;
    right: -14px;
    width: 100px;
    height: 100px;
  }

  /* Featured */
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr 1.4fr;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  /* Menu tabs — allow wrapping on tablet */
  .menu-tabs {
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }
  .tab-btn {
    flex: 1 1 auto;
    min-width: 100px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .tab-btn:last-child {
    border-bottom: none;
  }
}

/* ── TABLET PORTRAIT / LARGE MOBILE (≤768px) ─────────────────── */
@media (max-width: 768px) {
  /* Sections — reduce vertical padding */
  #about,
  #menu,
  #featured,
  #testimonials,
  #gallery,
  #reservation,
  #contact {
    padding: 5rem 0;
  }
  #footer {
    padding: 4rem 0 2rem;
  }

  /* Container */
  .container {
    padding: 0 1.2rem;
  }

  /* Navbar */
  .nav-links,
  .nav-cta {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .mobile-nav {
    display: flex;
  }
  #navbar {
    padding: 1.2rem 0;
  }
  /* Ensure container in navbar doesn't let items overflow */
  #navbar .container {
    padding: 0 1rem;
  }
  .nav-logo {
    font-size: 1.25rem;
    white-space: nowrap;
  }

  /* Hero */
  .hero-scroll {
    display: none;
  }
  .hero-content {
    padding: 0 1.2rem 7vh;
  }
  .hero-tagline {
    max-width: 100%;
  }

  /* About */
  .about-text p {
    font-size: 1.05rem;
  }
  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  .about-image-badge {
    width: 90px;
    height: 90px;
    bottom: -10px;
    right: -10px;
  }
  .badge-year {
    font-size: 1.8rem;
  }

  /* Menu tabs */
  .menu-tabs {
    flex-wrap: wrap;
    width: 100%;
    border: none;
    gap: 2px;
    background: var(--border);
  }
  .tab-btn {
    flex: 1 1 calc(50% - 2px);
    border-right: none;
    border-bottom: none;
    text-align: center;
    padding: 0.7rem 1rem;
  }
  .menu-grid {
    grid-template-columns: 1fr;
  }

  /* Featured */
  .featured-grid {
    grid-template-columns: 1fr;
  }
  .dish-card {
    aspect-ratio: 1 / 1.15; /* Taller on mobile to avoid overlap */
  }
  .dish-card-overlay {
    padding: 1.25rem;
    background: linear-gradient(
      to top,
      rgba(14, 10, 4, 0.95) 0%,
      rgba(14, 10, 4, 0.5) 60%,
      transparent 100%
    ); /* More solid background on mobile */
  }
  .dish-desc {
    opacity: 1 !important;
    transform: translateY(0) !important;
    font-size: 0.78rem;
    margin-top: 0.5rem;
  }
  .dish-name {
    font-size: 1.4rem;
  }

  /* Testimonials */
  .testi-card {
    min-width: calc(100vw - 2.4rem);
  }
  .testi-track-wrap::before,
  .testi-track-wrap::after {
    width: 40px;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16/9;
  }

  /* Reservation */
  .booking-form {
    grid-template-columns: 1fr;
  }
  .booking-form .full {
    grid-column: 1;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .map-wrap {
    height: 280px;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  .footer-legal {
    flex-wrap: wrap;
    gap: 1rem;
  }

  /* Theme swatches — move to avoid overlap with back-to-top */
  .theme-swatches {
    right: 1rem;
    bottom: 5.5rem;
  }
  #back-top {
    right: 1rem;
    bottom: 1.2rem;
  }

  /* Section headers */
  .menu-header,
  .featured-header,
  .gallery-header,
  .testi-header {
    margin-bottom: 2.5rem;
  }
}

/* ── MOBILE (≤480px) ─────────────────────────────────────────── */
@media (max-width: 480px) {
  /* Sections */
  #about,
  #menu,
  #featured,
  #testimonials,
  #gallery,
  #reservation,
  #contact {
    padding: 4rem 0;
  }

  /* Container */
  .container {
    padding: 0 1rem;
  }

  /* Hero */
  .hero-ctas {
    flex-direction: column;
  }
  .btn-primary,
  .btn-outline {
    text-align: center;
    width: 100%;
    padding: 0.9rem 1.4rem;
  }
  .hero-tagline br {
    display: none;
  }

  /* About */
  .about-image-wrap img {
    height: 300px;
  }
  .about-image-accent {
    display: none;
  }
  .about-image-badge {
    width: 80px;
    height: 80px;
    bottom: -8px;
    right: -8px;
  }
  .badge-year {
    font-size: 1.5rem;
  }
  .badge-label {
    font-size: 0.52rem;
  }
  .about-stats {
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }
  .stat-number {
    font-size: 2rem;
  }

  /* Menu tabs — stack to 2x2 */
  .tab-btn {
    flex: 1 1 calc(50% - 2px);
    padding: 0.65rem 0.5rem;
    font-size: 0.62rem;
  }

  /* Menu card */
  .menu-card {
    flex-direction: column;
  }
  .menu-card-img {
    width: 100%;
    height: 180px;
  }

  /* Featured */
  .dish-card {
    aspect-ratio: 3/2;
  }
  .dish-name {
    font-size: 1.3rem;
  }

  /* Testimonials */
  .testi-card {
    min-width: calc(100vw - 2rem);
    padding: 1.8rem;
  }
  .testi-quote {
    font-size: 1rem;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2px;
  }
  .gallery-item:nth-child(1) {
    grid-column: 1 / -1;
    aspect-ratio: 4/3;
  }

  /* Reservation */
  .reservation-inner {
    padding: 0 0.5rem;
  }
  .reservation-sub {
    font-size: 0.88rem;
  }
  .form-field {
    padding: 0 1rem;
  }
  .form-submit {
    padding: 1rem;
    font-size: 0.68rem;
  }

  /* Contact */
  .contact-detail-value {
    font-size: 1rem;
  }
  .map-wrap {
    height: 240px;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    grid-column: 1;
  }
  .footer-tagline {
    max-width: 100%;
  }
  .footer-socials {
    gap: 0.6rem;
  }
  .footer-legal {
    gap: 0.8rem;
  }

  /* Nav logo smaller */
  .nav-logo {
    font-size: 1.15rem;
  }
  #navbar .container {
    padding: 0 0.85rem;
  }

  /* Section title clamp override */
  .section-title {
    font-size: clamp(1.9rem, 8vw, 3rem);
  }
}

/* ── SMALL MOBILE (≤360px) ────────────────────────────────────── */
@media (max-width: 360px) {
  .container {
    padding: 0 0.85rem;
  }
  .hero-title {
    font-size: clamp(2.6rem, 11vw, 4rem);
  }
  .about-stats {
    grid-template-columns: 1fr 1fr;
  }
  .testi-card {
    min-width: calc(100vw - 1.7rem);
    padding: 1.4rem;
  }
  .menu-card-img {
    height: 150px;
  }
  .tab-btn {
    font-size: 0.58rem;
    padding: 0.6rem 0.4rem;
  }
  .form-field input,
  .form-field select,
  .form-field textarea {
    font-size: 0.88rem;
  }
  .footer-legal {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ── TOUCH DEVICE ENHANCEMENTS ──────────────────────────────── */
@media (hover: none) and (pointer: coarse) {
  /* Always show dish desc on touch (no hover) */
  .dish-desc {
    opacity: 1;
    transform: translateY(0);
  }
  /* Show gallery zoom icon always on touch */
  .gallery-zoom {
    opacity: 0.7;
    transform: scale(1);
  }
  .gallery-item-overlay {
    background: rgba(14, 10, 4, 0.3);
  }
  /* Increase tap targets */
  .tab-btn {
    min-height: 44px;
  }
  .testi-btn {
    width: 52px;
    height: 52px;
  }
  .social-btn {
    width: 44px;
    height: 44px;
  }
  .swatch-btn {
    width: 26px;
    height: 26px;
  }
}
/* Scroll progress bar */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 9999;
  background: linear-gradient(to right, var(--gold), var(--gold-light));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.1s linear;
}

/* Color theme swatches (bonus) */
.theme-swatches {
  position: fixed;
  right: 1.5rem;
  bottom: 5rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.swatch-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition:
    border-color var(--transition),
    transform var(--transition);
  cursor: pointer;
}
.swatch-btn:hover,
.swatch-btn.active {
  border-color: var(--cream);
  transform: scale(1.2);
}
.swatch-btn[data-theme-color="gold"] {
  background: #c9a84c;
}
.swatch-btn[data-theme-color="rose"] {
  background: #c9694c;
}
.swatch-btn[data-theme-color="sage"] {
  background: #6fa07c;
}
.swatch-btn[data-theme-color="indigo"] {
  background: #5b73c9;
}

/* Back to top */
#back-top {
  position: fixed;
  right: 1.5rem;
  bottom: 2rem;
  z-index: 900;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  background: var(--bg-card);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity var(--transition),
    border-color var(--transition),
    color var(--transition);
}
#back-top.visible {
  opacity: 1;
  pointer-events: all;
}
#back-top:hover {
  border-color: var(--gold);
  color: var(--gold);
}
#back-top svg {
  width: 18px;
  height: 18px;
}
.brand-name {
  font-size: 15px;
  font-weight: 500;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero-bg {
    transition: none;
  }
}

/* ── CURSOR & PRELOADER ────────────────── */

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  background: #0e0a04;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s;
}
#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}
.preloader-content {
  text-align: center;
}
.preloader-logo {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: #f5edd6;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: preloaderReveal 1s forwards;
}
.preloader-logo span {
  color: var(--gold);
}
.preloader-line {
  width: 0;
  height: 1px;
  background: var(--gold);
  margin: 0 auto;
  animation: preloaderLine 1.5s 0.3s ease-in-out forwards;
}

@keyframes preloaderReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes preloaderLine {
  to {
    width: 120px;
  }
}

/* Custom Cursor */
.cursor {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.1s ease;
  mix-blend-mode: difference;
}
.cursor-follower {
  width: 40px;
  height: 40px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease-out;
  opacity: 0.5;
}

/* Specific theme logic for cursor blend mode */
[data-theme="light"] .cursor {
  mix-blend-mode: multiply;
  background: var(--gold);
  opacity: 0.8;
}

/* Hide custom cursor on mobile/touch */
@media (pointer: coarse) {
  .cursor, .cursor-follower {
    display: none;
  }
  body {
    cursor: auto !important;
  }
}

/* Responsiveness Tweaks */
@media (max-width: 480px) {
  .hero-title {
    font-size: 3.5rem;
  }
  .section-title {
    font-size: 2.2rem;
  }
  .about-stats {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .nav-logo {
    font-size: 1.3rem;
  }
  .theme-swatches {
    flex-direction: row;
    bottom: 1.5rem;
    left: 1.5rem; /* Move to bottom left corner */
    right: auto;
    transform: none;
    gap: 0.8rem;
    background: rgba(14, 10, 4, 0.6);
    backdrop-filter: blur(8px);
    padding: 0.5rem 0.8rem;
    border-radius: 30px;
    border: 1px solid var(--border);
    z-index: 1001;
  }
  #back-top {
    right: 1.5rem;
    bottom: 1.5rem;
  }
}
