/* =========================================================
   Queen Taste & Pub — Menu Site
   "The menu folder": the screen is an extension of the
   printed posters — ivory paper, burgundy ribbons, gold
   ornament. Every device here is lifted from the posters.
   ========================================================= */

:root {
  /* --- paper & ink --- */
  --paper:       #FDF4E0;
  --paper-warm:  #F9EBD0;
  --paper-edge:  #F2DFBC;

  /* --- burgundy --- */
  --wine:        #6E1524;
  --wine-lift:   #7D1A2B;
  --wine-deep:   #52101A;

  /* --- gold --- */
  --gold:        #D4A437;
  --gold-soft:   #E5C46E;
  --gold-deep:   #A97C1E;

  /* --- ink --- */
  --cocoa:       #4A2418;
  --cocoa-mute:  #7A5340;

  --lift-1: 0 2px 0 rgba(110,21,36,.05), 0 8px 20px rgba(74,36,24,.10);
  --lift-2: 0 4px 0 rgba(110,21,36,.07), 0 18px 38px rgba(74,36,24,.18);

  --font-display: 'Oswald', 'Haettenschweiler', 'Arial Narrow', sans-serif;
  --font-accent:  'Playfair Display', Georgia, 'Times New Roman', serif;

  --page: 1080px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(212,164,55,.10), transparent 62%),
    var(--paper);
  color: var(--cocoa);
  font-family: var(--font-display);
  font-weight: 300;
  min-height: 100dvh;
  overflow-x: hidden;
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =========================================================
   ORNAMENT — the double gold hairline with diamond nodes
   that frames every printed poster.
   ========================================================= */

.frame {
  position: relative;
  border: 1.5px solid var(--gold);
  border-radius: 24px;
  box-shadow:
    inset 0 0 0 3px var(--paper),
    inset 0 0 0 4px rgba(212,164,55,.40);
}

.node {
  position: absolute;
  width: 13px;
  height: 13px;
  background: var(--paper);
  border: 1.5px solid var(--gold);
  transform: rotate(45deg);
}
.node.tl { top: -7px; left:  -7px; }
.node.tr { top: -7px; right: -7px; }
.node.bl { bottom: -7px; left:  -7px; }
.node.br { bottom: -7px; right: -7px; }

/* =========================================================
   HERO
   ========================================================= */

.hero {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(18px, 5vw, 34px) clamp(16px, 5vw, 28px) 0;
}

.hero-inner {
  text-align: center;
  padding: clamp(30px, 8vw, 52px) clamp(18px, 6vw, 46px) clamp(26px, 7vw, 44px);
  background: linear-gradient(180deg, #FFFAF0 0%, var(--paper-warm) 100%);
}

.logo {
  display: block;
  margin: 0 auto;
  width: clamp(190px, 56vw, 320px);
  height: auto;
}

.tagline {
  margin-top: clamp(12px, 3vw, 18px);
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(14px, 3.6vw, 18px);
  color: var(--gold-deep);
  letter-spacing: .02em;
}

.rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: clamp(16px, 4vw, 22px) auto 0;
  max-width: 320px;
}
.rule::before,
.rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.rule i {
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}

.location {
  margin: clamp(14px, 4vw, 20px) auto 0;
  max-width: 34ch;
  font-size: clamp(11px, 3vw, 13px);
  font-weight: 400;
  letter-spacing: .06em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--cocoa-mute);
}
.location b {
  font-weight: 500;
  color: var(--wine);
}
.location b::after {
  content: ' · ';
  color: var(--gold-deep);
}

/* =========================================================
   RIBBON — the signature device. Burgundy plaque flanked by
   gold diamonds, exactly as it tops each printed page.
   ========================================================= */

.ribbon {
  display: flex;
  align-items: center;
  max-width: 640px;
  margin: clamp(38px, 9vw, 64px) auto clamp(22px, 5vw, 30px);
  padding: 0 6px;
}
.ribbon::before,
.ribbon::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 45%, var(--gold));
}
.ribbon::after { transform: scaleX(-1); }

