/* La Tavola — Restaurant Demo Design */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

.demo-body {
  margin: 0;
  font-family: var(--demo-font);
  color: var(--demo-cream);
  background: var(--demo-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.demo-container {
  width: min(var(--demo-container), calc(100% - 2rem));
  margin: 0 auto;
}

.demo-skip {
  position: absolute;
  left: -999px;
  background: var(--demo-gold);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--demo-radius-sm);
  z-index: 200;
  font-weight: 600;
}
.demo-skip:focus { left: 1rem; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Header */
.demo-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 17, 15, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--demo-border);
}

.demo-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
  position: relative;
}

.demo-brand { display: flex; align-items: center; gap: 0.85rem; }

.demo-brand__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--demo-gold) 0%, #8b3a12 100%);
  color: #fff;
  border-radius: 50%;
  font-family: var(--demo-display);
  font-size: 0.85rem;
  font-weight: 700;
  font-style: italic;
}

.demo-brand__text strong {
  display: block;
  font-family: var(--demo-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.demo-brand__text small {
  display: block;
  font-size: 0.68rem;
  color: var(--demo-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 0.1rem;
}

.demo-site-nav {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.demo-site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--demo-muted);
  padding: 0.5rem 0.75rem;
  border-radius: var(--demo-radius-sm);
  transition: color 0.2s, background 0.2s;
}

.demo-site-nav a:hover { color: var(--demo-cream); background: rgba(255,255,255,0.04); }
.demo-site-nav a.is-active { color: var(--demo-gold-light); }

.demo-nav-cta {
  background: var(--demo-gold) !important;
  color: #fff !important;
  font-weight: 700 !important;
  margin-left: 0.35rem;
  border-radius: 999px !important;
  padding: 0.5rem 1rem !important;
}

.demo-nav-toggle {
  display: none;
  margin-left: auto;
  padding: 0.5rem 0.85rem;
  background: var(--demo-surface);
  border: 1px solid var(--demo-border);
  border-radius: var(--demo-radius-sm);
  color: var(--demo-cream);
  font-family: var(--demo-font);
  cursor: pointer;
}

/* Typography */
.demo-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--demo-gold-light);
  margin-bottom: 0.85rem;
}

.demo-section--light .demo-eyebrow { color: var(--demo-gold); }

.demo-title {
  font-family: var(--demo-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  font-style: italic;
}

.demo-title--xl { font-size: clamp(2.3rem, 5.5vw, 3.6rem); }
.demo-title--lg { font-size: clamp(1.75rem, 3.5vw, 2.4rem); font-style: normal; }
.demo-title--md { font-size: clamp(1.35rem, 2.5vw, 1.75rem); font-style: normal; }

.demo-lead {
  font-size: 1.08rem;
  color: var(--demo-muted);
  max-width: 50ch;
  line-height: 1.75;
  margin: 0;
}

.demo-lead--center { margin-inline: auto; text-align: center; }
.demo-text { color: var(--demo-light-muted); line-height: 1.75; margin: 1rem 0 1.5rem; }

.demo-section--light .demo-title { color: var(--demo-light-text); }
.demo-section--light .demo-lead,
.demo-section--light .demo-text { color: var(--demo-light-muted); }

.demo-section { padding: 5rem 0; }
.demo-section--light { background: var(--demo-light); color: var(--demo-light-text); }
.demo-section--dark { background: var(--demo-surface); }

.demo-section__cta { text-align: center; margin-top: 2.5rem; }
.demo-heading { max-width: 680px; margin-bottom: 2.5rem; }
.demo-heading--center { text-align: center; margin-inline: auto; }

/* Hero */
.demo-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(196, 92, 38, 0.2), transparent 55%),
    radial-gradient(ellipse 40% 35% at 10% 80%, rgba(196, 92, 38, 0.08), transparent 50%),
    linear-gradient(180deg, #1a1512 0%, var(--demo-bg) 100%);
}

.demo-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30h60M30 0v60' stroke='%23a89888' stroke-opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

.demo-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.demo-hero__badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--demo-gold-light);
  border: 1px solid var(--demo-border-accent);
  border-radius: 999px;
  background: var(--demo-gold-dim);
}

.demo-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.demo-hero__meta {
  margin-top: 2rem;
  font-size: 0.88rem;
  color: var(--demo-muted);
}

.demo-hero__meta strong { color: var(--demo-cream); }

