:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #162747;
  background: #eaf0f8;
  --navy: #07162e;
  --line: #b9c9de;
  --heading-font: Bahnschrift, "Arial Black", "Segoe UI", system-ui, sans-serif;
  --blue-gloss: linear-gradient(180deg, #3269b4, #154788 48%, #0d3369 50%, #0a2450);
  --blue-gloss-hover: linear-gradient(180deg, #3975c7, #1c519a 48%, #174482 50%, #123768);
  --metal-edge: linear-gradient(90deg, #0f2a54, #3378c9 27%, #bdd9f3 48%, #3378c9 72%, #0f2a54);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid #347fe0; outline-offset: 4px; }

.container {
  width: min(100% - clamp(2rem, 8vw, 9rem), 76rem);
  margin-inline: auto;
}

.site-header {
  background: linear-gradient(178deg, #fff 32%, #f3f7fd 64%, #dce6f3);
  border-bottom: 3px solid #2a62a8;
  border-image: var(--metal-edge) 1;
}
.header-inner, .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.header-inner { min-height: 6rem; padding-block: .9rem; }
.brand { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 1.65rem); }
.brand img {
  width: clamp(7.1rem, 15vw, 12rem);
  height: auto;
  mix-blend-mode: multiply;
}
.brand h1, .gallery-section h2, .footer-inner h2 {
  font-family: var(--heading-font);
  font-weight: 750;
  font-style: italic;
  letter-spacing: -.035em;
}
.brand h1 {
  border-inline-start: 1px solid var(--line);
  padding-inline-start: clamp(.8rem, 2vw, 1.65rem);
  font-size: clamp(1rem, 2vw, 1.6rem);
  line-height: 1.1;
  color: #102d61;
  text-shadow: 0 1px #fff;
}
.header-contact {
  display: inline-grid;
  place-items: center;
  min-height: 2.75rem;
  padding-inline: clamp(.6rem, 1.75vw, 1.15rem);
  border-radius: 999px;
  font-weight: 650;
  text-decoration: none;
}

.photo-banner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  background: var(--navy);
}
.photo-banner img {
  width: 100%;
  height: clamp(10rem, 30vw, 32rem);
  object-fit: cover;
}
.banner-front { object-position: 50% 45%; }
.banner-team { object-position: 50% 52%; }
.banner-truck { object-position: 51% 65%; }

main {
  background: radial-gradient(ellipse at 50% 35%, #f9fcff, #eaf0f8 68%, #dfe8f4);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: .85rem;
  padding-block: clamp(2rem, 5vw, 4.6rem);
}
.gallery-section {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  row-gap: .85rem;
  min-width: 0;
}
.gallery-section h2 {
  align-self: end;
  padding-inline: .25rem;
  color: #102d61;
  font-size: clamp(1rem, 2vw, 1.65rem);
  line-height: 1.08;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 1px #fff;
}
.gallery-section h2::after {
  content: "";
  display: block;
  width: min(6rem, 60%);
  height: 2px;
  margin: .55rem auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #2055a1 50%, transparent);
}
.carousel-frame {
  position: relative;
  width: 84%;
  min-width: 0;
  justify-self: center;
  align-self: start;
  border: 1px solid #9fb4d1;
  border-radius: .65rem;
  background: #edf3fa;
  box-shadow: 0 8px 22px #193a681a, 0 0 0 1px #ffffffb3;
}
.carousel-controls {
  position: absolute;
  inset: 0 0 auto;
  aspect-ratio: 5 / 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(.25rem, 1vw, .75rem);
  pointer-events: none;
}
.carousel-controls[hidden] { display: none; }
.header-contact, .carousel-controls button, .contact-list a {
  color: #fff;
  background: var(--blue-gloss);
  border: 1px solid #7da7db;
  box-shadow: inset 0 1px #ffffff55, 0 3px 7px #04142e33;
}
.header-contact:hover, .carousel-controls button:hover:not(:disabled), .contact-list a:hover {
  background: var(--blue-gloss-hover);
  border-color: #b5d6ff;
}
.carousel-controls button {
  display: grid;
  place-items: center;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
}
.carousel-controls button::before {
  content: "";
  inline-size: .62rem;
  block-size: .62rem;
  border-block-start: 2px solid currentColor;
  border-inline-end: 2px solid currentColor;
  transform: translateX(-12%) rotate(45deg);
}
.carousel-controls button[data-step="-1"]::before {
  transform: translateX(12%) rotate(-135deg);
}
.carousel-controls button:disabled { opacity: .4; pointer-events: none; }
.photo-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  margin: 0;
  padding: 0;
  border-radius: inherit;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.photo-track li {
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #edf3fa;
}
.photo-track img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center;
}
.supplies img {
  object-fit: contain;
  background: #eef2f6;
}
.supplies .parts-photo { background: #fff; }
.photo-track figcaption {
  padding: .8rem clamp(.5rem, 2vw, 1rem);
  border-top: 1px solid #cfdaea;
  color: #173763;
  background: linear-gradient(#f7faff, #e2eaf5);
  font-weight: 650;
}

.site-footer {
  color: #fff;
  background: radial-gradient(ellipse at 70% 0%, #152e54, var(--navy) 75%);
  border-top: 3px solid #2a62a8;
  border-image: var(--metal-edge) 1;
}
.footer-inner { padding-block: clamp(2rem, 5vw, 4rem); flex-wrap: wrap; }
.footer-inner h2 { margin-bottom: .4rem; font-size: clamp(1.5rem, 3vw, 2.25rem); }
.footer-inner p { color: #c5d4e7; }
.contact-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin: 0;
  padding: 0;
}
.contact-list a {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.75rem;
  border-radius: 999px;
  padding: .55rem .85rem;
  font-weight: 600;
  text-decoration: none;
}
.contact-icon {
  inline-size: 1.35rem;
  block-size: 1.35rem;
  flex: none;
}
.instagram-icon {
  border-radius: .34rem;
  background: radial-gradient(circle at 27% 100%, #ffcf50, #f71c6f 52%, #8634c8 82%);
}

@media (max-width: 580px) {
  .header-inner { min-height: 4.75rem; gap: .6rem; }
  .brand { gap: .6rem; }
  .brand img { width: clamp(4.5rem, 23vw, 7.1rem); }
  .brand h1 { padding-inline-start: .6rem; }
  .header-contact { font-size: .875rem; }
  .photo-banner img { height: clamp(7rem, 38vw, 12rem); }
  .carousel-frame { width: 90%; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
