/* =============================================================
   The Butcher's Bistro — bistro-theme.css
   Heritage warm palette · Montserrat typography · Mobile-first
   ============================================================= */

/* 1. RESET + BOX-SIZING
   ============================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

ul, ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

/* 2. ROOT VARS — PALETTE
   ============================================================= */
:root {
  /* Colours */
  --bg:          #f9f5ee;   /* warm cream parchment */
  --bg-dark:     #1a1008;   /* deep dark wood */
  --bg-mid:      #2c1f10;   /* warm dark brown */
  --text:        #1a1008;   /* primary text */
  --text-light:  #5c4a32;   /* secondary text */
  --text-inv:    #f9f5ee;   /* text on dark bg */
  --gold:        #c9a84c;   /* aged gold accent */
  --gold-light:  #e8d08a;   /* lighter gold */
  --burgundy:    #6b1d2e;   /* wine red */
  --cream:       #f9f5ee;
  --cream-mid:   #ede8dc;
  --border:      #d5c9b0;

  /* Typography */
  --font-heading: 'Montserrat', -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Montserrat', -apple-system, 'Segoe UI', sans-serif;

  /* Spacing scale */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2.5rem;
  --space-xl:   4rem;
  --space-xxl:  6rem;

  /* Layout */
  --container:  1100px;
  --header-h:   72px;
  --radius:     2px;
  --radius-lg:  4px;
}

/* 3. @FONT-FACE (Montserrat from disk)
   ============================================================= */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/assets/2df1f3d9218b921f30b6caf6512fd52d51f22bea.ttf) format('truetype');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/ed8da1b10d936939781c00c64ae0a09cb8ef208a.ttf) format('truetype');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fc5ef962c19a972c029fd6e496f3c9cc5214e976.ttf) format('truetype');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/4f6a25fc759f79149138f34b88e6b3df27cba430.ttf) format('truetype');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/f5465bc5230c75819d36784f097c3d598b703a8d.ttf) format('truetype');
}
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/ce0f0a202b373d71284a97a1c803761bec32928e.ttf) format('truetype');
}

/* 4. BASE TYPOGRAPHY
   ============================================================= */
html {
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }

p { margin-bottom: var(--space-sm); }
p:last-child { margin-bottom: 0; }

a:hover { color: var(--gold); }

strong { font-weight: 600; }

ul.styled, ol.styled {
  list-style: disc;
  padding-left: 1.5rem;
}
ul.styled li, ol.styled li {
  margin-bottom: 0.4rem;
}

/* 5. LAYOUT — HEADER / CONTAINER / MAIN / FOOTER
   ============================================================= */

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--gold);
  color: var(--bg-dark);
  padding: 0.5rem 1rem;
  font-weight: 600;
  z-index: 9999;
}
.skip-link:focus { top: 0; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-dark);
  border-bottom: 2px solid var(--gold);
  height: var(--header-h);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
  position: relative;
}

/* Brand / logo */
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-inv);
  text-decoration: none;
  flex-shrink: 0;
}
.brand-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.brand-text span {
  display: block;
  font-weight: 300;
  font-size: 0.65rem;
  color: var(--text-inv);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ---- CSS-only burger menu ---- */
.burger-toggle {
  display: none; /* hidden checkbox */
}

.burger-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 10px;
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: var(--radius);
  flex-shrink: 0;
}

.burger-label span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Animate burger to X when checked */
.burger-toggle:checked + .burger-label span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger-toggle:checked + .burger-label span:nth-child(2) {
  opacity: 0;
}
.burger-toggle:checked + .burger-label span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Main nav */
.main-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-dark);
  border-top: 1px solid rgba(201,168,76,0.3);
  border-bottom: 2px solid var(--gold);
  padding: var(--space-sm) 0;
  flex-direction: column;
  gap: 0;
  z-index: 200;
}

.burger-toggle:checked ~ .main-nav {
  display: flex;
}

.main-nav a {
  display: block;
  padding: 0.75rem var(--space-md);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-inv);
  transition: color 0.2s, background 0.2s;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--gold);
  background: rgba(201,168,76,0.08);
}