.demo-hero__dishes {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.demo-dish-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  background: rgba(28, 24, 22, 0.85);
  border: 1px solid var(--demo-border);
  border-radius: var(--demo-radius);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, transform 0.2s;
}

.demo-dish-card:hover {
  border-color: var(--demo-border-accent);
  transform: translateX(4px);
}

.demo-dish-card__tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--demo-gold);
  margin-bottom: 0.25rem;
}

.demo-dish-card h3 {
  margin: 0;
  font-family: var(--demo-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.demo-dish-card__price {
  font-family: var(--demo-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--demo-gold-light);
  white-space: nowrap;
}

/* Buttons */
.demo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-family: var(--demo-font);
  font-size: 0.9rem;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
}

.demo-btn:hover { transform: translateY(-1px); }

.demo-btn--primary {
  background: var(--demo-gold);
  color: #fff;
  box-shadow: 0 8px 28px rgba(196, 92, 38, 0.35);
}

.demo-btn--primary:hover { background: var(--demo-gold-light); }

.demo-btn--ghost {
  background: transparent;
  color: var(--demo-cream);
  border-color: var(--demo-border);
}

.demo-btn--ghost:hover { border-color: var(--demo-gold); color: var(--demo-gold-light); }

.demo-section--light .demo-btn--ghost {
  color: var(--demo-light-text);
  border-color: rgba(28, 20, 16, 0.15);
}

.demo-btn--secondary {
  background: var(--demo-light-text);
  color: #fff;
}

.demo-btn--dark { background: var(--demo-light-text); color: #fff; }
.demo-btn--dark-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}

.demo-btn--gold { background: var(--demo-gold); color: #fff; }
.demo-btn--outline {
  background: transparent;
  border: 2px solid var(--demo-border);
  color: var(--demo-cream);
}

/* Cards & grids */
.demo-card {
  background: var(--demo-surface);
  border: 1px solid var(--demo-border);
  border-radius: var(--demo-radius);
  padding: 1.5rem;
}

.demo-section--light .demo-card {
  background: var(--demo-light-surface);
  border-color: rgba(28, 20, 16, 0.08);
  box-shadow: 0 12px 40px rgba(28, 20, 16, 0.06);
}

.demo-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.demo-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

/* Menu */
.demo-menu-category { margin-bottom: 3rem; }
.demo-menu-category:last-child { margin-bottom: 0; }

.demo-menu-category h2 {
  font-family: var(--demo-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--demo-gold);
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--demo-border);
}

.demo-section--light .demo-menu-category h2 { color: var(--demo-gold); border-color: rgba(28,20,16,0.1); }

.demo-menu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px dashed var(--demo-border);
}

.demo-menu-item:last-child { border-bottom: none; }

.demo-menu-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.demo-section--light .demo-menu-item h3 { color: var(--demo-light-text); }

.demo-menu-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--demo-muted);
  line-height: 1.55;
}

.demo-section--light .demo-menu-item p { color: var(--demo-light-muted); }

.demo-menu-item__price {
  flex-shrink: 0;
  font-family: var(--demo-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--demo-gold-light);
  white-space: nowrap;
}

.demo-section--light .demo-menu-item__price { color: var(--demo-gold); }

/* Split / gallery */
.demo-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.demo-about-img {
  border-radius: var(--demo-radius);
  overflow: hidden;
  min-height: 400px;
}

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

.demo-gallery__item { border-radius: var(--demo-radius-sm); overflow: hidden; border: 1px solid var(--demo-border); }
.demo-gallery__item--wide { grid-column: span 2; }

/* Reviews */
.demo-review p { font-size: 1.02rem; line-height: 1.75; margin: 0 0 1rem; font-style: italic; }
.demo-section--light .demo-review p { color: var(--demo-light-text); }
.demo-stars { color: var(--demo-gold); margin-bottom: 0.75rem; letter-spacing: 0.08em; }
.demo-review cite { font-style: normal; font-size: 0.85rem; font-weight: 700; color: var(--demo-light-muted); }

/* CTA band */
.demo-cta-band {
  background: linear-gradient(135deg, #8b3a12 0%, var(--demo-gold) 100%);
  padding: 4rem 0;
}

.demo-cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.demo-cta-band .demo-title,
.demo-cta-band .demo-lead { color: #fff; }
.demo-cta-band .demo-eyebrow { color: rgba(255,255,255,0.85); }
.demo-cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Page hero */
.demo-page-hero {
  padding: 3.5rem 0 2rem;
  background: linear-gradient(180deg, rgba(196,92,38,0.1) 0%, transparent 100%), var(--demo-bg);
  border-bottom: 1px solid var(--demo-border);
}

/* Contact */
.demo-contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
}

.demo-form label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--demo-muted);
}

