/* =====================================================================
   OLEA & ASH — modern-bistro template
   Single-page restaurant site. Warm rustic.
   Scoped to itself; no shared dependencies with the parent shop site.
   ===================================================================== */

/* ---------- TOKENS ---------- */
:root {
  /* Palette: cream, terracotta, charred wood, olive */
  --cream:    #f6efe2;
  --cream-2:  #ece2cc;
  --paper:    #faf6ed;
  --ink:      #1a1410;
  --ink-soft: #3b2e24;
  --muted:    #6b5b4a;
  --line:     #d8cbb1;
  --line-2:   #b8a785;
  --terra:    #b94e2a;
  --terra-d:  #8a3a1f;
  --olive:    #6e7548;
  --gold:     #c89c4a;

  --serif:  "Cormorant Garamond", "Hoefler Text", Garamond, serif;
  --sans:   "Inter Tight", -apple-system, system-ui, sans-serif;
  --mono:   "JetBrains Mono", ui-monospace, monospace;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- TYPE ---------- */
.section-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terra);
  display: inline-block;
  margin-bottom: 18px;
}
.section-eyebrow--light { color: var(--gold); }

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 32px;
}
.section-title em {
  font-style: italic;
  color: var(--terra);
  font-weight: 500;
}
.section-title--light { color: var(--cream); }
.section-title--light em { color: var(--gold); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0;
  transition: transform .25s, background .2s, color .2s, border-color .2s;
  background: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--terra);
  border-color: var(--terra);
  transform: translateY(-1px);
}
.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--cream);
}
.btn-light {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}
.btn-light:hover {
  background: var(--gold);
  border-color: var(--gold);
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(246, 239, 226, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.is-scrolled {
  border-color: var(--line);
  background: rgba(246, 239, 226, 0.96);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  max-width: 1240px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  font-weight: 600;
  color: var(--terra);
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.brand-name .amp {
  font-style: italic;
  color: var(--terra);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color .15s;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--terra); }
.nav-cta {
  padding: 10px 18px;
  border: 1px solid var(--ink);
  color: var(--ink) !important;
  transition: background .2s, color .2s !important;
}
.nav-cta:hover {
  background: var(--ink);
  color: var(--cream) !important;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: none;
  border: 0;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  margin: 0 auto;
  transition: transform .3s, opacity .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 60px;
  overflow: hidden;
  isolation: isolate;
}
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  filter: brightness(0.55) contrast(1.05) saturate(0.85);
}
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26,20,16,0.35) 0%, rgba(26,20,16,0.15) 35%, rgba(26,20,16,0.85) 100%),
    radial-gradient(circle at 20% 80%, rgba(185,78,42,0.18), transparent 60%);
}
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.hero-inner { position: relative; color: var(--cream); }

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 9vw, 124px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: var(--cream);
  margin: 0 0 32px;
  max-width: 12ch;
}
.hero-title .line {
  display: block;
  animation: rise .9s cubic-bezier(.2,.7,.2,1) both;
}
.hero-title .line:nth-child(1) { animation-delay: 0.05s; }
.hero-title .line:nth-child(2) { animation-delay: 0.18s; }
.hero-title .line:nth-child(3) { animation-delay: 0.31s; }
.hero-title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-lead {
  max-width: 480px;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(246,239,226,0.85);
  margin: 0 0 40px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 80px;
  flex-wrap: wrap;
}
.hero-actions .btn-ghost {
  border-color: rgba(246,239,226,0.7);
  color: var(--cream);
}
.hero-actions .btn-ghost:hover {
  background: var(--cream);
  color: var(--ink);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(246,239,226,0.2);
  width: fit-content;
}
.hero-meta > div { display: flex; flex-direction: column; gap: 4px; }
.hero-meta-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246,239,226,0.55);
}
.hero-meta-value {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--cream);
  font-style: italic;
}

