/* ============================================================
   THE VINE — shared stylesheet
   Palette: wine-cellar at dusk. Plum-black + parchment,
   antique gold + olive-vine green, burgundy for emphasis.
   ============================================================ */

:root {
  --ink:        #1C1418;  /* page background, deep warm plum-black */
  --ink-2:      #241A20;  /* raised panels */
  --ink-3:      #2E222A;  /* hover / borders on dark */
  --wine:       #7A1E2C;  /* burgundy */
  --wine-deep:  #561520;
  --vine:       #7E9B57;  /* olive vine green */
  --vine-deep:  #46603A;
  --gold:       #C9A24B;  /* antique gold */
  --gold-soft:  #E2C683;
  --cream:      #F3EAD9;  /* primary text on dark */
  --cream-dim:  #C5B6A1;  /* muted text */
  --line:       rgba(243, 234, 217, 0.14);

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1140px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--body);
  font-weight: 400;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.08rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.05; margin: 0; }
p { margin: 0 0 1rem; }

::selection { background: var(--wine); color: var(--cream); }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.eyebrow {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 1.6rem; height: 1px;
  background: var(--gold);
  opacity: 0.7;
}
.lede { color: var(--cream-dim); font-size: 1.12rem; max-width: 46ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--body); font-weight: 600; font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.5rem;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn--solid { background: var(--wine); color: var(--cream); }
.btn--solid:hover { background: var(--wine-deep); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line); color: var(--cream); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-soft); transform: translateY(-2px); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(28, 20, 24, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 74px;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand__mark { width: 26px; height: 26px; color: var(--vine); flex: none; }
.brand__name {
  font-family: var(--display); font-weight: 500; font-size: 1.4rem;
  letter-spacing: 0.01em; color: var(--cream);
}
.brand__name em { font-style: italic; color: var(--gold-soft); }

.nav__links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--cream-dim);
  position: relative; padding-block: 0.4rem;
  transition: color .18s ease;
}
.nav__links a:hover { color: var(--cream); }
.nav__links a[aria-current="page"] { color: var(--gold); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--gold); transition: width .22s ease;
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { width: 100%; }

.nav__cta { display: flex; align-items: center; gap: 1rem; }
.nav__phone {
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; color: var(--cream);
  white-space: nowrap;
}
.nav__phone:hover { color: var(--gold-soft); }

.nav__toggle {
  display: none; background: none; border: 1px solid var(--line);
  color: var(--cream); width: 44px; height: 40px; border-radius: 2px; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav__toggle svg { width: 20px; height: 20px; }

@media (max-width: 860px) {
  .nav__phone { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed; inset: 74px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--ink-2); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.5rem;
    transform: translateY(-120%); transition: transform .28s ease; visibility: hidden;
  }
  .nav__links.open { transform: translateY(0); visibility: visible; }
  .nav__links li { width: 100%; border-bottom: 1px solid var(--line); }
  .nav__links a { display: block; padding: 1rem 0; font-size: 0.95rem; }
}

/* ============================================================
   HERO (home)
   ============================================================ */