/* Nav CTA button */
.nav-cta {
  display: inline-block;
  margin: 0.5rem var(--space-md);
  padding: 0.6rem 1.2rem;
  background: var(--gold);
  color: var(--bg-dark) !important;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background 0.2s;
}
.nav-cta:hover {
  background: var(--gold-light) !important;
  color: var(--bg-dark) !important;
}

/* ---- Main ---- */
main {
  min-height: 60vh;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-inv);
  padding: var(--space-xl) 0 var(--space-lg);
  border-top: 2px solid var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.footer-brand .brand-text {
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

.footer-heading {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

.footer-text {
  color: rgba(249,245,238,0.7);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0.3rem;
}

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

.footer-hours dt {
  font-weight: 600;
  color: var(--text-inv);
  font-size: 0.85rem;
}
.footer-hours dd {
  color: rgba(249,245,238,0.7);
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.footer-bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(201,168,76,0.25);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  align-items: flex-start;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(249,245,238,0.5);
  margin: 0;
}
.footer-bottom a:hover {
  color: var(--gold);
}

/* Divider ornament */
.ornament-divider {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
  color: var(--gold);
}
.ornament-divider::before,
.ornament-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
}
.ornament-divider svg {
  flex-shrink: 0;
  display: inline-block;
}

/* 6. COMPONENTS
   ============================================================= */

/* ---- Hero (text-only, dark bg) ---- */
.hero {
  background: var(--bg-dark);
  color: var(--text-inv);
  padding: var(--space-xxl) 0 var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 60px,
    rgba(201,168,76,0.02) 60px,
    rgba(201,168,76,0.02) 61px
  );
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-sm);
  display: block;
}

.hero h1 {
  color: var(--text-inv);
  margin-bottom: var(--space-md);
  font-size: clamp(2rem, 6vw, 3.5rem);
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(249,245,238,0.8);
  max-width: 640px;
  margin: 0 auto var(--space-lg);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

/* ---- Page hero (inner pages, smaller) ---- */
.page-hero {
  background: var(--bg-dark);
  color: var(--text-inv);
  padding: var(--space-xl) 0 var(--space-lg);
  text-align: center;
  border-bottom: 2px solid var(--gold);
}
.page-hero h1 {
  color: var(--text-inv);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
}
.page-hero .hero-eyebrow {
  color: var(--gold);
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--gold);
  color: var(--bg-dark);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--bg-dark);
}
.btn-outline {
  background: transparent;
  color: var(--text-inv);
  border-color: rgba(201,168,76,0.6);
}
.btn-outline:hover {
  background: rgba(201,168,76,0.12);
  border-color: var(--gold);
  color: var(--text-inv);
}
.btn-outline-dark {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}
.btn-outline-dark:hover {
  background: var(--text);
  color: var(--bg);
}

/* ---- Content sections ---- */
.section {
  padding: var(--space-xl) 0;
}
.section-alt {
  background: var(--cream-mid);
}
.section-dark {
  background: var(--bg-mid);
  color: var(--text-inv);
}
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--text-inv);
}
.section-dark p,
.section-dark li {
  color: rgba(249,245,238,0.85);
}
.section-dark .section-label {
  color: var(--gold);
}

.section-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-xs);
}

.section-title {
  margin-bottom: var(--space-md);
}

.section-lead {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

/* ---- Cards ---- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 4px 20px rgba(26,16,8,0.12);
}
.card-body {
  padding: var(--space-md);
}
.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--text);
}
.card-text {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

/* ---- Review cards ---- */
.review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.review-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--space-xs);
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.review-meta {
  flex: 1;
}
.review-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  display: block;
}
.review-date {
  font-size: 0.75rem;
  color: var(--text-light);
}

.review-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.review-body {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

.stars {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

/* TripAdvisor badge */
.ta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--cream-mid);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.4rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-md);
}
.ta-badge img {
  display: inline;
  width: 80px;
  height: auto;
}

