/* =========================================================================
   Sacramento 49er Travel Plaza — public styles (mirrors the original)
   Brand: brick #9c3b28 (bars/bands), red #BD0000 (headings/links),
   gold #FFBA00 (nav), ink #2D2D2D. Accessibility-first.
   ========================================================================= */

:root {
  --brick: #9c3b28;
  --brick-dark: #7f2f1f;
  --red: #BD0000;
  --red-dark: #8f0000;
  --gold: #FFBA00;
  --gold-dark: #e0a300;
  --ink: #2D2D2D;
  --ink-soft: #4a4a4a;
  --paper: #ffffff;
  --bg: #ffffff;
  --soft: #eef0f1;
  --line: #e0ddd8;
  --focus: #1a5fff;
  --maxw: 1160px;
  --font: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 1.0625rem; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
h1, h2, h3 { line-height: 1.2; }

/* ---- a11y primitives ---- */
.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; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.skip-link { position: absolute; left: 8px; top: -48px; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 0 0 6px 6px; z-index: 1000; transition: top .15s; }
.skip-link:focus { top: 0; color: #fff; }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

/* ---- top utility bar ---- */
.topbar { background: var(--brick); color: #f3e7e3; font-size: .82rem; }
.topbar-inner { max-width: var(--maxw); margin-inline: auto; padding: .5rem clamp(1rem, 4vw, 2rem); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; }
.topbar-info { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin: 0; padding: 0; }
.topbar-info .ti-ico { color: var(--gold); margin-right: .4rem; font-size: .6rem; vertical-align: middle; }
.topbar a { color: #f3e7e3; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar-social { margin-left: auto; display: flex; gap: .5rem; }
.topbar-social a { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.15); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; }

/* ---- hero ---- */
.hero { position: relative; background: var(--ink) center/cover no-repeat; color: #fff; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.hero-inner { position: relative; z-index: 1; max-width: var(--maxw); margin-inline: auto; padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem); display: flex; align-items: center; gap: 2rem; }
.hero--home .hero-inner { min-height: 300px; justify-content: space-between; }
.hero--sub .hero-inner { min-height: 170px; gap: 1.5rem; }
.hero-logo img { max-height: 190px; width: auto; filter: drop-shadow(0 4px 14px rgba(0,0,0,.5)); }
.hero--sub .hero-logo img { max-height: 100px; }
.hero-card { background: rgba(20,20,20,.55); padding: 1.5rem 2rem; border-radius: 6px; max-width: 560px; }
.hero-card h1 { margin: 0 0 .5rem; font-size: clamp(1.6rem, 3.5vw, 2.4rem); text-transform: uppercase; }
.hero-card p { margin: 0; font-size: 1.05rem; }
.hero--sub h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); text-transform: uppercase; text-shadow: 0 2px 10px rgba(0,0,0,.6); }

/* ---- gold nav ---- */
.navbar { background: var(--gold); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.navbar-inner { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(.5rem, 2vw, 1rem); display: flex; align-items: center; }
.nav-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; margin: 0; padding: 0; width: 100%; }
.nav-list > li { position: relative; }
.nav-list a, .nav-sub-toggle {
  display: inline-flex; align-items: center; gap: .25rem; color: #1c1c1c; text-decoration: none;
  font-weight: 600; padding: .85rem 1.05rem; background: none; border: 0; font: inherit; cursor: pointer; white-space: nowrap;
}
.nav-list a:hover, .nav-sub-toggle:hover { background: rgba(0,0,0,.12); color: #1c1c1c; }
.nav-list a[aria-current="page"], .nav-sub-toggle.is-active { background: var(--brick); color: #fff; }
.caret { font-size: .7rem; }
/* dropdown */
.subnav { list-style: none; margin: 0; padding: .3rem 0; position: absolute; left: 0; top: 100%; min-width: 210px;
  background: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.22); border-radius: 0 0 6px 6px; display: none; z-index: 200; }
.subnav a { display: block; padding: .6rem 1rem; color: var(--ink); font-weight: 500; }
.subnav a:hover { background: var(--soft); }
.has-sub:hover .subnav, .has-sub:focus-within .subnav, .subnav.open { display: block; }
.nav-toggle { display: none; }

/* ---- content rows ---- */
.row { padding-block: clamp(1.75rem, 4vw, 2.75rem); }
.row-inner { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.row--multi .row-inner { display: grid; grid-template-columns: var(--cols, 1fr 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.col > *:first-child { margin-top: 0; }
.blk-heading { color: var(--red); text-align: center; font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 1.2rem; text-transform: uppercase; }
.row--multi .blk-heading { margin-bottom: 1rem; }
.blk-text { margin: 0 0 1rem; }
.blk-image { margin: 0 0 1rem; }
.blk-image .media { border-radius: 8px; margin-inline: auto; }
.blk-button { text-align: center; margin: 1.2rem 0; }
.divider { border: 0; border-top: 2px solid var(--line); margin: 1.25rem 0; }

.btn { display: inline-block; background: var(--gold); color: #1c1c1c !important; text-decoration: none; font-weight: 700; padding: .7rem 1.6rem; border-radius: 4px; }
.btn:hover { background: var(--gold-dark); }

/* accent band (CELEBRATING OVER 50 YEARS) */
.row--accent { background: var(--brick); color: #fff; text-align: center; }
.row--accent .blk-heading { color: #fff; margin: 0; }
.row--accent .blk-text { color: #fff; }

/* icon list (key services) */
.icon-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.icon-list li { display: flex; gap: .7rem; align-items: baseline; font-weight: 600; letter-spacing: .01em; }
.icon-list .ico { color: var(--red); }

/* cards / flip boxes */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.card { background: var(--soft); border-radius: 6px; padding: 1.5rem 1.25rem; text-align: center; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: .75rem; min-height: 180px; justify-content: center; overflow: hidden; }
.card--link:hover { background: #e3e6e8; }
.card-media { display: flex; align-items: center; justify-content: center; width: 100%; }
/* logos: explicit height so dimensionless SVGs still render; photos: fill width */
.card-img--logo { height: 56px; width: auto; max-width: 90%; object-fit: contain; }
.card-img--photo { width: 100%; height: 170px; object-fit: cover; border-radius: 6px; }
.card h3 { margin: 0; color: var(--red); }
.card p { margin: 0; color: var(--ink-soft); }

/* embeds (maps, forms, weather, facebook) */
.embed-frame { margin: 0 auto 1rem; }
.embed-frame iframe { width: 100%; min-height: 380px; border: 0; border-radius: 8px; }
.fb-page, .fb-page span, .fb-page iframe { margin-inline: auto; display: block !important; }
.weatherwidget-io { display: block; margin-inline: auto; }

/* =========================== diner menu =========================== */
.menu { max-width: var(--maxw); margin-inline: auto; padding: 2rem clamp(1rem,4vw,2rem) 3rem; }
.menu-title { color: var(--red); text-align: center; font-size: clamp(2rem, 5vw, 2.8rem); margin: 0 0 1.5rem; text-transform: uppercase; letter-spacing: .04em; }
.menu-category { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; }
.menu-cat-name { color: #fff; background: var(--red); display: inline-block; padding: .35rem .9rem; border-radius: 4px; margin: 0 0 1rem; font-size: 1.2rem; text-transform: uppercase; }
.menu-cat-note { font-style: italic; color: var(--ink-soft); margin: -.5rem 0 1rem; }
.menu-items { list-style: none; margin: 0; padding: 0; }
.menu-item { padding: .65rem 0; border-bottom: 1px dotted var(--line); }
.menu-item:last-child { border-bottom: 0; }
.menu-item-head { display: flex; align-items: baseline; gap: .5rem; }
.menu-item-name { font-weight: 700; text-transform: uppercase; }
.menu-item-price { margin-left: auto; font-weight: 700; color: var(--red); white-space: nowrap; }
.menu-item-desc { margin: .25rem 0 0; color: var(--ink-soft); }
.menu-item-opts { margin: .2rem 0 0; font-size: .9rem; color: var(--ink-soft); }
.menu-item.is-sold-out .menu-item-name { text-decoration: line-through; color: var(--ink-soft); }
.menu-soldout-tag { background: var(--ink); color: #fff; font-size: .7rem; padding: .1rem .4rem; border-radius: 3px; text-decoration: none; }
.menu-addons { list-style: none; margin: 1rem 0 0; padding: .75rem 1rem; background: var(--soft); border-radius: 6px; display: grid; gap: .25rem; }
.menu-addons li { font-size: .92rem; color: var(--ink-soft); }

/* ---- footer ---- */
.site-footer { background: var(--brick); color: #f3e7e3; margin-top: 2rem; }
.footer-inner { max-width: var(--maxw); margin-inline: auto; padding: 1.5rem clamp(1rem,4vw,2rem); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.footer-text p { margin: .15rem 0; }
.footer-credit { font-size: .9rem; opacity: .9; }
.footer-social { display: flex; gap: .6rem; }
.footer-social a { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; text-decoration: none; }

/* ---- responsive ---- */
@media (max-width: 860px) {
  .row--multi .row-inner { grid-template-columns: 1fr; }
  .hero--home .hero-inner { flex-direction: column; text-align: center; }
  .nav-toggle { display: inline-flex; margin: .4rem auto; background: transparent; border: 2px solid #1c1c1c; border-radius: 6px; width: 46px; height: 42px; align-items: center; justify-content: center; cursor: pointer; }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; display: block; width: 22px; height: 2px; background: #1c1c1c; position: relative; }
  .nav-toggle-bars::before { position: absolute; top: -6px; } .nav-toggle-bars::after { position: absolute; top: 6px; }
  .navbar-inner { flex-direction: column; }
  .primary-nav { display: none; width: 100%; }
  body.nav-open .primary-nav { display: block; }
  .nav-list { flex-direction: column; }
  .nav-list > li { width: 100%; }
  .nav-list a, .nav-sub-toggle { width: 100%; padding: .9rem 1rem; }
  .subnav { position: static; box-shadow: none; min-width: 0; padding-left: 1rem; }
}
