/* Ember & Oak — moody, wood-fired restaurant demo */

:root {
  --charcoal: #17140f;
  --charcoal-2: #201b14;
  --cream: #f4ede1;
  --cream-dim: #cdc3b2;
  --amber: #d9973f;
  --ember: #c1502e;
  --line: rgba(244, 237, 225, 0.14);
  --serif: "Fraunces", serif;
  --sans: "Work Sans", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--charcoal);
  color: var(--cream);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
  margin: 0 0 0.75rem;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--amber), var(--ember));
  color: #1a1209;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--cream);
}
.btn-ghost:hover { border-color: var(--amber); }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem clamp(1.25rem, 4vw, 3.5rem);
  background: rgba(23, 20, 15, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-mark {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--cream);
}
.nav-mark span { color: var(--amber); font-style: italic; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  font-size: 0.9rem;
}
.nav-links a { text-decoration: none; color: var(--cream-dim); transition: color 0.2s ease; }
.nav-links a:hover { color: var(--cream); }
.nav-cta {
  border: 1px solid var(--line);
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  color: var(--cream) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--cream); }

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

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 clamp(1.25rem, 4vw, 3.5rem);
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 75% 24%, rgba(217, 151, 63, 0.22), transparent 60%),
    linear-gradient(10deg, rgba(23, 20, 15, 0.98) 8%, rgba(23, 20, 15, 0.86) 38%, rgba(23, 20, 15, 0.55) 68%, rgba(23, 20, 15, 0.4));
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  animation: heroKenBurns 24s ease-in-out infinite alternate;
  filter: saturate(1.05);
}
@keyframes heroKenBurns {
  from { transform: scale(1.08) translate(0, 0); }
  to { transform: scale(1.16) translate(-1.5%, -1%); }
}

/* rising embers, drifting up from the hearth with a little flicker */
.embers {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.embers span {
  position: absolute;
  bottom: -5%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffb066 0%, #d9973f 55%, transparent 75%);
  box-shadow: 0 0 6px 1px rgba(217, 151, 63, 0.7);
  opacity: 0;
  animation: emberRise linear infinite;
}
.embers span:nth-child(1) { left: 8%; animation-duration: 9s; animation-delay: 0s; }
.embers span:nth-child(2) { left: 18%; animation-duration: 12s; animation-delay: 1.5s; width: 3px; height: 3px; }
.embers span:nth-child(3) { left: 27%; animation-duration: 8s; animation-delay: 3s; }
.embers span:nth-child(4) { left: 39%; animation-duration: 11s; animation-delay: 0.5s; width: 3px; height: 3px; }
.embers span:nth-child(5) { left: 52%; animation-duration: 10s; animation-delay: 4s; }
.embers span:nth-child(6) { left: 61%; animation-duration: 13s; animation-delay: 2s; width: 5px; height: 5px; }
.embers span:nth-child(7) { left: 70%; animation-duration: 9s; animation-delay: 5s; }
.embers span:nth-child(8) { left: 76%; animation-duration: 12s; animation-delay: 1s; width: 3px; height: 3px; }
.embers span:nth-child(9) { left: 84%; animation-duration: 8.5s; animation-delay: 3.5s; }
.embers span:nth-child(10) { left: 91%; animation-duration: 11s; animation-delay: 2.5s; width: 3px; height: 3px; }
.embers span:nth-child(11) { left: 47%; animation-duration: 14s; animation-delay: 6s; width: 5px; height: 5px; }
.embers span:nth-child(12) { left: 14%; animation-duration: 10s; animation-delay: 7s; }

@keyframes emberRise {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  8% { opacity: 0.85; }
  50% { transform: translateY(-52vh) translateX(8px); opacity: 0.6; }
  90% { opacity: 0; }
  100% { transform: translateY(-92vh) translateX(-6px); opacity: 0; }
}

.hero-content { position: relative; z-index: 2; }

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  max-width: 16ch;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.45);
}
.hero-title em { color: var(--amber); font-style: italic; }

