/* ============================================================
   EMILY'S BAR AND GRILL — Gibsonia, PA
   Palette: black #0a0a0a · gold #C9A84C · white
   Type: Bebas Neue (display) · Jost (body)
   ============================================================ */
:root {
  --black: #0a0a0a;
  --gold: #C9A84C;
  --gold-soft: rgba(201, 168, 76, 0.35);
  --white: #ffffff;
  --white-dim: rgba(255, 255, 255, 0.72);
  --ink: #1a1a1a;
  --ink-dim: #5c5c5c;
  --display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --sans: 'Jost', 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: var(--black); }

/* ---------- Scroll-reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Greek meander divider ---------- */
.meander {
  width: 132px;
  height: 18px;
  margin: 1.6rem auto 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='18' viewBox='0 0 22 18'><path d='M3 16 V2 H19 V11 H10 V7 H15' fill='none' stroke='%23C9A84C' stroke-width='2'/></svg>");
  background-repeat: repeat-x;
  background-size: 22px 18px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem clamp(1.25rem, 5vw, 4rem);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.5s ease, border-color 0.5s ease, padding 0.5s ease;
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gold);
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.nav-logo {
  font-family: var(--display);
  font-size: 1.7rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease);
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.nav-order {
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.55rem 1.3rem;
  transition: background 0.35s ease, color 0.35s ease;
}
.nav-links a.nav-order::after { display: none; }
.nav-links a.nav-order:hover { background: var(--gold); color: var(--black); }
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px; height: 22px;
  position: relative;
  z-index: 110;
}
.nav-toggle span {
  position: absolute;
  left: 0;
  width: 100%; height: 1.5px;
  background: var(--gold);
  transition: transform 0.35s var(--ease), opacity 0.3s ease, top 0.35s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 20px; }
.nav-toggle.open span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav { background: rgba(10,10,10,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(201,168,76,0.25); }
  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.25rem;
    background: rgba(10, 10, 10, 0.97);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 105;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 1.1rem; }
}

/* ============================================================
   HERO — pinned scroll-scrub video (homepage only)
   ============================================================ */
.hero-track {
  height: 350vh;
  position: relative;
}
.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-video, .hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-fallback {
  background: url('storefront-front.jpg') center / cover no-repeat;
  z-index: 0;
}
.hero-video { z-index: 1; }
.hero.no-video .hero-video { display: none; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.45);
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 1.5rem;
}
.hero-kicker {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: heroFade 1.4s var(--ease) 0.3s forwards;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.6rem, 12vw, 8.5rem);
  line-height: 0.95;
  color: var(--gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0;
  animation: heroFade 1.6s var(--ease) 0.6s forwards;
}
.hero-sub {
  margin-top: 1.4rem;
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--white-dim);
  opacity: 0;
  animation: heroFade 1.6s var(--ease) 1s forwards;
}
@keyframes heroFade {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
.hero-cta {
  margin-top: 2.25rem;
  opacity: 0;
  animation: heroFade 1.6s var(--ease) 1.35s forwards;
}

/* ============================================================
   PAGE HERO — simple header for interior pages
   ============================================================ */
.page-hero {
  padding: clamp(9rem, 18vw, 13rem) 2rem clamp(3.5rem, 7vw, 6rem);
  text-align: center;
  background: var(--black);
  border-bottom: 1px solid var(--gold-soft);
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center top, rgba(201,168,76,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-kicker {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
  position: relative;
}
.page-hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  color: var(--white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  position: relative;
}
.page-hero h1 span { color: var(--gold); }
.page-hero .meander { margin-top: 1.4rem; }

/* ============================================================
   SECTION SHELL
   ============================================================ */
section { position: relative; }
.shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(5rem, 11vw, 8.5rem) clamp(1.25rem, 5vw, 3rem);
}
.sec-kicker {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--white-dim);
  text-align: center;
  margin-bottom: 1rem;
}
.sec-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  color: var(--gold);
  text-align: center;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.light { background: var(--white); color: var(--ink); }
.light .sec-kicker { color: #9a9a9a; }
.light .sec-title { color: var(--ink); }

/* ============================================================
   ABOUT US
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  margin-top: clamp(3rem, 6vw, 5rem);
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-text h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.about-text h3 span { color: var(--gold); }
.about-text p { color: var(--ink-dim); font-size: 0.98rem; margin-bottom: 1.2rem; }
.about-text .btn-gold { margin-top: 0.75rem; }
.about-collage { position: relative; min-height: 460px; }
.about-collage .ph-main {
  width: 82%; height: 400px;
  object-fit: cover;
  border: 1px solid var(--gold-soft);
}
.about-collage .ph-overlap {
  position: absolute;
  right: 0; bottom: 0;
  width: 52%; height: 240px;
  object-fit: cover;
  border: 6px solid var(--white);
  outline: 1px solid var(--gold);
  box-shadow: 0 18px 40px rgba(10, 10, 10, 0.18);
}
@media (max-width: 860px) {
  .about-collage { min-height: 0; padding-bottom: 70px; }
  .about-collage .ph-main { width: 100%; height: 320px; }
  .about-collage .ph-overlap { width: 55%; height: 190px; }
}

/* ============================================================
   PHOTO BAND
   ============================================================ */
.band {
  position: relative;
  background: url('dining-room.jpeg') center / cover no-repeat fixed;
  padding: clamp(5rem, 11vw, 8rem) 1.5rem;
  text-align: center;
}
@media (max-width: 900px) { .band { background-attachment: scroll; } }
.band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.62);
}
.band h2 {
  position: relative;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}
