/* =========================================================
   Melton's — Design System
   Warm neutral + burgundy/wine palette, classic fine-dining feel.
   ========================================================= */

:root {
  --cream: #f7f1e6;
  --cream-dark: #efe4d0;
  --paper: #fbf7ee;
  --wood: #6b4a35;
  --wood-dark: #4a3323;
  --burgundy: #6e1423;
  --burgundy-dark: #4c0e18;
  --burgundy-light: #8a2432;
  --gold: #b08d57;
  --gold-light: #d4b483;
  --ink: #2a211c;
  --ink-soft: #55483f;
  --line: rgba(42, 33, 28, 0.14);
  --shadow: 0 10px 30px rgba(42, 21, 16, 0.14);

  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-script: 'Tangerine', 'Brush Script MT', cursive;
  --font-body: 'Lora', Georgia, serif;

  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--burgundy-dark);
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }

p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.section {
  padding: 5rem 0;
}

.section--tight { padding: 3rem 0; }

.section--alt {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section--dark {
  background: linear-gradient(180deg, var(--burgundy-dark), var(--burgundy));
  color: var(--cream);
}
.section--dark h2, .section--dark h3 { color: var(--cream); }
.section--dark .eyebrow { color: var(--gold-light); }

.center { text-align: center; }

.divider {
  width: 70px;
  height: 2px;
  background: var(--gold);
  margin: 1.2rem auto;
  border: none;
}
.divider--left { margin-left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85rem 2rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--burgundy);
  color: var(--cream);
  border-color: var(--burgundy);
}
.btn--primary:hover { background: var(--burgundy-dark); }

.btn--outline {
  background: transparent;
  color: var(--burgundy);
  border-color: var(--burgundy);
}
.btn--outline:hover { background: var(--burgundy); color: var(--cream); }

.btn--gold {
  background: var(--gold);
  color: var(--wood-dark);
  border-color: var(--gold);
}
.btn--gold:hover { background: var(--gold-light); }

.btn--on-dark {
  background: transparent;
  color: var(--cream);
  border-color: var(--gold-light);
}
.btn--on-dark:hover { background: var(--gold-light); color: var(--wood-dark); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 241, 230, 0.94);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
}

.logo {
  font-family: var(--font-script);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--burgundy);
  letter-spacing: 0.02em;
}
.logo small {
  display: block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: -2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.92rem;
}

.nav-links a {
  position: relative;
  padding-bottom: 4px;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn)[aria-current="page"]::after {
  transform: scaleX(1);
}
.nav-links a[aria-current="page"] { color: var(--burgundy); }
.nav-links a.btn[aria-current="page"] { color: var(--cream); }

.nav-book { margin-left: 0.5rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--burgundy);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-book { margin-left: 0; }
}

/* ---------- Hero / Carousel ---------- */
.hero {
  position: relative;
  height: 88vh;
  min-height: 520px;
  overflow: hidden;
  color: var(--cream);
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,10,8,0.45) 0%, rgba(20,10,8,0.35) 45%, rgba(20,10,8,0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.5rem;
}

.hero-content .logo-script {
  font-family: var(--font-script);
  font-size: clamp(3.6rem, 10vw, 6.5rem);
  color: var(--cream);
  line-height: 1;
}

.hero-content .tagline {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.85rem;
  color: var(--gold-light);
  margin: 0.8rem 0 2rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.hero-dots {
  position: absolute;
  bottom: 1.6rem; left: 0; right: 0;
  z-index: 3;
  display: flex;
  gap: 0.6rem;
  justify-content: center;
}
.hero-dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1px solid var(--cream);
  background: transparent;
  padding: 0;
  cursor: pointer;
  opacity: 0.7;
}
.hero-dots button.is-active { background: var(--gold-light); border-color: var(--gold-light); opacity: 1; }

/* ---------- Intro / History ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.intro-grid img {
  border-radius: 3px;
  box-shadow: var(--shadow);
}
@media (max-width: 860px) {
  .intro-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- People (chef / FOH) ---------- */
.people-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}
.people-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.people-card img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.people-card .people-body { padding: 1.6rem 1.8rem 1.8rem; }
.people-card .role {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 700;
}
@media (max-width: 720px) {
  .people-grid { grid-template-columns: 1fr; }
}

/* ---------- Wine teaser / cards ---------- */
.card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 900px) {
  .card-row { grid-template-columns: 1fr; }
}

