:root {
  /* Palette sampled directly from reference/01-desktop.png pixel values
     (bold condensed-type template): black background, cream headline fill,
     mustard accent/outline, red primary CTA. Full replacement of the
     earlier rustic wood-tone palette, not a tint on top of it. */
  --color-black: #1c1712;
  --color-black-soft: #262019;
  --color-cream: #f5eedf;
  --color-cream-muted: rgba(245, 238, 223, 0.72);
  --color-mustard: #e8a33d;
  --color-red: #cb4338;
  --color-text: #1c1712;
  --color-text-muted: #5a5348;

  --font-heading: 'Anton', sans-serif;
  --font-body: 'Inter', sans-serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  --max-width: 75rem;
  --radius: 6px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-cream);
  background: var(--color-black);
  line-height: 1.6;
  font-size: 1rem;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.01em;
  margin: 0 0 var(--space-2);
}

h1 { font-size: clamp(2.6rem, 6vw + 1rem, 5rem); }
h2 { font-size: clamp(1.9rem, 3.4vw + 1rem, 3rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 var(--space-2); }

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

a {
  color: var(--color-mustard);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
iframe:focus-visible {
  outline: 3px solid var(--color-mustard);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-red);
  color: var(--color-cream);
  padding: var(--space-1) var(--space-2);
  z-index: 100;
  border-radius: 0 0 6px 0;
}

.skip-link:focus {
  left: 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-2);
}

/* ---------- sticky top chrome (utility strip + header, as one unit) ---------- */

.site-top {
  position: sticky;
  top: 0;
  z-index: 20;
}

/* ---------- utility strip ---------- */

.utility-strip {
  background: #ffac4e;
  border-bottom: 1px solid rgba(28, 23, 18, 0.15);
  padding: 0.5rem 0;
}

.utility-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.3rem var(--space-2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-black);
  line-height: 1.45;
}

/* Below this width the status line alone is too long to share a row with
   "Delta & Salem, Utah" without an ugly mid-phrase wrap (e.g. "10" stranded
   from "AM"). Stack both as full-width rows instead of leaving the outcome
   to flex-wrap's item-by-item judgment, so both always get the full
   viewport width to wrap cleanly on their own. */
@media (max-width: 30rem) {
  .utility-strip-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
}

/* Only the current day (the <strong>) is bold; the rest of the live
   status line — including the dot — stays normal weight against the
   bar's default bold, per the "SUNDAY bold, rest normal" request. */
#hours-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 400;
}

/* white-space: nowrap belt-and-suspenders on top of gluing the colon inside
   this element (in script.js): guarantees "Sunday:" can never be split
   across a line break, no matter how a given browser's line-breaking rules
   treat a bare colon. The real, intended wrap point is the space right
   after this element, before "Closed"/"Open Now". */
#hours-status strong {
  font-weight: 700;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot-open {
  background: #2f8f4e;
}

.status-dot-closed {
  background: #c0392b;
}

/* ---------- header ---------- */

.site-header {
  background: var(--color-black-soft);
  color: var(--color-cream);
  border-bottom: 1px solid rgba(245, 238, 223, 0.15);
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-top: var(--space-1);
  padding-bottom: var(--space-1);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  text-decoration: none;
  color: var(--color-cream);
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 1.1rem;
}

.logo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

/* Header logo carries the branding alone now (no name text beside it), so it
   reads meaningfully bigger than the old logo+text lockup did. The source
   file (160x160) comfortably supports this at up to 2x pixel density. */
.logo-header img {
  width: 64px;
  height: 64px;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--color-cream);
  color: var(--color-cream);
  border-radius: 4px;
  padding: 0.4rem 0.6rem;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.site-nav {
  display: none;
  width: 100%;
  /* Forces the dropdown onto its own line below the logo/toggle row instead
     of squeezing into the header's flex row as an ever-shrinking sibling
     item — that squeeze (not a missing breakpoint) was the real cause of
     the nav overlapping the logo at every width below the desktop layout. */
  order: 10;
}

.site-nav.is-open {
  display: block;
  border-top: 1px solid rgba(245, 238, 223, 0.15);
  margin-top: var(--space-1);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: var(--space-2) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.site-nav a {
  color: var(--color-cream);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-mustard);
}

/* Marks which page-level nav link (as opposed to an in-page #anchor) matches
   the page currently being viewed — e.g. "Apply" on application.html.
   Underlined, not color alone, so it doesn't rely on color to read. */
.site-nav a[aria-current="page"] {
  color: var(--color-mustard);
  text-decoration: underline;
}

/* Both real phone numbers, one tap away, at every width: as full-width
   buttons (same solid-fill button language as the desktop header's
   Call Delta/Call Salem buttons, not plain underlined links) inside the
   mobile nav dropdown below desktop, and as compact header buttons above it. */
.nav-call-item .btn {
  width: 100%;
}

.header-calls {
  display: none;
  gap: 0.5rem;
}

.header-calls .btn {
  padding: 0.5rem 0.9rem;
  font-size: 0.8rem;
}

