/* =========================================================
   Ember & Oak — warm, candlelit, handcrafted restaurant site
   ========================================================= */

:root {
  --charcoal:      #1a1512;
  --charcoal-2:    #211a16;
  --charcoal-3:    #2a221c;
  --cream:         #f4ead9;
  --cream-dim:     #d9c9ae;
  --gold:          #c9a15a;
  --gold-bright:   #e0b96e;
  --ember:         #a34a2f;
  --ember-dim:     #7a3722;
  --line:          rgba(201, 161, 90, 0.25);

  --serif-display: "Playfair Display", Georgia, serif;
  --serif-body:    "Cormorant Garamond", Georgia, serif;

  --max-width: 1180px;
  --section-pad: clamp(4rem, 8vw, 7rem);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--charcoal);
  color: var(--cream-dim);
  font-family: var(--serif-body);
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--serif-display);
  color: var(--cream);
  font-weight: 600;
  margin: 0 0 0.5em;
}

em { font-style: italic; color: var(--gold-bright); }

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* subtle grain texture over everything, for a hand-made, non-templated feel */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.kicker {
  font-family: var(--serif-body);
  font-style: italic;
  letter-spacing: 0.06em;
  color: var(--gold);
  font-size: 1.15rem;
  margin: 0 0 0.4em;
}
.kicker.center { text-align: center; }

.center { text-align: center; }

.section-title { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.section-sub {
  max-width: 640px;
  margin: 0.6rem auto 0;
  color: var(--cream-dim);
  font-size: 1.15rem;
}

/* ===== buttons ===== */
.btn {
  display: inline-block;
  padding: 0.85em 1.9em;
  font-family: var(--serif-body);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn-primary {
  background: var(--gold);
  color: #201a12;
  font-weight: 600;
}
.btn-primary:hover { background: var(--gold-bright); transform: translateY(-2px); }

.btn-ghost {
  border-color: var(--line);
  color: var(--cream);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); transform: translateY(-2px); }

.btn-block { width: 100%; text-align: center; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  background: linear-gradient(to bottom, rgba(20,16,13,0.85), rgba(20,16,13,0));
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
.site-header.scrolled {
  background: rgba(20, 16, 13, 0.92);
  backdrop-filter: blur(6px);
  padding: 0.7rem 0;
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--serif-display);
  font-size: 1.5rem;
  color: var(--cream);
}
.brand-mark { color: var(--gold); font-size: 0.9rem; }
.brand-name em { font-style: italic; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}
.nav-link {
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  color: var(--cream-dim);
  position: relative;
  padding-bottom: 4px;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-link:hover { color: var(--cream); }
.nav-link:hover::after { width: 100%; }

.nav-cta {
  border: 1px solid var(--gold);
  padding: 0.5em 1.2em;
  border-radius: 2px;
  color: var(--gold-bright);
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--gold); color: #201a12; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--cream);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(15,11,9,0.55) 0%, rgba(15,11,9,0.35) 40%, rgba(15,11,9,0.85) 100%);
}
.candle-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 62%, rgba(233,175,90,0.28), transparent 45%);
  animation: flicker 5s ease-in-out infinite;
  mix-blend-mode: screen;
}
@keyframes flicker {
  0%, 100% { opacity: 1; }
  20% { opacity: 0.85; }
  35% { opacity: 1; }
  50% { opacity: 0.75; }
  65% { opacity: 0.95; }
  80% { opacity: 0.8; }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--cream);
  padding: 0 1.5rem;
}
.hero-content .eyebrow {
  font-family: var(--serif-body);
  font-style: italic;
  letter-spacing: 0.12em;
  color: var(--gold-bright);
  text-transform: uppercase;
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}
.hero-content h1 {
  font-size: clamp(3.2rem, 9vw, 6.2rem);
  line-height: 1;
  margin-bottom: 0.3em;
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.hero-content .tagline {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: var(--cream-dim);
  letter-spacing: 0.02em;
  margin-bottom: 2.2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 26px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 4px;
  margin-left: -2px;
  background: var(--gold);
  border-radius: 50%;
  animation: scrollcue 2s ease infinite;
}
@keyframes scrollcue {
  0% { top: 8px; opacity: 1; }
  70% { opacity: 0; }
  100% { top: 24px; opacity: 0; }
}

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  padding: var(--section-pad) 0;
  background: var(--charcoal-2);
  position: relative;
}
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.about-media { position: relative; }
.about-media img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 2px;
}
.about-media-frame {
  position: absolute;
  top: 18px; left: 18px;
  right: -18px; bottom: -18px;
  border: 1px solid var(--gold);
  z-index: -1;
  border-radius: 2px;
}

.about-copy .lede {
  font-size: 1.35rem;
  color: var(--cream);
  font-style: italic;
}
.about-copy p { margin: 0 0 1.1em; }