/* ---- Menu components ---- */
.menu-section {
  margin-bottom: var(--space-lg);
}
.menu-section:last-child {
  margin-bottom: 0;
}

.menu-category {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0.4rem 0.8rem;
  border-left: 3px solid var(--gold);
  margin-bottom: var(--space-md);
  background: rgba(201,168,76,0.06);
}

.menu-category-title {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-xs);
}

.menu-note {
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: var(--space-md);
  padding: var(--space-sm);
  background: var(--cream-mid);
  border-radius: var(--radius);
  border-left: 3px solid var(--border);
}

.menu-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-sm);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--cream-mid);
}
.menu-item:last-child {
  border-bottom: none;
}

.menu-item-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  flex: 1;
}
.menu-item-desc {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 0.2rem;
  line-height: 1.5;
}
.menu-item-price {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--burgundy);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---- Opening hours table ---- */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.hours-table tr {
  border-bottom: 1px solid var(--cream-mid);
}
.hours-table tr:last-child {
  border-bottom: none;
}
.hours-table th,
.hours-table td {
  padding: 0.55rem 0.25rem;
  text-align: left;
}
.hours-table th {
  font-weight: 600;
  color: var(--text);
  width: 45%;
}
.hours-table td {
  color: var(--text-light);
}

/* ---- Contact ---- */
.contact-block {
  font-size: 0.95rem;
  line-height: 1.8;
}
.contact-block strong {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.2rem;
  margin-top: var(--space-sm);
}
.contact-block strong:first-child {
  margin-top: 0;
}

/* ---- Events list ---- */
.events-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.event-item {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--burgundy);
  border-radius: var(--radius-lg);
  padding: var(--space-sm) var(--space-md);
}
.event-item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text);
}

/* ---- Prose content (privacy policy etc) ---- */
.prose h2 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border);
  font-size: 1.1rem;
}
.prose h3 {
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
  font-size: 1rem;
  color: var(--text-light);
}
.prose h4 {
  margin-top: var(--space-sm);
  margin-bottom: var(--space-xs);
  font-size: 0.9rem;
}
.prose p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: var(--space-sm);
}
.prose ul, .prose ol {
  padding-left: 1.5rem;
  margin-bottom: var(--space-sm);
}
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 0.35rem;
}

/* ---- Reservations widget area ---- */
.reservation-intro {
  max-width: 640px;
}
.reservation-note {
  background: rgba(107,29,46,0.07);
  border: 1px solid rgba(107,29,46,0.2);
  border-left: 4px solid var(--burgundy);
  border-radius: var(--radius);
  padding: var(--space-sm) var(--space-md);
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}
.reservation-note p {
  margin: 0.3rem 0;
}
.reservation-note p:first-child { margin-top: 0; }
.reservation-note p:last-child { margin-bottom: 0; }

/* ---- Two-col layout ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

/* ---- Inline SVG ornaments ---- */
.fleur {
  display: block;
  margin: 0 auto;
  color: var(--gold);
  opacity: 0.7;
}

/* 7. UTILITIES
   ============================================================= */
.text-center { text-align: center; }
.text-gold   { color: var(--gold); }
.text-small  { font-size: 0.85rem; }
.text-muted  { color: var(--text-light); }

.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }

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

/* ======================================================
   8. DESKTOP — min-width: 768px
   ====================================================== */
@media (min-width: 768px) {

  /* Header: show nav inline, hide burger */
  .burger-label {
    display: none;
  }

  .burger-toggle:checked ~ .main-nav {
    /* reset from mobile open state */
  }

  .main-nav {
    display: flex !important;
    position: static;
    flex-direction: row;
    align-items: center;
    background: transparent;
    border: none;
    padding: 0;
    gap: 0;
  }

  .main-nav a {
    padding: 0.4rem 0.75rem;
    font-size: 0.72rem;
    border-radius: var(--radius);
  }

  .nav-cta {
    margin: 0 0 0 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.72rem;
  }

  /* Layout grids */
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .review-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.8fr 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .two-col {
    grid-template-columns: 1fr 1fr;
  }

  .menu-items {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1024px) {
  .review-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
