/* Next Chapter Restaurant — demo build
   Palette: off-black + terracotta ("black and tan"), warm homey, Florida Road / Durban forward */

:root {
  --bg: #14110f;
  --bg-alt: #1c1814;
  --bg-alt-2: #201b16;
  --text: #f2efe8;
  --text-muted: #b6afa2;
  --accent: #e2632f;
  --accent-soft: rgba(226, 99, 47, 0.14);
  --accent-strong: #f0834f;
  --border: rgba(242, 239, 232, 0.1);
  --border-soft: rgba(242, 239, 232, 0.06);
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-lift: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--text-muted); }

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #14110f;
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

section { position: relative; }

.eyebrow {
  font-family: 'Manrope', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-strong);
  font-weight: 700;
  margin: 0 0 0.9em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: var(--accent);
  color: #17110c;
}
.btn-primary:hover { background: var(--accent-strong); }

.btn-ghost {
  background: rgba(242, 239, 232, 0.06);
  color: var(--text);
  border-color: rgba(242, 239, 232, 0.22);
}
.btn-ghost:hover { border-color: rgba(242, 239, 232, 0.4); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-strong); }

.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-full { width: 100%; }

/* Nav */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 18px 24px 0;
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(20, 17, 15, 0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 12px 10px 24px;
  height: 68px;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 600;
}
.nav-links a { color: var(--text-muted); transition: color 0.25s var(--ease); }
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-phone { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); }
.nav-phone:hover { color: var(--text); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  max-width: 1180px;
  margin: 8px auto 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.5s var(--ease), opacity 0.4s var(--ease);
}
.nav-mobile.open { max-height: 400px; opacity: 1; }
.nav-mobile a {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-soft);
  font-weight: 600;
  color: var(--text);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile-phone { color: var(--accent-strong) !important; }

/* Hero */
.hero {
  position: relative;
  min-height: 92dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: -86px;
  padding-top: 86px;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Source photo is lower-res than the full-bleed hero needs; a contrast/
     saturation lift reads as "crisper" without pretending to add detail. */
  filter: contrast(1.1) saturate(1.12);
}

/* Fractal-noise grain breaks up the smooth gradients that make an upscaled
   photo read as soft — masks the resolution gap, doesn't fix it. */
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%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");
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20,17,15,0.55) 0%, rgba(20,17,15,0.15) 30%, rgba(20,17,15,0.85) 100%),
    linear-gradient(90deg, rgba(20,17,15,0.75) 0%, rgba(20,17,15,0.15) 55%);
}

.hero-content {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  padding: 0 24px 96px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  max-width: 14ch;
  color: var(--text);
}

.hero-sub {
  max-width: 46ch;
  font-size: 1.05rem;
  color: rgba(242,239,232,0.82);
}

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

/* Stat strip */
.stat-strip {
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-alt);
}
.stat-strip-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.stat-value .star { width: 18px; height: 18px; color: var(--accent-strong); }
.stat-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.stat-divider { width: 1px; height: 34px; background: var(--border); }

/* Story split */
.story {
  max-width: 1180px;
  margin: 0 auto;
  padding: 120px 24px;
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 72px;
  align-items: center;
}

.story-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lift);
  aspect-ratio: 4 / 5;
}
.story-media img { width: 100%; height: 100%; object-fit: cover; }

.story-copy h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); max-width: 12ch; }
.story-copy p { max-width: 52ch; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--accent-strong);
  margin-top: 4px;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* Kitchen / bento */
.kitchen {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px 120px;
}
.kitchen-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.kitchen-head h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.kitchen-head p { margin: 0; max-width: 34ch; }

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, minmax(180px, auto));
  gap: 16px;
}
.bento-cell {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-soft);
}
.bento-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.bento-cell:hover img { transform: scale(1.05); }
.bento-large { grid-column: span 2; grid-row: span 2; }
.bento-wide { grid-column: span 2; }

.bento-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 18px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  background: linear-gradient(180deg, transparent, rgba(15,12,10,0.85) 80%);
}

.kitchen-tags { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px solid rgba(226,99,47,0.25);
}

/* Reserve */
.reserve {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 120px 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.8fr;
  gap: 0;
  max-width: 1180px;
  margin: 0 auto;
}

.reserve-panel { padding-right: 64px; }
.reserve-panel h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); max-width: 12ch; }
.reserve-copy { max-width: 48ch; }

