/* ==========================================================================
   Tasty Design — demo restaurant websites
   Shared shell for both demos; each demo sets its own palette on <body>.
   ========================================================================== */

.demo {
  --brand: #d9a441;
  --demo-bg: #0a0a0b;
  --demo-surface: #121214;
  --demo-fg: rgba(255, 255, 255, 0.78);
  --demo-heading: #ffffff;
  background: var(--demo-bg);
  color: var(--demo-fg);
}

/* Demo header ------------------------------------------------------------ */
.demo-bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding-block: 1rem;
  transition: background-color 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.demo-bar.is-stuck {
  background: rgba(8, 8, 9, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding-block: 0.55rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
}
.demo-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.demo-brand {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.7vw, 1.5rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--demo-heading);
}
.demo-brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.52rem;
  letter-spacing: 0.34em;
  color: var(--brand);
  margin-top: 0.28rem;
}
.demo-nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.2rem); }
.demo-nav a {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.3s var(--ease);
}
.demo-nav a:hover { color: var(--brand); }
.demo-nav .btn { --btn-bg: var(--brand); --btn-fg: #10100f; color: #10100f; }
.demo-nav .btn:hover { box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4); }

.demo-nav--compact { display: none; }
@media (max-width: 900px) {
  .demo-bar .demo-nav { display: none; }
  .demo-bar .demo-nav--compact { display: flex; }
}

/* Ribbon telling visitors this is a demo ---------------------------------- */
.demo-ribbon {
  position: fixed;
  z-index: 99;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.6rem 0.7rem 0.6rem 1.15rem;
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  max-width: calc(100% - 2rem);
}
.demo-ribbon strong { color: var(--pink); font-weight: 600; }
.demo-ribbon .btn { padding: 0.55rem 1.1rem; font-size: 0.66rem; }
@media (max-width: 620px) {
  .demo-ribbon { font-size: 0.68rem; gap: 0.6rem; padding-left: 0.9rem; }
  .demo-ribbon span.demo-ribbon__text { display: none; }
}

/* Demo hero --------------------------------------------------------------- */
.demo-hero {
  position: relative;
  min-height: clamp(620px, 100svh, 1000px);
  display: grid;
  align-items: end;
  padding-block: 8rem 4.5rem;
  overflow: hidden;
  isolation: isolate;
}
.demo-hero__bg { position: absolute; inset: -6% 0; z-index: -2; }
.demo-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.demo-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(6, 6, 7, 0.78) 0%, rgba(6, 6, 7, 0.25) 38%, rgba(6, 6, 7, 0.92) 100%);
}
.demo-hero__inner { display: grid; gap: 1.6rem; justify-items: start; max-width: 40rem; }
.demo-hero__kicker {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brand);
}
.demo-hero h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  color: #fff;
  text-transform: uppercase;
}
.demo-hero p { color: rgba(255, 255, 255, 0.76); max-width: 40ch; }
.demo-hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.btn--brand { --btn-bg: var(--brand); --btn-fg: #12100c; }
.btn--brand:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45); }

.demo-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 2.6rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.62);
}
.demo-hero__meta strong { display: block; color: #fff; font-weight: 500; }
.demo-hero__meta span { display: block; font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--brand); margin-bottom: 0.25rem; }

/* Generic demo sections ---------------------------------------------------- */
.demo-section { padding-block: clamp(4rem, 9vw, 8rem); position: relative; }
.demo-section--surface { background: var(--demo-surface); }
.demo-section--light { background: var(--cream); color: var(--text-on-light); }
.demo-section--light h2, .demo-section--light h3 { color: var(--text-on-light); }

.demo-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1rem;
}
.demo-h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); color: var(--demo-heading); text-transform: uppercase; }
.demo-section--light .demo-h2 { color: var(--text-on-light); }
.demo-lede { max-width: 52ch; line-height: 1.7; margin-top: 1.2rem; }

.demo-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 860px) { .demo-split { grid-template-columns: 1fr; } }

.demo-figure { overflow: hidden; border-radius: 4px; }
.demo-figure img { width: 100%; height: 100%; object-fit: cover; }

/* Specials ----------------------------------------------------------------- */
.specials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 2rem); }
.special {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  min-height: clamp(280px, 32vw, 420px);
  display: grid;
  align-content: end;
  padding: 1.6rem;
  color: #fff;
  isolation: isolate;
}
.special img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.special::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 30%, rgba(0, 0, 0, 0.85) 100%);
}
.special:hover img { transform: scale(1.06); }
.special h3 { font-size: 1.35rem; text-transform: uppercase; margin-bottom: 0.4rem; }
.special p { font-size: 0.86rem; color: rgba(255, 255, 255, 0.75); }
.special span {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.6rem;
}
@media (max-width: 860px) { .specials { grid-template-columns: 1fr; } }

/* Gallery ------------------------------------------------------------------ */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}
.gallery figure { margin: 0; overflow: hidden; aspect-ratio: 1; }
.gallery figure:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.gallery figure:hover img { transform: scale(1.05); }
@media (max-width: 720px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery figure:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 3 / 2; }
}

/* Visit / hours / location -------------------------------------------------- */
.visit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); }
.visit h3 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1rem;
}
.visit ul { display: grid; gap: 0.5rem; font-size: 0.92rem; }
.visit li { display: flex; justify-content: space-between; gap: 1.5rem; }
.visit li b { font-weight: 500; }
.visit address { font-style: normal; line-height: 1.8; font-size: 0.95rem; }
.visit .demo-actions { display: grid; gap: 0.7rem; justify-items: start; margin-top: 1.2rem; }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } }

/* QR block ------------------------------------------------------------------ */
.qr-block {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  max-width: 27rem;
}
.demo-section--light .qr-block { border-color: rgba(10, 10, 11, 0.14); }
.qr-block__code {
  width: 104px; height: 104px;
  flex: none;
  background: #fff;
  padding: 6px;
  border-radius: 8px;
}
.qr-block p { font-size: 0.86rem; line-height: 1.55; }
.qr-block strong { display: block; color: var(--demo-heading); margin-bottom: 0.3rem; }
.demo-section--light .qr-block strong { color: var(--text-on-light); }

/* Tasty Design outro -------------------------------------------------------- */
.outro {
  position: relative;
  text-align: center;
  padding-block: clamp(4.5rem, 10vw, 9rem);
  background: #060607;
  display: grid;
  justify-items: center;
  gap: 1.4rem;
}
.outro h2 { font-size: clamp(1.9rem, 4.4vw, 3.4rem); color: #fff; }
.outro p { color: var(--text-on-dark-dim); max-width: 46ch; }
.outro__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-top: 0.6rem; }
.outro .logo { margin-bottom: 0.4rem; }

/* Demo footer ---------------------------------------------------------------- */
.demo-footer {
  background: #050506;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  /* extra room at the bottom so the floating demo ribbon never covers text */
  padding-block: 2.5rem 6rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}
.demo-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; }
.demo-footer .socials a { color: var(--brand); }
