/* ========================================
   Big's Place — mock site (country store + deli, Franklinton LA)
   Design system ported from D:\.apps\orion-portfolio-site\public\css\styles.css
   - 4-color CSS-custom-property theming (palette swap via theme.js)
   - --font-family swap via theme.js
   - 10 palettes (5 day + 5 night), 10 typefaces (6 serif + 4 sans)
   ======================================== */

/* -- reset -- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* -- theme variables (set by theme.js, defaults below) -- */
:root {
  --color-bg:         #FAF6F1;
  /* --color-fg is the showroom name for body text; the menu writes it. */
  --color-fg:         #3E2723;
  --color-body:       var(--color-fg);
  --color-link:       #A14E1F; /* darkened from #B8602A 2026-05-13 for WCAG AA contrast (4.11 -> ~5.6 on cream bg) */
  --color-accent:     var(--color-link);
  --color-heading:    #5D4037;
  --color-link-hover: #d18258;
  /* extra tokens the shared settings menu CSS reads */
  --color-rule:       rgba(128,128,128,0.3);
  --color-muted:      #897A75;
  --color-card:       transparent;
  --font-family: Georgia, 'Times New Roman', Times, serif;

  --content-max-width: 960px;
  --content-padding: 2rem;
  --content-padding-mobile: 1.25rem;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;

  /* --sf-* Visual-Style tokens (settings menu). Defaults == today's look. */
  --sf-radius:        8px;
  --sf-card-border:   2px solid var(--color-link);
  --sf-card-shadow:   0 2px 8px rgba(0,0,0,0.15);
  --sf-section-pad:   4rem;
  --sf-container:     960px;
  --sf-h2-weight:     600;
  --sf-h2-transform:  none;
  --sf-h2-tracking:   -0.01em;
  --sf-transition:    0.3s ease;
  --sf-hover-lift:    -2px;
}

/* -- base typography -- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-body);
  background-color: var(--color-bg);
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}
h1 { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 1rem; }
h2 { font-size: 2rem; font-weight: var(--sf-h2-weight, 600); letter-spacing: var(--sf-h2-tracking, -0.01em); text-transform: var(--sf-h2-transform, none); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; font-weight: 600; }

p { margin-bottom: 1rem; }

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--color-link-hover); }
a:focus-visible { outline: 2px solid var(--color-link); outline-offset: 2px; }

img { max-width: 100%; height: auto; display: block; }

/* -- layout -- */
.container { max-width: var(--sf-container, var(--content-max-width)); margin: 0 auto; padding: 0 var(--content-padding); }
main { max-width: var(--sf-container, var(--content-max-width)); margin: 0 auto; padding: var(--spacing-lg) var(--content-padding); }

hr, .divider {
  border: none;
  border-top: 1px solid;
  border-color: currentColor;
  opacity: 0.15;
  margin: var(--spacing-lg) 0;
}

/* -- header -- */
.site-header {
  background-color: var(--color-bg);
  border-bottom: 1px solid;
  border-color: currentColor;
  border-opacity: 0.1;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 0.3s ease;
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-heading);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.site-brand:hover { color: var(--color-link); }
.site-nav { display: flex; gap: 1.75rem; align-items: center; }
.site-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  position: relative;
}
.site-nav a.active { color: var(--color-heading); font-weight: 600; }
.site-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background-color: var(--color-link);
}
@media (max-width: 768px) { .site-nav { display: none; } }

