/*
Theme Name: Pit 81
Description: Custom theme for Pit 81 BBQ Food Truck
Version: 1.0.0
*/

/* ─── Tokens ─────────────────────────────────────────── */
:root {
  --bg:        #0c0a08;
  --surface:   #181410;
  --surface-2: #221e18;
  --border:    #2e2820;
  --ember:     #e05a0a;
  --fire:      #ff7722;
  --amber:     #f0a020;
  --cream:     #ede0c8;
  --muted:     #8a7a68;
  --red:       #7a1010;

  --font-brand:   'Alfa Slab One', serif;
  --font-head:    'Barlow Condensed', sans-serif;
  --font-body:    'Crimson Pro', serif;

  --max-w: 1100px;
  --glow: 0 0 40px rgba(224, 90, 10, 0.25);
}

/* ─── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.7;
  min-height: 100vh;
  /* Subtle noise grain via SVG */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a  { color: var(--ember); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--fire); }

/* ─── Typography ─────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--cream);
}

/* ─── Utility ────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85em 2.4em;
  border: 2px solid var(--ember);
  color: var(--cream);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  position: relative;
}
.btn:hover {
  background: var(--ember);
  color: var(--bg);
  box-shadow: var(--glow);
  color: #fff;
}
.btn-solid {
  background: var(--ember);
  color: #fff;
}
.btn-solid:hover {
  background: var(--fire);
  border-color: var(--fire);
}

.divider {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.divider span {
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ember);
}

/* ─── Header / Nav ───────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: background 0.3s, backdrop-filter 0.3s, padding 0.3s;
}
.site-header.scrolled {
  background: rgba(12, 10, 8, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  font-family: var(--font-brand);
  font-size: 1.7rem;
  color: var(--cream);
  letter-spacing: 0.04em;
}
.site-logo span {
  color: var(--ember);
}
.site-logo:hover { color: var(--cream); }

.nav-menu {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}
.nav-menu a {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-menu a:hover,
.nav-menu .current-menu-item a {
  color: var(--ember);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--cream);
  transition: 0.3s;
}

@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem;
    gap: 1.25rem;
  }
  .nav-menu.open { display: flex; }
}

/* ─── Hero ───────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 8rem 2rem 5rem;
}

/* Ember glow radial at bottom */
.hero::before {
  content: '';
  position: absolute;
  bottom: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 55%;
  background: radial-gradient(ellipse at center bottom,
    rgba(224, 90, 10, 0.35) 0%,
    rgba(120, 40, 0, 0.15) 45%,
    transparent 70%);
  pointer-events: none;
}
/* Top vignette */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(12,10,8,0.6) 0%,
    transparent 30%,
    transparent 65%,
    rgba(12,10,8,0.8) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero-eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 1.25rem;
  display: block;
  animation: fadeUp 0.8s ease both;
}

.hero-title {
  font-family: var(--font-brand);
  font-size: clamp(5rem, 18vw, 12rem);
  color: var(--cream);
  line-height: 0.9;
  margin-bottom: 1.25rem;
  text-shadow:
    0 0 80px rgba(224, 90, 10, 0.4),
    0 0 160px rgba(224, 90, 10, 0.15);
  animation: fadeUp 0.8s 0.1s ease both;
}
.hero-title .ember { color: var(--ember); }

.hero-tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--muted);
  margin-bottom: 2.5rem;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.3s ease both;
}

/* ─── Sections ───────────────────────────────────────── */
.section {
  padding: 6rem 0;
}
.section-sm {
  padding: 4rem 0;
}
.section-dark {
  background: var(--surface);
}
.section-darker {
  background: var(--bg);
}

.section-label {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 0.6rem;
  display: block;
}
.section-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: 1.5rem;
}
.section-body {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.8;
}

/* ─── About (homepage) ───────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
}
.about-number {
  font-family: var(--font-brand);
  font-size: clamp(5rem, 12vw, 9rem);
  color: var(--border);
  line-height: 1;
  margin-bottom: 0;
  /* Decorative large "81" behind */
}

