/* Vandegrift Diesel — shared site styles */

:root {
  --navy: #04396c;
  --blue: #15529a;
  --blue-soft: #d7e4f1;
  --amber: #f8ae3c;
  --amber-dark: #e39a24;
  --ink: #1f2933;
  --muted: #52606d;
  --line: #dde4ec;
  --bg-soft: #f3f6f9;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(4, 57, 108, 0.1);
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--navy);
}

h1,
h2,
h3 {
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0 0 1em;
  padding-left: 1.25rem;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--amber);
  color: var(--navy);
  padding: 0.5rem 1rem;
  font-weight: 700;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Top bar ---------- */

.topbar {
  background: var(--blue);
  color: var(--white);
  font-size: 0.9rem;
}

.topbar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem 1.75rem;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.topbar span,
.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.topbar a {
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.topbar a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* ---------- Header + navigation ---------- */

.site-header {
  background: var(--navy);
  position: relative;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.brand {
  flex: none;
}

.brand img {
  width: 140px;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
}

.site-nav a {
  display: block;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  padding: 0.55rem 0.85rem;
  border-radius: 6px;
}

.site-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.site-nav a[aria-current="page"] {
  color: var(--amber);
}

.nav-toggle {
  display: none;
}

/* ---------- Buttons ---------- */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary {
  background: var(--amber);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--amber-dark);
  color: var(--navy);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.75);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--blue);
  color: var(--white);
}

/* ---------- Heroes ---------- */

.hero,
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
}

.hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(5rem, 10vw, 7.5rem);
}

.page-hero {
  padding: clamp(2.25rem, 6vw, 3.5rem) 0;
}

.hero h1,
.page-hero h1 {
  color: var(--white);
  max-width: 22ch;
}

.page-hero h1 {
  margin-bottom: 0.4em;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 62ch;
}

.hero .lead,
.page-hero .lead {
  color: #e3ecf6;
  margin-bottom: 0;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
}

/* ---------- Info cards (home) ---------- */

.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: -3.5rem;
  position: relative;
}

.info-card {
  background: var(--white);
  border-top: 4px solid var(--amber);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.5rem;
}

.info-card h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.info-card h2 .icon {
  color: var(--blue);
}

.info-card p {
  margin: 0;
}

.nowrap {
  white-space: nowrap;
}

/* ---------- Sections + layout ---------- */

.section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-head {
  max-width: 62ch;
  margin-bottom: 2rem;
}

.section-head p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card > :last-child {
  margin-bottom: 0;
}

.card-link {
  font-weight: 700;
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

.service-block {
  scroll-margin-top: 1rem;
}

.service-block + .service-block {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding-top: 2rem;
}

.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.6rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.45em;
  width: 0.45rem;
  height: 0.8rem;
  border: solid var(--amber-dark);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.service-list {
  padding-left: 1.1rem;
  margin: 0;
}

.service-list li {
  margin-bottom: 0.35rem;
}

.card h2 {
  font-size: 1.35rem;
}

.card-logo {
  width: 200px;
  margin-bottom: 1.25rem;
}

.sticky {
  position: sticky;
  top: 1rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.stat {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.1;
  color: var(--amber);
}

/* ---------- Contact ---------- */

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.contact-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.contact-list .icon {
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.15rem;
  color: var(--blue);
}

.contact-list strong {
  display: block;
  color: var(--navy);
}

.big-link {
  font-size: 1.25rem;
  font-weight: 700;
}

.hours-title {
  font-size: 1.15rem;
  margin-top: 1.75rem;
}

.hours {
  width: 100%;
  border-collapse: collapse;
}

.hours th,
.hours td {
  text-align: left;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: normal;
}

.hours td {
  text-align: right;
}

.hours tr:last-child th,
.hours tr:last-child td {
  border-bottom: 0;
}

.map {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Call-to-action band ---------- */

.cta-band {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.cta-band h2 {
  color: var(--white);
  margin: 0;
}

.cta-band p {
  margin: 0.4rem 0 0;
  color: #e3ecf6;
}

.cta-band .btn-row {
  margin-top: 0;
}

/* ---------- Partners ---------- */

.partners {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  text-align: center;
}

.partners h2 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.partner-logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem 2.5rem;
}

.partner-logos img {
  max-height: 64px;
  width: auto;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: #d5e1ee;
  font-size: 0.95rem;
  padding: 2.75rem 0 1.5rem;
}

.site-footer a {
  color: var(--white);
}

.site-footer a:hover {
  color: var(--amber);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}

.site-footer h2 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.footer-brand img {
  width: 140px;
  margin-bottom: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 2rem;
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: #a9bfd6;
}

/* ---------- Mobile call/directions bar ---------- */

.mobile-actions {
  display: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .topbar {
    font-size: 0.8rem;
  }

  .topbar .container {
    gap: 0.2rem 1rem;
  }

  .topbar .hide-sm {
    display: none;
  }

  .brand img {
    width: 104px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-left: auto;
    min-height: 44px;
    padding: 0.45rem 0.85rem;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 6px;
    color: var(--white);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
  }

  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
  }

  .nav-toggle-bars {
    position: relative;
  }

  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .nav-toggle-bars::before {
    top: -6px;
  }

  .nav-toggle-bars::after {
    top: 6px;
  }

  /* Without JavaScript the menu simply stays open below the logo. */
  .header-inner {
    flex-wrap: wrap;
  }

  .site-nav {
    flex-basis: 100%;
    margin: 0;
  }

  .no-js .nav-toggle {
    display: none;
  }

  .js .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }

  .js .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.25rem 1.25rem 0.75rem;
  }

  .site-nav a {
    padding: 0.85rem 0.25rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .site-nav li:last-child a {
    border-bottom: 0;
  }

  .info-cards {
    grid-template-columns: 1fr;
    margin-top: -2.5rem;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .stat {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.85rem 1.1rem;
    text-align: left;
  }

  .stat strong {
    display: inline;
    font-size: 1.5rem;
  }

  .mobile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom));
    background: var(--navy);
    box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.2);
  }

  .mobile-actions .btn {
    padding: 0.6rem 0.75rem;
  }

  /* Leave room so the fixed call bar never covers the end of the footer. */
  .site-footer {
    padding-bottom: calc(5.75rem + env(safe-area-inset-bottom));
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .btn-row .btn {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media print {
  .topbar,
  .nav-toggle,
  .site-nav,
  .mobile-actions,
  .map {
    display: none !important;
  }

  .hero,
  .page-hero,
  .site-footer,
  .cta-band,
  .stat {
    background: none !important;
    color: var(--ink) !important;
  }

  .hero h1,
  .page-hero h1,
  .cta-band h2,
  .site-footer h2 {
    color: var(--navy) !important;
  }
}
