/* Legends Classic Diner — static site styles
   Recreates the look of the former WordPress "fast-food" (Bold Themes) theme.
   Sizes are in rem so the whole layout scales like the theme did when its
   root font dropped from 16px to 14px at <=1199px.
   Breakpoints follow the theme: 1400 / 1199 / 1024 (menu) / 991 / 768-767. */

:root {
  --red: #ff0000;            /* theme accent */
  --red-dark: #b30000;
  --ink: #262626;            /* headings / links (light skin) */
  --text: #333;              /* body text (light skin) */
  --bg: #fff;
  --frame: #f6f8fa;          /* .btFrame border colour */
  --dark: #232323;           /* dark skin background */
  --rule: rgba(0, 0, 0, .15);
  --rule-dark: rgba(255, 255, 255, .1);
  --font-head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1140px;
  --frame-w: 3rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.8 var(--font-body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: var(--red); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); margin: 0; font-weight: 800; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; color: var(--ink); padding: 8px 12px; }

/* ---------- Header ----------
   Old theme: transparent bar over the hero, no visible logo, dark top-bar
   links right-aligned in the container; <=1024 a hamburger opens a 320px
   off-canvas panel. Done here without JS (checkbox + labels). */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
}
.site-header .wrap { display: flex; align-items: center; justify-content: flex-end; min-height: 49px; }

/* Brand stays in the markup for SEO/accessibility but is hidden like the
   theme's text logo (shown only inside the open mobile panel). */