.reserve-form { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.form-row { display: flex; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.field-narrow { flex: 0 0 110px; }
.field label { font-size: 0.8rem; font-weight: 700; color: var(--text); }
.field .optional { font-weight: 400; color: var(--text-muted); text-transform: none; letter-spacing: 0; }

.field input,
.field select,
.field textarea {
  background: var(--bg-alt-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.25s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(182,175,162,0.65); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea { resize: vertical; }

.form-note { font-size: 0.85rem; min-height: 1.2em; color: var(--accent-strong); }

.reserve-alt {
  padding-left: 64px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.reserve-alt h3 { font-size: 1.4rem; font-weight: 600; }
.reserve-alt p { max-width: 34ch; }
.reserve-alt-photo {
  margin-top: 12px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  aspect-ratio: 4 / 3;
}
.reserve-alt-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Visit */
.visit {
  max-width: 1180px;
  margin: 0 auto;
  padding: 120px 24px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.visit-info h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); max-width: 14ch; }
.visit-list { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.visit-list li { display: flex; align-items: flex-start; gap: 14px; font-size: 0.95rem; color: var(--text); }
.visit-list svg { width: 20px; height: 20px; color: var(--accent-strong); flex-shrink: 0; margin-top: 1px; }

.visit-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  filter: grayscale(0.4) contrast(1.05);
}
.visit-map iframe { width: 100%; height: 100%; border: 0; }

/* Footer */
.footer {
  border-top: 1px solid var(--border-soft);
  padding: 64px 24px 28px;
}
.footer-top {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-brand p { margin-top: 10px; max-width: 30ch; }
.footer-links { display: flex; flex-direction: column; gap: 12px; font-weight: 600; font-size: 0.9rem; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }
.footer-contact { display: flex; flex-direction: column; gap: 12px; font-size: 0.9rem; color: var(--text-muted); }
.footer-contact a { font-weight: 700; color: var(--text); }

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  border-top: 1px solid var(--border-soft);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-bottom a { color: var(--accent-strong); font-weight: 700; }

/* Photo placeholders (shown only until real files land in /images) */
.photo-slot.photo-missing {
  background: linear-gradient(155deg, var(--bg-alt-2), var(--bg-alt) 60%, rgba(226,99,47,0.08));
}
.photo-missing-label {
  position: absolute;
  inset: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--text-muted);
}

/* The hero slot spans the full viewport height, so keep its label out of
   the way of the headline instead of dead-centering it over the copy. */
.hero.photo-missing .photo-missing-label {
  inset: auto;
  top: 96px;
  left: 24px;
  right: 24px;
  bottom: auto;
  justify-content: flex-start;
  text-align: left;
  border: none;
  opacity: 0.55;
}

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

/* Responsive */
@media (max-width: 1024px) {
  .story { grid-template-columns: 1fr; gap: 40px; }
  .story-media { aspect-ratio: 16/9; }
  .reserve { grid-template-columns: 1fr; }
  .reserve-panel { padding-right: 0; margin-bottom: 48px; }
  .reserve-alt { padding-left: 0; border-left: none; border-top: 1px solid var(--border); padding-top: 40px; }
  .visit { grid-template-columns: 1fr; }
  .visit-map { aspect-ratio: 16/9; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-links, .nav-actions .nav-phone { display: none; }
  .nav-actions .btn-primary { display: none; }
  .nav-toggle { display: flex; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, minmax(160px, auto)); }
  .bento-large { grid-column: span 2; grid-row: span 1; aspect-ratio: 16/10; }
  .bento-wide { grid-column: span 2; }
}

@media (max-width: 640px) {
  .nav-wrap { padding: 14px 14px 0; }
  .nav { padding: 8px 8px 8px 20px; height: 60px; }
  .hero { margin-top: -78px; padding-top: 78px; }
  .hero-content { padding: 0 18px 64px; }
  .hero-actions .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
  .stat-strip-inner { gap: 20px 28px; padding: 22px 18px; }
  .story, .kitchen, .reserve, .visit { padding-left: 18px; padding-right: 18px; }
  .story { padding-top: 72px; padding-bottom: 72px; }
  .kitchen { padding-bottom: 72px; }
  .reserve { padding-top: 72px; padding-bottom: 72px; }
  .visit { padding-top: 72px; padding-bottom: 72px; }
  .form-row { flex-direction: column; }
  .field-narrow { flex: 1; }
  .footer-top { grid-template-columns: 1fr; }
}