.ribbon h2 {
  position: relative;
  flex: none;
  margin: 0 14px;
  padding: 9px clamp(26px, 7vw, 44px);
  background: linear-gradient(180deg, var(--wine-lift), var(--wine-deep));
  border-radius: 13px;
  box-shadow:
    inset 0 0 0 1px rgba(229,196,110,.55),
    0 6px 16px rgba(110,21,36,.22);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(17px, 4.6vw, 23px);
  line-height: 1;
  letter-spacing: .26em;
  text-indent: .26em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ribbon h2::before,
.ribbon h2::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 11px;
  height: 11px;
  background: var(--paper);
  border: 1.5px solid var(--gold);
  transform: translateY(-50%) rotate(45deg);
}
.ribbon h2::before { left:  -6px; }
.ribbon h2::after  { right: -6px; }

/* =========================================================
   MENU
   ========================================================= */

.menu {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 28px);
}

.lede {
  text-align: center;
  margin-top: clamp(26px, 7vw, 38px);
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(13px, 3.4vw, 16px);
  color: var(--cocoa-mute);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 3.4vw, 20px);
}
/* Straight from 2 to 4 columns: Sip has exactly four pages, so it lands as one
   clean row. A 3-column step would strand a single card on its own line. */
@media (min-width: 760px) { .grid { grid-template-columns: repeat(4, 1fr); } }

/* ---- category card: a poster page on the shelf ---- */

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 8px 14px;
  background: var(--paper-warm);
  border: 1px solid rgba(212,164,55,.55);
  border-radius: 16px;
  box-shadow: var(--lift-1);
  font: inherit;
  color: inherit;
  text-align: center;
  cursor: pointer;
  transition: transform .28s cubic-bezier(.2,.7,.3,1),
              box-shadow .28s ease,
              border-color .28s ease;
}

.card-page {
  display: block;
  position: relative;
  aspect-ratio: 1127 / 1600;
  border-radius: 9px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(212,164,55,.45);
}

.card-page img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.7,.3,1);
}

.card-label { display: block; }

.card-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(13px, 3.5vw, 16px);
  line-height: 1.15;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--wine);
}

.card-sub {
  display: block;
  margin-top: 5px;
  padding: 0 4px;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(11px, 2.9vw, 12.5px);
  line-height: 1.35;
  color: var(--cocoa-mute);
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--lift-2);
    border-color: var(--gold);
  }
  .card:hover .card-page img { transform: scale(1.035); }
}
.card:active { transform: translateY(-1px) scale(.985); }

/* ---- the pub card: burgundy close to a paper page ---- */

.feature {
  display: grid;
  grid-template-columns: clamp(108px, 30vw, 190px) 1fr;
  gap: clamp(16px, 4.5vw, 30px);
  align-items: center;
  width: 100%;
  margin-top: clamp(38px, 9vw, 60px);
  padding: clamp(16px, 4.5vw, 26px);
  background:
    radial-gradient(120% 130% at 12% 0%, var(--wine-lift), var(--wine-deep) 72%);
  border: 1.5px solid var(--gold);
  border-radius: 22px;
  box-shadow:
    inset 0 0 0 3px var(--wine-deep),
    inset 0 0 0 4px rgba(212,164,55,.40),
    var(--lift-2);
  font: inherit;
  color: var(--paper);
  text-align: left;
  cursor: pointer;
  transition: transform .28s cubic-bezier(.2,.7,.3,1), box-shadow .28s ease;
}

.feature .card-page {
  background: var(--wine-deep);
  box-shadow: inset 0 0 0 1px rgba(212,164,55,.55);
}

.feature-body { display: block; }

.feature-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 6vw, 34px);
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--paper);
}

.feature-sub {
  display: block;
  margin-top: 10px;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(12.5px, 3.4vw, 16px);
  line-height: 1.45;
  color: var(--gold-soft);
}

.feature-cue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: clamp(12px, 3.5vw, 18px);
  font-size: clamp(10px, 2.8vw, 12px);
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}
.feature-cue svg { flex: none; }

@media (hover: hover) {
  .feature:hover { transform: translateY(-4px); }
  .feature:hover .card-page img { transform: scale(1.035); }
}
.feature:active { transform: translateY(-1px) scale(.99); }

/* ---- closing mark ---- */