.band h2 em { font-style: normal; color: var(--gold); }

/* ============================================================
   MENU
   ============================================================ */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem) clamp(2.5rem, 6vw, 5.5rem);
  margin-top: clamp(3rem, 6vw, 5rem);
}
@media (max-width: 760px) { .menu-grid { grid-template-columns: 1fr; } }
.menu-cat h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.menu-cat h3::after { content: ''; flex: 1; height: 1px; background: var(--gold-soft); }
.cat-note { font-size: 0.85rem; color: var(--ink-dim); margin: -1rem 0 1.5rem; letter-spacing: 0.03em; }
.menu-item { margin-bottom: 1.6rem; }
.menu-item-top { display: flex; align-items: baseline; gap: 0.75rem; }
.menu-item-name {
  font-size: 1rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink); white-space: nowrap;
}
.menu-dots { flex: 1; border-bottom: 1px dotted rgba(10, 10, 10, 0.3); transform: translateY(-4px); }
.menu-price { font-size: 0.95rem; font-weight: 600; color: var(--gold); white-space: nowrap; }
.menu-item-desc { font-size: 0.9rem; color: var(--ink-dim); margin-top: 0.3rem; max-width: 92%; }
.item-order {
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold-soft);
  padding: 0.18rem 0.6rem; white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.item-order:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }
@media (max-width: 540px) {
  .item-order { padding: 0.45rem 0.95rem; font-size: 0.66rem; }
  .menu-item-name { white-space: normal; }
  .menu-item-desc { max-width: 100%; }
}
.menu-note {
  text-align: center;
  margin-top: clamp(2rem, 4vw, 3rem);
  font-size: 0.85rem;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
}
.menu-note a { color: var(--gold); font-weight: 500; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-section { background: var(--black); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  grid-auto-flow: dense;
  gap: 14px;
  margin-top: clamp(3rem, 6vw, 5rem);
}
.gallery-grid .tall { grid-row: span 2; }
@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
}
.g-item {
  position: relative; overflow: hidden;
  border: 1px solid transparent;
  transition: border-color 0.45s ease;
  background: #141414; margin: 0;
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease), opacity 0.5s ease; }
.g-item:hover { border-color: var(--gold); }
.g-item:hover img { transform: scale(1.07); }
.g-item::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(10, 10, 10, 0.25);
  opacity: 0; transition: opacity 0.45s ease; pointer-events: none;
}
.g-item:hover::after { opacity: 1; }

