/* =========================================================================
   Sacramento 49er Travel Plaza — public styles (mirrors the original)
   Brand: brick #7f2f1f (bars/bands), red #B00000 (headings/links),
   gold #FFBA00 (nav), ink #2D2D2D. WCAG 2.2 AAA: all text/bg pairs meet
   7:1 (4.5:1 for large text). Brick + red were darkened from the original
   #9c3b28 / #BD0000 to clear the 7:1 enhanced-contrast threshold.
   ========================================================================= */

:root {
  --brick: #7f2f1f;       /* off-white #f3e7e3 text = 7.45:1 (AAA); white = 8.99:1 */
  --brick-dark: #6a271a;
  --red: #B00000;         /* on white = 7.38:1 (AAA); white text on it = 7.38:1 */
  --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; }
/* Full-height flex column so the footer sits at the bottom even on short pages. */
html { min-height: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 1.0625rem; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }
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; }
/* .55 alpha guarantees white large-text titles clear 4.5:1 (AAA large) over any hero photo. */
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.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; }
/* .72 alpha keeps white h1/p ≥7:1 (AAA) even over a bright hero photo. */
.hero-card { background: rgba(0,0,0,.72); 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; }

/* Consistent spacing under the page title on every page. The title is the
   single-column first row's heading. Some pages put body text in that same row
   (gap = the heading margin); title-only pages otherwise get the doubled
   section padding below. Normalise both to the heading's own margin so the gap
   under the title is identical everywhere. */
main .row:first-child:not(.row--multi) .blk-heading { margin-bottom: 2rem; }
main .row:first-child:not(.row--multi):has(.col > .blk-heading:only-child) { padding-bottom: 0; }
main .row:first-child:not(.row--multi):has(.col > .blk-heading:only-child) + .row { padding-top: 0; }
.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; }
.blk-text--center { text-align: center; }   /* "Interested?" CTA lead-in, above its button */
.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); }

/* Live fuel-prices block (Fuel page). Red prices + gold-accented title to match brand. */
.fuel-prices { max-width: 600px; margin: 1.4rem auto; text-align: center; }
.fuel-prices-title { color: var(--red); font-size: 1.5rem; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; margin: 0 0 .9rem; }
.fuel-prices-title::after { content: ""; display: block; width: 60px; height: 3px; background: var(--gold); margin: .4rem auto 0; border-radius: 2px; }
.fuel-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; }
.fuel-item { display: flex; flex-direction: column; gap: .15rem; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: .7rem .5rem; }
.fuel-name { font-weight: 700; text-transform: uppercase; font-size: .78rem; color: var(--ink-soft); letter-spacing: .03em; }
.fuel-price { font-weight: 800; font-size: 1.5rem; color: var(--red); line-height: 1.1; }
.fuel-meta { margin: .9rem 0 0; font-size: .8rem; color: var(--ink-soft); }
.fuel-note { margin: .35rem 0 0; font-size: .85rem; color: var(--ink); }
.fuel-live { color: var(--red); font-weight: 700; white-space: nowrap; }