/* ─── Pillars ────────────────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
}
@media (max-width: 700px) {
  .pillars { grid-template-columns: 1fr; }
}
.pillar {
  background: var(--surface);
  padding: 3rem 2.5rem;
  text-align: center;
  transition: background 0.2s;
}
.pillar:hover {
  background: var(--surface-2);
}
.pillar-icon {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  display: block;
}
.pillar h3 {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}
.pillar p {
  color: var(--muted);
  font-size: 1rem;
}

/* ─── Find Us strip ──────────────────────────────────── */
.find-us {
  background: var(--ember);
  padding: 3.5rem 0;
  text-align: center;
}
.find-us h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #fff;
  margin-bottom: 0.5rem;
}
.find-us p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}
.find-us .btn {
  border-color: #fff;
  color: #fff;
}
.find-us .btn:hover {
  background: #fff;
  color: var(--ember);
  box-shadow: none;
}

/* ─── Menu page ──────────────────────────────────────── */
.page-banner {
  padding: 10rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 40%;
  background: radial-gradient(ellipse,
    rgba(224, 90, 10, 0.2) 0%,
    transparent 70%);
}
.page-banner h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  position: relative;
}
.page-banner .section-label {
  margin-bottom: 0.75rem;
}

/* Menu content styling — Gutenberg blocks */
.menu-content {
  max-width: 720px;
  margin: 0 auto;
}
.menu-content h2 {
  font-size: 2rem;
  color: var(--ember);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
}
.menu-content h2:first-child {
  margin-top: 0;
}
.menu-content h3 {
  font-size: 1.3rem;
  color: var(--cream);
  margin-bottom: 0.2rem;
}
.menu-content p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--border);
}
.menu-content p strong {
  color: var(--amber);
  font-family: var(--font-head);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}
.menu-content ul {
  list-style: none;
  margin-bottom: 1rem;
}
.menu-content ul li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}
.menu-content ul li::after {
  content: attr(data-price);
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--amber);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─── Contact page ───────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: start;
  padding: 4rem 0;
}
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}

.contact-form label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
  margin-top: 1.4rem;
}
.contact-form label:first-of-type { margin-top: 0; }

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8rem 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  border-radius: 0;
  -webkit-appearance: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--ember);
  box-shadow: 0 0 0 3px rgba(224, 90, 10, 0.12);
}
.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}
.contact-form button {
  margin-top: 1.6rem;
  width: 100%;
  font-size: 1rem;
  padding: 1em;
  background: var(--ember);
  border: 2px solid var(--ember);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.contact-form button:hover {
  background: var(--fire);
  border-color: var(--fire);
  box-shadow: var(--glow);
}

.contact-info h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  margin-top: 2rem;
  color: var(--ember);
}
.contact-info h3:first-child { margin-top: 0; }
.contact-info p,
.contact-info address {
  color: var(--muted);
  font-style: normal;
  line-height: 1.9;
  font-size: 1rem;
}

/* ─── Generic page content ───────────────────────────── */
.entry-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 0;
}
.entry-content h2 { font-size: 2rem; margin: 2.5rem 0 1rem; color: var(--ember); }
.entry-content h3 { font-size: 1.4rem; margin: 2rem 0 0.75rem; }
.entry-content p  { margin-bottom: 1.25rem; color: var(--muted); }
.entry-content ul, .entry-content ol {
  margin: 0 0 1.25rem 1.5rem;
  color: var(--muted);
}

/* ─── Footer ─────────────────────────────────────────── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-brand);
  font-size: 1.8rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
  display: block;
}
.footer-logo span { color: var(--ember); }
.footer-tagline {
  font-style: italic;
  color: var(--muted);
  margin-bottom: 2rem;
  font-size: 1rem;
}
.footer-nav {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.footer-nav a {
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-nav a:hover { color: var(--ember); }
.footer-copy {
  font-size: 0.82rem;
  color: var(--border);
  letter-spacing: 0.05em;
}

/* ─── Animations ─────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