.hero { position: relative; overflow: hidden; }
.hero__inner {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2rem;
  align-items: center; min-height: min(82vh, 760px);
  padding-block: clamp(3rem, 7vw, 5rem);
}
.hero__kicker {
  font-size: 0.74rem; letter-spacing: 0.3em; text-transform: uppercase;
  font-weight: 600; color: var(--gold); margin-bottom: 1.4rem;
}
.hero h1 {
  font-size: clamp(3.2rem, 9vw, 6.6rem);
  line-height: 0.92; letter-spacing: -0.015em; margin-bottom: 1.6rem;
}
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero__sub { color: var(--cream-dim); font-size: 1.18rem; max-width: 40ch; margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* the climbing vine — signature element */
.vine {
  position: relative;
  justify-self: center;
  width: clamp(180px, 30vw, 300px);
  height: 100%;
  min-height: 420px;
  color: var(--vine);
}
.vine svg { width: 100%; height: 100%; overflow: visible; }
.vine .stem {
  fill: none; stroke: var(--vine); stroke-width: 4; stroke-linecap: round;
}
.vine .leaf { fill: var(--vine-deep); stroke: var(--vine); stroke-width: 1.5; }
.vine .grape { fill: var(--wine); stroke: var(--wine-deep); stroke-width: 1; }
.vine .grape--gold { fill: var(--gold); stroke: var(--gold); }

/* grow-on-load animation */
.vine .stem {
  stroke-dasharray: 2400; stroke-dashoffset: 2400;
  animation: grow 2.6s ease forwards 0.2s;
}
.vine .sprout {
  opacity: 0; transform-box: fill-box; transform-origin: center;
  animation: bloom .7s ease forwards;
}
.vine [data-d="1"]{ animation-delay: 1.0s; }
.vine [data-d="2"]{ animation-delay: 1.3s; }
.vine [data-d="3"]{ animation-delay: 1.6s; }
.vine [data-d="4"]{ animation-delay: 1.9s; }
.vine [data-d="5"]{ animation-delay: 2.2s; }
.vine [data-d="6"]{ animation-delay: 2.5s; }

@keyframes grow { to { stroke-dashoffset: 0; } }
@keyframes bloom { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }

.hero__glow {
  position: absolute; inset: auto -10% -40% auto; width: 60%; height: 70%;
  background: radial-gradient(closest-side, rgba(122, 30, 44, 0.35), transparent);
  pointer-events: none; z-index: -1;
}

@media (max-width: 760px) {
  .hero__inner { grid-template-columns: 1fr; min-height: auto; gap: 1rem; }
  .vine { display: none; }
}

/* ============================================================
   FEATURE STRIP (three values)
   ============================================================ */
.strip { border-block: 1px solid var(--line); background: var(--ink-2); }
.strip__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip__item { padding: clamp(1.8rem, 4vw, 2.6rem) var(--gutter); }
.strip__item:not(:last-child) { border-right: 1px solid var(--line); }
.strip__item h3 { font-size: 1.35rem; margin-bottom: 0.5rem; color: var(--cream); }
.strip__item p { color: var(--cream-dim); margin: 0; font-size: 0.98rem; }
.strip__num { font-family: var(--display); font-style: italic; color: var(--gold); font-size: 1.1rem; }
@media (max-width: 760px) {
  .strip__grid { grid-template-columns: 1fr; }
  .strip__item:not(:last-child) { border-right: none; border-bottom: 1px solid var(--line); }
}

/* ============================================================
   STORY / SPLIT
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split--reverse .split__media { order: -1; }
.split h2 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 1.4rem; }
.split h2 em { font-style: italic; color: var(--gold-soft); }
.split__media {
  aspect-ratio: 4 / 5; border-radius: 3px; border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(122,30,44,0.25), rgba(70,96,58,0.25)),
    var(--ink-2);
  position: relative; overflow: hidden; display: grid; place-items: center;
}
.split__media span {
  font-family: var(--display); font-style: italic; color: var(--cream-dim);
  font-size: 0.95rem; text-align: center; padding: 1rem; max-width: 24ch;
}
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media { aspect-ratio: 16/10; }
}

/* ============================================================
   FEATURED DISHES (home preview)
   ============================================================ */
.dishes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.dish {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 3px;
  padding: 1.8rem 1.6rem; transition: border-color .2s ease, transform .2s ease;
}
.dish:hover { border-color: var(--vine-deep); transform: translateY(-3px); }
.dish__top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.6rem; }
.dish__name { font-family: var(--display); font-size: 1.3rem; color: var(--cream); }
.dish__price { font-family: var(--display); font-style: italic; color: var(--gold); white-space: nowrap; }
.dish__desc { color: var(--cream-dim); font-size: 0.95rem; margin: 0; }
@media (max-width: 820px) { .dishes { grid-template-columns: 1fr; } }

/* ============================================================
   MENU PAGE
   ============================================================ */
.page-head { border-bottom: 1px solid var(--line); }
.page-head__inner { padding-block: clamp(3rem, 7vw, 5rem); max-width: 60ch; }
.page-head h1 { font-size: clamp(2.6rem, 7vw, 5rem); margin-bottom: 1.2rem; letter-spacing: -0.01em; }
.page-head h1 em { font-style: italic; color: var(--gold-soft); }

