/* ============================================
   Ember & Oak — Restaurant Theme
   Luxe dark theme • Gold & cream • Fire & craft
   ============================================ */

:root {
  /* Palette */
  --bg-deep: #0c0b0a;
  --bg-main: #141312;
  --bg-elevated: #1c1b19;
  --bg-card: #222120;
  --gold: #c9a962;
  --gold-light: #ddc48a;
  --gold-dim: #8b7355;
  --cream: #f5f0e6;
  --cream-muted: #b8b2a4;
  --cream-dim: #6b665d;
  --white: #faf9f7;
  --border: rgba(201, 169, 98, 0.2);
  --overlay: rgba(12, 11, 10, 0.75);
  --overlay-light: rgba(12, 11, 10, 0.5);

  /* Typography */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;

  /* Spacing & rhythm */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration: 0.4s;

  /* FAB column: 1 main + 3 menu = 4×52px + 3×8px */
  --fab-size: 52px;
  --fab-gap: 8px;
  --fab-column-height: calc(var(--fab-size) * 4 + var(--fab-gap) * 3);
}

/* Reset & base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--cream);
  background: var(--bg-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--duration) var(--ease-out);
}

a:hover {
  color: var(--gold-light);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 var(--space-md);
}

.section-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  color: var(--white);
  letter-spacing: -0.02em;
}

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

.lead {
  font-size: 1.25rem;
  color: var(--cream-muted);
  margin-bottom: var(--space-md);
}

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

.section-intro {
  max-width: 42ch;
  margin: 0 auto var(--space-xl);
  text-align: center;
  color: var(--cream-muted);
}

.section-intro:not(.section-title--center + .section-intro) {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

/* Layout */
.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-3xl) 0;
}

/* ========== Header ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-md) var(--space-lg);
  background: linear-gradient(to bottom, var(--overlay) 0%, transparent 100%);
  transition: background var(--duration) var(--ease-out);
  min-width: 0;
  overflow: hidden;
}

.site-header.scrolled {
  background: var(--bg-main);
  box-shadow: 0 1px 0 var(--border);
}

.nav {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: var(--space-sm);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex-shrink: 1;
}

.logo:hover {
  color: var(--gold);
}

.logo-img {
  height: 2.5rem;
  width: auto;
  display: block;
  object-fit: contain;
}

.logo-text {
  display: inline;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--cream-muted);
  letter-spacing: 0.05em;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--cream);
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform var(--duration) var(--ease-out);
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-deep) url("https://images.unsplash.com/photo-1563379091339-03b21ab4a4f8?w=1920") center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 11, 10, 0.85) 0%, rgba(12, 11, 10, 0.6) 25%, rgba(12, 11, 10, 0.25) 60%, rgba(12, 11, 10, 0.6) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-xl);
}

.hero-tagline {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-sm);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero-title {
  font-size: clamp(3.5rem, 12vw, 7rem);
  font-weight: 500;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--space-md);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.35s forwards;
  text-shadow: 0 0 60px rgba(201, 169, 98, 0.15);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--cream-muted);
  max-width: 36ch;
  margin: 0 auto var(--space-xl);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.5s forwards;
}

.hero .btn {
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.65s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: var(--cream-dim);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: fadeIn 1s var(--ease-out) 1s forwards;
  opacity: 0;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold-dim), transparent);
  animation: scrollPulse 2s var(--ease-in-out) infinite;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Inner page hero (About, Menu, etc.) */
.page-hero {
  padding: var(--space-3xl) 0 var(--space-xl);
  background: var(--bg-main);
  border-bottom: 1px solid var(--border);
}

.page-hero .section-title {
  margin-bottom: 0;
}

/* ========== Buttons ========== */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
}

.btn-primary {
  color: var(--bg-deep);
  background: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--bg-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 169, 98, 0.25);
}

.btn-outline {
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold-dim);
}

.btn-outline:hover {
  background: rgba(201, 169, 98, 0.12);
  border-color: var(--gold);
}

.link-accent {
  font-weight: 500;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-top: var(--space-md);
}

.link-accent:hover {
  transform: translateX(4px);
}

/* ========== About ========== */
.about {
  background: var(--bg-main);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.about-text p {
  color: var(--cream-muted);
  margin-bottom: var(--space-sm);
}

.about-frame {
  position: relative;
  aspect-ratio: 4/5;
  max-height: 560px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.about-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-dim) 0%, transparent 50%);
  opacity: 0.15;
  z-index: 1;
}

.about-image,
.about-image-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg-elevated);
}

.about-image-img {
  display: block;
}

/* ========== Menu ========== */
.menu-section {
  background: var(--bg-elevated);
}

