/* ============================================================
   PINKY'S — Downtown Phoenix
   v1: clean working layout. v2 will add lights-on hover swap
   and the scroll-driven logo morph.
   ============================================================ */

:root {
  --bg:          #1a0f0a;
  --bg-elev:    #271812;
  --nav-bg:     #2a1810;   /* warm reddish-brown to match mockup */
  --text:       #f3e3c8;
  --text-dim:   #c9b48f;
  --accent:     #e9c97a;
  --rope:       #d9bb7a;
  --shadow:     0 6px 20px rgba(0,0,0,.45);

  --nav-h:      72px;
  --max-w:      1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Georgia", "Times New Roman", serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* offset for sticky nav so anchor links don't hide under it */
  scroll-padding-top: var(--nav-h);
}

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

/* SEO: an h1 inside the hero gives the page proper semantic structure
   without disrupting the visual design. Hidden from sight, visible to
   crawlers and screen readers. */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #fff; }

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  box-shadow: var(--shadow);
  overflow: visible; /* let the center logo overhang the bottom rope */
}

/* Full-width rope rails framing the nav.
   The source PNG has the rope at the BOTTOM with a huge transparent
   area above — so we clamp height and crop to the rope using
   object-fit + object-position. */
.nav__rope {
  display: block;
  width: 100%;
  height: clamp(12px, 1.5vw, 22px);
  object-fit: cover;
  pointer-events: none;
}
/* Source has the rope at the BOTTOM of the PNG, so we anchor it to bottom on both rails.
   Top rail: rope sits flush against the nav inner (transparent area is above, blends into bg).
   Bottom rail: rope sits flush against the hero (transparent area is above, inside the nav). */
.nav__rope--top    { object-position: center bottom; margin-bottom: -2px; }
.nav__rope--bottom { object-position: center bottom; margin-top: -2px; position: relative; z-index: 1; }

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr auto 1fr 1fr;
  align-items: center;
  gap: 16px;
  min-height: var(--nav-h);
  position: relative;
}

.nav__btn {
  display: flex;
  justify-content: center;
  transform: translateX(var(--btn-shift, 0));
  transition: transform .25s cubic-bezier(.2,.7,.3,1.4),
              filter   .25s ease;
  will-change: transform;
}

.nav__btn img {
  height: 54px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.5));
}

/* About + Contact ~10px larger per request */
.nav__btn--lg img { height: 64px; }
.nav__btn--lg     { position: relative; top: 5px; }  /* nudge down to baseline-align with smaller buttons */

/* Pull the outermost buttons in toward the center by 40px */
.nav__btn[data-zone="home"]    { --btn-shift: 40px; }
.nav__btn[data-zone="contact"] { --btn-shift: -40px; }

.nav__btn:hover,
.nav__btn:focus-visible {
  transform: translateX(var(--btn-shift, 0)) scale(1.12) translateY(-2px);
  filter: drop-shadow(0 0 12px rgba(233,201,122,.55));
}

.nav__btn:active {
  transform: translateX(var(--btn-shift, 0)) scale(1.05);
}

/* Center logo: oval banner with the rope-script "Pinky's" on top.
   Sized larger than the bar so it busts through both ropes
   like a belt buckle, with heavier overhang on the bottom. */
.nav__logo {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 260px;
  height: 130px;
  margin: -30px 0 -50px; /* shifted up 10px so it overhangs more on top */
  z-index: 2;
  transition: transform .35s cubic-bezier(.2,.7,.3,1.4),
              filter   .35s ease;
}

.nav__logo-oval,
.nav__logo-text {
  position: absolute;
  left: 50%;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.6));
}

/* Oval: strict geometric center */
.nav__logo-oval {
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: auto;
}

/* Text: nudged down ~3px to optically center inside the oval,
   compensating for the "y" descender in the PNG. */
.nav__logo-text {
  top: 50%;
  transform: translate(-50%, calc(-50% + 3px));
  width: 92%;            /* +10px wider again (was 88%) */
  height: auto;
}

.nav__logo:hover {
  transform: scale(1.06);
  filter: drop-shadow(0 0 16px rgba(233,201,122,.55));
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
}

.hero__images {
  position: relative;
  width: 100%;
}

.hero__img {
  width: 100%;
  height: auto;
  display: block;
}