.hero-sub {
  margin: 1.75rem 0 2.25rem;
  font-size: 1.1rem;
  color: var(--cream-dim);
  max-width: 42ch;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 2.25rem;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--cream-dim);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero-scroll span {
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, var(--amber), transparent);
  position: relative;
  overflow: hidden;
}
.hero-scroll span::after {
  content: "";
  position: absolute;
  left: 0;
  top: -100%;
  width: 100%;
  height: 100%;
  background: var(--cream);
  animation: scrollDrip 2.2s ease-in-out infinite;
}
@keyframes scrollDrip {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg img { animation: none; }
  .embers span { animation: none; display: none; }
  .hero-scroll span::after { animation: none; }
}

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

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 1.1rem 0;
  background: var(--charcoal-2);
}
.marquee-track {
  display: flex;
  gap: 1.5rem;
  white-space: nowrap;
  width: max-content;
  animation: scrollMarquee 34s linear infinite;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--amber);
}
@keyframes scrollMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- press strip ---------- */

.press-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 2.5rem;
  padding: 2.25rem clamp(1.25rem, 4vw, 3.5rem);
  text-align: center;
}
.press-strip span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(205, 195, 178, 0.5);
}
.press-strip ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.25rem;
  margin: 0;
  padding: 0;
}
.press-strip li {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(244, 237, 225, 0.45);
}

/* ---------- story ---------- */

.story { padding: clamp(5rem, 10vw, 8rem) clamp(1.25rem, 4vw, 3.5rem); }
.story-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}
.story-copy h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); line-height: 1.15; margin: 0 0 1.25rem; }
.story-copy p { color: var(--cream-dim); font-size: 1.05rem; max-width: 46ch; margin: 0 0 1rem; }

.story-stats { display: flex; flex-direction: column; gap: 2rem; justify-content: center; }
.stat-num { display: block; font-family: var(--serif); font-size: 3.2rem; color: var(--amber); line-height: 1; }
.stat-label { font-size: 0.85rem; color: var(--cream-dim); letter-spacing: 0.04em; }

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

.menu { padding: clamp(4rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3.5rem) clamp(5rem, 10vw, 8rem); max-width: 1200px; margin: 0 auto; text-align: center; }
.menu h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); max-width: 20ch; margin: 0 auto 3.5rem; line-height: 1.2; }
.menu .eyebrow { text-align: center; }

.menu-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  text-align: left;
}
.menu-col h3 {
  font-size: 1.3rem;
  margin-bottom: 1.4rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.menu-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.menu-list li { display: flex; align-items: baseline; gap: 0.4rem; font-size: 0.98rem; }
.menu-list i { flex: 1; border-bottom: 1px dotted var(--line); margin-bottom: 5px; }
.menu-list b { color: var(--amber); font-weight: 600; }
.menu-list span { color: var(--cream); }

/* ---------- order online ---------- */

.order {
  padding: clamp(4rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3.5rem) clamp(5rem, 10vw, 8rem);
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.order .eyebrow { text-align: center; }
.order h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin-bottom: 1rem; }
.order-intro { color: var(--cream-dim); font-size: 1rem; margin: 0 0 3rem; }
.order-intro em { font-style: normal; color: rgba(205, 195, 178, 0.7); font-size: 0.88rem; }

.order-widget {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: var(--charcoal-2);
}

.order-mode { display: flex; }
.mode-btn {
  flex: 1;
  padding: 1.1rem 1rem;
  background: none;
  border: none;
  border-bottom: 2px solid var(--line);
  color: var(--cream-dim);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.mode-btn span { font-size: 0.8rem; color: rgba(205, 195, 178, 0.6); }
.mode-btn.is-active { color: var(--amber); border-bottom-color: var(--amber); }

.order-items { list-style: none; margin: 0; padding: 0.5rem 1.75rem; }
.order-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.order-item:last-child { border-bottom: none; }
.item-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.item-name { font-family: var(--serif); font-size: 1.08rem; }
.item-desc { font-size: 0.82rem; color: var(--cream-dim); margin-top: 0.15rem; }
.item-price { font-weight: 600; color: var(--cream); min-width: 3ch; text-align: right; }

.qty-stepper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.5rem;
}
.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(217, 151, 63, 0.14);
  color: var(--amber);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.qty-btn:hover { background: rgba(217, 151, 63, 0.3); }
.qty-val { min-width: 1.2ch; text-align: center; font-variant-numeric: tabular-nums; }

.order-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 1.75rem;
  background: rgba(0, 0, 0, 0.18);
}
.summary-row { display: flex; flex-direction: column; font-size: 0.85rem; color: var(--cream-dim); }
.order-subtotal { font-family: var(--serif); font-size: 1.7rem; color: var(--cream); line-height: 1.3; }
.order-submit:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.order-confirm {
  padding: 3rem 2rem;
  text-align: center;
}
.order-confirm h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.order-confirm p { color: var(--cream-dim); margin: 0; }
.order-confirm .confirm-code { color: var(--amber); font-weight: 600; }