.about-facts {
  list-style: none;
  margin: 2rem 0 0;
  padding: 1.6rem 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.about-facts li { display: flex; flex-direction: column; }
.fact-num {
  font-family: var(--serif-display);
  font-size: 2rem;
  color: var(--gold-bright);
}
.fact-label {
  font-size: 0.95rem;
  color: var(--cream-dim);
  max-width: 10em;
}

/* =========================================================
   MENU
   ========================================================= */
.menu {
  padding: var(--section-pad) 0;
  background: var(--charcoal);
}
.menu-columns {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.menu-category-featured {
  position: relative;
}
.menu-category-header {
  margin-bottom: 1.4rem;
}
.menu-category-header h3 {
  font-size: 1.6rem;
  text-align: center;
  letter-spacing: 0.03em;
}
.menu-category-header h3::after {
  content: "";
  display: block;
  width: 46px;
  height: 1px;
  background: var(--gold);
  margin: 0.5rem auto 0;
}
.menu-category-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 2px;
  margin-top: 1rem;
  filter: saturate(1.05);
}

.menu-list { margin: 0; }
.menu-item {
  padding: 1.05rem 0;
  border-bottom: 1px dashed var(--line);
}
.menu-item:last-child { border-bottom: none; }
.menu-item dt {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-weight: 600;
}
.dish {
  font-family: var(--serif-display);
  color: var(--cream);
  font-size: 1.12rem;
  white-space: nowrap;
}
.dots {
  flex: 1;
  border-bottom: 1px dotted rgba(217, 201, 174, 0.35);
  transform: translateY(-4px);
}
.price {
  font-family: var(--serif-body);
  color: var(--gold-bright);
  font-size: 1.1rem;
  white-space: nowrap;
}
.menu-item dd {
  margin: 0.25rem 0 0;
  font-style: italic;
  color: var(--cream-dim);
  font-size: 0.98rem;
}

.menu-note {
  text-align: center;
  margin: 3.5rem auto 0;
  max-width: 640px;
  font-size: 0.95rem;
  color: var(--cream-dim);
  opacity: 0.85;
}

/* =========================================================
   GALLERY
   ========================================================= */
.gallery {
  padding: var(--section-pad) 0;
  background: var(--charcoal-2);
}
.gallery-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.gallery-item {
  border: none;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 1/1;
  position: relative;
  background: var(--charcoal-3);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
  filter: saturate(1) brightness(0.92);
}
.gallery-item:hover img {
  transform: scale(1.08);
  filter: saturate(1.1) brightness(1);
}
.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px var(--line);
  pointer-events: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 8, 6, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 86vh;
  border: 1px solid var(--line);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 2rem;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(26, 21, 18, 0.55);
  color: var(--cream);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
  z-index: 2;
}
.lightbox-nav:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #201a12;
}
.lightbox-prev { left: clamp(0.75rem, 3vw, 2.5rem); }
.lightbox-next { right: clamp(0.75rem, 3vw, 2.5rem); }
.lightbox-prev:hover { transform: translateY(-50%) translateX(-3px); }
.lightbox-next:hover { transform: translateY(-50%) translateX(3px); }

.lightbox-counter {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--cream-dim);
  font-family: var(--serif-body);
  font-style: italic;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  margin: 0;
}

@media (max-width: 760px) {
  .lightbox-nav { width: 42px; height: 42px; font-size: 1rem; }
}

/* =========================================================
   HOURS & LOCATION
   ========================================================= */
.hours {
  padding: var(--section-pad) 0;
  background: var(--charcoal);
}
.hours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8rem 0;
}
.hours-table td {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.1rem;
}
.hours-table td:first-child { color: var(--cream); }
.hours-table td:last-child { text-align: right; color: var(--gold-bright); }

.hours-details a { color: var(--gold-bright); border-bottom: 1px solid transparent; }
.hours-details a:hover { border-color: var(--gold-bright); }
.hours-details .note {
  font-style: italic;
  color: var(--cream-dim);
  font-size: 0.95rem;
  margin-top: 1rem;
}

.hours-map {
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--line);
  filter: sepia(0.15) saturate(0.85);
}
.hours-map iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}

/* =========================================================
   RESERVATIONS
   ========================================================= */
.reservations {
  padding: var(--section-pad) 0;
  background: var(--charcoal-2);
}
.reservations-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2.5rem, 6vw, 5rem);
}
.reservations-copy p { font-size: 1.15rem; }
.reservations-signature {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold-bright);
  margin-top: 1.5rem;
}

.reservation-form {
  background: var(--charcoal-3);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: clamp(1.6rem, 4vw, 2.6rem);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.form-field { margin-bottom: 1.4rem; }
.form-field label {
  display: block;
  font-family: var(--serif-body);
  font-style: italic;
  color: var(--gold);
  margin-bottom: 0.4rem;
  font-size: 1.02rem;
}
.form-field .optional { color: var(--cream-dim); font-style: normal; font-size: 0.85rem; }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  color: var(--cream);
  font-family: var(--serif-body);
  font-size: 1.05rem;
  padding: 0.7em 0.85em;
  border-radius: 2px;
  transition: border-color 0.25s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-field textarea { resize: vertical; }

.form-field.has-error input,
.form-field.has-error select {
  border-color: var(--ember);
}
.form-error {
  display: block;
  min-height: 1.1em;
  color: #d98a6f;
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 0.3rem;
}

.form-success {
  display: none;
  margin: 1.2rem 0 0;
  padding: 0.9rem 1.1rem;
  background: rgba(201, 161, 90, 0.12);
  border: 1px solid var(--line);
  color: var(--gold-bright);
  font-style: italic;
  border-radius: 2px;
  text-align: center;
}
.form-success.visible { display: block; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: #120e0b;
  padding: 3.5rem 0 0;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
}
.footer-nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-nav a, .footer-social a { color: var(--cream-dim); font-size: 0.98rem; }
.footer-nav a:hover, .footer-social a:hover { color: var(--gold-bright); }
.footer-social { display: flex; gap: 1.4rem; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1.4rem 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--cream-dim);
  opacity: 0.75;
}
.footer-bottom p { margin: 0; }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .about-grid,
  .hours-grid,
  .reservations-grid {
    grid-template-columns: 1fr;
  }
  .about-media { max-width: 420px; margin: 0 auto; }
  .menu-columns { grid-template-columns: 1fr; gap: 3rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  body { font-size: 17px; }

  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--charcoal-2);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem 2.5rem;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    border-left: 1px solid var(--line);
  }
  .main-nav.open { transform: translateX(0); }
  .nav-toggle { display: flex; }

  .form-row { grid-template-columns: 1fr; }
  .hours-map iframe { height: 280px; }
}