.brand {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.top-links { display: flex; align-items: center; }
.top-links a {
  font: 700 15px/48px var(--font-head); letter-spacing: 1px;
  color: #333; text-decoration: none;
  margin-left: 7.5px; padding-right: 7.5px;
}
.top-links a:hover, .top-links a:focus-visible { color: var(--red); }
.top-links svg { width: 13px; height: 15px; fill: currentColor; display: block; }

.nav-toggle {
  position: absolute; width: 1px; height: 1px; margin: 0; padding: 0;
  opacity: 0; overflow: hidden; clip-path: inset(50%);
  display: none;           /* only exists as a control at <=1024px */
}
.nav-burger, .nav-close { display: none; }

/* ---------- Buttons (.btBtn.btnMedium, square) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1.2em 2.4em; margin-top: .2em;
  font: 600 .9rem/1 var(--font-body); letter-spacing: 0; text-transform: uppercase;
  text-decoration: none; border: 2px solid var(--red); border-radius: 0;
  background: var(--red); color: #fff;
  transition: all .5s ease;
}
.btn:hover, .btn:focus-visible { background: transparent; color: var(--red); border-color: var(--red); }
.btn--outline { background: transparent; color: var(--red); }
.btn--outline:hover, .btn--outline:focus-visible { background: var(--red); color: #fff; }
.btn--light { background: transparent; border-color: #fff; color: #fff; }
.btn--light:hover, .btn--light:focus-visible { background: #fff; color: var(--ink); border-color: #fff; }

/* Red super-headline tag (.btAccentBackgroundSuperheadline) */
.tag {
  display: table; background: var(--red); color: #fff;
  font: 800 1rem/1.8 var(--font-head); letter-spacing: 0; text-transform: uppercase;
  padding: 0 10px; margin: 0 0 .6em;
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; color: #fff;
  background: var(--dark) url("/assets/img/hero-bacon-cheeseburger.jpg") 50% 0 / cover no-repeat;
  padding: 15rem 0 6.5rem;     /* 12em section + 3em spacer / 6em + .5em spacer */
}
.hero .tag { font-size: 1.3rem; }
.hero h1 {
  color: #fff; font: 700 6rem/1 var(--font-head); text-transform: uppercase;
  padding-bottom: .2em; margin: 0 0 .5rem;
}
.hero-actions { display: flex; flex-wrap: wrap; }
.hero-actions .btn { margin-right: .6em; }

/* ---------- Framed white card (.btFrame) ---------- */
.card-section { background: #fff; border: var(--frame-w) solid var(--frame); }
.card-section .card { padding: 6rem 0 3rem; }
.center { text-align: center; }
.card h2, .menu-section h2 {
  font: 700 4rem/1 var(--font-head); padding-bottom: .15em;
}
.card-section .card h2 { margin-bottom: 3rem; }

.photo { padding: 6rem 0 3rem; }
.photo img { margin: 0 auto; }

/* ---------- Contact band (footer) ---------- */
.contact { background: var(--dark); color: #fff; }
.contact .grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.contact-info {
  width: 100%; max-width: 580px; justify-self: end; align-self: center;
  padding: 3rem 0 3rem 40px;
}
.contact .tag { font-size: .8rem; }
.contact-info .phone {
  display: block; color: #fff; text-decoration: none;
  font: 700 2.25rem/1.3 var(--font-head); padding-bottom: .25em; margin: 0 0 .5rem;
}
.contact-info .phone:hover { color: var(--red); }
.contact-row { display: flex; align-items: flex-start; gap: 20px; min-height: 64px; margin: 0 0 .5rem; }
.contact-row svg { flex: none; width: 64px; height: 64px; stroke: var(--red); fill: none; stroke-width: 1.2; }
.contact-row span { font: 400 .9rem/1.8 var(--font-head); opacity: .6; padding-bottom: .6em; }
.fb {
  display: flex; width: 40px; height: 40px; align-items: center; justify-content: center;
  background: #fff; transition: all .3s ease;
}
.fb svg { width: 20px; height: 20px; fill: var(--dark); }
.fb:hover, .fb:focus-visible { background: transparent; box-shadow: inset 0 0 0 1px #fff; }
.fb:hover svg, .fb:focus-visible svg { fill: #fff; }
.map iframe { display: block; width: 100%; height: 500px; border: 0; filter: grayscale(.85); }

/* ---------- Download bar ---------- */
.download { background: var(--red); color: #fff; padding: 3rem 0 .5rem; }
.download .wrap {
  display: grid; grid-template-columns: calc(75% - 10px) 1fr; column-gap: 40px; align-items: center;
}
.download h2 {
  color: #fff; font: 700 2.25rem/1.3 var(--font-head); text-transform: uppercase;
  padding-bottom: .25em; margin-bottom: .5rem;
}
.download .btn { justify-self: start; margin-bottom: 1rem; }

/* ---------- Copyright ---------- */
.copyright { background: #fff; color: #333; font-size: .9rem; line-height: 1.8; padding: 2em 0; }
.copyright p { margin: 0; }

/* ---------- Menu page header ---------- */
.page-header {
  position: relative; color: #fff;
  background: var(--dark) url("/assets/img/menu-header-chicken-burrito.jpg") 50% 0 / cover no-repeat;
  padding: 12rem 0 3rem;
}
.page-header::before { content: ""; position: absolute; inset: 0; background: var(--dark); opacity: .2; }
.page-header .wrap { position: relative; }
.crumbs {
  font: 400 1rem/1.8 var(--font-head); letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: .2em;
}
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.page-header h1 {
  color: #fff; font: 800 4rem/1 var(--font-head); text-transform: uppercase; max-width: 800px;
}
.page-header h1::after {
  content: ""; display: block; width: 80px; height: 0;
  border-bottom: 4px solid var(--red);
  margin-top: calc(.15em + .5rem);
}
.page-header .lead {
  max-width: 800px; margin: .7rem 0 .75em; opacity: .6;
  font: 400 1.25rem/1.6 var(--font-head);
}

/* ---------- Menu sections ---------- */
.menu-section { position: relative; background: #fff; padding: 6rem 0; }
.menu-section--framed { border: var(--frame-w) solid var(--frame); }
.menu-section .card { padding: 0; background: none; }
.menu-section header { text-align: center; padding-bottom: 3rem; }
.menu-section .tag { margin-left: auto; margin-right: auto; }
.menu-section .note { margin: 0 0 .75em; opacity: .6; font: 400 1.25rem/1.6 var(--font-head); }
.menu-section h3 {
  font: 700 3rem/1 var(--font-head); padding-bottom: .4em; margin: 0 0 3rem; text-align: center;
}
.menu-section .items + h3 { margin-top: 3rem; }

.items { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
.items li {
  break-inside: avoid; page-break-inside: avoid;
  padding-bottom: .5rem; margin-bottom: .5rem; border-bottom: 1px dotted var(--rule);
}
.items li:last-child { border-bottom-color: transparent; }
.items h4 { font: 800 1.2rem/1.3 var(--font-head); padding-bottom: .2em; margin-right: 1rem; }
.items p { margin: 0 1rem 0 0; opacity: .6; font: 400 .9rem/1.8 var(--font-head); }
.items .star h4 { position: relative; padding-left: 1.35em; }
.items .star h4::before {
  content: ""; position: absolute; left: 0; top: .2em; width: .95em; height: .95em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath fill='%23ff0000' d='M259.3 17.8 194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z'/%3E%3C/svg%3E") no-repeat 0 50% / contain;
}
.items--sides { columns: 4; }
/* reproduce the old theme's hand-split left/right columns */
.items .col-break { break-before: column; -webkit-column-break-before: always; }
.items--single { columns: auto; max-width: calc(50% - 20px); }

/* Dark photo sections */
.menu-section--dark { color: #fff; background: var(--dark) 50% 50% / cover no-repeat; }
.menu-section--striped::before {
  content: ""; position: absolute; inset: 0;
  background: url("/assets/img/diagonalstripe-black.png") repeat; opacity: .7;
}
.menu-section--dark .wrap { position: relative; }
.menu-section--dark h2, .menu-section--dark h3, .menu-section--dark h4 { color: #fff; }
.menu-section--dark .items li { border-bottom-color: var(--rule-dark); }
.menu-section--dark .items li:last-child { border-bottom-color: transparent; }

.bg-dining-room  { background-image: url("/assets/img/bg-dining-room.jpg"); }
.bg-fish-tacos   { background-image: url("/assets/img/bg-fish-tacos.jpg"); }
.bg-building     { background-image: url("/assets/img/bg-building.jpg"); }
.bg-turkey-club  { background-image: url("/assets/img/bg-turkey-club.jpg"); }
.bg-french-toast { background-image: url("/assets/img/bg-french-toast.jpg"); }

/* ---------- 404 ---------- */
.notfound { background: #fff; padding: 12rem 0 6rem; }
.notfound h1 { font: 700 4rem/1 var(--font-head); padding-bottom: .15em; margin-bottom: 3rem; }
.notfound a { color: var(--red); }

/* ---------- Parallax feel ----------
   The theme ran every photo background as background-attachment:fixed.
   Only on mouse/trackpad devices: mobile browsers ignore or mis-scale it. */
@media (hover: hover) and (pointer: fine) {
  .hero, .page-header, .menu-section--dark { background-attachment: fixed; }
}
@media (min-width: 1025px) {
  .bg-dining-room { background-position: 50% 0; }   /* theme's parallax offset 0 above 1024px */
}

/* ---------- Responsive ---------- */
@media (max-width: 1400px) {
  .hero .tag { font-size: 1rem; }
  .hero h1 { padding-bottom: .15em; }
  .menu-section .tag { font-size: .9rem; }
  .card h2, .menu-section h2, .notfound h1 { font-size: 3rem; padding-bottom: .4em; }
  .menu-section .note { font-size: 1.1rem; }
  .crumbs { font-size: .9rem; }
  .page-header h1 { font-size: 3rem; }
  .page-header h1::after { margin-top: calc(.4em + .5rem); }
  .page-header .lead { font-size: 1.1rem; margin-top: 1.2rem; }
}

@media (max-width: 1199px) {
  html { font-size: 14px; }
  .wrap { max-width: none; padding: 0 30px; }
  .hero h1 { font-size: 4rem; }
}

/* Desktop: menu page header is as tall as the home hero (heights measured from .hero
   at each breakpoint), with its text sitting at the bottom. */
@media (min-width: 1025px) {
  .page-header {
    display: flex; flex-direction: column; justify-content: flex-end;
    min-height: 41.8rem;
  }
  .page-header .wrap { width: 100%; }
}
@media (min-width: 1025px) and (max-width: 1400px) {
  .page-header { min-height: 40.8rem; }
}
@media (min-width: 1025px) and (max-width: 1199px) {
  .page-header { min-height: 36.5rem; }
}

@media (max-width: 1024px) {
  .site-header .wrap { min-height: 61px; }
  .nav-burger {
    display: flex; position: absolute; left: 20px; top: 0; width: 38px; height: 61px;
    align-items: center; justify-content: center; color: #333; cursor: pointer;
  }
  .nav-burger svg { width: 18px; height: 16px; fill: currentColor; }
  .nav-burger:hover { color: var(--red); }
  .nav-toggle { display: block; left: 20px; top: 0; width: 38px; height: 61px; }
  .nav-toggle:focus-visible + .nav-burger { outline: 2px solid var(--red); outline-offset: -2px; }

  .top-links {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 1;
    width: 320px; max-width: 100%; overflow-y: auto;
    flex-direction: column; align-items: center; justify-content: flex-start;
    padding: 165px 0 2rem; background: #fff; box-shadow: 1px 0 0 0 rgba(0, 0, 0, .15);
    transform: translateX(-100%); visibility: hidden;
    transition: transform 1s cubic-bezier(.23, 1, .32, 1), visibility 0s linear 1s;
  }
  .top-links a {
    font: 400 14px/21px var(--font-head); letter-spacing: 1px;
    margin: 0 0 20px; padding: 0;
  }
  .top-links a:last-of-type { margin-bottom: 0; }
  .top-links svg { width: 15px; height: 19px; }
  /* two 85x4 red bars below the links (theme's nav:before/:after) */
  .top-links::after {
    content: ""; flex: none; width: 174px; height: 4px; margin: 30px 0 15px;
    background: linear-gradient(90deg, var(--red) 0 85px, transparent 85px 89px, var(--red) 89px);
  }
  .nav-close {
    display: block; position: absolute; top: 10px; right: 20px;
    font: 400 22.5px/41px var(--font-head); color: #333; cursor: pointer;
  }
  .nav-close:hover { color: var(--red); }
  /* When open, the panel covers the burger: show the checkbox's focus ring on the close button instead. */
  .nav-toggle:checked:focus-visible ~ .top-links .nav-close { outline: 2px solid var(--red); outline-offset: 2px; }

  .nav-toggle:checked ~ .top-links {
    transform: none; visibility: visible;
    transition: transform 1s cubic-bezier(.23, 1, .32, 1), visibility 0s;
  }
  /* the theme showed the text logo at the top of the open panel */
  .nav-toggle:checked ~ .brand {
    position: fixed; top: 0; left: 0; z-index: 2;
    width: 288px; max-width: calc(100% - 32px); height: auto; margin: 0; padding: 0 0 0 32px;   /* text centred in the 320px panel, clear of the close button */
    overflow: visible; clip: auto; clip-path: none; white-space: normal;
    font: 800 30px/60px var(--font-head); color: var(--ink); text-align: center; text-decoration: none;
    animation: lcd-slide-in 1s cubic-bezier(.23, 1, .32, 1);
  }
}
@keyframes lcd-slide-in { from { transform: translateX(-320px); } to { transform: none; } }

@media (max-width: 991px) {
  :root { --frame-w: 2rem; }
  .items { columns: auto; }
  .items--single { max-width: none; }
  /* Old theme: four 2-item columns that wrap into a 2x2 grid of pairs, so the
     left column reads 1,2,5,6 and the right column 3,4,7,8. */
  .items--sides {
    columns: auto; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px;
    grid-auto-flow: column; grid-template-rows: repeat(4, auto);
  }
  .items--sides li:nth-child(5), .items--sides li:nth-child(6) { order: 1; }
  .items--sides li:nth-child(3), .items--sides li:nth-child(4) { order: 2; }
  .items--sides li:nth-child(7), .items--sides li:nth-child(8) { order: 3; }
  .download .wrap { grid-template-columns: calc(66% - 14px) 1fr; }
  .copyright { padding-bottom: 2.8em; }   /* stacked copy + empty footer-menu column */
}

@media (max-width: 768px) {
  .hero { padding-top: 13rem; }       /* 10em + 3em spacer */
  .map iframe { height: 400px; }
}

@media (max-width: 767px) {
  .contact .grid { grid-template-columns: 1fr; }
  .contact-info { max-width: none; justify-self: stretch; padding: 3rem 30px 3rem 40px; }
  .items--sides { display: block; columns: 1; }
  .download .wrap { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .fb, .top-links, .nav-toggle:checked ~ .top-links { transition: none; }
  .nav-toggle:checked ~ .brand { animation: none; }
}
