/* ============================================================
   Jay Pappa's — one-page site
   Palette: charcoal / warm black, antique gold, cream, DoorDash red
   ============================================================ */

:root {
  --bg: #12100d;
  --bg-alt: #1a1712;
  --ink: #f2ede3;
  --ink-dim: #b9b0a0;
  --gold: #c9a15c;
  --gold-deep: #a8853f;
  --dd-red: #ff3008;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Avenir Next", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  width: min(1100px, 90vw);
  margin-inline: auto;
}

/* ---------- type ---------- */

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.kicker {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.gold-rule {
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1.75rem auto;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.95em 1.9em;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-doordash {
  background: var(--dd-red);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 48, 8, 0.28);
}
.btn-doordash:hover {
  background: #e62b06;
  box-shadow: 0 12px 30px rgba(255, 48, 8, 0.38);
}
.dd-logo {
  height: 0.95em;
  width: auto;
  color: #fff;
  margin-top: -0.1em;
}
.btn-lg { padding: 1.15em 2.4em; font-size: 0.95rem; }

.btn-outline {
  border: 1px solid rgba(201, 161, 92, 0.6);
  color: var(--ink);
  background: rgba(18, 16, 13, 0.25);
  backdrop-filter: blur(3px);
}
.btn-outline:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #17140f;
}
.btn-sm { padding: 0.7em 1.5em; font-size: 0.78rem; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -12% 0;
  background: url("images/hero-entrees.jpg") center / cover no-repeat;
  will-change: transform;
  animation: heroZoom 2.4s ease-out both;
}

@keyframes heroZoom {
  from { scale: 1.08; }
  to   { scale: 1; }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18,16,13,0.55) 0%, rgba(18,16,13,0.38) 45%, rgba(18,16,13,0.92) 100%),
    radial-gradient(ellipse at center, rgba(18,16,13,0.18) 0%, rgba(18,16,13,0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 6rem 1.25rem 7rem;
  width: min(900px, 92vw);
}

.hero-logo {
  width: min(380px, 72vw);
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,0.45));
}

.hero-sub {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  letter-spacing: 0.16em;
  text-indent: 0.16em; /* balances the trailing letter-spacing so text centers true */
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  translate: -50% 0;
  z-index: 1;
  color: var(--gold);
  width: 34px;
  height: 34px;
  animation: cueFloat 2.2s ease-in-out infinite;
}
.scroll-cue svg { width: 100%; height: 100%; }

@keyframes cueFloat {
  0%, 100% { transform: translateY(0); opacity: 0.9; }
  50%      { transform: translateY(8px); opacity: 0.5; }
}

/* ---------- order ---------- */

.order {
  text-align: center;
  padding: clamp(5rem, 12vw, 8.5rem) 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201,161,92,0.07), transparent 70%),
    var(--bg);
}

.order-divider {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: min(360px, 70vw);
  margin: 3rem auto;
  color: var(--ink-dim);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
}
.order-divider::before,
.order-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(201,161,92,0.3);
}

.order-call-label {
  color: var(--ink);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.order-phone {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 7.5vw, 4.5rem);
  letter-spacing: 0.04em;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.25s ease;
}
.order-phone:hover { color: var(--ink); }

/* ---------- catering ---------- */

.catering {
  padding: clamp(5rem, 12vw, 8.5rem) 0;
  background: var(--bg-alt);
}

.catering-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.catering-photo {
  overflow: hidden;
  border-radius: 3px;
  aspect-ratio: 4 / 5;
}
.catering-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catering-text .gold-rule {
  margin: 1.75rem 0;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.catering-copy {
  max-width: 46ch;
  margin-bottom: 2.5rem;
  color: var(--ink-dim);
  font-size: 1.05rem;
}

.catering-label {
  color: var(--ink);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.catering-email {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  letter-spacing: 0.03em;
  color: var(--gold);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.25s ease;
}
.catering-email:hover { color: var(--ink); }

/* ---------- parallax bands ---------- */

.band {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.band-bg {
  position: absolute;
  inset: -18% 0;
  background-position: center;
  background-size: cover;
  will-change: transform;
}

.band-steak .band-bg { background-image: url("images/steak.jpg"); }
.band-find  .band-bg { background-image: url("images/clams.jpg"); }

.band-scrim {
  position: absolute;
  inset: 0;
  background: rgba(18, 16, 13, 0.68);
}
.band-scrim.heavy { background: rgba(18, 16, 13, 0.85); }

.band-content {
  position: relative;
  z-index: 1;
  padding: clamp(6rem, 15vw, 10rem) 0;
}

/* ---------- gallery ---------- */

.gallery { padding: clamp(4rem, 9vw, 6.5rem) 0; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.9rem, 2vw, 1.5rem);
}

.gallery-grid figure {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  aspect-ratio: 4 / 5;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-grid figure:hover img { transform: scale(1.06); }

.gallery-grid figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.4rem 1.2rem 1.1rem;
  background: linear-gradient(180deg, transparent, rgba(12,10,8,0.85));
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
}

/* ---------- coming soon ---------- */

.coming {
  text-align: center;
  padding: clamp(5rem, 12vw, 8.5rem) 0;
  background: var(--bg-alt);
}

.coming-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  margin-top: 3.5rem;
}

.coming-logo {
  width: 72%;
  height: auto;
  justify-self: center;
}

/* ---------- find us ---------- */

.band-find { text-align: left; }

.find-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.find-col address {
  font-style: normal;
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.5;
  margin: 1.25rem 0 0.5rem;
}

.find-phone {
  display: inline-block;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.4rem;
  text-decoration: none;
  margin-bottom: 1.75rem;
}
.find-phone:hover { color: var(--ink); }

.find-col .btn { display: inline-flex; }

.hours { margin-top: 1.4rem; }

.hours div {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(201, 161, 92, 0.22);
  font-size: 0.95rem;
}

.hours dt { letter-spacing: 0.08em; }
.hours dd { color: var(--gold); font-weight: 400; letter-spacing: 0.06em; }

/* ---------- footer ---------- */

.footer {
  text-align: center;
  padding: 4rem 1.25rem 3rem;
  background: #0c0b09;
}

.footer-logo {
  width: 150px;
  margin: 0 auto 1.6rem;
  opacity: 0.9;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  margin-bottom: 1.6rem;
}

.socials a {
  color: var(--ink-dim);
  width: 22px;
  height: 22px;
  transition: color 0.25s ease, transform 0.25s ease;
}
.socials a:hover { color: var(--gold); transform: translateY(-2px); }
.socials svg { width: 100%; height: 100%; }

.footer p {
  color: var(--ink-dim);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg { animation: none; }
  .scroll-cue { animation: none; }
  [data-parallax] { transform: none !important; }
}

/* ---------- responsive ---------- */

@media (max-width: 820px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .find-grid { grid-template-columns: 1fr; }
  .catering-grid { grid-template-columns: 1fr; }
  .catering-photo { aspect-ratio: 4 / 3; }
  .catering-text { text-align: center; }
  .catering-text .gold-rule {
    margin-inline: auto;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
  }
  .catering-copy { margin-inline: auto; }
}

@media (max-width: 560px) {
  .coming-grid { grid-template-columns: 1fr; }
  .coming-card { aspect-ratio: 5 / 2; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid figure { aspect-ratio: 4 / 3; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}