/* ---------- MARQUEE ---------- */
.marquee {
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  padding: 22px 0;
  border-top: 1px solid var(--ink-soft);
  border-bottom: 1px solid var(--ink-soft);
}
.marquee-track {
  display: flex;
  gap: 28px;
  white-space: nowrap;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  letter-spacing: 0.01em;
  animation: marquee 38s linear infinite;
}
.marquee .dot { color: var(--terra); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- STORY ---------- */
.story { padding: 140px 0; background: var(--cream); }
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}
.story-text p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 18px;
  max-width: 52ch;
}
.story-sign {
  margin-top: 32px !important;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--terra);
}
.story-sign span { color: var(--line-2); margin-right: 8px; }

.story-photos {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  position: relative;
}
.story-photo {
  margin: 0;
  overflow: hidden;
}
.story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.story-photo:hover img { transform: scale(1.04); }
.story-photo--big {
  grid-column: 1 / 3;
  aspect-ratio: 4 / 3;
}
.story-photo--small {
  grid-column: 1 / 3;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
}
.story-photo--small img {
  width: 180px;
  height: 240px;
  object-fit: cover;
  flex-shrink: 0;
}
.story-photo--small figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--muted);
  line-height: 1.4;
}

/* ---------- MENU ---------- */
.menu {
  padding: 140px 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.menu::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(185,78,42,0.04), transparent 40%),
    radial-gradient(circle at 88% 82%, rgba(110,117,72,0.05), transparent 40%);
  pointer-events: none;
}

.menu-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 80px;
  position: relative;
}
.menu-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--muted);
  margin: 0;
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px 80px;
  position: relative;
}

.menu-section-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  color: var(--terra);
  margin: 0 0 24px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line-2);
  letter-spacing: -0.005em;
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.menu-list li { padding: 0; }

.menu-item-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.menu-item-name {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
  flex-shrink: 0;
  flex-grow: 0;
  max-width: calc(100% - 80px);
}
.menu-item-name .wine-meta {
  font-style: italic;
  color: var(--muted);
  font-weight: 400;
  font-size: 16px;
}
.menu-leader {
  flex: 1;
  border-bottom: 1px dotted var(--line-2);
  position: relative;
  top: -4px;
  min-width: 24px;
}
.menu-item-price {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 500;
  flex-shrink: 0;
}
.menu-item-desc {
  margin: 4px 0 0;
  font-size: 14px;
  font-style: italic;
  color: var(--muted);
  max-width: 44ch;
  line-height: 1.5;
}

.menu-section--wine { grid-column: 1 / 3; }
.menu-list--wine li .menu-item-row { gap: 16px; }
.menu-section--wine .menu-note {
  text-align: left;
  margin-top: 24px;
  font-size: 13px;
  font-style: italic;
}

/* ---------- GALLERY ---------- */
.gallery { padding: 0; background: var(--ink); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 220px 220px;
  gap: 0;
}
.gallery-item {
  margin: 0;
  overflow: hidden;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .4s;
  filter: grayscale(0.15) brightness(0.95);
}
.gallery-item:hover img {
  transform: scale(1.06);
  filter: grayscale(0) brightness(1);
}
.gallery-item--1 { grid-column: 1 / 3; grid-row: 1 / 3; }
.gallery-item--2 { grid-column: 3; grid-row: 1; }
.gallery-item--3 { grid-column: 4; grid-row: 1; }
.gallery-item--4 { grid-column: 3 / 5; grid-row: 2; }

/* ---------- HOURS ---------- */
.hours { padding: 140px 0; background: var(--cream); }
.hours-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 100px;
  align-items: center;
}
.hours-text p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 48ch;
  margin: 0 0 32px;
}

