/*
  Designed and developed by Wave Agency - waveagency.com
  Version 1-0-0
*/

/* =========================================================
   Vanderwolf Smoke BBQ
   Palette grounded in the smoker: charred bark, ember coals,
   the pink smoke ring, and butcher-paper kraft.
   ========================================================= */

:root {
  /* Charred bark / smoke */
  --char-900: #140f0c;
  --char-850: #19130f;
  --char-800: #1d1611;
  --char-700: #281f18;
  --char-600: #352a21;

  /* Coals */
  --ember: #df571e;
  --ember-bright: #f56a22;
  --ember-soft: rgba(223, 87, 30, 0.16);

  /* The smoke ring (signature accent) */
  --rose: #cb8074;
  --rose-soft: rgba(203, 128, 116, 0.18);

  /* Butcher paper + bone */
  --kraft: #e8d8bd;
  --kraft-deep: #d9c4a1;
  --bone: #f6f0e4;
  --ash: #b3a492;
  --oak: #c99a4e;

  /* Roles */
  --bg: var(--char-900);
  --ink: var(--bone);
  --muted: var(--ash);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --radius: 14px;
  --radius-lg: 22px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--ember-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--ember); color: var(--bone); }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.04; letter-spacing: -0.01em; }
.display {
  font-weight: 600;
  font-size: clamp(2.7rem, 7.5vw, 5.4rem);
  font-optical-sizing: auto;
}
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember-bright);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--ember);
  display: inline-block;
}
.lead { font-size: clamp(1.08rem, 2vw, 1.3rem); color: var(--ink); max-width: 56ch; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }
.section--kraft { background: var(--kraft); color: var(--char-900); }
.section--kraft .lead, .section--kraft .muted { color: #4a3d2f; }
.section--kraft .eyebrow { color: var(--ember); }

.grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.muted { color: var(--muted); }
.center { text-align: center; }
.stack > * + * { margin-top: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.95em 1.5em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
  line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--ember); color: var(--bone); }
.btn--primary:hover { background: var(--ember-bright); transform: translateY(-2px); }
.btn--ghost { border-color: rgba(246, 240, 228, 0.28); color: var(--bone); }
.btn--ghost:hover { border-color: var(--ember); color: var(--ember-bright); transform: translateY(-2px); }
.section--kraft .btn--ghost { border-color: rgba(20, 15, 12, 0.25); color: var(--char-900); }
.section--kraft .btn--ghost:hover { border-color: var(--ember); color: var(--ember); }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(20, 15, 12, 0.78);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(246, 240, 228, 0.08);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; letter-spacing: -0.01em; line-height: 1; }
.brand__name small { display: block; font-family: var(--font-body); font-weight: 700; font-size: 0.56rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ember-bright); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 1.7rem; }
.nav a { font-weight: 600; font-size: 0.96rem; color: var(--ash); transition: color 0.16s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--bone); }
.header-cta { display: inline-flex; gap: 0.6rem; align-items: center; }
.header-cta .btn { padding: 0.7em 1.15em; font-size: 0.9rem; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--bone); }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 880px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.open .mobile-nav { display: flex; }
}
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem var(--gutter) 1.4rem;
  border-top: 1px solid rgba(246, 240, 228, 0.08);
}
.mobile-nav a { padding: 0.8rem 0; font-weight: 600; font-size: 1.1rem; border-bottom: 1px solid rgba(246, 240, 228, 0.06); }
.mobile-nav .btn { margin-top: 0.8rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--char-900); }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.42; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(120% 90% at 78% 18%, var(--rose-soft), transparent 55%),
    linear-gradient(180deg, rgba(20,15,12,0.55) 0%, rgba(20,15,12,0.82) 60%, var(--char-900) 100%);
}
.hero__inner { position: relative; z-index: 2; padding-block: clamp(4.5rem, 13vw, 9rem); max-width: 42rem; }
.hero h1 { margin-top: 1.1rem; }
.hero h1 .accent { color: var(--ember-bright); font-style: italic; }
.hero .lead { margin-top: 1.4rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 1.5rem 2.2rem; margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid rgba(246,240,228,0.12); }
.hero__meta div { line-height: 1.2; }
.hero__meta b { font-family: var(--font-display); font-size: 1.5rem; display: block; color: var(--bone); }
.hero__meta span { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ash); }