/* ---------- details / gallery replacement ---------- */

.details { padding: clamp(4rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3.5rem) clamp(5rem, 10vw, 8rem); text-align: center; background: var(--charcoal-2); }
.details h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); max-width: 20ch; margin: 0 auto 3.5rem; }
.details .eyebrow { text-align: center; }

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.photo-card {
  position: relative;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 3 / 5;
  border: 1px solid var(--line);
  transition: transform 0.35s ease;
}
.photo-card:hover { transform: translateY(-6px); }
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.photo-card:hover img { transform: scale(1.06); }
.photo-card figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.5rem 1.5rem 1.4rem;
  background: linear-gradient(to top, rgba(15, 12, 8, 0.92) 15%, rgba(15, 12, 8, 0.55) 55%, transparent 100%);
}
.photo-card h3 { font-size: 1.15rem; margin-bottom: 0.4rem; color: var(--cream); }
.photo-card p { color: var(--cream-dim); font-size: 0.88rem; margin: 0; line-height: 1.4; }

/* ---------- quotes ---------- */

.quotes { padding: clamp(4rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3.5rem); }
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.quotes blockquote { margin: 0; }
.quotes p { font-family: var(--serif); font-style: italic; font-size: 1.2rem; line-height: 1.4; margin: 0 0 1rem; }
.quotes cite { font-style: normal; font-size: 0.82rem; color: var(--cream-dim); letter-spacing: 0.03em; }

/* ---------- cta ---------- */

.cta {
  text-align: center;
  padding: clamp(5rem, 12vw, 9rem) clamp(1.25rem, 4vw, 3.5rem);
  background:
    radial-gradient(ellipse 60% 60% at 50% 0%, rgba(217, 151, 63, 0.18), transparent 65%),
    var(--charcoal-2);
}
.cta h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.cta p { color: var(--cream-dim); margin-bottom: 2.25rem; font-size: 1.05rem; }

.reserve-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: center;
  gap: 1rem;
  max-width: 780px;
  margin: 0 auto;
  text-align: left;
}
.reserve-field { display: flex; flex-direction: column; gap: 0.4rem; flex: 1; min-width: 140px; }
.reserve-field label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cream-dim);
}
.reserve-field input,
.reserve-field select {
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.92rem;
}
.reserve-field input:focus,
.reserve-field select:focus { outline: 1px solid var(--amber); }
.reserve-submit { flex-shrink: 0; }

.reserve-note { color: rgba(205, 195, 178, 0.55); font-size: 0.78rem; margin: 1.5rem 0 0; }

.reserve-confirm h3 { font-size: 1.6rem; margin-bottom: 0.6rem; }
.reserve-confirm p { color: var(--cream-dim); margin: 0; }
.reserve-confirm .confirm-code { color: var(--amber); font-weight: 600; }

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

.site-foot {
  text-align: center;
  padding: 3rem 1.5rem 2.5rem;
  border-top: 1px solid var(--line);
}
.foot-mark { font-family: var(--serif); font-size: 1.1rem; margin-bottom: 0.75rem; }
.foot-mark span { color: var(--amber); font-style: italic; }
.foot-meta { color: var(--cream-dim); font-size: 0.85rem; margin: 0 0 1rem; }
.foot-credit { font-size: 0.78rem; color: rgba(244, 237, 225, 0.45); margin: 0; }
.foot-credit a { color: var(--amber); text-decoration: none; }

/* ---------- reveal-on-scroll ---------- */

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

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem clamp(1.25rem, 4vw, 3.5rem) 2rem;
    background: var(--charcoal);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.is-open { display: flex; }
  .nav-toggle { display: flex; }
  .story-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .menu-columns { grid-template-columns: 1fr; gap: 2.5rem; }
  .details-grid { grid-template-columns: repeat(2, 1fr); }
  .quotes-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 520px) {
  .details-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(2.6rem, 12vw, 4rem); }
}