.hours-list {
  margin: 0 0 32px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hours-list > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
}
.hours-list dt {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.hours-list dd {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  color: var(--ink);
  margin: 0;
}

.hours-address {
  font-family: var(--serif);
  font-style: normal;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.hours-address a { color: var(--terra); text-decoration: none; }
.hours-address a:hover { text-decoration: underline; text-underline-offset: 4px; }

.hours-photo { aspect-ratio: 4 / 3; overflow: hidden; }
.hours-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.hours-photo:hover img { transform: scale(1.04); }

/* ---------- BOOK / RESERVE ---------- */
.book {
  padding: 140px 0;
  background: var(--ink);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.book::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(200,156,74,0.15), transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(185,78,42,0.12), transparent 50%);
  pointer-events: none;
}
.book-inner { position: relative; max-width: 880px; margin: 0 auto; }

.book-lead {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(246,239,226,0.78);
  max-width: 60ch;
  margin: 0 0 56px;
}

.book-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px;
  background: rgba(246,239,226,0.04);
  border: 1px solid rgba(246,239,226,0.12);
}
.book-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.book-row--name { grid-template-columns: 1fr 1fr; }
.book-grow { grid-column: span 1; }
.book-row label { display: flex; flex-direction: column; gap: 6px; }
.book-row label > span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(246,239,226,0.55);
}

.book-form input,
.book-form select,
.book-form textarea {
  font: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(246,239,226,0.25);
  padding: 10px 0;
  color: var(--cream);
  font-size: 16px;
  outline: none;
  transition: border-color .2s;
  border-radius: 0;
  -webkit-appearance: none;
}
.book-form select { appearance: none; cursor: pointer; }
.book-form textarea { resize: vertical; min-height: 60px; }
.book-form input::placeholder,
.book-form textarea::placeholder { color: rgba(246,239,226,0.35); }
.book-form input:focus,
.book-form select:focus,
.book-form textarea:focus { border-color: var(--gold); }
.book-form input[type="date"] { color-scheme: dark; }

.book-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.book-disclaimer {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: rgba(246,239,226,0.6);
  margin: 0;
  line-height: 1.5;
}
.book-disclaimer strong { color: var(--gold); font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- FOOTER ---------- */
.foot { background: var(--ink); color: rgba(246,239,226,0.7); padding: 70px 0 30px; border-top: 1px solid rgba(246,239,226,0.08); }
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}
.foot-brand .brand-name {
  color: var(--cream);
  font-size: 28px;
  display: block;
  margin-bottom: 12px;
}
.foot-brand p { max-width: 30ch; font-size: 14px; line-height: 1.6; margin: 0; }
.foot h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
  font-weight: 500;
}
.foot p { font-size: 14px; line-height: 1.7; margin: 0 0 6px; }
.foot a { color: rgba(246,239,226,0.85); text-decoration: none; transition: color .15s; }
.foot a:hover { color: var(--gold); }
.foot-social { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }

.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid rgba(246,239,226,0.08);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(246,239,226,0.4);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .nav-inner { padding: 16px 24px; }

  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.7,0,.2,1);
    z-index: 60;
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { font-size: 28px; font-family: var(--serif); }
  .nav-toggle { display: flex; z-index: 70; }

  .hero { padding-top: 100px; }
  .hero-meta { grid-template-columns: 1fr; gap: 18px; }

  .story-grid,
  .hours-grid { grid-template-columns: 1fr; gap: 56px; }

  .menu-grid { grid-template-columns: 1fr; gap: 56px; }
  .menu-section--wine { grid-column: auto; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px 200px;
  }
  .gallery-item--1 { grid-column: 1 / 3; grid-row: 1; }
  .gallery-item--2 { grid-column: 1; grid-row: 2; }
  .gallery-item--3 { grid-column: 2; grid-row: 2; }
  .gallery-item--4 { grid-column: 1 / 3; grid-row: 3; }

  .book-row { grid-template-columns: 1fr; }
  .book-row--name { grid-template-columns: 1fr; }
  .book-form { padding: 28px; }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .story, .menu, .hours, .book { padding: 90px 0; }
}

@media (max-width: 520px) {
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .menu-item-name { font-size: 18px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bottom { justify-content: flex-start; }
}

/* ---------- PRINT (menu) ---------- */
@media print {
  .nav, .hero, .marquee, .story, .gallery, .hours, .book, .foot { display: none; }
  .menu { padding: 0; }
  body { background: white; color: black; }
}