.demo-form input,
.demo-form select,
.demo-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.8rem 1rem;
  background: var(--demo-surface-2);
  border: 1px solid var(--demo-border);
  border-radius: var(--demo-radius-sm);
  color: var(--demo-cream);
  font: inherit;
}

.demo-form input:focus,
.demo-form select:focus,
.demo-form textarea:focus {
  outline: none;
  border-color: var(--demo-gold);
  box-shadow: 0 0 0 3px var(--demo-gold-dim);
}

.demo-info-list { display: flex; flex-direction: column; gap: 1.25rem; }
.demo-info-item strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--demo-gold);
  margin-bottom: 0.35rem;
}
.demo-info-item p, .demo-info-item a { display: block; color: var(--demo-muted); font-size: 0.95rem; }
.demo-info-item a:hover { color: var(--demo-gold-light); }

.demo-hours { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.demo-hours td { padding: 0.35rem 0; color: var(--demo-muted); }
.demo-hours td:last-child { text-align: right; color: var(--demo-cream); font-weight: 600; }

/* Team */
.demo-team-card { text-align: center; }
.demo-team-card__avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--demo-gold-dim);
}
.demo-team-card h3 { margin: 0 0 0.25rem; }
.demo-team-card span { font-size: 0.85rem; color: var(--demo-muted); }

/* Footer */
.demo-footer {
  background: var(--demo-surface);
  border-top: 1px solid var(--demo-border);
  padding: 3rem 0 1.5rem;
}

.demo-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.demo-footer__grid strong { display: block; margin-bottom: 0.75rem; font-family: var(--demo-display); }
.demo-footer__grid p, .demo-footer__grid span, .demo-footer__grid a {
  display: block;
  font-size: 0.88rem;
  color: var(--demo-muted);
  margin-bottom: 0.35rem;
}
.demo-footer__grid a:hover { color: var(--demo-gold-light); }

.demo-footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--demo-border);
  font-size: 0.82rem;
  color: var(--demo-muted);
}
.demo-footer__bottom div { display: flex; gap: 1rem; }

.demo-whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #25d366;
  color: #fff;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s;
}
.demo-whatsapp-float:hover { transform: scale(1.04); }

/* Placeholders */
.demo-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: linear-gradient(145deg, var(--demo-surface-2), var(--demo-surface));
  border: 1px dashed var(--demo-border);
  color: var(--demo-muted);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.82rem;
}

.demo-section--light .demo-img-placeholder {
  background: linear-gradient(145deg, #ede8e0, #f5f0e8);
  border-color: rgba(28,20,16,0.12);
  color: var(--demo-light-muted);
}

.demo-about-img .demo-img-placeholder { min-height: 400px; }
.demo-gallery__item .demo-img-placeholder { min-height: 100%; }

/* Reveal */
.demo-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.demo-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 960px) {
  .demo-hero__inner, .demo-split, .demo-contact-grid { grid-template-columns: 1fr; }
  .demo-hero__dishes { order: -1; }
  .demo-grid-3, .demo-footer__grid { grid-template-columns: repeat(2, 1fr); }
  .demo-process::before { display: none; }
  .demo-gallery { grid-template-columns: repeat(2, 1fr); }
  .demo-gallery__item--wide { grid-column: span 2; }
}

@media (max-width: 640px) {
  .demo-section { padding: 3.5rem 0; }
  .demo-site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(20, 17, 15, 0.98);
    border-bottom: 1px solid var(--demo-border);
    padding: 0.75rem;
    margin-left: 0;
  }
  .demo-site-nav.is-open { display: flex; }
  .demo-nav-toggle { display: inline-flex; }
  .demo-grid-2, .demo-grid-3, .demo-footer__grid { grid-template-columns: 1fr; }
  .demo-gallery { grid-template-columns: 1fr; }
  .demo-gallery__item--wide { grid-column: span 1; }
  .demo-hero__actions { flex-direction: column; }
  .demo-hero__actions .demo-btn { width: 100%; }
  .demo-cta-band__inner { flex-direction: column; align-items: flex-start; }
}
