/* ==========================================================================
   Betty's Bar-B-Q — main stylesheet
   Palette: maroon #6B1A19 | gold #9C7326 | cream #F5F0E1 | ink #3A2A1E
   ========================================================================== */

:root {
  --maroon: #6B1A19;
  --maroon-dark: #551312;
  --gold: #9C7326;
  --gold-dark: #7d5c1e;
  --cream: #F5F0E1;
  --paper: #EFE8D5;
  --ink: #3A2A1E;
  --white: #FFFDF7;
  --header-h: 150px;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Lato", "Segoe UI", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--cream);
}

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

h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 0.75rem; }

a { color: var(--maroon); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

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

.skip-link {
  position: absolute; left: 0.5rem; top: -3rem; z-index: 300;
  background: var(--gold); color: #fff; padding: 0.5rem 1rem;
  border-radius: 0 0 6px 6px; transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

/* Subtle aged-paper texture for content sections */
.paper {
  background-color: var(--cream);
  background-image:
    radial-gradient(ellipse at 20% 10%, rgba(156, 115, 38, 0.05), transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(107, 26, 25, 0.04), transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.36 0 0 0 0 0.24 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--maroon);
  color: var(--cream);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.header-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.5rem 1.25rem 0.25rem;
}

.brand-logo { flex: 0 0 auto; display: block; }
.brand-logo img {
  width: 70px; height: 70px;
  border-radius: 50%;
  border: 2px solid rgba(245, 240, 225, 0.55);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 2px solid rgba(245, 240, 225, 0.6);
  border-radius: 6px;
  color: var(--cream);
  padding: 0.45rem 0.6rem;
  cursor: pointer;
}
.nav-toggle .bars { display: block; width: 24px; }
.nav-toggle .bars span {
  display: block; height: 3px; margin: 4px 0;
  background: var(--cream); border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav { margin-left: auto; }
.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.4rem;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a:focus,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--gold);
}

.header-tagline {
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  padding: 0.15rem 1rem 0.5rem;
}

.header-info {
  background: var(--maroon-dark);
  font-size: 0.875rem;
}
.header-info .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
}
.header-info a { color: var(--cream); }

/* Mobile header */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--maroon-dark);
    border-top: 1px solid rgba(245, 240, 225, 0.2);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 0.5rem 0; }
  .site-nav a {
    display: block;
    padding: 0.7rem 1.5rem;
    border-bottom: none;
  }
  .site-nav a:hover, .site-nav a:focus { background: rgba(156, 115, 38, 0.3); }
  .header-top { position: relative; }
  .header-tagline { font-size: 0.85rem; }
  .header-info { font-size: 0.8rem; }
}

/* ==========================================================================
   Shared section styles
   ========================================================================== */

.section { padding: 3.5rem 0; }

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--maroon);
  letter-spacing: 0.04em;
}

.accent-bar {
  background: var(--gold);
  color: #fff;
  text-align: center;
  padding: 0.85rem 1rem;
  margin: 0;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  letter-spacing: 0.08em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.btn {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  padding: 0.8rem 2rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn:hover, .btn:focus { background: var(--gold-dark); transform: translateY(-1px); }

/* Fade-in on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

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

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { line-height: 0; }
.hero img {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
}

/* ==========================================================================
   About
   ========================================================================== */

.about-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  text-align: center;
  color: var(--maroon);
  max-width: 46rem;
  margin: 1rem auto 2rem;
}

.about-copy {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
}
.about-copy p { margin: 0 0 1.25rem; }

/* ==========================================================================
   Hours & Info
   ========================================================================== */

.hours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  padding-top: 2.5rem;
}

.hours-photos { display: grid; gap: 1.25rem; }
.hours-photos img {
  width: 100%;
  border: 4px solid var(--white);
  box-shadow: 0 3px 10px rgba(58, 42, 30, 0.25);
  border-radius: 4px;
}

.hours-info h3 {
  color: var(--maroon);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
}
.info-block { margin-bottom: 1.35rem; }
.info-block h4 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.info-block p, .info-block ul { margin: 0; }
.info-block ul { padding-left: 1.3rem; }

