/* King David's Restaurant — 2026 redesign
   Brand: brick #953024, gold #D9B148 (sampled from logo) */

:root {
  --brick: #953024;
  --brick-deep: #7a2318;
  --gold: #D9B148;
  --gold-soft: #e6c877;
  --cream: #FAF6EF;
  --paper: #fffdf9;
  --ink: #261c16;
  --ink-soft: #5c4f47;
  --char: #201a16;
  --char-2: #2a221d;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(38, 20, 12, .10);
  --shadow-lift: 0 22px 50px rgba(38, 20, 12, .18);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); margin-bottom: .5em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

.container { width: min(1160px, 92vw); margin: 0 auto; }
.container.narrow { width: min(820px, 92vw); }
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section-cream { background: var(--cream); }
.section-dark { background: var(--char); color: #f3ece2; }
.section-dark h2 { color: #faf4e9; }

.kicker {
  font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--brick); margin-bottom: 1rem; display: flex; align-items: center; gap: .8rem;
}
.kicker::before { content: ""; width: 2.2rem; height: 2px; background: var(--gold); display: inline-block; }
.kicker-gold { color: var(--gold); }
.lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 56ch; }
.section-dark .lede, .section-dark p { color: #cfc4b6; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.7rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: transform .25s cubic-bezier(.2,.8,.3,1), box-shadow .25s, background .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(122, 35, 24, .28); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 1.05rem 2.1rem; font-size: 1.02rem; }
.btn-solid { background: var(--brick); color: #fff; }
.btn-solid:hover { background: var(--brick-deep); }
.btn-outline { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.75); backdrop-filter: blur(6px); }
.btn-outline:hover { background: #fff; color: var(--brick); border-color: #fff; }
.btn-outline-dark { background: transparent; color: var(--brick); border-color: var(--brick); }
.btn-outline-dark:hover { background: var(--brick); color: #fff; }
.btn-gold { background: var(--gold); color: #33230a; }
.btn-gold:hover { background: var(--gold-soft); box-shadow: 0 10px 24px rgba(217, 177, 72, .35); }

.link-arrow {
  display: inline-block; margin-top: 1.2rem; font-weight: 600; color: var(--brick);
  text-decoration: none; position: relative;
}
.link-arrow::after { content: " \2192"; transition: margin-left .2s; }
.link-arrow:hover::after { margin-left: .35rem; }
.link-arrow::before {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 2px; width: 0;
  background: var(--gold); transition: width .3s cubic-bezier(.2,.8,.3,1);
}
.link-arrow:hover::before { width: 100%; }

.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 99; background: #fff; padding: .5rem 1rem; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .35s, box-shadow .35s, padding .35s;
}
.nav-inner {
  width: min(1240px, 94vw); margin: 0 auto;
  display: flex; align-items: center; gap: 1.6rem;
  padding: .9rem 0;
  transition: padding .35s;
}
.nav-logo { background: rgba(250, 246, 239, .92); border-radius: 12px; padding: .35rem .7rem; display: inline-block; box-shadow: 0 4px 16px rgba(0,0,0,.18); transition: background .35s, box-shadow .35s, padding .35s; }
.nav-logo img { height: 46px; width: auto; transition: height .35s; }
.nav.scrolled .nav-logo { background: transparent; box-shadow: none; padding: .35rem 0; }
.nav.scrolled { background: rgba(250, 246, 239, .88); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(38,20,12,.08), 0 8px 30px rgba(38,20,12,.06); }
.nav.scrolled .nav-inner { padding: .55rem 0; }
.nav.scrolled .nav-logo img { height: 42px; }
.nav-links { display: flex; gap: 1.5rem; margin-left: auto; }
.nav-links a {
  color: #fff; text-decoration: none; font-weight: 600; font-size: .92rem;
  text-shadow: 0 1px 10px rgba(0,0,0,.45); position: relative; padding: .3rem 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--gold); transition: width .28s cubic-bezier(.2,.8,.3,1);
}
.nav-links a:hover::after { width: 100%; }
.nav.scrolled .nav-links a { color: var(--ink); text-shadow: none; }
.nav-cta { flex-shrink: 0; }
.nav-toggle { display: none; }
.nav-drawer { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 92svh; display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center; color: #fff;
}
.hero-bg {
  position: absolute; inset: -4%;
  background: url("assets/hero.jpg") center / cover no-repeat;
  animation: kenburns 26s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.09) translateY(-1.5%); }
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center 62%, rgba(24, 10, 6, .55) 0%, rgba(24, 10, 6, .35) 55%, rgba(24, 10, 6, .55) 100%),
    linear-gradient(to bottom, rgba(24,10,6,.55), rgba(24,10,6,.15) 30%, rgba(24,10,6,.6) 88%);
}
.hero-content { position: relative; z-index: 2; padding: 7rem 1.5rem 6rem; max-width: 900px; }
.hero-badge {
  display: inline-block; border: 1.5px solid var(--gold); color: var(--gold-soft);
  border-radius: 999px; padding: .4rem 1.2rem; letter-spacing: .28em; text-transform: uppercase;
  font-size: .78rem; font-weight: 700; margin-bottom: 1.6rem;
  background: rgba(24, 10, 6, .35); backdrop-filter: blur(4px);
}
.hero h1 { text-shadow: 0 4px 30px rgba(0,0,0,.45); }
.hero-sub {
  margin-top: 1.1rem; font-size: clamp(1rem, 1.8vw, 1.25rem); color: #f0e6d7;
  letter-spacing: .04em; text-shadow: 0 2px 14px rgba(0,0,0,.5);
}
.hero-ctas { margin-top: 2.4rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-marquee {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
  background: rgba(24, 10, 6, .55); backdrop-filter: blur(8px);
  border-top: 1px solid rgba(217, 177, 72, .4);
  overflow: hidden; padding: .7rem 0;
}
.marquee-track {
  display: flex; gap: 2.2rem; width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--font-display); font-size: 1rem; letter-spacing: .12em; text-transform: uppercase;
  color: #ecdfc8;
}
.marquee-track i { color: var(--gold); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- split layout ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-rev .split-media { order: -1; }
.split-media { position: relative; }
.split-media img {
  border-radius: var(--radius); box-shadow: var(--shadow-lift); aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%;
}
.gold-tab {
  position: absolute; left: 1.1rem; bottom: 1.1rem;
  background: var(--gold); color: #33230a; font-weight: 700; font-size: .82rem;
  letter-spacing: .08em; text-transform: uppercase; padding: .45rem 1rem; border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

.welcome { background:
  radial-gradient(60rem 30rem at 110% -10%, rgba(217,177,72,.14), transparent 60%),
  var(--paper); }

/* ---------- menu / food grid ---------- */
.menus h2 { margin-bottom: 2.2rem; }
.food-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-bottom: 3.2rem;
}
.food-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  transform: translateZ(0);
}
.food-card img {
  aspect-ratio: 1; object-fit: cover; width: 100%;
  transition: transform .6s cubic-bezier(.2,.8,.3,1);
}
.food-card:hover img { transform: scale(1.06); }
.food-card figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2.4rem 1.2rem .95rem;
  background: linear-gradient(to top, rgba(18, 8, 4, .82), transparent);
  font-family: var(--font-display); font-size: 1.18rem; color: #fff; font-weight: 600;
}
.food-card::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  border: 1.5px solid rgba(217, 177, 72, 0); transition: border-color .35s;
  pointer-events: none;
}
.food-card:hover::after { border-color: rgba(217, 177, 72, .8); }