/* ============================================================
   THE BAR
   ============================================================ */
.bar-section {
  position: relative;
  background: url('bar-new.jpeg') center / cover no-repeat fixed;
  padding: clamp(7rem, 16vw, 12rem) clamp(1.25rem, 5vw, 3rem);
}
@media (max-width: 900px) { .bar-section { background-attachment: scroll; } }
.bar-overlay { position: absolute; inset: 0; background: rgba(10, 10, 10, 0.72); }
.bar-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; text-align: center; }
.bar-inner h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--gold);
}
.bar-inner p { margin: 1.75rem auto 2.5rem; max-width: 560px; color: var(--white-dim); font-size: 0.98rem; }

/* ============================================================
   BTN GOLD (shared CTA)
   ============================================================ */
.btn-gold {
  display: inline-block;
  padding: 1rem 2.75rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  background: transparent;
  transition: background 0.4s ease, color 0.4s ease;
}
.btn-gold:hover { background: var(--gold); color: var(--black); }

/* ============================================================
   FAQ (homepage)
   ============================================================ */
.faq-section { background: var(--black); border-top: 1px solid var(--gold-soft); }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 5rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}
@media (max-width: 760px) { .faq-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.faq-q {
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.faq-a { font-size: 0.92rem; color: var(--white-dim); line-height: 1.75; }
.faq-a a { color: var(--gold); border-bottom: 1px solid var(--gold-soft); }

/* ============================================================
   HOURS & CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 6rem);
  margin-top: clamp(3rem, 6vw, 5rem);
}
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-col h3 {
  font-family: var(--display); font-weight: 400;
  font-size: 1.65rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink);
  margin-bottom: 1.75rem;
  display: flex; align-items: center; gap: 1rem;
}
.contact-col h3::after { content: ''; flex: 1; height: 1px; background: var(--gold-soft); }
.hours-row {
  display: flex; justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(10, 10, 10, 0.08);
  font-size: 0.92rem;
}
.hours-row span:first-child { color: var(--ink-dim); }
.hours-row span:last-child { color: var(--ink); font-weight: 500; }
.hours-row .closed { color: var(--gold); font-weight: 600; letter-spacing: 0.08em; }
.contact-line {
  display: flex; gap: 1rem;
  margin-bottom: 1.4rem;
  font-size: 0.94rem; color: var(--ink-dim);
}
.contact-line strong {
  color: var(--gold); font-weight: 600;
  min-width: 72px; font-size: 0.78rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding-top: 2px;
}
.contact-line a:hover { color: var(--gold); }
.storefront-photo { margin-top: 2rem; border: 1px solid var(--gold-soft); height: 240px; overflow: hidden; }
.storefront-photo img { width: 100%; height: 100%; object-fit: cover; }
.map-wrap { margin-top: 2rem; border: 1px solid var(--gold-soft); height: 240px; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--black);
  border-top: 1px solid var(--gold-soft);
  padding: 3.5rem clamp(1.25rem, 5vw, 4rem) 2rem;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-direction: column;
  align-items: center; gap: 1.75rem;
}
.footer-logo {
  font-family: var(--display);
  font-size: 2.1rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold); line-height: 1;
}
.socials { display: flex; gap: 1.5rem; }
.socials a {
  width: 42px; height: 42px;
  border: 1px solid var(--gold-soft); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.35s ease, background 0.35s ease;
}
.socials a svg { width: 17px; height: 17px; fill: var(--gold); transition: fill 0.35s ease; }
.socials a:hover { border-color: var(--gold); background: var(--gold); }
.socials a:hover svg { fill: var(--black); }
.footer-bottom {
  width: 100%; max-width: 1200px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; margin-top: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.75rem; color: var(--white-dim);
}
.footer-credit { color: var(--gold); letter-spacing: 0.08em; }
@media (max-width: 560px) { .footer-bottom { flex-direction: column; text-align: center; } }