/* Base image stays visible. The lit image is stacked on top,
   fades in when any nav element is hovered (see :has() rule below). */
.hero__img--lit {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}

/* LIGHTS ON: triggered ONLY by hovering one of the four nav buttons.
   Uses :has() to reach across siblings (nav ↛ hero). */
body:has(.nav__btn:hover) .hero__img--lit {
  opacity: 1;
}

/* Position is now percentage-based so the banner stays in the same
   relative spot on the hero across all screen sizes (no off-screen
   shenanigans on narrow phones). */
.hero__coming-soon {
  position: absolute;
  left: 50%;
  top: 60%;
  transform: translate(-50%, -50%);
  width: min(360px, 48vw);                          /* slightly larger on phones */
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.7));
}

/* ============================================================
   ROPE DIVIDER
   ============================================================ */

.rope-divider {
  display: block;
  width: 100%;
  height: clamp(12px, 1.5vw, 22px);
  object-fit: cover;
  object-position: center bottom;  /* show the rope, not the transparent space */
  margin: 0;                       /* sit flush against the section boundary */
  opacity: .95;
  position: relative;
  z-index: 1;
}

/* ============================================================
   SECTIONS
   ============================================================ */

.section {
  padding: 64px 24px;
}

.section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section__title {
  font-family: "Brush Script MT", "Snell Roundhand", cursive;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: #ffe5bb;
  text-align: center;
  margin: 0 0 24px;
  text-shadow: 0 3px 0 rgba(0,0,0,.4);
}

.section__body {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.125rem;
  color: var(--text);
}

/* ----- Menu placeholder ----- */

.menu-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px;
  background: var(--bg-elev);
  border: 1px solid rgba(217,187,122,.25);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.menu-placeholder img {
  width: min(420px, 80%);
}

.menu-placeholder p {
  margin: 0;
  color: var(--text-dim);
  font-style: italic;
}

/* ----- Contact ----- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.contact-map {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(217,187,122,.25);
  box-shadow: var(--shadow);
  min-height: 360px;
  background: #1a1a1a;
}

/* Inverted dark/grey map to match the site palette.
   invert + hue-rotate flips Google Maps' light theme into dark;
   saturate/contrast tones the colors down to black + grey. */
.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
  filter: invert(.92) hue-rotate(180deg) saturate(.15) contrast(.95) brightness(.95);
}

.contact-info {
  background: var(--bg-elev);
  border: 1px solid rgba(217,187,122,.25);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.contact-info__logo {
  display: block;
  width: 220px;
  max-width: 70%;
  height: auto;
  margin: 0 0 20px;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.5));
}

.contact-info__line {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  align-items: start;
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.contact-info__label {
  color: var(--text-dim);
  text-transform: uppercase;
  font-size: .8rem;
  letter-spacing: .12em;
  padding-top: 4px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  text-align: center;
  padding: 28px 24px;
  color: var(--text-dim);
  font-size: .9rem;
  /* rope-divider above the footer now serves as the visual border */
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 820px) {
  .nav__inner {
    grid-template-columns: 1fr 1fr auto 1fr 1fr;
    gap: 8px;
    padding: 4px 12px;
  }
  .nav__btn img    { height: 36px; }
  .nav__btn--lg img { height: 44px; }
  .nav__logo { width: 190px; height: 106px; margin: -20px 0 -48px; }

  /* Pull-in shift scales down so buttons don't overlap on tablet */
  .nav__btn[data-zone="home"]    { --btn-shift: 20px; }
  .nav__btn[data-zone="contact"] { --btn-shift: -20px; }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .nav__btn img    { height: 24px; }
  .nav__btn--lg img { height: 32px; }
  .nav__logo { width: 140px; height: 80px; margin: -14px 0 -36px; }
  .section { padding: 44px 16px; }

  /* No pull-in on phones — every pixel counts at this width */
  .nav__btn[data-zone="home"]    { --btn-shift: 0; }
  .nav__btn[data-zone="contact"] { --btn-shift: 0; }

  /* Tighter map on phones; the stacked layout has limited vertical space */
  .contact-map,
  .contact-map iframe { min-height: 260px; }

  /* Stack the address/phone/email rows so values don't crowd the label */
  .contact-info__line {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .contact-info__label { padding-top: 0; }
}

/* Respect motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav__btn, .nav__logo, .hero__img--lit { transition: none; }
}
