/* Marathon — Bent Creek Road, Auburn AL
   A roadside look: deep navy, amber, squared corners and condensed headings.
   Deliberately not a redraw of Marathon's corporate identity, which is a
   trademark we have no licence to reproduce. Contrast pairs clear WCAG AA. */

:root {
  --navy: #0E2A47;
  --navy-dk: #081A2E;
  --navy-lt: #E8EEF5;
  --amber: #F5A524;
  --amber-dk: #8A5A05;
  --ink: #16202B;
  --muted: #5A6A7A;
  --bg: #FFFFFF;
  --surface: #F3F6FA;
  --line: #DCE3EC;
  --shell: 1180px;
  --header-h: 68px;
  --radius: 6px;
  --radius-lg: 10px;
  --font-display: "Barlow Condensed", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;
  --s1: .35rem; --s2: .6rem; --s3: 1rem; --s4: 1.5rem; --s5: 2.2rem; --s6: 3rem; --s7: clamp(3.5rem, 8vw, 6rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); line-height: 1.62; overflow-x: clip; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.04; letter-spacing: -.01em; text-transform: uppercase; margin: 0 0 var(--s2); }
p { margin: 0 0 var(--s3); }
img { max-width: 100%; display: block; }

.shell { width: min(var(--shell), calc(100% - 2.5rem)); margin-inline: auto; }
.accent { color: var(--amber); }
.muted { color: var(--muted); font-weight: 400; }
.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; }
.skip { position: absolute; left: -9999px; background: var(--navy); color: #fff; padding: var(--s2) var(--s3); z-index: 100; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.eyebrow { margin: 0 0 var(--s2); font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--amber-dk); }
.eyebrow-light { color: var(--amber); }

/* header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 3px solid var(--navy); }
.header-inner { display: flex; align-items: center; gap: var(--s3); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: var(--s2); text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark { width: 38px; height: 38px; object-fit: contain; }
.brand-text { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; text-transform: uppercase; display: grid; line-height: 1; }
.brand-text em { font-style: normal; font-family: var(--font-body); font-weight: 500; font-size: .46em; letter-spacing: .1em; color: var(--muted); margin-top: 3px; text-transform: none; }
.nav ul { display: flex; gap: var(--s4); list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-size: .88rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.nav a:hover, .nav a[aria-current="true"] { color: var(--navy); }
.nav-toggle { display: none; width: 42px; height: 38px; background: none; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; padding: 9px 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); }
.nav-toggle span + span { margin-top: 4px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .66em 1.3em; border-radius: var(--radius); border: 2px solid var(--navy);
  background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 700;
  font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(14,42,71,.3); }
.btn-ghost { background: #fff; color: var(--navy); }
.btn-ghost:hover { background: var(--navy-lt); }
.btn-lg { padding: .82em 1.75em; font-size: 1.15rem; }
.nav-cta { flex: none; background: var(--amber); border-color: var(--amber); color: #2B1B02; }
.nav-cta:hover { box-shadow: 0 12px 24px rgba(245,165,36,.4); }

/* hero */
.hero { position: relative; display: grid; align-items: center; min-height: min(620px, calc(100svh - var(--header-h))); overflow: hidden; isolation: isolate; }
.hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); animation: kb 24s ease-in-out infinite alternate; }
.hero-scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(98deg, rgba(8,26,46,.95) 0%, rgba(14,42,71,.82) 50%, rgba(14,42,71,.34) 100%); }
.hero-inner { padding-block: clamp(2.5rem, 6vh, 4rem); color: #fff; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); max-width: 16ch; margin-bottom: var(--s3); }
/* each phrase stays whole, so the headline can only break between sentences */
.hero h1 .ln { display: inline-block; }
.hero-sub { max-width: 54ch; color: #D6E3F0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.hero .btn { background: var(--amber); border-color: var(--amber); color: #2B1B02; }
.hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.62); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.13); }