/* Ambient smoke */
.smoke { position: absolute; z-index: 1; pointer-events: none; filter: blur(28px); opacity: 0.5; mix-blend-mode: screen; }
.smoke--1 { width: 360px; height: 360px; right: -60px; top: 4%; background: radial-gradient(circle, rgba(203,128,116,0.5), transparent 70%); animation: drift 16s ease-in-out infinite; }
.smoke--2 { width: 300px; height: 300px; right: 22%; top: 30%; background: radial-gradient(circle, rgba(223,87,30,0.35), transparent 70%); animation: drift 22s ease-in-out infinite reverse; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-26px, -34px) scale(1.12); }
}

/* ---------- Smoke-ring divider (signature) ---------- */
.ring-rule { display: flex; align-items: center; gap: 1rem; color: var(--rose); }
.ring-rule::before, .ring-rule::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, currentColor, transparent); opacity: 0.5; }
.ring-rule span { font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 700; white-space: nowrap; }

/* ---------- Section heads ---------- */
.section-head { max-width: 40rem; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-top: 0.9rem; }
.section-head.center { margin-inline: auto; }

/* ---------- Feature / value cards ---------- */
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--char-800);
  border: 1px solid rgba(246, 240, 228, 0.08);
  border-radius: var(--radius);
  padding: 1.8rem;
  position: relative;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--ember-soft); }
.card__num { font-family: var(--font-display); font-size: 0.95rem; color: var(--ember); font-weight: 600; letter-spacing: 0.05em; }
.card h3 { font-size: 1.4rem; margin: 0.5rem 0 0.6rem; }
.card p { color: var(--muted); font-size: 0.99rem; }
.card__icon { width: 44px; height: 44px; margin-bottom: 1rem; color: var(--ember); }
.section--kraft .card { background: #fff; border-color: rgba(20,15,12,0.08); }
.section--kraft .card p { color: #5a4c3c; }
.section--kraft .card h3 { color: var(--char-900); }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.7); }
.split__media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split--flip .split__media { order: -1; } }