/* -- hamburger -- */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px; height: 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
  min-width: 44px; min-height: 44px;
}
.hamburger-menu span {
  display: block;
  width: 26px; height: 4px;
  background-color: var(--color-heading);
  border-radius: 4px;
  transition: all 0.3s ease;
  margin-left: auto; margin-right: auto;
}
.hamburger-menu.active span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-nav-overlay.active { opacity: 1; pointer-events: auto; }
.mobile-nav {
  position: fixed;
  top: 0; right: 0;
  width: 80%; max-width: 320px; height: 100%;
  background-color: var(--color-bg);
  display: flex;
  flex-direction: column;
  padding: 6rem 2rem 2rem;
  box-shadow: -2px 0 12px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-nav-overlay.active .mobile-nav { transform: translateX(0); }
.mobile-nav a {
  font-size: 1.25rem;
  font-weight: 500;
  padding: 1rem 0;
  border-bottom: 1px solid;
  border-color: currentColor;
  border-opacity: 0.1;
  color: var(--color-link);
  letter-spacing: 0.02em;
}
.mobile-nav a.active { color: var(--color-heading); font-weight: 600; }
@media (max-width: 768px) {
  .site-header { padding: 0.5rem 0; }
  .hamburger-menu { display: flex; }
}

/* -- footer -- */
.site-footer {
  background-color: var(--color-bg);
  border-top: 1px solid;
  border-color: currentColor;
  border-opacity: 0.1;
  padding: var(--spacing-lg) 0 var(--spacing-md);
  margin-top: var(--spacing-xl);
}
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
}
.footer-nav a { font-size: 0.9rem; font-weight: 500; }
.footer-since {
  text-align: center;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-link);
  margin-bottom: var(--spacing-sm);
  letter-spacing: 0.02em;
}
.footer-copy {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.85; /* raised from 0.6 2026-05-13 for WCAG AA contrast (#897A75 3.82 -> ~5.0 on cream bg); also lifts footer-copy phone link from #D29C7A 2.22 to passing */
  color: var(--color-body);
}
.footer-copy a { font-weight: 500; opacity: 1; } /* opacity override 2026-05-13 so phone link doesn't inherit footer-copy 0.85 fade — preserves WCAG AA contrast on the actionable link while keeping surrounding copy muted */

/* ========================================
   SETTINGS UI — palette + typeface picker
   (verbatim styling from orion-portfolio-site)
   ======================================== */
.settings-trigger {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background-color: var(--color-bg);
  border: 2px solid var(--color-link);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  min-width: 44px; min-height: 44px;
}
.settings-trigger:hover, .settings-trigger.active {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  background-color: var(--color-link);
}
.settings-trigger:hover .settings-icon, .settings-trigger.active .settings-icon {
  color: var(--color-bg);
}
.settings-icon {
  font-size: 24px;
  line-height: 1;
  color: var(--color-link);
  transition: color 0.3s ease;
}
@media (max-width: 768px) {
  .settings-trigger { width: 44px; height: 44px; bottom: 20px; right: 20px; }
  .settings-icon { font-size: 22px; }
}

.settings-menu {
  position: fixed;
  bottom: 84px; right: 24px;
  background-color: var(--color-bg);
  border: 2px solid var(--color-link);
  border-radius: 8px;
  padding: 0.5rem;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 180px;
}
.settings-menu.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.settings-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-family: inherit;
  transition: background-color 0.2s ease;
}
.settings-menu-item:hover { background-color: rgba(128,128,128,0.1); }
.menu-icon { font-size: 1.25rem; width: 1.5rem; text-align: center; color: var(--color-link); }
.menu-label { font-size: 0.95rem; font-weight: 500; color: var(--color-body); }

.settings-panel {
  position: fixed;
  bottom: 84px; right: 24px;
  background-color: var(--color-bg);
  border: 2px solid var(--color-link);
  border-radius: 8px;
  padding: 0;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  max-width: 320px;
  max-height: 70vh;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.settings-panel.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.panel-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(128,128,128,0.2);
  flex-shrink: 0;
}
.panel-back {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--color-link);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: inherit;
  transition: background-color 0.2s ease;
}
.panel-back:hover { background-color: rgba(128,128,128,0.1); }
.panel-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-heading);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.palette-list, .typeface-list {
  padding: 0.5rem;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.palette-option, .typeface-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border: 2px solid transparent;
}
.palette-option:hover, .typeface-option:hover { background-color: rgba(128,128,128,0.05); }
.palette-option.active, .typeface-option.active {
  border-color: var(--color-link);
  background-color: rgba(128,128,128,0.08);
}