.menu-note {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.82rem; color: var(--cream-dim); letter-spacing: 0.04em;
  border: 1px solid var(--line); border-radius: 99px; padding: 0.4rem 1rem; margin-top: 0.4rem;
}
.menu-note b { color: var(--gold); font-weight: 600; }

.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); }
@media (max-width: 820px) { .menu-grid { grid-template-columns: 1fr; } }

.course { margin-bottom: 3rem; }
.course__head {
  display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.6rem;
  padding-bottom: 0.8rem; border-bottom: 1px solid var(--line);
}
.course__head h2 { font-size: 1.7rem; }
.course__head em { font-family: var(--display); font-style: italic; font-size: 0.95rem; color: var(--vine); }

.item { display: grid; grid-template-columns: 1fr auto; gap: 0.3rem 1rem; margin-bottom: 1.4rem; }
.item__name { font-family: var(--display); font-size: 1.18rem; color: var(--cream); }
.item__price { font-family: var(--display); font-style: italic; color: var(--gold); }
.item__desc { grid-column: 1 / -1; color: var(--cream-dim); font-size: 0.92rem; margin: 0; }
.item__tag {
  display: inline-block; font-family: var(--body); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--vine);
  border: 1px solid var(--vine-deep); border-radius: 3px; padding: 0.05rem 0.4rem;
  margin-left: 0.5rem; vertical-align: middle;
}

/* ============================================================
   LOCATION PAGE
   ============================================================ */
.visit-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 820px) { .visit-grid { grid-template-columns: 1fr; } }

.facts { display: grid; gap: 1.6rem; }
.fact { display: grid; grid-template-columns: 28px 1fr; gap: 1rem; align-items: start; }
.fact svg { width: 22px; height: 22px; color: var(--gold); margin-top: 3px; }
.fact h3 { font-family: var(--body); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.35rem; }
.fact p { margin: 0; color: var(--cream); }
.fact a:hover { color: var(--gold-soft); }

.hours { width: 100%; border-collapse: collapse; margin-top: 0.4rem; }
.hours td { padding: 0.45rem 0; border-bottom: 1px solid var(--line); font-size: 0.96rem; }
.hours td:first-child { color: var(--cream); }
.hours td:last-child { text-align: right; color: var(--cream-dim); }
.hours tr.today td { color: var(--gold-soft); }

.map-frame {
  border: 1px solid var(--line); border-radius: 3px; overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--ink-2);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.3) contrast(1.05); }

/* ============================================================
   CTA BANNER
   ============================================================ */
.banner { background: var(--ink-2); border-block: 1px solid var(--line); text-align: center; }
.banner h2 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.banner h2 em { font-style: italic; color: var(--gold-soft); }
.banner p { color: var(--cream-dim); margin-bottom: 2rem; }
.banner__actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-brand .brand__name { font-size: 1.6rem; }
.footer-brand p { color: var(--cream-dim); margin-top: 1rem; max-width: 32ch; font-size: 0.95rem; }
.footer-col h4 { font-family: var(--body); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-col a, .footer-col p { color: var(--cream-dim); font-size: 0.95rem; margin: 0; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  color: var(--cream-dim); font-size: 0.82rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ============================================================
   SCROLL REVEAL + MOTION PREFERENCES
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .vine .stem { stroke-dashoffset: 0; }
  .vine .sprout { opacity: 1; transform: none; }
}

/* ============================================================
   PHOTOS (added with real restaurant images)
   ============================================================ */
/* story image fills the media box */
.split__media { padding: 0; }
.split__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* dish cards with a photo on top */
.dish { padding: 0; overflow: hidden; }
.dish__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.dish__body { padding: 1.4rem 1.5rem 1.6rem; }

/* full-width two-up photo band */
.photo-band { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.photo-band figure { margin: 0; position: relative; }
.photo-band img { width: 100%; height: clamp(300px, 40vw, 560px); object-fit: cover; display: block; }
.photo-band figcaption {
  position: absolute; left: 0; bottom: 0; right: 0;
  font-family: var(--display); font-style: italic; font-size: 1rem; color: var(--cream);
  padding: 2.2rem 1.4rem 1rem;
  background: linear-gradient(to top, rgba(20,14,18,0.78), transparent);
}
@media (max-width: 700px) {
  .photo-band { grid-template-columns: 1fr; }
  .photo-band img { height: 64vw; }
}
