/* ============================================================
   EMBER & OAK — RESTAURANT TEMPLATE STYLES
   Warm dark editorial luxury aesthetic
   ============================================================ */

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

body {
  font-family: 'Playfair Display', Georgia, serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.sans { font-family: 'Inter', sans-serif; }
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); font-weight: 400; line-height: 1.05; letter-spacing: 0.01em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 400; line-height: 1.2; }
h3 { font-size: 1.15rem; font-weight: 500; }
p  { color: var(--text-muted); line-height: 1.75; }
a  { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; width: 100%; }
.section { padding: clamp(70px, 9vw, 130px) 0; }

/* Eyebrow */
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.btn-light {
  background: var(--cream);
  color: var(--bg);
}
.btn-light:hover { background: var(--gold); }

.btn-outline-light {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(245,237,227,0.4);
}
.btn-outline-light:hover {
  border-color: var(--cream);
  background: rgba(245,237,227,0.06);
}

.btn-gold {
  background: var(--gold);
  color: #fff;
}
.btn-gold:hover { background: #b8945a; }

/* Navbar */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 74px;
  display: flex;
  align-items: center;
  padding: 0 28px;
  transition: background 0.4s, border-color 0.4s;
}

.navbar.scrolled {
  background: rgba(13, 10, 8, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

.navbar-logo {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
}

.navbar-links {
  display: flex;
  list-style: none;
  gap: 4px;
}

.navbar-links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 8px 14px;
  transition: color 0.2s;
}

.navbar-links a:hover { color: var(--cream); }

.nav-cta { padding: 10px 22px; font-size: 0.72rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--cream);
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 74px 0 0;
  background: var(--bg);
  padding: 28px;
  flex-direction: column;
  gap: 0;
  z-index: 999;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--cream); }
.mobile-menu .btn { margin-top: 24px; justify-content: center; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-top: 74px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13,10,8,0.95) 0%,
    rgba(13,10,8,0.55) 50%,
    rgba(13,10,8,0.2) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(60px, 8vw, 100px) 28px;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.hero-content h1 { max-width: 700px; margin-bottom: 20px; }

.hero-content p {
  font-size: 1.1rem;
  max-width: 480px;
  margin-bottom: 40px;
  color: rgba(245,237,227,0.7);
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Menu section */
.menu-section { background: var(--bg-warm); }

.menu-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
  overflow-x: auto;
  scrollbar-width: none;
}

.menu-tabs::-webkit-scrollbar { display: none; }

.menu-tab {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 14px 20px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
  margin-bottom: -1px;
}

.menu-tab.active {
  color: var(--gold);
  border-color: var(--gold);
}

.menu-category { display: none; }
.menu-category.active { display: block; }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  gap: 2px;
  background: var(--border-warm);
}

.menu-item {
  background: var(--bg-warm);
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  transition: background 0.2s;
}

.menu-item:hover { background: var(--surface-light); }

.menu-item-body { flex: 1; }

.menu-item-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.menu-item-name {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--cream);
}

.menu-badge {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,169,110,0.4);
  padding: 2px 8px;
  white-space: nowrap;
}

.menu-item-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.menu-price {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
}

/* Story */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.story-image img {
  width: 100%;
  height: 560px;
  object-fit: cover;
}

.story-body h2 { margin-bottom: 20px; }

.story-body p {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 36px;
}

.chef-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--border-warm);
  background: var(--surface);
  margin-top: 36px;
}

.chef-image img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}

.chef-quote {
  font-style: italic;
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.6;
}

.chef-name {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.chef-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* Experience */
.experience-section { background: var(--surface); }

.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 60px;
}

.experience-card {
  background: var(--surface);
  padding: 40px 36px;
  transition: background 0.2s;
}

.experience-card:hover { background: var(--surface-light); }

.experience-icon {
  color: var(--gold);
  margin-bottom: 20px;
}

.experience-title {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 10px;
}

.experience-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 60px;
}

.gallery-item { overflow: hidden; }
.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:first-child { grid-column: span 2; }
.gallery-item:first-child img { height: 380px; }

/* Reservation */
.reserve-section { background: var(--bg-warm); }

.reserve-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.reserve-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.form-input, .form-select {
  width: 100%;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--border-warm);
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}

.form-input::placeholder { color: var(--text-dim); }
.form-input:focus, .form-select:focus { border-color: var(--gold); }
.form-select option { background: var(--surface); }

.reserve-info h3 { margin-bottom: 24px; color: var(--cream); }

.reserve-hours {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 40px;
}

.reserve-hour-item {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
}

.reserve-hour-day { color: var(--text-dim); }
.reserve-hour-time { color: var(--cream); font-weight: 500; }
.reserve-hour-time.closed { color: var(--text-dim); }

.reserve-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reserve-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  background: #080604;
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand-name {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 12px;
}

.footer-brand-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 240px;
  margin-bottom: 20px;
}

.footer-social { display: flex; gap: 10px; }

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: all 0.2s;
}

.footer-social a:hover { border-color: var(--gold); color: var(--gold); }

.footer-col-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.footer-col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: color 0.2s;
}

.footer-col-links a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copyright {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Back to top */
.back-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--gold); border: none;
  display: flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer;
  opacity: 0; transform: translateY(12px);
  transition: all 0.3s; z-index: 900;
}

.back-top.visible { opacity: 1; transform: translateY(0); }

/* Scroll progress */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; background: var(--gold);
  z-index: 9999; width: 0%;
  transition: width 0.1s linear;
}

/* Section header */
.section-header { max-width: 580px; margin-bottom: 60px; }
.section-header h2 { margin-bottom: 12px; }
.section-header.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-header.center .eyebrow { justify-content: center; }
.section-header.center .eyebrow::before { display: none; }

/* Responsive */
@media (max-width: 960px) {
  .navbar-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .story-image img { height: 360px; }
  .reserve-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .menu-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:first-child { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