.palette-swatches { display: flex; gap: 3px; flex-shrink: 0; }
.palette-swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.15); }
.palette-name { font-size: 0.9rem; font-weight: 500; color: var(--color-body); flex-grow: 1; }
.palette-group-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 0.75rem 0.25rem;
  opacity: 0.7;
  border-bottom: 1px solid rgba(128,128,128,0.15);
  margin-bottom: 0.25rem;
}
.palette-group-label:not(:first-child) { margin-top: 0.5rem; }

.typeface-preview { font-size: 1.5rem; font-weight: 400; width: 2.5rem; text-align: center; color: var(--color-heading); flex-shrink: 0; }
.typeface-name { font-size: 0.9rem; font-weight: 500; color: var(--color-body); flex-grow: 1; }

@media (max-width: 768px) {
  .settings-menu, .settings-panel { right: 20px; bottom: 76px; max-width: calc(100vw - 40px); }
  .palette-option, .typeface-option { padding: 0.625rem 0.75rem; min-height: 44px; }
}

/* ========================================
   RESTAURANT-SPECIFIC SECTIONS
   ======================================== */

/* Hero */
.hero {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-md) 0 var(--spacing-lg);
}
.hero-name {
  font-size: 3.25rem;
  font-weight: 700;
  color: var(--color-heading);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.hero-tagline {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-body);
  font-style: italic;
  margin-bottom: var(--spacing-md);
}
.hero-since {
  display: inline-block;
  font-size: 0.95rem;
  color: var(--color-link);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
}
.hero-image {
  width: 100%;
  max-width: 880px;
  margin: var(--spacing-lg) auto;
  border-radius: var(--sf-radius, 8px);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-image-placeholder {
  width: 100%;
  max-width: 720px;
  margin: var(--spacing-lg) auto;
  aspect-ratio: 16 / 9;
  border: 2px dashed var(--color-link);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(128,128,128,0.05);
  position: relative;
}
.hero-image-placeholder::before {
  content: '[ your best dish photo here ]';
  color: var(--color-link);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-style: italic;
  opacity: 0.85;
}
@media (max-width: 768px) {
  .hero-name { font-size: 2.25rem; }
  .hero-tagline { font-size: 1.125rem; }
}

/* Quick-facts strip */
.quick-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 0;
  padding: var(--spacing-md);
  border: var(--sf-card-border, 2px solid var(--color-link));
  border-radius: var(--sf-radius, 8px);
  background-color: var(--color-card, transparent);
}
.fact { text-align: center; }
.fact-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-heading);
  font-weight: 600;
  margin-bottom: 0.25rem;
  opacity: 0.85; /* raised from 0.7 2026-05-13 for WCAG AA contrast (#8c776f 3.91 -> ~5.0 on cream bg) */
}
.fact-value {
  font-size: 1.0625rem;
  color: var(--color-body);
  font-weight: 500;
  line-height: 1.4;
}
.fact-value a {
  font-weight: 600;
  color: var(--color-link);
}

/* Tap-to-call CTA */
.cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-bg);
  background-color: var(--color-link);
  border-radius: var(--sf-radius, 8px);
  text-decoration: none;
  letter-spacing: 0.02em;
  box-shadow: var(--sf-card-shadow, 0 2px 8px rgba(0,0,0,0.15));
  transition: var(--sf-transition, all 0.3s ease);
  font-family: inherit;
  border: none;
  cursor: pointer;
}
.cta:hover {
  background-color: var(--color-link-hover);
  color: var(--color-bg);
  transform: translateY(var(--sf-hover-lift, -2px));
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.cta-row { text-align: center; margin: var(--spacing-md) 0; }

/* Buffet menu */
.menu-section { margin-bottom: var(--sf-section-pad, var(--spacing-xl)); }
.menu-section h2 {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-sm) var(--spacing-md);
  margin: var(--spacing-md) 0;
}
.menu-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid;
  border-color: currentColor;
  border-opacity: 0.1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}