/* Original Uber Eats button — wordmark inside a circular framed link. */
.ubereats-btn {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  width: 110px; height: 110px; padding: 1.6rem 1rem;
  border: 3px solid #262626; border-radius: 50%; background: #fff;
  transition: background-color .15s ease, box-shadow .15s ease;
}
.ubereats-btn svg { width: 100%; height: auto; display: block; }
.ubereats-btn:hover { background: #f4f4f4; box-shadow: 0 3px 10px rgba(0,0,0,.18); }

/* Airbnb booking button (Motel) — Bélo logo in the same circular frame as the Diner Uber Eats button. */
.airbnb-btn {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  width: 110px; height: 110px; padding: 1.4rem;
  border: 3px solid #262626; border-radius: 50%; background: #fff;
  transition: background-color .15s ease, box-shadow .15s ease;
}
.airbnb-btn svg { width: 100%; height: auto; display: block; }
.airbnb-btn:hover { background: #f4f4f4; box-shadow: 0 3px 10px rgba(0,0,0,.18); }

/* 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); }

/* center the Key Services column + vertically align it beside the map/weather */
.row--multi .col:has(.icon-list) {
  align-self: stretch;            /* match the taller map + weather column */
  display: flex;
  flex-direction: column;
  justify-content: center;        /* vertical-center next to the map */
  align-items: center;            /* center the heading + list block */
}

/* 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-dark); }   /* deeper red: --red on the soft card bg is only 6.45:1; --red-dark = 8.47:1 (AAA) */
.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; }   /* full opacity: dimming dropped #f3e7e3 below 7:1 on brick */
.footer-credit a { color: #fff; text-decoration: underline; }
.footer-credit a:hover { color: #fff; text-decoration-thickness: 2px; }  /* gold on brick = 5.2:1, fails AAA */
.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; }

/* ---- top bar icons + fax label ---- */
.topbar-info .ti-ico { color: var(--gold); margin-right: .45rem; }
.topbar .ti-label { opacity: 1; }   /* dimming dropped #f3e7e3 below 7:1 on brick */
.topbar-social a i, .footer-social a i { line-height: 1; }

/* ---- key services FA icons ---- */
.icon-list li i { color: var(--red); width: 1.4em; text-align: center; flex: none; }

/* ---- menu: two columns on wide screens (like the original) ---- */
@media (min-width: 980px) {
  .menu { column-count: 2; column-gap: 1.75rem; }
  .menu-title { column-span: all; }
  .menu-category { break-inside: avoid; }
}

/* ---- video sizing (e.g. Vehicle Wash) ----
   Size by height so portrait videos keep their aspect (no crop/letterbox);
   width follows the video's own ratio. Caps keep it within the viewport and
   width. object-fit:contain guards against any forced box distorting media. */
.embed-frame video, video.elementor-video {
  display: block; margin-inline: auto;
  height: min(70vh, 520px); width: auto;
  max-width: 100%;
  object-fit: contain; border-radius: 8px; background: #000;
}

/* ---- Facebook iframe ---- */
.fb-embed { width: 100%; max-width: 500px; height: 700px; display: block; margin-inline: auto; }

/* ---- clickable images / lightbox ---- */
main .blk-image img, main .card-img--photo { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 2rem; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 95vw; max-height: 90vh; width: auto; height: auto; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox-close { position: absolute; top: 1rem; right: 1.25rem; background: #fff; color: #1c1c1c; border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; z-index: 2; }
.lightbox-close:hover { background: var(--gold); }
/* lightbox prev/next arrows (gallery navigation) */
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.9); color: #1c1c1c; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; }
.lightbox-nav:hover { background: var(--gold); }
.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }
.lightbox[hidden] .lightbox-nav { display: none; }
@media (max-width: 560px) { .lightbox-nav { width: 42px; height: 42px; font-size: 1.5rem; } .lightbox-prev { left: .4rem; } .lightbox-next { right: .4rem; } }

/* ---- image carousel (Diner & Travel Store) ---- */
.carousel { position: relative; max-width: 640px; margin-inline: auto; }
.carousel-viewport { overflow: hidden; border-radius: 8px; background: #000; }
.carousel-track { display: flex; transition: transform .35s ease; }
@media (prefers-reduced-motion: reduce) { .carousel-track { transition: none; } }
.carousel-slide { flex: 0 0 100%; margin: 0; position: relative; }
.carousel-slide img { width: 100%; height: clamp(260px, 38vw, 420px); object-fit: cover; display: block; }
.carousel-cap { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; background: rgba(0,0,0,.78); color: #fff; padding: .55rem .8rem; font-size: .95rem; text-align: center; }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.55); color: #fff; border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 1.7rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.carousel-arrow:hover { background: rgba(0,0,0,.8); }
.carousel-prev { left: .5rem; }
.carousel-next { right: .5rem; }
.carousel-dots { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: .65rem; padding: 0; }
/* inactive dots need 3:1 vs white (1.4.11 non-text); #8a8a8a = 3.45:1 */
.carousel-dots button { width: 11px; height: 11px; border-radius: 50%; border: 0; background: #8a8a8a; cursor: pointer; padding: 0; }
.carousel-dots button[aria-current="true"] { background: var(--red); }

/* ---- Service Center: center the whole page (intro + repair lists + call-to-action) ---- */
.page-service-center .blk-text { text-align: center; }
.page-service-center .icon-list { text-align: left; }   /* keep list items readable, block stays centered */

/* ---- Gallery: no static caption; reveal the image name on hover/focus ---- */
.page-gallery .card { min-height: 0; padding: 0; position: relative; overflow: hidden; }
.page-gallery .card p { display: none; }
.page-gallery .card-media, .page-gallery .card-img--photo { border-radius: 6px; }
.page-gallery .card h3 {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
  background: rgba(0,0,0,.78); color: #fff; font-size: .95rem; font-weight: 600;
  padding: .5rem .7rem; text-align: center;
  opacity: 0; transform: translateY(100%); transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.page-gallery .card:hover h3,
.page-gallery .card:focus h3,
.page-gallery .card:focus-within h3 { opacity: 1; transform: translateY(0); }

/* ---- 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; }
}
