/* ========================================
   SiteForge shared per-client design system (canonical copy)
   Originally ported from D:\.apps\orion-portfolio-site\public\css\styles.css.
   2026-06-20: unified with the showroom token scheme — palette/typeface/Visual-Style
   driven by the shared settings bundle (settings.js + settings-data.js), replacing
   the legacy 2-item theme.js picker. Tokens: --color-bg/-fg/-link/-accent/-heading
   + the --sf-* Visual-Style set (defaults below == today's look, so no visual shift
   until the owner picks a style). This file is copied verbatim to every client by
   tools/apply-site-settings.py — edit here, then propagate.
   ======================================== */

/* -- reset -- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* -- theme variables (set by the settings bundle, defaults below) --
   Token scheme unified with the showroom (2026-06-20): the shared settings menu
   (settings.js + settings-data.js) writes the showroom token names
   --color-bg / --color-fg / --color-link / --color-accent / --color-heading and,
   for Visual Style, the --sf-* tokens. This stylesheet aliases its legacy
   --color-body to --color-fg, defines the extra colours the menu CSS reads
   (--color-rule / --color-muted / --color-card / --color-accent), and consumes
   the --sf-* Visual-Style tokens with DEFAULTS EQUAL TO TODAY'S LOOK so a fresh
   load is visually identical — the tokens only change when the owner picks a
   palette / typeface / style. */
:root {
  --color-bg:         #FAF6F1;
  /* --color-fg is the showroom name for body text; the menu writes it. Legacy
     rules read --color-body, kept as an alias so nothing has to change. */
  --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); /* showroom alias; menu writes both link+accent from the palette link colour */
  --color-heading:    #5D4037;
  --color-link-hover: #d18258;
  /* Extra tokens the shared menu CSS references (defaults derived from today's look). */
  --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. Defaults below == the current Big's look, so the
     page does NOT shift until the owner picks a Visual Style in the menu. */
  --sf-radius:        8px;                       /* cards / buttons / hero image */
  --sf-card-border:   2px solid var(--color-link); /* quick-facts panel border (today's look) */
  --sf-card-shadow:   0 2px 8px rgba(0,0,0,0.15); /* card/cta shadow (today's look) */
  --sf-section-pad:   4rem;                       /* == --spacing-xl: menu-section bottom rhythm */
  --sf-container:     960px;                      /* == --content-max-width */
  --sf-h2-weight:     600;                        /* h2 inherits 600 today */
  --sf-h2-transform:  none;                       /* h2 has no transform today */
  --sf-h2-tracking:   -0.01em;                    /* current h2 letter-spacing */
  --sf-transition:    0.3s ease;                  /* current generic transition */
  --sf-hover-lift:    -2px;                       /* current .cta hover lift */
}

/* -- 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 + Visual Style picker
   Migrated 2026-06-20 to the shared showroom menu: the menu styling now lives in
   the bundle css/settings.css (one code path with the showroom). The legacy
   2-item picker CSS (orion-portfolio-site port) was removed here so its rules
   (.settings-trigger / .settings-menu / .settings-panel / .palette-list /
   .panel-back …) don't conflict with the bundle. See tools/site-template/settings/
   and tools/apply-site-settings.py.
   ======================================== */

/* ========================================
   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; }
}
