/*
Theme Name: JT Desert Drifters
Theme URI: https://jtdesertdrifters.com/
Author: JT Desert Drifters
Description: Simple theme for the Yucca Valley food trailer. Uses the real logo and photos already on the site.
Version: 1.0.13
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: jtdd
*/

:root {
  --ink: #241c16;
  --paper: #f6f0e6;
  --card: #fffaf3;
  --line: #e3d5c4;
  --sage: #2c4a34;
  --clay: #c4511a;
  --clay-dark: #8f3910;
  --muted: #6e6258;
  --shadow: 0 16px 40px rgba(36, 28, 22, 0.08);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 18px/1.55 "Segoe UI", sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage); }
a:hover { color: var(--clay-dark); }
h1, h2, h3 {
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}
p { margin: 0 0 0.8em; }
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #fff;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 240, 230, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.preview-note {
  margin: 0;
  padding: 6px 14px;
  background: var(--ink);
  color: #f6f0e6;
  font-size: 13px;
  text-align: center;
}
#jtdd-employee-login { display: none; }
.header-row {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 84px;
}
.logo img { width: auto; height: 68px; max-width: 84px; object-fit: contain; }
.nav { display: flex; gap: 18px; align-items: center; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 650; font-size: 16px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--clay-dark); }
.header-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.logo { flex: 0 0 auto; }
.btn, button.btn {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn-clay { background: var(--clay); color: #fff; }
.btn-clay:hover { background: var(--clay-dark); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; color: #fff; }
.btn-line { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
button.menu-toggle { display: none; }

.stage { position: relative; min-height: 78vh; color: #f6f0e6; background: #241c16; overflow: hidden; }
main > section.stage { padding: 0; }
.stage-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(36, 28, 22, 0.88) 0%, rgba(36, 28, 22, 0.55) 48%, rgba(36, 28, 22, 0.18) 100%);
}
.stage-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: end;
  padding: 54px 0 40px;
}
.stage h1 { color: #fff; font-size: clamp(46px, 6vw, 78px); margin: 0 0 12px; }
.stage .kicker { color: #f0c7a8; }
.stage .btn-line { color: #fff; border-color: #fff; }
.stage .btn-line:hover { background: #fff; color: var(--ink); }
.stage .lede, .stage .hours-line { color: #f6f0e6; }
.stage-plate {
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: contain;
  background: #fffaf3;
  border-radius: 18px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}
.week-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 18px; }
.day {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 10px;
  min-height: 124px;
}
.day strong { display: block; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.day .where { display: block; font-weight: 750; margin-top: 10px; }
.day .when { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.day.is-closed { color: var(--muted); }
.day.is-event { border-color: var(--clay); }
.day .where a { color: var(--clay-dark); text-decoration: none; }
.day .where a:hover { text-decoration: underline; }
.day .detail { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.shots {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 10px;
  margin-top: 18px;
}
.shots figure, .gallery figure { margin: 0; position: relative; }
.shots figure:first-child { grid-row: 1 / span 2; }
.shots img, .gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.shots figcaption, .gallery figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  color: #fff;
  font-weight: 750;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.path {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.gallery img { height: 320px; }

.hero { padding: 36px 0 18px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 36px; align-items: center; }
.kicker {
  color: var(--sage);
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 8px;
}
.hero h1 { font-size: clamp(40px, 5vw, 62px); margin: 0 0 12px; }
.lede { font-size: 20px; color: var(--muted); }
.hours-line { font-weight: 750; margin: 8px 0 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-photo { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); background: #ddd; }
.hero-photo img { width: 100%; height: 460px; object-fit: cover; }

.band { background: var(--sage); color: #f6f0e6; }
.band .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 0; font-weight: 700; }
.band a { color: #fff; }

main > section { padding: 54px 0; }
main > section h2 { font-size: clamp(32px, 4vw, 44px); margin: 0 0 8px; }
.menu-grid h2 { font-size: 28px; margin: 0 0 8px; }
.menu-grid section { padding: 0; }
.sub { color: var(--muted); max-width: 62ch; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}
.card strong { display: block; font-size: 20px; margin-bottom: 4px; }
.card .price { display: block; color: var(--clay-dark); font-weight: 750; }
.card p { margin: 6px 0 0; color: var(--muted); font-size: 16px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.split img, .frame img { width: 100%; border-radius: 16px; object-fit: cover; max-height: 460px; }
.note { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }

.price-list { list-style: none; padding: 0; margin: 0; }
.price-list li {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.price-list .name { display: block; overflow: hidden; }
.price-list .cost {
  float: right;
  margin-left: 12px;
  color: var(--clay-dark);
  font-weight: 700;
  white-space: nowrap;
}
.price-list .about {
  display: block;
  clear: both;
  color: var(--muted);
  font-size: 15px;
  margin-top: 2px;
}
.price-list .out, .card .out {
  display: block;
  clear: both;
  color: var(--muted);
  font-weight: 650;
  font-size: 14px;
}
.price-list li.is-out .name { color: var(--muted); }
.menu-block { margin-bottom: 8px; }
.menu-updated { color: var(--muted); font-size: 15px; }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 36px; }
.entry h2, .entry h3 { margin: 1.2em 0 0.4em; }
.entry h2:first-child, .entry h3:first-child { margin-top: 0; }
.entry a:not(.btn) { color: var(--clay-dark); font-weight: 700; }
.entry blockquote {
  margin: 18px 0;
  padding: 16px 20px;
  background: var(--card);
  border-left: 4px solid var(--clay);
  border-radius: 12px;
}
.entry blockquote p:last-child { margin-bottom: 0; }
.story { margin: 0 0 36px; }
.review-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 8px 0 28px; }
.review-score {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
}
.review-score .score { font-family: Georgia, "Iowan Old Style", Palatino, serif; font-size: 42px; line-height: 1; }
.review-score .stars { color: var(--clay); letter-spacing: 2px; font-size: 20px; }
.review-score p { margin: 8px 0 0; }
.review {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 0 0 14px;
}
.review .who { font-weight: 750; }
.review .when { color: var(--muted); font-size: 15px; }
.review .stars { color: var(--clay); letter-spacing: 1px; }
.review .reply {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 16px;
}
.review-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 28px; }
.review-note { color: var(--muted); }

.event {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.event time { font-weight: 800; color: var(--clay-dark); }
.page-hero { padding: 34px 0 8px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 56px); margin: 0 0 8px; }
.entry { padding-bottom: 48px; }
.entry img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  margin: 12px 0;
}

.people { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.person { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.person h3 { margin: 0 0 4px; }
.role { color: var(--sage); font-weight: 750; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; }

.site-footer { background: var(--ink); color: #f6f0e6; padding: 36px 0 22px; margin-top: 20px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.fine { color: #cbbbaa; font-size: 14px; margin-top: 22px; }
.socials { display: flex; gap: 14px; flex-wrap: wrap; }

.empty { background: var(--card); border: 1px dashed var(--line); border-radius: 16px; padding: 18px; }

.inquiry-lead { max-width: 640px; margin: 28px 0 0; }
.inquiry-lead h2 { margin-bottom: 6px; }
.inquiry {
  max-width: 640px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px 22px 22px;
  margin: 8px 0 40px;
}
.inquiry label { display: block; margin: 0 0 14px; font-weight: 700; font-size: 15px; }
.inquiry .hint { color: var(--muted); font-weight: 400; font-size: 17px; margin-top: 0; }
.inquiry input, .inquiry select, .inquiry textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
}
.inquiry input:focus, .inquiry select:focus, .inquiry textarea:focus {
  outline: 2px solid var(--clay);
  border-color: var(--clay);
}
.inquiry input[type="date"], .inquiry input[type="time"] { accent-color: var(--clay); }
.inquiry .when { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inquiry .err { color: #8f2d22; font-weight: 700; }
.inquiry .thanks { font-size: 18px; margin: 8px 0 0; }
.inquiry .hp { position: absolute; left: -9999px; }
.suggest { position: relative; display: block; }
.suggest-list {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 4px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.suggest-list button {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  color: var(--ink);
  border: 0;
  border-radius: 0;
  padding: 10px 12px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.suggest-list button:hover { background: var(--paper); color: var(--clay-dark); }

@media (max-width: 860px) {
  .wrap { width: min(var(--max), calc(100% - 32px)); }
  .header-row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "logo menu" "actions actions";
    gap: 8px 10px;
    min-height: 0;
    padding: 10px 0;
  }
  .logo { grid-area: logo; }
  .logo img { height: 52px; max-width: 64px; }
  button.menu-toggle { display: inline-flex; grid-area: menu; align-self: center; padding: 8px 12px; }
  .header-actions {
    grid-area: actions;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .header-actions .btn { text-align: center; padding: 8px 12px; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 20px 16px;
    margin: 0;
    gap: 4px;
  }
  .nav a { display: block; padding: 10px 0; font-size: 18px; }
  .nav.is-open { display: flex; }
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { text-align: center; }
  .band .wrap { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hero-grid, .split, .cards, .menu-grid, .people, .footer-grid, .event, .stage-grid, .paths, .gallery, .review-summary { grid-template-columns: 1fr; }
  .stage { min-height: 0; }
  .stage-shade { background: linear-gradient(180deg, rgba(36, 28, 22, 0.2) 0%, rgba(36, 28, 22, 0.88) 70%); }
  .stage-grid { padding: 28px 0 24px; }
  .stage-plate { max-height: 320px; }
  .week-grid { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .shots figure:first-child { grid-column: 1 / -1; grid-row: auto; }
  .shots img, .gallery img, .gallery figure:first-child img { height: 220px; min-height: 0; }
  .hero-photo img { height: 240px; }
  .hero h1 { font-size: 36px; }
  .entry img { height: 220px; }
}
