:root {
  --navy: #1a2a3a;
  --navy-deep: #0f1a26;
  --navy-light: #2a3d52;
  --teal: #2e5e66;
  --teal-dark: #224a52;
  --teal-darker: #1b3d43;
  --sky: #2c6fbb;
  --sky-hover: #245a99;
  --sky-light: #e8f0fe;
  --nav-link: #5ba0d6;
  --nav-link-hover: #2c6fbb;
  --cream: #e8e5de;
  --cream-light: #efece6;
  --gold: #c8952e;
  --gold-hover: #a67a22;
  --text: #2d2d2d;
  --text-light: #5a5a5a;
  --text-muted: #8a8a8a;
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --bg-dark: #0f1a26;
  --border: #e4e6e9;
  --border-light: #eef0f2;
  --shadow-sm: 0 1px 2px rgba(15, 26, 38, 0.06);
  --shadow: 0 4px 12px rgba(15, 26, 38, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 26, 38, 0.12);

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Barlow Condensed', 'Inter', sans-serif;

  --container: 1200px;
  --container-narrow: 900px;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 16px;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;

  --nav-height: 170px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.65;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video { max-width: 100%; display: block; }

a { color: var(--sky); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--sky-hover); }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: var(--space-3); }
h3 { font-size: 1.35rem; margin-bottom: var(--space-2); }
h4 { font-size: 1.1rem; margin-bottom: var(--space-1); }

p { margin-bottom: var(--space-2); }
p:last-child { margin-bottom: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-3);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding: var(--space-7) 0; }
.section--tight { padding: var(--space-5) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--navy); color: #fff; }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-2);
}

.lead {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 60ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  text-align: center;
  white-space: nowrap;
}

.btn--primary { background: var(--gold); color: var(--navy); }
.btn--primary:hover { background: var(--gold-hover); color: var(--navy); transform: translateY(-1px); box-shadow: var(--shadow); }

.btn--secondary { background: var(--sky); color: #fff; }
.btn--secondary:hover { background: var(--sky-hover); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }

.btn--ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.4); }
.btn--ghost:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: #fff; }

.btn--outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }

.btn--lg { padding: 1.1rem 2.25rem; font-size: 1.05rem; }

/* Header — single teal band + white nav below */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 1px 0 var(--border-light);
}

.header__bar {
  background: var(--teal);
  color: #fff;
}
.header__bar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-2) var(--space-3);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: var(--space-3);
  min-height: 110px;
}

.header__brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
}
.header__brand img.brand-wordmark {
  height: 72px;
  width: auto;
  display: block;
}

.header__status {
  justify-self: center;
  text-align: center;
  line-height: 1.35;
}
.header__status-title {
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.01em;
}
.header__status-title::before,
.header__status-title::after {
  content: '–';
  margin: 0 0.5rem;
}
.header__status-value {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.95);
  margin-top: 0.25rem;
}

.header__hours {
  justify-self: end;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #fff;
}

/* White nav row */
.header__nav {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
}
.header__nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav__menu {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav__menu > li { display: flex; align-items: center; }
.nav__menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--nav-link);
  padding: 1.25rem 0.5rem;
  position: relative;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav__menu > li > a:hover { color: var(--nav-link-hover); }
.nav__menu > li > a.is-active { color: var(--nav-link-hover); }
.nav__item--has-submenu > a::after {
  content: '▾';
  font-size: 0.7rem;
  margin-left: 0.2rem;
  opacity: 0.75;
}

.nav__item--has-submenu { position: relative; }
.nav__submenu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  padding: var(--space-1);
  min-width: 240px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.nav__item--has-submenu:hover .nav__submenu,
.nav__item--has-submenu:focus-within .nav__submenu {
  opacity: 1;
  visibility: visible;
}
.nav__submenu a {
  display: block;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--navy);
  font-weight: 500;
}
.nav__submenu a:hover { background: var(--bg-alt); color: var(--teal); }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  position: relative;
  transition: background 0.2s;
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.2s;
}
.nav__toggle span::before { top: -7px; }
.nav__toggle span::after { top: 7px; }
.header.is-open .nav__toggle span { background: transparent; }
.header.is-open .nav__toggle span::before { transform: translateY(7px) rotate(45deg); }
.header.is-open .nav__toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--navy);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,26,38,0.42) 0%, rgba(26,42,58,0.32) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding: var(--space-7) 0;
}
.hero__eyebrow {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.hero h1 { color: #fff; margin-bottom: var(--space-3); max-width: 18ch; }
.hero__sub {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
  max-width: 50ch;
  margin-bottom: var(--space-4);
}
.hero__ctas { display: flex; gap: var(--space-2); flex-wrap: wrap; }

/* Info strip */
.info-strip {
  background: var(--navy-deep);
  color: #fff;
  padding: var(--space-3) 0;
}
.info-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
.info-strip__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.info-strip__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}
.info-strip__value { font-size: 1.05rem; font-weight: 500; }
.info-strip__value a { color: #fff; }
.info-strip__value a:hover { color: var(--gold); }

/* Fuel price card */
.fuel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-top: var(--space-3);
}
.fuel-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
}
.fuel-card__type {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-1);
}
.fuel-card__tiers { list-style: none; }
.fuel-card__tier {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
}
.fuel-card__tier:last-child { border-bottom: none; }
.fuel-card__tier strong { font-variant-numeric: tabular-nums; color: var(--navy); }
.fuel-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: var(--space-2);
}