@media (min-width: 60rem) {
  .nav-toggle { display: none; }

  .site-nav {
    display: block;
    width: auto;
    order: initial;
  }

  .site-nav ul {
    flex-direction: row;
    padding: 0;
    gap: var(--space-3);
  }

  .nav-call-item {
    display: none;
  }

  .header-calls {
    display: flex;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.btn-red {
  background: var(--color-red);
  color: var(--color-cream);
}

.btn-mustard {
  background: var(--color-mustard);
  color: var(--color-black);
}

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.btn-accent {
  background: var(--color-red);
  color: var(--color-cream);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* ---------- sections ---------- */

section {
  padding: var(--space-5) 0;
}

.section-head {
  max-width: 42rem;
  margin-bottom: var(--space-4);
}

.section-head .accent {
  color: var(--color-mustard);
}

.section-black {
  background: var(--color-black);
}

.section-black-soft {
  background: var(--color-black-soft);
}

.section-cream {
  background: var(--color-cream);
  color: var(--color-text);
}

.section-cream h2 {
  color: var(--color-text);
}

.section-cream p {
  color: var(--color-text-muted);
}

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

.hero {
  position: relative;
  color: var(--color-cream);
  padding-top: var(--space-5);
  padding-bottom: var(--space-4);
}

.hero-headline {
  margin: 0 0 var(--space-3);
}

.hero-line {
  display: block;
  font-size: clamp(2.4rem, 11vw, 6.5rem);
  line-height: 0.92;
  /* -webkit-text-stroke paints outside the glyphs' layout box (it's a paint
     effect, not a layout one), so the line needs a little reserved padding
     of its own on top of font-size margin, or the outline row's stroke can
     bleed past the container edge without ever registering as layout
     overflow. */
  padding-right: 4px;
}

.hero-line-solid {
  color: var(--color-cream);
}

.hero-line-outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--color-mustard);
  text-stroke: 2px var(--color-mustard);
}

@supports not ((-webkit-text-stroke: 1px black) or (text-stroke: 1px black)) {
  .hero-line-outline {
    color: var(--color-mustard);
  }
}

.hero p.lede {
  color: var(--color-cream-muted);
  font-size: 1.2rem;
  max-width: 34rem;
}

/* ---------- marquee ---------- */

.marquee {
  background: #ffac4e;
  overflow: hidden;
  /* Mustard borders would nearly vanish against this near-identical-hue
     background, so the definition line is dark instead. */
  border-top: 1px solid var(--color-black);
  border-bottom: 1px solid var(--color-black);
  padding: 0.7rem 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}

.marquee-item {
  white-space: nowrap;
  font-family: var(--font-heading);
  color: var(--color-black);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  padding-right: 2.5rem;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- as seen on ---------- */

.as-seen-on {
  padding: var(--space-4) 0;
}

.as-seen-on h2 {
  font-size: 1.4rem;
  margin-bottom: var(--space-2);
}

.as-seen-on-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.as-seen-on-row a,
.as-seen-on-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-cream);
}

.as-seen-on-row svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.as-seen-on-badge {
  font-weight: 700;
  color: var(--color-mustard);
}

/* ---------- locations ---------- */

.locations-grid {
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 45rem) {
  .locations-grid { grid-template-columns: 1fr 1fr; }
}

.location-card {
  background: var(--color-black-soft);
  border: 1px solid rgba(245, 238, 223, 0.15);
  border-radius: var(--radius);
  overflow: hidden;
}

.location-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--color-mustard);
  color: var(--color-black);
}

.location-card-head h3 {
  margin: 0;
  color: var(--color-black);
}

.location-card-head .location-hours {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.location-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.location-card-body {
  padding: var(--space-3);
  background: var(--color-cream);
}

/* The global `a { color: var(--color-mustard) }` rule would put mustard text
   on this light card background (mustard-on-cream is ~1.87:1 — well under
   AA), so links inside the card body need their own dark color. The
   underline keeps them legible as links without relying on color alone.
   :not(.btn) so this doesn't also underline the Get Directions button. */
.location-card-body a:not(.btn) {
  color: var(--color-black);
  text-decoration: underline;
}

.location-card address {
  font-style: normal;
  margin-bottom: var(--space-1);
  color: var(--color-black);
}

.location-card-body > p {
  margin-bottom: var(--space-2);
}

.map-embed {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 0 var(--space-2);
  background: #ddd;
}

.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.hours-note {
  margin-top: var(--space-2);
  color: var(--color-cream-muted);
  font-size: 0.9rem;
}

/* ---------- menu ---------- */

.menu-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 65rem) {
  .menu-grid { grid-template-columns: repeat(3, 1fr); }
  .menu-card-wide { grid-column: span 2; }
}

.menu-card {
  background: var(--color-black-soft);
  border: 1px solid rgba(232, 163, 61, 0.3);
  border-radius: var(--radius);
  padding: var(--space-3);
}

.menu-card h3 {
  color: var(--color-mustard);
  margin-bottom: 0.4rem;
}