/* ---------- Menu ---------- */
.menu-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.menu-card {
  background: var(--char-800);
  border: 1px solid rgba(246, 240, 228, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.menu-card:hover { transform: translateY(-4px); border-color: var(--rose-soft); }
.menu-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.menu-card__media img { width: 100%; height: 100%; object-fit: cover; }
.menu-card__media::before { /* smoke-ring top accent */
  content: ""; position: absolute; inset: 0; z-index: 1;
  box-shadow: inset 0 4px 0 0 var(--rose);
  opacity: 0.85;
}
.menu-card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.menu-card__row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.menu-card__row h3 { font-size: 1.35rem; }
.menu-card__price { font-family: var(--font-display); font-weight: 600; color: var(--ember-bright); white-space: nowrap; font-size: 1.05rem; }
.menu-card__time { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rose); font-weight: 700; margin-top: 0.5rem; }
.menu-card p { color: var(--muted); font-size: 0.97rem; margin-top: 0.7rem; flex: 1; }

.menu-list { background: var(--char-800); border: 1px solid rgba(246,240,228,0.08); border-radius: var(--radius); padding: 1.6rem 1.8rem; }
.menu-list h3 { font-size: 1.4rem; margin-bottom: 1rem; color: var(--bone); }
.menu-line { display: flex; align-items: baseline; gap: 0.8rem; padding: 0.7rem 0; border-bottom: 1px dashed rgba(246,240,228,0.12); }
.menu-line:last-child { border-bottom: 0; }
.menu-line__name { font-weight: 600; color: var(--bone); }
.menu-line__dots { flex: 1; border-bottom: 1px dotted rgba(246,240,228,0.22); transform: translateY(-3px); }
.menu-line__price { color: var(--ember-bright); font-weight: 700; white-space: nowrap; }
.menu-line small { display: block; color: var(--muted); font-weight: 400; font-size: 0.86rem; }

/* ---------- Order panel ---------- */
.order-panel {
  background: linear-gradient(135deg, var(--char-700), var(--char-850));
  border: 1px solid var(--ember-soft);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
}
.order-panel::after {
  content: ""; position: absolute; right: -80px; bottom: -80px; width: 320px; height: 320px;
  background: radial-gradient(circle, var(--ember-soft), transparent 70%);
  pointer-events: none;
}
.order-panel__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; }
.order-panel h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.order-steps { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 0.7rem; }
.order-steps li { display: flex; gap: 0.8rem; align-items: flex-start; color: var(--muted); }
.order-steps .n { font-family: var(--font-display); color: var(--ember); font-weight: 600; flex: none; }
.order-actions { display: grid; gap: 0.8rem; }
.order-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; }
@media (max-width: 760px) { .order-panel__inner { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.gallery { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.gallery figure { border-radius: var(--radius); overflow: hidden; margin: 0; aspect-ratio: 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }

/* ---------- Form ---------- */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.45rem; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field .req { color: var(--ember-bright); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem;
  background: var(--char-850); color: var(--bone);
  border: 1px solid rgba(246,240,228,0.16);
  border-radius: 10px; padding: 0.85em 1em;
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease);
}
.section--kraft .field input, .section--kraft .field select, .section--kraft .field textarea {
  background: #fff; color: var(--char-900); border-color: rgba(20,15,12,0.18);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ember); background: var(--char-800); }
.section--kraft .field input:focus, .section--kraft .field select:focus, .section--kraft .field textarea:focus { background: #fff; }
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.86rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; background: var(--char-850); }
.cta-band h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); max-width: 18ch; margin-inline: auto; }
.cta-band .hero__actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--char-850); border-top: 1px solid rgba(246,240,228,0.08); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-family: var(--font-body); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ember-bright); margin-bottom: 1rem; }
.footer-grid a { color: var(--ash); display: block; padding: 0.28rem 0; transition: color 0.16s var(--ease); }
.footer-grid a:hover { color: var(--bone); }
.footer-tag { color: var(--muted); margin-top: 0.8rem; max-width: 30ch; font-size: 0.96rem; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 0.8rem 1.5rem; justify-content: space-between; align-items: center; margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid rgba(246,240,228,0.08); font-size: 0.84rem; color: var(--muted); }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--ember-bright); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Utility ---------- */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ember); color: var(--bone); padding: 0.7em 1.1em; z-index: 100; border-radius: 0 0 8px 0; font-weight: 700; }
.skip-link:focus { left: 0; }
.pill { display: inline-block; background: var(--ember-soft); color: var(--ember-bright); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.04em; padding: 0.4em 0.9em; border-radius: 999px; }
.breadcrumb { font-size: 0.84rem; color: var(--muted); padding-top: 1.4rem; }
.breadcrumb a:hover { color: var(--ember-bright); }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; }
.post-card .menu-card__body { gap: .6rem; flex: 1; }
.post-card__tag { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--ember-bright); }
.post-card h3 { font-size: 1.25rem; line-height: 1.25; }
.post-card p { color: var(--ink); font-size: .96rem; }
.post-card__meta { margin-top: auto; font-size: .82rem; color: var(--muted); padding-top: .4rem; }
.post-card__link { color: var(--ember-bright); font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: .4rem; }

.prose { max-width: 70ch; margin-inline: auto; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2.4rem; }
.prose h3 { font-size: 1.25rem; margin-top: 1.8rem; }
.prose p, .prose li { font-size: 1.06rem; line-height: 1.75; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .5rem; }
.prose strong { color: var(--bone); }
.section--kraft .prose strong { color: var(--char-900); }
.prose a { color: var(--ember-bright); text-decoration: underline; text-underline-offset: 3px; }
.post-hero__meta { font-size: .9rem; color: var(--muted); margin-top: 1rem; }

/* ---------- Online ordering embed ---------- */
.order-embed[hidden], .order-panel__inner[hidden] { display: none; }
.order-embed { display: flex; flex-direction: column; gap: 1.1rem; width: 100%; }
.order-embed__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.order-embed iframe { width: 100%; min-height: 760px; border: 0; border-radius: var(--radius); background: var(--bone); display: block; }
@media (max-width: 600px) { .order-embed iframe { min-height: 620px; } }
