/* =============================================================
   Legends Steakhouse — Murphy, NC
   2026 build — Dave, Gigbuilder Frontend
   ============================================================= */

/* ----- Reset & base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 2px; }

/* ----- Design tokens ----- */
:root {
  --bg:        #14100c;   /* near-black, warm */
  --bg-soft:   #1c1712;
  --panel:     #201a14;
  --line:      #2d251d;
  --cream:     #f4ead8;
  --cream-dim: #d9cfbd;
  --muted:     #a89a85;
  --copper:    #c88a3d;   /* burnished copper — accent */
  --copper-br: #e0a86c;
  --garnet:    #8b2e2e;   /* pop for CTAs / danger */

  --serif: "Fraunces", "Playfair Display", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1240px;
  --radius:    2px;
  --radius-lg: 6px;

  --shadow-lg: 0 30px 70px -20px rgba(0,0,0,.7);

  --ease-soft: cubic-bezier(.22,.61,.36,1);
}

/* ----- Typography ----- */
body {
  font-family: var(--sans);
  color: var(--cream);
  background: var(--bg);
  line-height: 1.55;
  font-size: clamp(16px, 1rem + .2vw, 18px);
  font-weight: 400;
  font-feature-settings: "ss01", "ss02", "cv11";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 6vw + .5rem, 6rem); }
h2 { font-size: clamp(2rem, 3.5vw + .5rem, 3.5rem); }
h3 { font-size: clamp(1.3rem, 1vw + 1rem, 1.65rem); }
.eyebrow {
  font-family: var(--sans); font-size: .78rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--copper-br);
}
.lede { font-size: clamp(1.1rem, .5vw + 1rem, 1.35rem); color: var(--cream-dim); line-height: 1.55; }

/* ----- Layout ----- */
.container { width: 100%; max-width: var(--container); padding: 0 clamp(1.25rem, 4vw, 2.5rem); margin-inline: auto; }
.section { padding: clamp(5rem, 10vw, 8.5rem) 0; position: relative; }
.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--dark { background: var(--bg); }
.section--panel { background: var(--panel); }

.grid { display: grid; gap: clamp(1.5rem, 2.5vw, 2.5rem); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* Accessibility helper */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; top: -44px; left: 12px; background: var(--copper); color: var(--bg); padding: 10px 14px; z-index: 100; font-weight: 600; border-radius: var(--radius); }
.skip:focus { top: 12px; }