.menu-downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.dl-card {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem;
  background: var(--char-2); border: 1px solid rgba(217,177,72,.25); border-radius: 14px;
  color: #f3ece2; text-decoration: none;
  transition: transform .25s, border-color .25s, background .25s;
}
.dl-card:hover { transform: translateY(-3px); border-color: var(--gold); background: #332a23; }
.dl-icon {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(217,177,72,.15);
  color: var(--gold); display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0;
}
.dl-card strong { display: block; font-size: .98rem; }
.dl-card em { font-style: normal; font-size: .8rem; color: #a99c8c; }

.nutrition { margin-top: 2.4rem; border-top: 1px solid rgba(217,177,72,.25); padding-top: 1.4rem; }
.nutrition summary { cursor: pointer; font-weight: 600; color: var(--gold-soft); }
.nutrition p { margin-top: .8rem; }
.nutrition .link-arrow { color: var(--gold); }
.nutrition .link-arrow::before { background: var(--gold); }

/* ---------- catering ---------- */
.stack-ctas { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; margin-top: 1.6rem; }

/* ---------- locations ---------- */
.locations h2 { margin-bottom: 2.4rem; }
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin-bottom: 3.5rem; }
.loc-card {
  background: #fff; border-radius: var(--radius); padding: 2rem 2rem 2.2rem;
  box-shadow: var(--shadow); border-top: 4px solid var(--brick);
  transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column; align-items: flex-start;
}
.loc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.loc-tag { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brick); margin-bottom: .5rem; }
.loc-card h3 { margin-bottom: .35rem; }
.loc-status { font-size: .82rem; font-weight: 700; margin-bottom: .9rem; display: inline-flex; align-items: center; gap: .45rem; }
.loc-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(0,0,0,.06); }
.loc-status.open { color: #2f7d3b; }
.loc-status.closed { color: #a33; }
.loc-addr { color: var(--ink-soft); }
.loc-phone { color: var(--brick); font-weight: 700; text-decoration: none; margin: .2rem 0 1.2rem; }
.loc-phone:hover { text-decoration: underline; }
.loc-card h4 {
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: .5rem;
}
.hours { width: 100%; margin-bottom: 1.5rem; }
.hours div {
  display: flex; justify-content: space-between; padding: .32rem 0;
  border-bottom: 1px dashed rgba(38,20,12,.12); font-size: .93rem;
}
.hours dt { font-weight: 600; }
.hours dd { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.hours div.today dt, .hours div.today dd { color: var(--brick); font-weight: 700; }
.loc-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.loc-actions .btn svg { flex-shrink: 0; }
.loc-stories { margin-top: clamp(2.5rem, 5vw, 4rem); }
.loc-stories h3 { margin: 1.2rem 0 .4rem; }
.loc-stories h3:first-child { margin-top: 0; }
.loc-stories p { color: var(--ink-soft); }

/* ---------- perks ---------- */
.perks { background:
  radial-gradient(50rem 26rem at -10% 120%, rgba(149,48,36,.35), transparent 60%),
  var(--char); }
.perk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.perk-loyalty { display: flex; gap: 1.8rem; align-items: flex-start; }
.perk-img {
  width: clamp(120px, 12vw, 180px); border-radius: 14px; flex-shrink: 0;
  border: 1.5px solid rgba(217,177,72,.4); box-shadow: 0 14px 34px rgba(0,0,0,.35);
}
.perk h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.perk p { margin: .6rem 0 1.4rem; }

/* ---------- forms ---------- */
.app-form, .contact-form { margin-top: 2rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.4rem; }
form label { display: flex; flex-direction: column; gap: .35rem; font-size: .86rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 1rem; }
form input {
  font: inherit; padding: .75rem .95rem; border-radius: 10px;
  border: 1.5px solid rgba(38,20,12,.18); background: #fff; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
form input:focus { outline: none; border-color: var(--brick); box-shadow: 0 0 0 3px rgba(149,48,36,.14); }
form .btn { margin-top: .4rem; }
.form-note { margin-top: .9rem; font-size: .88rem; color: var(--brick); font-weight: 600; }

.legal { margin-top: 2.6rem; font-size: .8rem; color: var(--ink-soft); display: grid; gap: .7rem; }
.pdf-alt { margin-top: 2.6rem; border-top: 1px solid rgba(38,20,12,.12); padding-top: 1.8rem; }
.pdf-alt a[href^="mailto"] { color: var(--brick); font-weight: 600; }

.contact-form {
  background: #fff; padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
}
.social-row { display: flex; gap: .9rem; margin-top: 1.8rem; }
.social-row a {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--brick); box-shadow: var(--shadow);
  transition: transform .25s, background .25s, color .25s;
}
.social-row a:hover { transform: translateY(-3px) scale(1.06); background: var(--brick); color: #fff; }

/* ---------- footer ---------- */
.footer { background: var(--char); color: #a99c8c; padding: 3.5rem 0 2rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.2fr 1.4fr 1fr .8fr; gap: clamp(1.6rem, 4vw, 3rem);
  padding-bottom: 2.2rem; border-bottom: 1px solid rgba(217,177,72,.18); font-size: .88rem;
}
.footer-brand { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.footer-logo { height: 58px; width: auto; background: rgba(250,246,239,.92); border-radius: 10px; padding: .4rem .7rem; box-sizing: content-box; }
.footer-col h4 {
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
  margin-bottom: .9rem;
}
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; }
.footer-col a { color: #cfc4b6; text-decoration: none; }
.footer-col a:hover { color: var(--gold-soft); text-decoration: underline; }
.footer-col p { margin-bottom: .5rem; }
.footer-base { padding-top: 1.6rem; text-align: center; font-size: .82rem; }

/* ---------- subpages ---------- */
.subpage .nav { position: sticky; }
.subpage-top { padding-top: clamp(7rem, 14vw, 9rem); }

/* ---------- reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1); }
.reveal.d1 { transition-delay: .12s; }
.reveal.d2 { transition-delay: .22s; }
.reveal.d3 { transition-delay: .34s; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero-bg, .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .split, .loc-grid, .perk-grid, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .split-rev .split-media { order: 0; }
  .food-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px; margin-left: auto;
    background: rgba(24,10,6,.35); border: 1px solid rgba(255,255,255,.4);
    border-radius: 10px; padding: .65rem .6rem; cursor: pointer; backdrop-filter: blur(6px);
  }
  .nav-toggle span { width: 22px; height: 2px; background: #fff; transition: transform .3s, opacity .3s; }
  .nav.scrolled .nav-toggle { background: rgba(149,48,36,.08); border-color: rgba(38,20,12,.25); }
  .nav.scrolled .nav-toggle span { background: var(--ink); }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-drawer {
    display: flex; flex-direction: column; gap: .2rem; padding: 1rem 4vw 1.4rem;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(250,246,239,.97); backdrop-filter: blur(14px);
    box-shadow: 0 20px 40px rgba(38,20,12,.15);
    transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform .3s, opacity .3s, visibility .3s;
    max-height: calc(100vh - 70px); overflow-y: auto;
  }
  .nav.open .nav-drawer { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .nav.open { background: rgba(250,246,239,.97); }
  .nav-drawer a { color: var(--ink); text-decoration: none; font-weight: 600; padding: .7rem 0; border-bottom: 1px solid rgba(38,20,12,.08); }
  .nav-drawer .btn { margin-top: 1rem; border-bottom: none; color: #fff; text-align: center; }
  .hero-ctas .btn { width: 100%; }
}
@media (max-width: 540px) {
  .food-grid { grid-template-columns: 1fr; }
  .nav-logo img { height: 44px; }
}
