/* ══════════════════════════════════════════════════
   HOME PAGE — Exact Qitchen layout (scraped values)
   Desktop: big left tile + 3 stacked right tiles
   Tablet (<1024px): big top tile + 3 bottom tiles grid
   ══════════════════════════════════════════════════ */

/* ── LANDING WRAPPER ── */
.landing {
  background: var(--bg);
  padding: var(--page-pad);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: var(--tile-gap);
}

/* ── PILL NAV (home-specific) ── */
.pill-nav {
  position: fixed;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--nav-radius);
  padding: 8px 8px 8px 16px;
  white-space: nowrap;
}

.pill-nav__burger {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: none;
  display: none; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  cursor: pointer;
  flex-shrink: 0;
}
.pill-nav__burger span {
  display: block;
  width: 12px; height: 1.5px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.pill-nav__burger.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.pill-nav__burger.open span:nth-child(2) { opacity: 0; }
.pill-nav__burger.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Logo is now managed entirely from wp-admin -> Customize -> Site
   Identity -> Logo (WordPress's own upload + crop UI), not a hardcoded
   file -- this just sizes whatever's uploaded to fit the pill. */
.pill-nav__logo {
  display: flex;
  align-items: center;
  margin-right: 4px;
}
.pill-nav__logo img {
  height: 32px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}
.pill-nav__logo-text {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
}

.pill-nav__links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.pill-nav__links a {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-muted);
  transition: color 0.2s;
}
.pill-nav__links a:hover { color: var(--cream); }

.pill-nav__cta {
  background: var(--cream);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: 100px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.pill-nav__cta:hover { background: var(--gold); }

.pill-nav__order { flex-shrink: 0; }
.pill-nav__order-btn {
  display: block;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  padding: 9px 18px;
  border-radius: 100px;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.pill-nav__order:hover .pill-nav__order-btn { border-color: rgba(255,255,255,0.3); }

/* ── HERO GRID ── */
.tile-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--tile-gap);
  flex: 1;
  min-height: calc(100vh - 32px);  /* 16px top + 16px bottom padding */
}

/* ── TILE BASE ── */
.tile {
  position: relative;
  border-radius: var(--tile-radius);
  overflow: hidden;
  background: var(--surface);
}

.tile__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.tile__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5,5,5,0.04) 0%,
    rgba(5,5,5,0.62) 100%
  );
}

/* ── MAIN (LEFT) HERO TILE ── */
.tile--main {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* VIDEO placeholder / actual video */
.tile__video-wrap {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.tile__video-wrap video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.tile__video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f1008;
}
.tile__video-placeholder img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.tile__content {
  position: relative;
  z-index: 2;
  padding: 32px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

/* ── HERO TITLE ── */
.tile__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(56px, 9.5vw, 112px);
  line-height: 0.88;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--cream);
  display: flex;
  flex-direction: column;
}

/* ── SOCIAL ICONS ── */
.tile__social {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: flex-end;
  padding-bottom: 4px;
}
.tile__social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-size: 13px;
  transition: background 0.2s, border-color 0.2s;
  backdrop-filter: blur(8px);
}
.tile__social a:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.3);
}

/* ── RIGHT STACK ── */
.tile-stack {
  display: flex;
  flex-direction: column;
  gap: var(--tile-gap);
}

/* ── NAV TILES ── */
.tile--nav {
  flex: 1;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
  text-decoration: none;
}
/* Same moody wash as the hero tile at rest -- an even dark tint across the
   whole photo, not just a bottom-heavy gradient, so bright/colourful shots
   (cocktails, plated food) read as dark and cinematic like the hero video
   instead of looking washed out next to it. */
.tile--nav .tile__overlay {
  background: linear-gradient(to bottom, rgba(5,5,5,0.45) 0%, rgba(5,5,5,0.72) 100%);
  transition: background 0.4s var(--ease);
}
/* On hover the photo brightens and comes into focus (fade lifts, image
   zooms in slightly) instead of darkening further -- matches the Qitchen
   reference's hover treatment. */
.tile--nav:hover .tile__bg { transform: scale(1.08); }
.tile--nav:hover .tile__overlay {
  background: linear-gradient(to bottom, rgba(5,5,5,0.05) 0%, rgba(5,5,5,0.3) 100%);
}

/* Floating pill badge inset from the tile's bottom-right corner -- matches
   the Qitchen reference exactly (no notch/flush-edge treatment). */
.tile__nav-label {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 13px 13px 20px;
  background: var(--bg);
  border-radius: 100px;
}
.tile__nav-label span {
  font-family: var(--font-heading);
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  line-height: 1;
  white-space: nowrap;
}
.tile__nav-arrow {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--cream);
  flex-shrink: 0;
  transition: background 0.2s;
}
.tile--nav:hover .tile__nav-arrow {
  background: var(--cream);
  color: var(--bg);
}

/* Mobile menu overlay + burger icon are global now (style.css) -- every
   inner page uses them too, not just Home. */

/* ══ RESPONSIVE ══════════════════════════════════════════════ */

/* Tablet: switch to top-big + bottom-3 grid */
@media (max-width: 1024px) {
  .tile-grid {
    display: flex;
    flex-direction: column;
    min-height: unset;
    flex: 1;
  }
  .tile--main {
    flex: 1;
    min-height: 300px;
  }
  .tile-stack {
    flex-direction: row;
    height: 200px;
    flex-shrink: 0;
  }
  .tile--nav {
    flex: 1;
  }
  .tile__title {
    font-size: clamp(40px, 6.5vw, 80px);
  }
}

/* Touch nav: hide the hover-dependent inline links whenever the burger's
   the only reliable way to reach Bar/Order Online -- matches the inner
   pages' 767px switch-to-burger breakpoint (see style.css) so there's no
   gap where a hover-only link is still directly tappable. */
@media (max-width: 767px) {
  .pill-nav__links { display: none; }
  .pill-nav__burger { display: flex; }
  /* Order Online and Reserve Table can't both fit as full-text pills
     alongside the logo and burger on a phone screen. Order Online is the
     primary conversion action, so it stays as the one visible pill;
     Reserve Table moves into the burger's slide-out menu instead (it's
     already listed there). */
  .pill-nav__cta { display: none; }
}

/* Mobile */
@media (max-width: 640px) {
  .landing { padding: 10px; gap: 10px; }
  .pill-nav { padding: 6px 6px 6px 12px; gap: 8px; }
  .tile-grid { gap: 10px; }
  /* dvh (not vh) so the card matches the phone's actual visible viewport --
     vh is measured against the browser's tallest state (address bar
     hidden), so on load (address bar showing) a 100vh card runs taller
     than what's on screen and pushes the title off the bottom edge. */
  .tile--main { flex: none; height: calc(100vh - 20px); height: calc(100dvh - 20px); min-height: 480px; }
  .tile-stack { flex-direction: column; flex: none; height: calc(100vh - 20px); height: calc(100dvh - 20px); }
  .tile--nav { flex: 1; height: auto; }
  .tile__title { font-size: clamp(40px, 11vw, 56px); }
  .tile__content { padding: 20px; }
}