/* ----- Header / nav ----- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 1rem 0;
  transition: background .3s var(--ease-soft), box-shadow .3s var(--ease-soft);
  background: linear-gradient(to bottom, rgba(20,16,12,.55), transparent);
}
.site-header.is-scrolled {
  background: rgba(20,16,12,.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex; flex-direction: column; line-height: 1;
  font-family: var(--serif); font-weight: 500;
  text-decoration: none;
}
.brand__mark { font-size: 1.15rem; letter-spacing: .28em; color: var(--cream); }
.brand__sub  { font-size: .7rem;  letter-spacing: .4em; color: var(--copper-br); margin-top: 4px; }

.nav__links { display: none; gap: 2rem; font-size: .85rem; letter-spacing: .15em; text-transform: uppercase; font-weight: 500; }
.nav__links a { text-decoration: none; color: var(--cream-dim); transition: color .2s; }
.nav__links a:hover { color: var(--copper-br); }
.nav__actions { display: flex; align-items: center; gap: .75rem; }

@media (min-width: 900px) {
  .nav__links { display: inline-flex; }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.5rem;
  font-size: .85rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; border-radius: var(--radius);
  transition: transform .15s var(--ease-soft), background .2s, color .2s, border-color .2s;
  min-height: 48px;   /* accessible tap target */
}
.btn--primary { background: var(--copper); color: #1c1208; }
.btn--primary:hover { background: var(--copper-br); transform: translateY(-1px); }
.btn--ghost { border: 1px solid rgba(244,234,216,.3); color: var(--cream); }
.btn--ghost:hover { border-color: var(--copper-br); color: var(--copper-br); }
.btn--sm { padding: .65rem 1rem; font-size: .78rem; min-height: 40px; }

/* ----- Hero ----- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  overflow: hidden; isolation: isolate; color: var(--cream);
}
.hero__media {
  position: absolute; inset: 0; z-index: -1;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 0%, rgba(20,16,12,.55) 70%),
    linear-gradient(to bottom, rgba(20,16,12,.45) 0%, rgba(20,16,12,.25) 50%, rgba(20,16,12,.9) 100%);
}
.hero__content { padding: 7rem 1.5rem 6rem; max-width: 900px; }
.hero__eyebrow { margin-bottom: 1.25rem; color: var(--copper-br); }
.hero__title {
  font-weight: 400;
  margin-bottom: 1.25rem;
}
.hero__title em { font-style: italic; color: var(--copper-br); font-weight: 300; }
.hero__tag {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.15rem, .8vw + 1rem, 1.5rem);
  color: var(--cream-dim);
  max-width: 46ch; margin: 0 auto 2.5rem;
}
.hero__cta { display: inline-flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--cream-dim);
  display: inline-flex; flex-direction: column; align-items: center; gap: .5rem;
  text-decoration: none;
}
.hero__scroll::after {
  content: ""; width: 1px; height: 32px; background: var(--copper-br);
  animation: scroll-line 2s var(--ease-soft) infinite;
}
@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ----- Quick facts strip ----- */
.facts {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}
.facts__grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem 3rem; padding: 2.5rem 0;
}
@media (min-width: 680px)  { .facts__grid { grid-template-columns: repeat(3, 1fr); } }
.fact { display: flex; align-items: flex-start; gap: .9rem; }
.fact__icon { flex-shrink: 0; color: var(--copper-br); margin-top: 3px; }
.fact__label { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.fact__value { margin-top: .25rem; font-family: var(--serif); font-size: 1.15rem; line-height: 1.4; }
.fact__value a { text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.fact__value a:hover { color: var(--copper-br); border-bottom-color: var(--copper-br); }

/* ----- Story section ----- */
.story__inner { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .story__inner { grid-template-columns: 1fr 1.1fr; } }
.story__image { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; }
.story__image img { width: 100%; height: 100%; object-fit: cover; }
.story__body > * + * { margin-top: 1.25rem; }
.story__body h2 { margin-top: .75rem; }
.story__sig { font-family: var(--serif); font-style: italic; color: var(--copper-br); margin-top: 2rem; font-size: 1.15rem; }

/* ----- Signature dishes ----- */
.dishes__head { text-align: center; max-width: 720px; margin: 0 auto clamp(3rem, 6vw, 4.5rem); }
.dishes__grid { gap: clamp(1rem, 2vw, 1.75rem); }
.dish {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--panel); border: 1px solid var(--line);
  transition: transform .4s var(--ease-soft), border-color .4s;
}
.dish:hover { transform: translateY(-4px); border-color: var(--copper); }
.dish__img { position: relative; overflow: hidden; aspect-ratio: 4/5; }
.dish__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-soft); }
.dish:hover .dish__img img { transform: scale(1.04); }
.dish__body { padding: 1.5rem 1.5rem 1.75rem; }
.dish__title { margin-bottom: .5rem; font-size: 1.4rem; }
.dish__desc  { color: var(--cream-dim); font-size: .95rem; line-height: 1.55; }
.dish__price { display: inline-block; margin-top: 1rem; font-family: var(--serif); font-size: 1.15rem; color: var(--copper-br); }

/* ----- Features / the grill ----- */
.features { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%); }
.features__grid { gap: clamp(2rem, 4vw, 3rem); margin-top: clamp(3rem, 6vw, 4.5rem); }
.feature { padding: 2rem; border-top: 1px solid var(--line); }
.feature__icon { width: 40px; height: 40px; color: var(--copper-br); margin-bottom: 1.25rem; }
.feature h3 { margin-bottom: .75rem; }
.feature p { color: var(--cream-dim); }