.pill { display: inline-flex; align-items: center; gap: .6em; margin: 0 0 var(--s3); padding: .36em .9em; border-radius: var(--radius); font-size: .82rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.pill-live { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.3); }
/* the divider lives on the status chip, so nothing dangles if JS never runs */
.pill .status { padding-left: .8em; border-left: 1px solid rgba(255,255,255,.34); }

.status { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 25%, transparent); }
.status.open { color: #46D986; }
.status.closed { color: #FFB3A0; }
.hours-note .status.open { color: #0B6B39; }
.hours-note .status.closed { color: #A32414; }

/* facts */
.facts { background: var(--navy); color: #fff; border-bottom: 5px solid var(--amber); }
.facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: var(--s3); padding-block: var(--s4); }
.fact { padding-left: var(--s3); border-left: 3px solid rgba(245,165,36,.5); }
.fact-k { margin: 0; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.fact-v { margin: .15rem 0 0; font-weight: 700; }
.fact-v a { color: #fff; text-decoration: none; border-bottom: 1px dashed rgba(255,255,255,.55); }
.fact-v a:hover { border-bottom-color: #fff; }

/* sections */
.section { padding-block: var(--s7); }
.section.alt { background: var(--surface); }
.section-head { max-width: 62ch; margin-bottom: var(--s6); }
.section-head h2, .split-copy h2, .atm-inner h2, .visit-inner h2 { font-size: clamp(2rem, 4.6vw, 3.3rem); margin-bottom: var(--s3); }
.section-lede { color: var(--muted); margin: 0; }

.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-tight { margin-top: var(--s4); }
.card { padding: var(--s4); background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--radius); transition: transform .18s ease, box-shadow .18s ease, border-top-color .18s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(14,42,71,.14); border-top-color: var(--amber); }
.ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius); background: var(--navy-lt); color: var(--navy); }
.ico svg { width: 23px; height: 23px; }
.card h3 { font-size: 1.4rem; margin: var(--s3) 0 var(--s1); }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* split blocks */
.split-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.split-media { margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.split-media.portrait { aspect-ratio: 4 / 5; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }

.ticks { list-style: none; margin: var(--s3) 0 0; padding: 0; display: grid; gap: var(--s1); }
.ticks li { position: relative; padding-left: 1.7em; color: var(--muted); font-size: .96rem; }
.ticks li::before { content: "▸"; position: absolute; left: 0; color: var(--amber-dk); font-weight: 700; }
.ticks-light li { color: #D6E3F0; }
.ticks-light li::before { color: var(--amber); }
.fineprint { margin: var(--s4) 0 0; font-size: .82rem; color: var(--muted); }

/* frozen band */
.frozen-band { background: linear-gradient(140deg, var(--navy-dk) 0%, var(--navy) 65%, #16436E 100%); color: #E4EDF6; }
.frozen-band h2 { color: #fff; }
.frozen-band .split-media { border-color: rgba(255,255,255,.2); }

/* atm — a full-width band rather than a split, because there is no photo of
   the machine and a stand-in image would be pretending otherwise */
.atm-band { background: var(--navy); color: #E4EDF6; }
.atm-band h2 { color: #fff; }
.section-head-wide { max-width: 46ch; }
.section-lede-light { color: #B6CBDF; }
.atm-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: var(--s3); }
.atm-points li { display: grid; align-content: start; padding: var(--s4); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-left: 4px solid var(--amber); border-radius: var(--radius); }
.atm-points strong { font-family: var(--font-display); font-size: 1.35rem; text-transform: uppercase; color: #fff; }
.atm-points span { color: #B6CBDF; font-size: .93rem; margin-top: .2rem; }

/* gallery */
.gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery button { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: none; cursor: pointer; aspect-ratio: 4 / 3; transition: transform .18s ease, box-shadow .18s ease; }
.gallery button:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(14,42,71,.18); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

/* visit */
.visit-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: clamp(1.5rem, 5vw, 3.5rem); align-items: start; }
.visit-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.hours-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--amber); border-radius: var(--radius-lg); padding: var(--s4); }
.hours-card h3 { font-size: 1.4rem; margin-bottom: var(--s2); }
.hours { width: 100%; border-collapse: collapse; font-size: .94rem; }
.hours th, .hours td { padding: .5em .2em; text-align: left; font-weight: 500; }
.hours td { text-align: right; color: var(--muted); }
.hours tr + tr { border-top: 1px solid var(--line); }
.hours tr.today { background: var(--navy-lt); }
.hours tr.today th, .hours tr.today td { color: var(--navy); font-weight: 700; }
.hours-note { display: flex; align-items: center; gap: .5em; margin: var(--s3) 0 0; font-size: .9rem; }

/* footer */
.site-footer { background: var(--navy-dk); color: #B9CBDD; padding-block: var(--s5); font-size: .92rem; border-top: 5px solid var(--amber); }
.footer-inner p { margin: 0 0 .35rem; }
.footer-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; text-transform: uppercase; color: #fff; line-height: 1; }
.footer-brand em { font-style: normal; font-family: var(--font-body); font-weight: 500; font-size: .42em; letter-spacing: .1em; color: #8FA9C2; text-transform: none; }
.site-footer a { color: #fff; text-decoration: none; border-bottom: 1px dashed rgba(255,255,255,.42); }
.copy { margin-top: var(--s3); opacity: .72; }

/* lightbox */
.lightbox { width: min(94vw, 1080px); max-width: 94vw; border: none; border-radius: var(--radius-lg); padding: var(--s3); background: #fff; }
.lightbox::backdrop { background: rgba(8,26,46,.86); }
.lightbox img { display: block; width: 100%; max-height: 74vh; object-fit: contain; border-radius: var(--radius); }
.lb-caption { margin: var(--s3) 0 0; text-align: center; color: var(--muted); font-size: .9rem; }
.lb-close, .lb-prev, .lb-next { position: absolute; z-index: 2; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; width: 44px; height: 44px; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.lb-close { top: var(--s3); right: var(--s3); }
.lb-prev { left: var(--s3); top: 50%; transform: translateY(-50%); }
.lb-next { right: var(--s3); top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 45; width: 46px; height: 46px; border-radius: var(--radius); background: var(--navy); color: #fff; border: none; font-size: 1.2rem; cursor: pointer; box-shadow: 0 10px 24px rgba(0,0,0,.26); }
.to-top[hidden] { display: none; }

/* motion — calm tier: reveals and a slow hero drift, nothing that shouts */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
  .reveal.in { opacity: 1; transform: none; }
  @keyframes kb { from { transform: scale(1.05) translate3d(0,0,0); } to { transform: scale(1.12) translate3d(1.5%, -1%, 0); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-img { animation: none; transform: none; }
  .btn:hover, .card:hover, .gallery button:hover { transform: none; }
}

/* breakpoints */
@media (max-width: 62rem) { .cards, .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 48rem) {
  .nav-toggle { display: block; order: 3; }
  .nav { order: 4; flex-basis: 100%; display: none; padding-bottom: var(--s3); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: var(--s2); }
  .nav-cta { order: 2; }
  .brand-text { font-size: 1.25rem; }
  .cards, .gallery { grid-template-columns: 1fr; }
  .split-media, .split-media.portrait { aspect-ratio: 4 / 3; }
  .hero { min-height: auto; padding-block: var(--s5); }
  .lb-prev, .lb-next { top: auto; bottom: var(--s3); transform: none; }
  .lb-prev { left: var(--s3); } .lb-next { right: var(--s3); }
}

@media (max-width: 30rem) {
  /* two hero buttons of different widths stacked looks accidental — make them match */
  .hero-actions, .visit-actions { display: grid; grid-template-columns: 1fr; }
}