.menu-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-xl);
}

.menu-tab {
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-muted);
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
}

.menu-tab:hover {
  color: var(--cream);
  border-color: var(--gold-dim);
}

.menu-tab.active {
  color: var(--bg-deep);
  background: var(--gold);
  border-color: var(--gold);
}

.menu-content {
  display: none;
  max-width: 48rem;
  margin: 0 auto;
}

.menu-content.active {
  display: block;
  animation: fadeUp 0.5s var(--ease-out);
}

.menu-category {
  margin-bottom: var(--space-xl);
}

.menu-category h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--border);
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--space-md);
  align-items: baseline;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.menu-list li:last-child {
  border-bottom: none;
}

.dish-name {
  font-weight: 500;
  color: var(--white);
}

.dish-desc {
  font-size: 0.9rem;
  color: var(--cream-muted);
  grid-column: 1 / -1;
  margin-top: -4px;
}

.dish-price {
  font-weight: 500;
  color: var(--gold);
}

/* Menu list with small image thumb per item */
.menu-list--with-thumbs .dish-thumb {
  grid-row: 1 / 3;
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-elevated);
}

.menu-list--with-thumbs .dish-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.menu-list--with-thumbs li {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  grid-template-rows: auto auto;
  gap: var(--space-xs) var(--space-md);
  align-items: center;
}

.menu-list--with-thumbs .dish-name {
  grid-column: 2;
  margin-bottom: 0;
}

.menu-list--with-thumbs .dish-desc {
  grid-column: 2;
  grid-row: 2;
  margin-top: 0;
  font-size: 0.8rem;
}

.menu-list--with-thumbs .dish-price {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
}

@media (max-width: 600px) {
  .menu-list--with-thumbs li {
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto auto;
  }
  .menu-list--with-thumbs .dish-thumb {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    grid-row: 1 / 4;
  }
  .menu-list--with-thumbs .dish-name { grid-column: 2; }
  .menu-list--with-thumbs .dish-desc { grid-column: 2; grid-row: 2; }
  .menu-list--with-thumbs .dish-price { grid-column: 2; grid-row: 3; }
}

/* ========== Home page: menu dish tiles ========== */
.home-dish-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-xl);
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.dish-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--cream);
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}

.dish-tile:hover {
  border-color: var(--gold-dim);
  color: var(--gold-light);
  transform: translateY(-4px);
}

.dish-tile-image {
  display: block;
  aspect-ratio: 1;
  width: 100%;
  overflow: hidden;
  background: var(--bg-elevated);
}

.dish-tile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--duration) var(--ease-out);
}

.dish-tile:hover .dish-tile-image img {
  transform: scale(1.06);
}

.dish-tile-name {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  line-height: 1.25;
  color: var(--white);
}

.dish-tile-price {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  padding-bottom: var(--space-sm);
}

/* ========== Order online ========== */
.order-online-section {
  background: var(--bg-elevated);
}

.order-platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xl);
  margin-top: var(--space-lg);
}

.order-platform {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  min-width: 160px;
  color: var(--cream);
  transition: border-color var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}

.order-platform:hover {
  border-color: var(--gold-dim);
  color: var(--gold-light);
  transform: translateY(-4px);
}

.order-platform img {
  height: 56px;
  width: auto;
  object-fit: contain;
}

/* ========== Products / Ecommerce ========== */
.products-section {
  background: var(--bg-main);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--duration) var(--ease-out);
}

.product-card:hover {
  border-color: var(--gold-dim);
}

.product-card-image-link {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-elevated);
}

.product-card-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--duration) var(--ease-out);
}

.product-card:hover .product-card-image-link img {
  transform: scale(1.03);
}

.product-card-variants {
  padding: var(--space-sm) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.product-variant-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.product-variant-label {
  color: var(--cream-muted);
}

.product-variant-price {
  font-weight: 600;
  color: var(--gold);
}

.product-card-title {
  padding: var(--space-xs) var(--space-md) var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--white);
  margin: 0;
  line-height: 1.3;
}

.product-card-order {
  margin: auto var(--space-md) var(--space-md);
  text-align: center;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
}

/* ========== Gallery ========== */
.gallery-section {
  padding: 0;
  overflow: hidden;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
  gap: 2px;
}