.menu-card-note {
  font-size: 0.85rem;
  color: var(--color-cream-muted);
  margin-bottom: var(--space-2);
  font-style: italic;
}

.menu-list {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 1;
  column-gap: var(--space-3);
}

.menu-card-wide .menu-list {
  columns: 2;
}

@media (max-width: 40rem) {
  .menu-card-wide .menu-list { columns: 1; }
}

.menu-list li {
  break-inside: avoid;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(245, 238, 223, 0.1);
}

.menu-list li:last-child { border-bottom: none; }

.menu-item-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--color-cream);
}

.menu-item-row .price {
  color: var(--color-mustard);
  white-space: nowrap;
  font-family: var(--font-heading);
  font-weight: 400;
}

.menu-item-desc {
  display: block;
  font-size: 0.83rem;
  color: var(--color-cream-muted);
  margin-top: 0.2rem;
  font-weight: 400;
}

.menu-note {
  margin-top: var(--space-3);
  color: var(--color-cream-muted);
  font-size: 0.95rem;
}

/* ---------- about ---------- */

/* Real wood-plank photo (sites/ashtons-burger-barn/assets/wood-bg.jpg) behind
   this one section only, tying the "Ashton Farms Meats" heritage story to a
   real wood surface rather than a flat color block. A dark tint keeps it from
   fighting with the cream content card floating on top. WebP first, JPEG
   fallback for browsers without image-set() (plain url() first, overridden by
   the image-set() version in browsers that understand it). Shared across
   every wood-backed section (hero, locations, about, contact) so the same
   already-downloaded file is reused, not reprocessed — zero added weight. */
.section-wood {
  position: relative;
  background-color: #241708;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-image:
    linear-gradient(rgba(18, 10, 5, 0.6), rgba(18, 10, 5, 0.6)),
    url('images/about-wood-bg.jpg');
  background-image:
    linear-gradient(rgba(18, 10, 5, 0.6), rgba(18, 10, 5, 0.6)),
    image-set(
      url('images/about-wood-bg.webp') type('image/webp'),
      url('images/about-wood-bg.jpg') type('image/jpeg')
    );
}

.about-card {
  background: var(--color-cream);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.about-grid {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}

@media (min-width: 50rem) {
  .about-grid { grid-template-columns: 1fr 1.1fr; }
}

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.about-eyebrow {
  display: inline-block;
  color: var(--color-red);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: var(--space-1);
}

.about-copy h2 {
  color: var(--color-text);
}

.about-copy p {
  color: var(--color-text-muted);
}

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

.gallery-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.gallery-head .section-head {
  margin-bottom: 0;
}

.gallery-ig-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.1rem;
  color: var(--color-mustard);
  white-space: nowrap;
}

.gallery-ig-link svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.gallery-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 40rem) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

.gallery-grid img {
  border-radius: 2px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* ---------- contact ---------- */

.contact-recap {
  list-style: none;
  margin: 0 0 var(--space-3);
  padding: 0;
  display: grid;
  gap: 0.4rem;
  color: var(--color-cream);
}

.contact-card {
  background: var(--color-cream);
  color: var(--color-text);
  border-radius: var(--radius);
  padding: var(--space-3);
  max-width: 38rem;
}

form.contact-form {
  display: grid;
  gap: var(--space-2);
}

form.contact-form .field {
  display: grid;
  gap: 0.35rem;
}

form.contact-form label {
  font-weight: 600;
  font-size: 0.95rem;
}

form.contact-form input,
form.contact-form select,
form.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid #9a8f7d;
  border-radius: 4px;
  font: inherit;
  background: #fff;
  color: var(--color-text);
}

.botcheck-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

form.contact-form button {
  justify-self: start;
}

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

.site-footer {
  background: var(--color-black);
  color: var(--color-cream);
  border-top: 1px solid var(--color-mustard);
  padding: var(--space-4) 0 var(--space-3);
}

.footer-grid {
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 45rem) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.site-footer a {
  color: var(--color-cream);
}

.site-footer .logo {
  margin-bottom: var(--space-2);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-social {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.footer-social svg {
  width: 22px;
  height: 22px;
}

.footer-bottom {
  margin-top: var(--space-4);
  padding-top: var(--space-2);
  border-top: 1px solid rgba(245, 238, 223, 0.18);
  font-size: 0.85rem;
  opacity: 0.8;
}

.footer-bottom p {
  margin: 0;
}

.footer-credit {
  margin-top: 0.35rem !important;
}

/* ---------- simple pages (privacy / thanks / 404) ---------- */

.simple-page {
  background: var(--color-cream);
  color: var(--color-text);
}

.simple-page main {
  padding: var(--space-5) 0;
  color: var(--color-text);
}

.simple-page main h1 {
  color: var(--color-text);
}

.simple-page main p {
  color: var(--color-text-muted);
}

.simple-page .container {
  max-width: 42rem;
}

.simple-page .site-header {
  background: var(--color-black-soft);
}

.simple-page .site-footer {
  background: var(--color-black);
}