.teaser-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 2.2rem 1.8rem;
  border-radius: 4px;
  text-align: center;
}
.teaser-card h3 { margin-bottom: 0.4rem; }
.teaser-card .price { color: var(--gold); font-family: var(--font-display); font-weight: 700; }

/* ---------- Tabs (Menu / Wine) ---------- */
.tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0;
}
.tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 0.9rem 1.2rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.tab-btn:hover { color: var(--burgundy); }
.tab-btn[aria-selected="true"] {
  color: var(--burgundy);
  border-color: var(--gold);
}

.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

.dish-list { display: flex; flex-direction: column; gap: 1.8rem; max-width: 820px; margin: 0 auto; }
.dish {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 1.6rem;
}
.dish:last-child { border-bottom: none; }
.dish-info h3 { margin-bottom: 0.35rem; font-size: 1.25rem; }
.dish-info p { color: var(--ink-soft); margin-bottom: 0.3rem; }
.dish-info .allergens {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  text-transform: uppercase;
  font-family: var(--font-display);
  font-weight: 700;
}
.dish-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--burgundy);
  white-space: nowrap;
}

.menu-note {
  max-width: 820px;
  margin: 2.5rem auto 0;
  padding: 1.2rem 1.5rem;
  background: var(--paper);
  border-left: 3px solid var(--gold);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.wine-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.4rem; }
.wine-item {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 1.2rem;
}
.wine-item:last-child { border-bottom: none; }
.wine-item .region { color: var(--ink-soft); font-size: 0.9rem; font-style: italic; }

.wine-download {
  text-align: center;
  margin-top: 3rem;
}

/* ---------- Events ---------- */
.events-list { display: flex; flex-direction: column; gap: 1.6rem; max-width: 900px; margin: 0 auto; }
.event-card {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 1.8rem;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.6rem 1.8rem;
}
.event-date {
  text-align: center;
  border-right: 1px solid var(--line);
  padding-right: 1.6rem;
  font-family: var(--font-display);
}
.event-date .day { font-size: 2.2rem; font-weight: 700; color: var(--burgundy); line-height: 1; }
.event-date .month { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; color: var(--gold); }
.event-date .year { font-size: 0.8rem; color: var(--ink-soft); }
.event-info h3 { margin-bottom: 0.4rem; }
.event-info p { color: var(--ink-soft); margin-bottom: 0; }

.event-price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--burgundy);
  white-space: nowrap;
}
@media (max-width: 720px) {
  .event-card { grid-template-columns: 1fr; text-align: center; }
  .event-date { border-right: none; border-bottom: 1px solid var(--line); padding: 0 0 1rem; }
}

/* ---------- About page ---------- */
.timeline { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 2.2rem; }
.timeline-item { display: grid; grid-template-columns: 110px 1fr; gap: 1.5rem; }
.timeline-item .year { font-family: var(--font-display); font-weight: 700; color: var(--gold); font-size: 1.3rem; }
@media (max-width: 600px) {
  .timeline-item { grid-template-columns: 1fr; }
}

.press-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}
.press-grid blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--burgundy-dark);
}
.press-grid cite { display: block; margin-top: 0.8rem; font-size: 0.85rem; color: var(--ink-soft); font-style: normal; }
@media (max-width: 860px) { .press-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.info-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.info-list li { padding: 0.6rem 0; border-bottom: 1px dashed var(--line); }
.info-list li:last-child { border-bottom: none; }
.info-list .label {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

.map-frame {
  width: 100%;
  height: 320px;
  border: 1px solid var(--line);
  border-radius: 4px;
  filter: sepia(12%) saturate(85%);
}

.form-field { margin-bottom: 1.3rem; }
.form-field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  border-radius: 2px;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 1rem; }

/* ---------- Booking page ---------- */
.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 1rem;
}
@media (max-width: 900px) { .policy-grid { grid-template-columns: 1fr; } }
.policy-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.8rem;
}

.booking-embed {
  max-width: 900px;
  margin: 3rem auto 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper);
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--wood-dark);
  color: var(--cream-dark);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(247,241,230,0.16);
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid .logo { color: var(--cream); }
.footer-grid h4 {
  color: var(--gold-light);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a:hover { color: var(--gold-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(247,241,230,0.6);
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative;
  height: 42vh;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--cream);
  background-size: cover;
  background-position: center;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,10,8,0.5), rgba(20,10,8,0.6));
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero .eyebrow { color: var(--gold-light); }
.page-hero h1 { color: var(--cream); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-slide { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Skip link (a11y) ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--burgundy);
  color: var(--cream);
  padding: 0.8rem 1.2rem;
  z-index: 1000;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