.menu-item-name {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--color-body);
}
.menu-item.signature .menu-item-name {
  font-weight: 700;
  color: var(--color-link);
}
.menu-item.signature::after {
  content: '★';
  color: var(--color-link);
  font-size: 1rem;
  margin-left: 0.5rem;
}
.menu-note {
  text-align: center;
  font-style: italic;
  font-size: 1.0625rem;
  margin: var(--spacing-md) auto;
  max-width: 540px;
  line-height: 1.7;
  color: var(--color-body);
}
.price-callout {
  text-align: center;
  margin: var(--spacing-lg) 0;
  padding: var(--spacing-md);
  background-color: rgba(128,128,128,0.05);
  border-radius: var(--sf-radius, 8px);
}
.price-callout .price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-link);
  display: block;
}
.price-callout .price-note {
  font-size: 0.95rem;
  color: var(--color-body);
  opacity: 0.8;
}

/* Photo grid (real images now) */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}
.photo-card {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  background-color: rgba(128,128,128,0.05);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.photo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-stub {
  aspect-ratio: 4 / 3;
  border: 2px dashed var(--color-link);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(128,128,128,0.05);
  font-size: 0.9rem;
  color: var(--color-link);
  font-style: italic;
  opacity: 0.85;
  text-align: center;
  padding: 0.5rem;
}
@media (min-width: 768px) {
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
}

/* About-page side image */
.about-figure {
  margin: var(--spacing-md) auto;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  max-width: 600px;
}
.about-figure img { width: 100%; height: auto; display: block; }

/* Buffet-page menu thumbnail */
.menu-figure {
  margin: var(--spacing-lg) auto;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  max-width: 480px;
}
.menu-figure img { width: 100%; height: auto; display: block; }
.menu-figure-caption {
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-body);
  opacity: 0.7;
  font-style: italic;
  margin-top: 0.5rem;
}

/* About */
.about-section {
  max-width: 720px;
  margin: 0 auto;
}
.about-section p {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.about-quote {
  font-size: 1.25rem;
  line-height: 1.6;
  font-style: italic;
  color: var(--color-link);
  margin: var(--spacing-lg) 0;
  padding: var(--spacing-md) 0;
  text-align: center;
  border-top: 2px solid var(--color-link);
  border-bottom: 2px solid var(--color-link);
  font-weight: 500;
}
.about-quote-cite {
  display: block;
  font-size: 0.85rem;
  font-style: normal;
  margin-top: 0.5rem;
  opacity: 0.7;
  color: var(--color-body);
}

/* Visit / hours table */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}
@media (min-width: 768px) {
  .visit-grid { grid-template-columns: 1fr 1fr; }
}
.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--spacing-md) 0;
}
.hours-table th, .hours-table td {
  padding: 0.625rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid;
  border-color: currentColor;
  border-opacity: 0.1;
}
.hours-table th {
  color: var(--color-heading);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.hours-table td {
  color: var(--color-body);
  text-align: right;
}
.hours-table tr.closed td {
  opacity: 0.55;
  font-style: italic;
}
.map-stub {
  aspect-ratio: 4 / 3;
  border: 2px dashed var(--color-link);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(128,128,128,0.05);
  font-size: 1rem;
  color: var(--color-link);
  font-style: italic;
}

/* Section title */
.section-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-heading);
  text-align: center;
  margin-bottom: var(--spacing-md);
}
@media (min-width: 768px) { .section-title { font-size: 2.25rem; } }

/* responsive nudges */
@media (max-width: 768px) {
  :root { --content-padding: var(--content-padding-mobile); }
  body { font-size: 15px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.375rem; }
  main { padding: var(--spacing-md) var(--content-padding); }
}
@media (max-width: 480px) {
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .quick-facts { padding: var(--spacing-sm); gap: var(--spacing-sm); }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