.colophon {
  margin: clamp(40px, 10vw, 64px) auto clamp(10px, 3vw, 20px);
  text-align: center;
}
.colophon p {
  margin-top: 14px;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--cocoa-mute);
  opacity: .7;
}

/* =========================================================
   STICKY CONTACT BAR
   ========================================================= */

.footer-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: var(--page);
  margin: 0 auto;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(253,244,224,.90), var(--paper) 55%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1.5px solid var(--gold);
}

.action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 10px;
  border-radius: 12px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(12px, 3.2vw, 14px);
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform .18s ease, background .2s ease, box-shadow .2s ease;
}
.action svg { flex: none; }
.action:active { transform: scale(.965); }

.action.call {
  background: linear-gradient(180deg, var(--wine-lift), var(--wine-deep));
  color: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(229,196,110,.5), 0 4px 12px rgba(110,21,36,.25);
}
.action.fb {
  background: var(--paper-warm);
  color: var(--wine);
  box-shadow: inset 0 0 0 1.5px var(--gold);
}

@media (hover: hover) {
  .action.call:hover { background: linear-gradient(180deg, #8C1E31, var(--wine)); }
  .action.fb:hover   { background: #FFF6E4; box-shadow: inset 0 0 0 1.5px var(--gold-deep); }
}

/* =========================================================
   LIGHTBOX — the page, full size
   ========================================================= */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(125,26,43,.55), transparent 60%),
    rgba(40,9,15,.97);
  animation: fadeIn .22s ease both;
}
.lightbox[hidden] { display: none; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.lb-title {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  padding: 7px 22px;
  background: linear-gradient(180deg, var(--wine-lift), var(--wine-deep));
  border-radius: 11px;
  box-shadow: inset 0 0 0 1px rgba(229,196,110,.6);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(12px, 3.4vw, 15px);
  letter-spacing: .2em;
  text-indent: .2em;
  text-transform: uppercase;
  color: var(--paper);
  white-space: nowrap;
  pointer-events: none;
}

.lb-counter {
  position: absolute;
  top: calc(62px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .3em;
  text-indent: .3em;
  color: var(--gold);
  pointer-events: none;
}

.lb-close,
.lb-nav {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  color: var(--wine);
  cursor: pointer;
  transition: transform .16s ease, background .2s ease;
}
@media (hover: hover) {
  .lb-close:hover, .lb-nav:hover { background: var(--gold-soft); }
}

.lb-close {
  top: calc(14px + env(safe-area-inset-top));
  right: 14px;
  width: 42px;
  height: 42px;
}
.lb-close:active { transform: scale(.9); }

.lb-nav {
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
}
.lb-nav.prev { left: 12px; }
.lb-nav.next { right: 12px; }
.lb-nav:active { transform: translateY(-50%) scale(.9); }

@media (max-width: 420px) {
  .lb-nav { width: 38px; height: 38px; }
  .lb-nav.prev { left: 8px; }
  .lb-nav.next { right: 8px; }
}

.lb-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 14px 74px;
  overflow: hidden;
  touch-action: pinch-zoom;
}

.lb-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(212,164,55,.45), 0 20px 50px rgba(0,0,0,.55);
  user-select: none;
  -webkit-user-drag: none;
  animation: pageIn .3s cubic-bezier(.2,.7,.3,1) both;
}

@keyframes pageIn {
  from { opacity: 0; transform: scale(.97); }
  to   { opacity: 1; transform: scale(1); }
}

.lb-dots {
  position: absolute;
  bottom: calc(20px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 7px;
  padding: 8px 12px;
  background: rgba(40,9,15,.5);
  border-radius: 999px;
}

.lb-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(229,196,110,.35);
  cursor: pointer;
  transition: width .25s ease, background .25s ease, border-radius .25s ease;
}
.lb-dots .dot.active {
  width: 20px;
  border-radius: 3px;
  background: var(--gold);
}

body.lb-open { overflow: hidden; }

/* =========================================================
   PAGE-LOAD REVEAL
   ========================================================= */

.reveal {
  animation: rise .55s cubic-bezier(.2,.7,.3,1) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .card:hover, .feature:hover { transform: none; }
}