@media (max-width: 760px) {
  .hours-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ==========================================================================
   Menu preview
   ========================================================================== */

.menu-preview {
  background-color: #362419;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.02 0.35' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.1 0 0 0 0 0.06 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--cream);
  padding: 3.5rem 0;
}

.menu-preview .section-title { color: var(--cream); }
.menu-preview-intro { text-align: center; max-width: 40rem; margin: 0 auto 2.5rem; }

.preview-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
}
.preview-row:nth-child(even) .preview-text { order: 2; }
.preview-row h3 {
  color: var(--gold);
  filter: brightness(1.5);
  font-family: var(--font-body);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.preview-row ul { margin: 0; padding-left: 1.3rem; }
.preview-row li { margin-bottom: 0.35rem; }
.preview-row p { margin: 0; }
.preview-row img {
  width: 100%;
  border: 4px solid var(--white);
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.menu-preview .cta { text-align: center; margin-top: 1rem; }

@media (max-width: 760px) {
  .preview-row { grid-template-columns: 1fr; gap: 1.25rem; }
  .preview-row:nth-child(even) .preview-text { order: 0; }
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding-top: 2.5rem;
}
.gallery-grid a {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(58, 42, 30, 0.3);
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-grid a:hover img,
.gallery-grid a:focus img { transform: scale(1.04); }

@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(20, 10, 8, 0.92);
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 82vh;
  width: auto;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}
.lightbox figcaption {
  color: var(--cream);
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.95rem;
}
.lightbox button {
  position: absolute;
  background: rgba(107, 26, 25, 0.85);
  color: var(--cream);
  border: 1px solid rgba(245, 240, 225, 0.4);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox button:hover, .lightbox button:focus { background: var(--gold); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   Contact & Find Us
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  align-items: start;
  padding-top: 2.5rem;
}
.contact-map iframe {
  width: 100%;
  height: 380px;
  border: 4px solid var(--white);
  border-radius: 4px;
  box-shadow: 0 3px 10px rgba(58, 42, 30, 0.25);
}
.contact-info h3 { color: var(--maroon); font-size: 1.4rem; }

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Menu page
   ========================================================================== */

.menu-page-intro { text-align: center; max-width: 46rem; margin: 0 auto; padding: 2.5rem 1.25rem 2rem; }
.menu-page-intro h1 { font-size: clamp(2rem, 5vw, 2.8rem); color: var(--ink); letter-spacing: 0.04em; }
.menu-page-intro p { margin: 0 0 1rem; }

.menu-tabs {
  position: sticky;
  top: var(--header-h);
  z-index: 150;
  background: var(--gold);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.menu-tabs ul {
  list-style: none;
  display: flex;
  margin: 0 auto;
  padding: 0;
  max-width: 1100px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.menu-tabs a {
  display: block;
  white-space: nowrap;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.1rem;
  border-bottom: 3px solid transparent;
}
.menu-tabs a:hover,
.menu-tabs a:focus,
.menu-tabs a.active {
  background: rgba(107, 26, 25, 0.25);
  border-bottom-color: #fff;
}

.menu-section {
  padding: 2.5rem 0 1rem;
  scroll-margin-top: calc(var(--header-h) + 60px);
}
.menu-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.35rem;
  margin-bottom: 0.75rem;
}
.menu-section-head h2 {
  margin: 0;
  font-size: 1.6rem;
  color: var(--ink);
}
.to-top-link {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  text-decoration: none;
  white-space: nowrap;
}
.to-top-link:hover, .to-top-link:focus { text-decoration: underline; }

.menu-section-note { margin: 0 0 1.5rem; font-size: 0.95rem; color: #5c4632; }

.menu-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 2rem;
  align-items: start;
}
@media (max-width: 900px) { .menu-items { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .menu-items { grid-template-columns: 1fr; } }

.menu-item {
  background: rgba(255, 253, 247, 0.55);
  border-radius: 4px;
  padding: 0.7rem 0.85rem;
  box-shadow: 0 1px 3px rgba(58, 42, 30, 0.12);
}
.menu-item-line {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-weight: 700;
}
.menu-item-line .dots {
  flex: 1;
  min-width: 1.5rem;
  border-bottom: 2px dotted rgba(58, 42, 30, 0.45);
  transform: translateY(-4px);
}
.menu-item-line .price { white-space: nowrap; }
.menu-item .star {
  width: 1em; height: 1em;
  fill: #B3211E;
  margin-right: 0.15rem;
  transform: translateY(0.1em);
}
.menu-item-desc { margin: 0.35rem 0 0; font-size: 0.92rem; color: #55402d; }
.menu-item-variants { margin: 0.4rem 0 0; padding: 0; list-style: none; }
.menu-item-variants li {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 400;
}
.menu-item-variants .dots {
  flex: 1;
  border-bottom: 1px dotted rgba(58, 42, 30, 0.45);
  transform: translateY(-4px);
}
.menu-item .tag {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  margin-top: 0.4rem;
}

.menu-disclaimer {
  background: var(--white);
  padding: 2.5rem 0;
  font-size: 0.85rem;
  color: #5c4632;
}
.menu-disclaimer h2 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--maroon);
  color: var(--cream);
  padding: 2.5rem 0 1.5rem;
  font-size: 0.95rem;
}
.site-footer a { color: var(--cream); }

.footer-grid {
  display: grid;
  grid-template-columns: auto 1.4fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.footer-logo img {
  width: 110px; height: 110px;
  border-radius: 50%;
  border: 3px solid rgba(245, 240, 225, 0.55);
}
.footer-tagline { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 0.5rem; }
.footer-social { display: flex; gap: 0.6rem; margin-top: 0.85rem; }
.footer-social a {
  display: inline-flex;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  background: var(--cream);
  border-radius: 6px;
}
.footer-social svg { width: 22px; height: 22px; fill: var(--maroon); }
.footer-social a:hover, .footer-social a:focus { background: var(--gold); }
.footer-social a:hover svg, .footer-social a:focus svg { fill: #fff; }

.footer-hours h3, .footer-links h3 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d9b871;
  margin-bottom: 0.5rem;
}
.footer-hours p { margin: 0 0 0.35rem; }
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.45rem; }
.footer-links a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
}
.footer-links a:hover, .footer-links a:focus { text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(245, 240, 225, 0.25);
  margin-top: 2rem;
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: center;
  font-size: 0.82rem;
}
.footer-bottom p { margin: 0; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Back to top floating button */
.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 250;
  background: var(--maroon);
  color: var(--cream);
  border: 1px solid rgba(245, 240, 225, 0.5);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover, .back-to-top:focus { background: var(--gold); }