/* Services grid */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.service-card__icon {
  width: 48px;
  height: 48px;
  background: var(--sky-light);
  color: var(--sky);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-2);
}
.service-card h3 { margin-bottom: var(--space-1); }
.service-card p { color: var(--text-light); margin-bottom: var(--space-2); flex: 1; }
.service-card a { font-weight: 600; font-size: 0.9rem; }

/* Gallery strip */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-1);
  margin-top: var(--space-4);
}
.gallery__item {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.gallery__item:hover img { transform: scale(1.05); }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--sky) 100%);
  color: #fff;
  padding: var(--space-6) 0;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: var(--space-2); }
.cta-band p { color: rgba(255,255,255,0.9); margin-bottom: var(--space-4); font-size: 1.1rem; }

/* Footer */
.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  padding: var(--space-6) 0 var(--space-4);
  position: relative;
}

/* Magic-button: invisible 44x44 corner anchor that deep-links to the portal,
   page-targeted via ?page=. aria-hidden so screen readers ignore it. */
.portal-trigger {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 44px;
  height: 44px;
  display: block;
  cursor: default;
  z-index: 10;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: var(--space-2);
}
.footer__brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.footer h4 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.5rem; }
.footer a { color: rgba(255,255,255,0.7); font-size: 0.95rem; }
.footer a:hover { color: var(--gold); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-3);
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  font-size: 0.85rem;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Page header (for non-home pages) */
.page-header {
  background: var(--navy);
  color: #fff;
  padding: var(--space-6) 0 var(--space-5);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(44,111,187,0.3), transparent 60%);
}
.page-header__inner { position: relative; }
.page-header h1 { color: #fff; margin-bottom: var(--space-1); }
.page-header .lead { color: rgba(255,255,255,0.85); }

.breadcrumbs {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-2);
}
.breadcrumbs a { color: var(--gold); }
.breadcrumbs span { margin: 0 0.5rem; opacity: 0.5; }

/* Prose */
.prose h2 { margin-top: var(--space-5); }
.prose h3 { margin-top: var(--space-3); }
.prose ul, .prose ol { margin: var(--space-2) 0 var(--space-3) var(--space-3); }
.prose li { margin-bottom: 0.4rem; }

/* Responsive */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  .header__bar-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    min-height: auto;
  }
  .header__brand,
  .header__status,
  .header__hours {
    justify-self: center;
    text-align: center;
  }
  .header__brand img.brand-wordmark { height: 56px; }

  .nav__toggle { display: inline-flex; margin-left: auto; }
  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-2);
    gap: 0;
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
    z-index: 10;
  }
  .header.is-open .nav__menu {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
  }
  .nav__menu li { width: 100%; }
  .nav__menu > li > a { padding: 0.9rem 1rem; display: block; border-bottom: 1px solid var(--border-light); }
  .nav__menu > li > a.is-active::after { display: none; }
  .nav__submenu {
    position: static;
    transform: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    padding: 0 0 0 var(--space-2);
    min-width: 0;
  }
  .header__nav-inner { padding: 0.5rem var(--space-3); }
}

@media (max-width: 768px) {
  :root { --nav-height: 130px; }

  .hero { min-height: 520px; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; }

  .info-strip__grid { grid-template-columns: repeat(2, 1fr); }

  .fuel-grid { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }

  .footer__grid { grid-template-columns: 1fr; gap: var(--space-3); }
  .footer__bottom { flex-direction: column; text-align: center; }

  .section { padding: var(--space-5) 0; }
}


/* Lightbox */
body.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 2rem 3.5rem;
  animation: lightboxFade 0.18s ease-out;
}
.lightbox.is-open { display: flex; }
@keyframes lightboxFade { from { opacity: 0; } to { opacity: 1; } }
.lightbox__figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.lightbox__img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.lightbox__caption {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  text-align: center;
  max-width: 60ch;
}
.lightbox__btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.15s;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.18); transform: scale(1.05); }
.lightbox__btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.lightbox__btn--close { top: 1rem; right: 1rem; }
.lightbox__btn--prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__btn--next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__btn--prev:hover { transform: translateY(-50%) scale(1.05); }
.lightbox__btn--next:hover { transform: translateY(-50%) scale(1.05); }

@media (max-width: 600px) {
  .lightbox { padding: 1rem; }
  .lightbox__btn--prev { left: 0.5rem; }
  .lightbox__btn--next { right: 0.5rem; }
}