.gallery-item {
  background: var(--bg-card);
  background-image: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item--wide {
  grid-column: span 2;
}

.gallery-item:nth-child(1) { background: linear-gradient(135deg, #2d2520 0%, #1a1816 100%); }
.gallery-item:nth-child(2) { background: linear-gradient(135deg, #3d3028 0%, #252019 100%); }
.gallery-item:nth-child(3) { background: linear-gradient(135deg, #352c24 0%, #1f1c18 100%); }
.gallery-item:nth-child(4) { background: linear-gradient(135deg, #2a2420 0%, #181614 100%); }
.gallery-item:nth-child(5) { background: linear-gradient(135deg, #3a2e26 0%, #221e1a 100%); }

/* ========== Reservations ========== */
.reservations {
  background: var(--bg-main);
}

.reservations-inner {
  max-width: 36rem;
  margin: 0 auto;
}

.reservation-form {
  margin-top: var(--space-xl);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.form-row label {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-row span,
.form-note span {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--cream-muted);
}

.form-row input,
.form-row select,
.form-note textarea {
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--cream);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color var(--duration) var(--ease-out);
}

.form-row input::placeholder,
.form-note textarea::placeholder {
  color: var(--cream-dim);
}

.form-row input:focus,
.form-row select:focus,
.form-note textarea:focus {
  outline: none;
  border-color: var(--gold-dim);
}

.form-note {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.form-note textarea {
  resize: vertical;
  min-height: 80px;
}

.reservation-form .btn {
  width: 100%;
}

/* ========== Contact ========== */
.contact {
  background: var(--bg-elevated);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-info address,
.contact-info .hours {
  color: var(--cream-muted);
  font-style: normal;
  margin-bottom: var(--space-lg);
}

.contact-info address a {
  display: block;
  margin-top: var(--space-xs);
}

.map-placeholder,
.map-link {
  aspect-ratio: 16/10;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream-dim);
  font-size: 0.9rem;
  text-align: center;
  padding: var(--space-md);
}

.contact-map--embed {
  position: relative;
  width: 100%;
  height: 360px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
}

.contact-map--embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-link {
  text-decoration: none;
  color: var(--gold-dim);
  transition: border-color var(--duration) var(--ease-out), color var(--duration) var(--ease-out);
}

.map-link:hover {
  border-color: var(--gold-dim);
  color: var(--gold-light);
}

/* ========== Legal pages (Terms, Privacy, Refund) ========== */
.legal-content {
  max-width: 52rem;
  margin: 0 auto;
}

.legal-content .lead {
  margin-bottom: var(--space-xl);
}

.legal-content h2 {
  font-size: 1.15rem;
  color: var(--gold);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--border);
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p {
  color: var(--cream-muted);
  margin-bottom: var(--space-md);
}

.legal-content a {
  color: var(--gold);
}

.legal-content a:hover {
  color: var(--gold-light);
}

/* ========== Footer ========== */
.site-footer {
  padding: var(--space-2xl) 0;
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
}

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

.footer-inner .logo {
  display: inline-block;
  margin-bottom: var(--space-xs);
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--gold-dim);
  margin-bottom: var(--space-lg);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  list-style: none;
  margin: 0 0 var(--space-lg);
  padding: 0;
}

.footer-links a {
  color: var(--cream-muted);
  font-size: 0.9rem;
}

.footer-links--legal {
  margin-top: 0;
  margin-bottom: var(--space-md);
}

.footer-links--legal a {
  font-size: 0.85rem;
  color: var(--cream-dim);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--cream-dim);
  margin: 0;
}

/* ========== Floating: scroll to top + FAB (WhatsApp, Share, Chat) ========== */
.float-btn {
  position: fixed;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: var(--white);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform var(--duration) var(--ease-out), background var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out);
  text-decoration: none;
  font-size: 1.5rem;
  line-height: 1;
}

.float-btn:hover {
  background: var(--bg-elevated);
  border-color: var(--gold-dim);
  transform: scale(1.05);
}

/* Scroll to top: above the FAB column so it never overlaps */
.float-btn--top {
  right: var(--space-lg);
  bottom: calc(var(--fab-column-height) + var(--space-lg) + var(--space-sm));
  opacity: 0;
  pointer-events: none;
}

.float-btn--top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* FAB container: single icon at bottom-right; menu items stack above */
.fab-wrap {
  position: fixed;
  right: var(--space-lg);
  bottom: var(--space-lg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--fab-gap);
}

.fab-menu {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: var(--fab-gap);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--duration) var(--ease-out), visibility var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}

.fab-wrap.is-open .fab-menu {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fab-menu__item {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  font: inherit;
  transition: transform var(--duration) var(--ease-out), background var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out);
  flex-shrink: 0;
  text-decoration: none;
}

.fab-menu__item:hover {
  background: var(--bg-elevated);
  border-color: var(--gold-dim);
  transform: scale(1.05);
}

.fab-menu__item svg {
  flex-shrink: 0;
}

.fab-menu__item--whatsapp {
  background: #25d366;
  border-color: #20bd5a;
  color: var(--white);
}

.fab-menu__item--whatsapp:hover {
  background: #20bd5a;
  border-color: #25d366;
  color: var(--white);
}

.fab-menu__item--share {
  background: var(--bg-card);
}

.fab-menu__item--chat {
  background: var(--bg-card);
}

.float-btn--fab {
  position: relative;
  right: auto;
  bottom: auto;
  flex-shrink: 0;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.float-btn--fab .fab-icon--open {
  display: none;
}

.float-btn--fab .fab-icon--closed {
  display: block;
}

.fab-wrap.is-open .float-btn--fab .fab-icon--open {
  display: block;
}

.fab-wrap.is-open .float-btn--fab .fab-icon--closed {
  display: none;
}

/* Chatbot panel: above FAB column, aligned right */
.chatbot-panel {
  position: fixed;
  bottom: calc(var(--fab-column-height) + var(--space-lg) + var(--fab-gap) + 4px);
  right: var(--space-lg);
  width: min(360px, calc(100vw - 2 * var(--space-md)));
  max-height: min(420px, 60vh);
  z-index: 1000;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.98);
  transition: opacity var(--duration) var(--ease-out), visibility var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}

.chatbot-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chatbot-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  border-radius: 12px 12px 0 0;
}

.chatbot-panel__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-light);
}

.chatbot-panel__close {
  background: none;
  border: none;
  color: var(--cream-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  border-radius: 4px;
  transition: color var(--duration) var(--ease-out), background var(--duration) var(--ease-out);
}

.chatbot-panel__close:hover {
  color: var(--white);
  background: var(--bg-main);
}

.chatbot-panel__messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  min-height: 180px;
  max-height: 280px;
}

.chatbot-msg {
  max-width: 88%;
  padding: var(--space-xs) var(--space-sm);
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.45;
  word-wrap: break-word;
}

.chatbot-msg--bot {
  align-self: flex-start;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--cream);
}

.chatbot-msg--user {
  align-self: flex-end;
  background: var(--gold);
  color: var(--bg-deep);
  border: none;
}

.chatbot-msg--bot .chatbot-msg__label {
  display: block;
  font-size: 0.7rem;
  color: var(--gold-dim);
  margin-bottom: 2px;
}

.chatbot-panel__input-wrap {
  display: flex;
  gap: var(--space-xs);
  padding: var(--space-sm);
  border-top: 1px solid var(--border);
  background: var(--bg-main);
  border-radius: 0 0 12px 12px;
}

.chatbot-panel__input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--duration) var(--ease-out);
}

.chatbot-panel__input::placeholder {
  color: var(--cream-dim);
}

.chatbot-panel__input:focus {
  outline: none;
  border-color: var(--gold-dim);
}

.chatbot-panel__send {
  padding: 10px 14px;
  background: var(--gold);
  color: var(--bg-deep);
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--duration) var(--ease-out), transform 0.15s ease;
}

.chatbot-panel__send:hover {
  background: var(--gold-light);
}

.chatbot-panel__send:active {
  transform: scale(0.98);
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-visual {
    order: -1;
  }

  .about-frame {
    max-height: 400px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item--wide {
    grid-column: span 2;
  }
}

@media (max-width: 700px) {
  .site-header {
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
    overflow: visible;
  }

  .nav {
    position: relative;
  }

  .logo {
    font-size: 1rem;
    gap: 0.35rem;
    min-width: 0;
  }

  .logo-text {
    max-width: 140px;
  }

  .logo-img {
    height: 2rem;
    flex-shrink: 0;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: var(--space-md);
    background: var(--bg-main);
    border-bottom: 1px solid var(--border);
    z-index: 10;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  }

  .nav.open .nav-links li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border);
  }

  .nav.open .nav-links li:last-child {
    border-bottom: none;
  }

  .menu-list li {
    grid-template-columns: 1fr auto;
  }

  .dish-desc {
    grid-column: 1;
  }

  .dish-price {
    grid-row: 1;
    grid-column: 2;
  }
}

@media (max-width: 480px) {
  :root {
    --space-2xl: 4rem;
    --space-3xl: 5rem;
  }

  .menu-tabs {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

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

  .chatbot-panel {
    right: var(--space-sm);
    bottom: calc(var(--fab-column-height) + var(--space-sm) + var(--fab-gap) + 4px);
    width: calc(100vw - 2 * var(--space-sm));
  }

  .fab-wrap {
    right: var(--space-sm);
    bottom: var(--space-sm);
  }

  .float-btn--top {
    right: var(--space-sm);
    bottom: calc(var(--fab-column-height) + var(--space-sm) + var(--space-sm));
  }
}