/* ----- Visit / location ----- */
.visit { background: var(--bg-soft); }
.visit__grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 900px) { .visit__grid { grid-template-columns: 1fr 1fr; align-items: center; } }
.visit__body > * + * { margin-top: 1.25rem; }
.visit__hours {
  list-style: none; padding: 1.75rem 0 0; margin-top: 2rem; border-top: 1px solid var(--line);
  font-family: var(--serif); font-size: 1.1rem;
}
.visit__hours li { display: flex; justify-content: space-between; padding: .55rem 0; gap: 1rem; }
.visit__hours li span:last-child { color: var(--cream-dim); }
.visit__hours li.closed span:last-child { color: var(--muted); font-style: italic; }
.visit__map {
  border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.visit__map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ----- Footer ----- */
.site-footer { padding: clamp(3rem, 5vw, 4.5rem) 0 2rem; background: var(--bg); border-top: 1px solid var(--line); }
.site-footer__grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; margin-bottom: 3rem; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h4 { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--copper-br); margin-bottom: 1rem; font-family: var(--sans); font-weight: 600; }
.site-footer p, .site-footer li { color: var(--cream-dim); font-size: .95rem; line-height: 1.7; }
.site-footer a { text-decoration: none; color: var(--cream-dim); transition: color .2s; }
.site-footer a:hover { color: var(--copper-br); }
.site-footer__bottom {
  padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  color: var(--muted); font-size: .82rem;
}

/* ----- Menu page ----- */
.menu-hero {
  padding: 10rem 0 3rem; text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}
.menu-hero h1 { margin-bottom: .75rem; }
.menu-hero p { color: var(--cream-dim); max-width: 50ch; margin: 0 auto; }
.menu-nav {
  position: sticky; top: 72px; z-index: 10;
  background: rgba(20,16,12,.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-block: 1px solid var(--line);
  overflow-x: auto;
}
.menu-nav ul {
  display: flex; gap: .25rem; padding: .5rem clamp(1.25rem, 4vw, 2.5rem);
  max-width: var(--container); margin: 0 auto;
  white-space: nowrap;
}
.menu-nav a {
  display: inline-block; padding: .75rem 1rem; font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; text-decoration: none; color: var(--cream-dim);
  border-radius: var(--radius); transition: color .2s, background .2s;
  min-height: 44px; display: inline-flex; align-items: center;
}
.menu-nav a:hover, .menu-nav a.is-active { color: var(--copper-br); background: rgba(200,138,61,.1); }

.menu-section { padding: clamp(3rem, 5vw, 4.5rem) 0; border-top: 1px solid var(--line); scroll-margin-top: 140px; }
.menu-section:first-of-type { border-top: 0; }
.menu-section__head { text-align: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.menu-section__head h2 { margin-bottom: .5rem; }
.menu-section__head p { color: var(--cream-dim); max-width: 55ch; margin: 0 auto; font-style: italic; font-family: var(--serif); }

.menu-list { display: grid; gap: 2rem 3rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .menu-list { grid-template-columns: 1fr 1fr; } }
.menu-item { display: flex; flex-direction: column; gap: .4rem; }
.menu-item__head {
  display: flex; align-items: baseline; gap: .75rem; justify-content: space-between;
}
.menu-item__name { font-family: var(--serif); font-size: 1.15rem; line-height: 1.3; color: var(--cream); }
.menu-item__name small { font-size: .75em; color: var(--muted); font-family: var(--sans); font-weight: 400; letter-spacing: .05em; }
.menu-item__dots { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-5px); min-width: 1rem; }
.menu-item__price { font-family: var(--serif); font-size: 1.05rem; color: var(--copper-br); white-space: nowrap; }
.menu-item__desc { color: var(--cream-dim); font-size: .92rem; line-height: 1.55; max-width: 56ch; }

.menu-note {
  padding: 1rem 1.25rem; background: var(--panel); border-left: 3px solid var(--copper);
  border-radius: var(--radius); font-size: .82rem; color: var(--cream-dim); font-style: italic;
  max-width: 60ch; margin: 0 auto 2rem;
}
.menu-addons {
  margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center;
  font-size: .9rem; color: var(--cream-dim);
}
.menu-addons strong { color: var(--copper-br); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .75em; display: block; margin-bottom: .25rem; }

/* ----- Animations on scroll -----
   Progressive enhancement: visible by default (no-JS safe). JS opts in by
   adding .js-reveal, which starts hidden and fades up when it enters view. */
.js-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft); }
.js-reveal.is-in { opacity: 1; transform: none; }

/* ----- Motion reduced ----- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero__scroll::after { animation: none; }
  .js-reveal { opacity: 1; transform: none; }
}

/* ----- Print ----- */
@media print {
  .site-header, .site-footer, .hero__cta, .menu-nav, .hero__scroll { display: none !important; }
  body { color: #111; background: #fff; }
  .hero { min-height: auto; color: #111; }
  .hero__media, .hero__media::after { display: none; }
}
