/* Pivot Solutions Midwest */

:root {
  --navy: #080b46;
  --navy-raised: #10175e;
  --navy-line: rgba(160, 190, 255, 0.18);
  --blue: #0087fc;
  --blue-text: #0062c4;
  --cyan: #00e5f9;
  --steel: #eef1f5;
  --white: #ffffff;
  --ink: #121633;
  --muted: #545b78;
  --line: #d6dbe4;
  --on-navy: #e8edff;
  --on-navy-muted: #a9b3dc;

  --font-display: "Jost", "Futura", "Century Gothic", sans-serif;
  --font-body: "Source Serif 4", "Georgia", serif;

  /* Modular scale, 1.25 */
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.625rem;
  --step-3: 2.0625rem;
  --step-4: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 76rem;
  --radius: 3px;
  --radius-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-optical-sizing: auto;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 300; }
h2 { font-size: var(--step-3); font-weight: 300; }
h3 { font-size: var(--step-1); font-weight: 500; }

p { margin: 0; max-width: 64ch; }
p + p { margin-top: 1em; }

a { color: var(--blue-text); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.on-navy :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--cyan); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--white); color: var(--ink); padding: 0.6rem 1rem;
  font-family: var(--font-display);
}
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.875rem; padding: 0.7rem 1.6rem;
  font-family: var(--font-display); font-size: 1rem; font-weight: 500; letter-spacing: 0.01em;
  text-decoration: none; border-radius: var(--radius-pill); border: 1px solid transparent;
  cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: #0074d9; }
.btn-ghost { border-color: var(--navy-line); color: var(--on-navy); background: transparent; }
.btn-ghost:hover { border-color: var(--on-navy-muted); }
.btn-outline { border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }

/* Header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy); color: var(--on-navy);
  border-bottom: 1px solid var(--navy-line);
}
.header-inner { display: flex; align-items: center; gap: 2rem; min-height: 4.5rem; }

.brand { display: flex; align-items: center; gap: 0.75rem; color: var(--on-navy); text-decoration: none; }
.brand img { width: 2.6rem; height: auto; }
.brand-name { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-display); }
.brand-name strong { font-weight: 600; font-size: 1.15rem; letter-spacing: 0.14em; color: #2fa4ff; }
.brand-name span { font-weight: 300; font-size: 0.66rem; letter-spacing: 0.42em; color: #48b6ff; margin-top: 0.3rem; }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  color: var(--on-navy); text-decoration: none; font-family: var(--font-display);
  font-size: 0.98rem; padding-block: 0.4rem; border-bottom: 1px solid transparent; white-space: nowrap;
}
.site-nav a:hover { border-bottom-color: var(--on-navy-muted); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--cyan); }

.header-actions { display: flex; align-items: center; gap: 1.25rem; }
.header-actions .btn { white-space: nowrap; }
.header-phone { color: var(--on-navy); font-family: var(--font-display); text-decoration: none; font-size: 0.98rem; white-space: nowrap; }
.header-phone:hover { text-decoration: underline; }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--navy-line); border-radius: var(--radius-pill);
  color: var(--on-navy); font-family: var(--font-display); font-size: 0.95rem;
  min-height: 2.75rem; padding: 0 1.1rem; cursor: pointer;
}

/* The email address is long, so it only shows in the header on wide screens */
@media (max-width: 1240px) {
  .header-phone { display: none; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .header-inner { flex-wrap: wrap; gap: 0 1rem; }
  .site-nav, .header-actions { display: none; width: 100%; }
  .site-header.is-open .site-nav, .site-header.is-open .header-actions { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding-block: 0.5rem; }
  .site-nav li a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--navy-line); }
  .site-nav a[aria-current="page"] { color: var(--cyan); border-bottom-color: var(--navy-line); }
  .header-actions { padding-bottom: 1.25rem; }
  .header-actions .btn { width: 100%; }
  .header-phone { display: block; padding: 0.85rem 0 1rem; }
}

/* Hero */

.hero { background: var(--navy); color: var(--on-navy); overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 4vw, 4rem); align-items: center;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem);
}
.hero h1 { color: var(--white); }
.hero-lede { margin-top: 1.5rem; color: var(--on-navy-muted); font-size: 1.125rem; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.hero-figure { margin: 0; margin-right: calc(var(--gutter) * -0.5); }

.page-hero .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.page-hero .breadcrumb { font-family: var(--font-display); font-size: var(--step--1); color: var(--on-navy-muted); margin-bottom: 1.25rem; }
.page-hero .breadcrumb a { color: var(--on-navy-muted); }

/* Home hero: aerial photo across the full width, shaded navy so the headline reads */
.cover-hero { position: relative; isolation: isolate; }
.cover-hero .hero-inner { grid-template-columns: minmax(0, 40rem); min-height: clamp(30rem, 48vw, 42rem); }
.cover-hero-media { position: absolute; inset: 0; z-index: -1; }
/* Mirrored so the building sits on the right, clear of the headline */
.cover-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 55%; transform: scaleX(-1); }
.cover-hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(8, 11, 70, 0.55) 0%, rgba(8, 11, 70, 0) 35%),
    linear-gradient(90deg, rgba(8, 11, 70, 0.95) 0%, rgba(8, 11, 70, 0.84) 36%, rgba(8, 11, 70, 0.35) 62%, rgba(8, 11, 70, 0.12) 100%);
}
.cover-hero .hero-lede { color: var(--on-navy); }
/* Bottom of the photo dissolves into the white page, and the first category panel rises into it */
:root { --hero-fade: clamp(7rem, 14vw, 12rem); }
.cover-hero .hero-inner { padding-bottom: calc(var(--hero-fade) + clamp(1rem, 3vw, 2rem)); }
.cover-hero::after {
  content: ""; position: absolute; inset: auto 0 -1px; height: calc(var(--hero-fade) + 1px); z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.55) 45%, rgba(255, 255, 255, 0.92) 78%, var(--white) 100%);
}
.cover-hero + .features { position: relative; padding-top: 0; margin-top: calc(var(--hero-fade) * -0.2); }
.cover-hero + .features .feature:first-child { box-shadow: 0 30px 60px -30px rgba(8, 11, 70, 0.45); }
@media (max-width: 760px) {
  .cover-hero-media img { object-position: 45% 50%; }
  .cover-hero-media::after { background: rgba(8, 11, 70, 0.82); }
}

/* Page hero with a photo fading in from the right, like the home page panels */
.photo-hero { position: relative; isolation: isolate; }
.photo-hero .hero-inner { grid-template-columns: minmax(0, 33rem); min-height: clamp(26rem, 40vw, 34rem); }
.photo-hero-media { position: absolute; inset: 0 0 0 auto; width: 62%; z-index: -1; overflow: hidden; }
/* A mask fades the photo itself to transparent, so there's no seam where it starts */
.photo-hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.1) 22%, rgba(0, 0, 0, 0.65) 50%, #000 75%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.1) 22%, rgba(0, 0, 0, 0.65) 50%, #000 75%);
}
@media (max-width: 760px) {
  .photo-hero-media { position: relative; width: 100%; aspect-ratio: 16 / 10; }
  .photo-hero-media img { -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 45%); mask-image: linear-gradient(0deg, transparent 0%, #000 45%); }
  .photo-hero .hero-inner { min-height: 0; padding-top: 0.5rem; }
}

@media (max-width: 860px) {
  .hero-inner, .page-hero .hero-inner { grid-template-columns: 1fr; }
  .hero-figure { margin-right: 0; }
}

/* Drawings */

.drawing { width: 100%; height: auto; overflow: visible; }
.drawing path { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; }
.drawing .d-faint { stroke-width: 0.8; opacity: 0.55; }
.drawing .d-load path { stroke-width: 1; opacity: 0.6; }
.drawing .d-floor path { opacity: 0.7; }
.drawing .d-dim path { stroke-width: 0.9; }
.drawing text { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.02em; fill: currentColor; stroke: none; }

.on-navy .drawing { color: #c9d6ff; }
.on-navy .drawing .d-dim { color: var(--cyan); }
.on-light .drawing { color: var(--navy); }
.on-light .drawing .d-dim { color: var(--blue-text); }

/* The one orchestrated moment: the hero drawing draws itself in. */
@media (prefers-reduced-motion: no-preference) {
  .js .is-drawn path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .is-drawn text { opacity: 0; }
  .js .is-drawn.is-playing path { animation: draw 1.2s cubic-bezier(.45, .05, .25, 1) forwards; animation-delay: calc(var(--g) * 0.32s); }
  .js .is-drawn.is-playing text { animation: label-in 0.6s ease forwards; animation-delay: calc(var(--g) * 0.32s + 0.6s); }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes label-in { to { opacity: 1; } }

/* Sections */

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-steel { background: var(--steel); }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem 4rem; align-items: end; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head p { color: var(--muted); }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* Product panels on the home page: each whole panel links to its page */

.features { padding-block: clamp(3rem, 7vw, 5.5rem); }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1.25rem, 2.5vw, 1.75rem); }

.feature {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; min-height: 23rem;
  background: var(--navy); color: var(--on-navy); border-radius: 6px;
}
.feature-body { width: min(100%, 31rem); padding: clamp(2rem, 4.5vw, 3.5rem); }
.feature h3 { font-size: var(--step-3); font-weight: 400; color: var(--white); }
.feature-link { color: inherit; text-decoration: none; }
.feature-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.feature-link:focus-visible { outline: none; }
.feature:has(.feature-link:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 3px; }
.feature p { margin-top: 0.9rem; color: var(--on-navy-muted); font-size: 1rem; max-width: 30em; }

.feature-points { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.feature-points li { position: relative; padding-left: 1.75rem; font-family: var(--font-display); font-weight: 500; color: var(--on-navy); }
.feature-points li::before {
  content: ""; position: absolute; left: 0.2rem; top: 0.45em;
  width: 0.7rem; height: 0.38rem; border-left: 1.5px solid var(--cyan); border-bottom: 1.5px solid var(--cyan);
  transform: rotate(-45deg);
}

.feature-cta {
  display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: 1.75rem; padding: 0.6rem 1.45rem;
  font-family: var(--font-display); font-weight: 500; font-size: 0.98rem;
  border: 1px solid var(--navy-line); border-radius: var(--radius-pill);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* Behind the text, above the panel background (the panel isolates its stacking) */
.feature-media { position: absolute; inset: 0 0 0 auto; width: 60%; z-index: -1; overflow: hidden; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.2, .7, .2, 1); }
/* Fade the photo into the navy panel */
.feature-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--navy) 0%, rgba(8, 11, 70, 0.9) 22%, rgba(8, 11, 70, 0.35) 48%, rgba(8, 11, 70, 0) 72%);
}

.feature:hover .feature-cta { background: var(--blue); border-color: var(--blue); color: var(--white); }
.feature:hover .feature-media img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) {
  .feature-media img, .feature-cta { transition: none; }
  .feature:hover .feature-media img { transform: none; }
}

@media (max-width: 760px) {
  .feature { flex-direction: column; align-items: stretch; min-height: 0; }
  .feature-media { position: relative; width: 100%; aspect-ratio: 16 / 10; order: -1; }
  .feature-media::after { background: linear-gradient(0deg, var(--navy) 0%, rgba(8, 11, 70, 0) 45%); }
  .feature-body { padding-top: 0.5rem; }
}

/* Process steps: a real sequence, so it is numbered */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.75rem, 1.5vw, 1.25rem); counter-reset: step; }
.steps li {
  position: relative; overflow: hidden; counter-increment: step;
  padding: 1.75rem 1.6rem 2rem; background: var(--white);
  border: 1px solid var(--line); border-radius: 6px;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
/* Step number, with a hairline running to the card edge */
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block;
  font-family: var(--font-display); font-weight: 300; font-size: 2.25rem; line-height: 1; letter-spacing: 0.02em;
  color: var(--blue-text); padding-bottom: 1.1rem; margin-bottom: 1.4rem;
  background: linear-gradient(var(--line), var(--line)) left bottom / 2.5rem 1px no-repeat;
  transition: color 0.3s ease, background-size 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
/* Accent bar along the top, drawn in on hover */
.steps li::after {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.steps h3 { margin-bottom: 0.65rem; }
.steps p { color: var(--muted); font-size: 1rem; }
.steps li:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 22px 44px -22px rgba(8, 11, 70, 0.32); }
.steps li:hover::after { transform: scaleX(1); }
.steps li:hover::before { color: var(--blue); background-size: 100% 1px; }
@media (prefers-reduced-motion: reduce) {
  .steps li, .steps li::before, .steps li::after { transition: none; }
  .steps li:hover { transform: none; }
}
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* About / local */

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem 4rem; }
.split .body p { font-size: 1.125rem; }
.facts { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.facts li {
  position: relative; overflow: hidden; padding: 1.25rem 1.35rem 1.35rem; background: var(--steel); border-radius: 6px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.facts li::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(180deg, var(--blue), var(--cyan));
  transform: scaleY(0); transform-origin: top; transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.facts dt, .facts .k { display: block; font-family: var(--font-display); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-text); }
.facts .v { display: block; font-family: var(--font-display); font-size: 1.15rem; margin-top: 0.4rem; color: var(--ink); }
.facts li:hover { transform: translateY(-2px); background: var(--white); box-shadow: 0 14px 30px -18px rgba(8, 11, 70, 0.35); }
.facts li:hover::after { transform: scaleY(1); }
@media (prefers-reduced-motion: reduce) { .facts li, .facts li::after { transition: none; } .facts li:hover { transform: none; } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }

/* Service-area drawing beside the About copy */
.about-map { margin: 2rem 0 0; max-width: 24rem; }
.about-map svg { display: block; width: 100%; height: auto; background: var(--navy); border-radius: 6px; }
.about-map .am-states { fill: rgba(160, 190, 255, 0.05); stroke: rgba(160, 190, 255, 0.35); stroke-width: 1; stroke-linejoin: round; }
.about-map .am-home { fill: rgba(0, 229, 249, 0.14); stroke: var(--cyan); stroke-width: 1.4; stroke-linejoin: round; }
.about-map .am-pin circle:first-child { fill: var(--cyan); }
.about-map .am-pin circle:last-child { fill: none; stroke: var(--cyan); stroke-width: 1.5; }
.about-map text { paint-order: stroke; stroke: var(--navy); stroke-width: 5px; stroke-linejoin: round; }
.about-map .am-label { font-family: var(--font-display); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; fill: var(--white); }
.about-map .am-sub { font-family: var(--font-display); font-size: 10.5px; letter-spacing: 0.06em; fill: var(--on-navy-muted); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }

/* Quote call-to-action band */

.cta-band { background: var(--navy); color: var(--on-navy); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
.cta-band h2 { color: var(--white); max-width: 20em; }
.cta-band p { color: var(--on-navy-muted); margin-top: 0.75rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Product detail pages */

.type-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 4rem; }
.type-list li { padding-block: 1.6rem; border-top: 1px solid var(--line); }
.type-list h3 { margin-bottom: 0.5rem; }
.type-list p { color: var(--muted); font-size: 1rem; }
@media (max-width: 760px) { .type-list { grid-template-columns: 1fr; } }

/* Rack type cards: photo, name, short description; the whole card is the link */
.type-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.type-card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0.9rem 0.9rem 1.75rem; background: var(--white); border-radius: 6px;
  box-shadow: 0 0 0 1px transparent;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.type-card-media { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; margin-bottom: 1.5rem; background: var(--steel); }
.type-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.type-card h3 { margin-bottom: 0.6rem; padding-inline: 0.5rem; }
.type-card-link { color: inherit; text-decoration: none; }
.type-card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.type-card-link:focus-visible { outline: none; }
.type-card:has(.type-card-link:focus-visible) { outline: 2px solid var(--blue); outline-offset: 3px; }
.type-card p { color: var(--muted); font-size: 1rem; padding-inline: 0.5rem; max-width: 34ch; }
.type-card-cta {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; margin-top: auto; padding: 0.55rem 1.4rem;
  font-family: var(--font-display); font-weight: 500; font-size: 0.95rem; color: var(--navy);
  border: 1px solid var(--navy); border-radius: var(--radius-pill);
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease, color 0.2s ease;
}
.type-card-cta::after { content: "\2192"; }
.type-card > p { margin-bottom: 1.5rem; }
.type-card:hover, .type-card:has(.type-card-link:focus-visible) { box-shadow: 0 18px 40px -18px rgba(8, 11, 70, 0.35), 0 0 0 1px var(--line); }
.type-card:hover .type-card-media img { transform: scale(1.04); }
.type-card:hover .type-card-cta { background: var(--navy); color: var(--white); }
/* On mouse devices the button appears on hover, as a cue that the card opens */
@media (hover: hover) {
  .type-card-cta { opacity: 0; transform: translateY(6px); }
  .type-card:hover .type-card-cta, .type-card:has(.type-card-link:focus-visible) .type-card-cta { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .type-card, .type-card-media img, .type-card-cta { transition: none; }
  .type-card:hover .type-card-media img { transform: none; }
}
@media (max-width: 900px) { .type-cards { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; } }

/* Accessory grid: a small image of each part over its name and description */
.part-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(2rem, 3.5vw, 3rem) clamp(1rem, 2.5vw, 2rem); }
.part { text-align: center; }
.part-media {
  position: relative; aspect-ratio: 4 / 3; margin-bottom: 1.35rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
/* Pinned inside the tile so tall photos shrink to fit instead of spilling out */
.part-media img { position: absolute; inset: 1rem; width: calc(100% - 2rem); height: calc(100% - 2rem); object-fit: contain; }
.part-media.is-photo img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.part h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.part p { color: var(--muted); font-size: 0.95rem; max-width: 30ch; margin-inline: auto; }
.part:hover .part-media { transform: translateY(-4px); border-color: transparent; box-shadow: 0 18px 36px -20px rgba(8, 11, 70, 0.35); }
@media (prefers-reduced-motion: reduce) { .part-media { transition: none; } .part:hover .part-media { transform: none; } }
@media (max-width: 960px) { .part-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 340px) { .part-grid { grid-template-columns: 1fr; } }

.checklist { list-style: none; margin: 1.75rem 0 0; padding: 0; }
.checklist li { position: relative; padding: 0.85rem 0 0.85rem 2rem; border-bottom: 1px solid var(--line); }
.checklist li::before {
  content: ""; position: absolute; left: 0.2rem; top: 1.35rem;
  width: 0.75rem; height: 0.4rem; border-left: 1.5px solid var(--blue-text); border-bottom: 1.5px solid var(--blue-text);
  transform: rotate(-45deg);
}

/* Split sections: heading and intro on the left (sticky on desktop), content on the right */
.split-head p { margin-top: 1.1rem; color: var(--muted); font-size: 1.0625rem; max-width: 30em; }
@media (min-width: 861px) { .split-head { position: sticky; top: 6.5rem; align-self: start; } }

/* Component tiles, each with a check badge */
.check-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.check-tiles li {
  position: relative; display: flex; align-items: center; min-height: 4.75rem; padding: 1rem 1.25rem 1rem 3.6rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 6px;
  font-family: var(--font-display); font-size: 1.02rem; line-height: 1.35; color: var(--ink);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.check-tiles li::before {
  content: ""; position: absolute; left: 1.2rem; top: 50%; width: 1.6rem; height: 1.6rem; margin-top: -0.8rem;
  border-radius: 50%; background: #dcecff; transition: background-color 0.25s ease;
}
.check-tiles li::after {
  content: ""; position: absolute; left: 1.72rem; top: 50%; width: 0.6rem; height: 0.32rem; margin-top: -0.26rem;
  border-left: 2px solid var(--blue-text); border-bottom: 2px solid var(--blue-text); transform: rotate(-45deg);
  transition: border-color 0.25s ease;
}
.check-tiles li:hover { transform: translateY(-2px); border-color: transparent; box-shadow: 0 14px 30px -18px rgba(8, 11, 70, 0.35); }
.check-tiles li:hover::before { background: var(--blue); }
.check-tiles li:hover::after { border-color: var(--white); }
.section:not(.section-steel) .check-tiles li { background: var(--steel); border-color: transparent; }

/* Numbered rows for what a quote needs */
.need-list { list-style: none; margin: 0; padding: 0; counter-reset: need; border-top: 1px solid var(--line); }
.need-list li {
  counter-increment: need; display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); align-items: baseline;
  padding: 1.3rem 0.75rem 1.3rem 0; border-bottom: 1px solid var(--line);
  font-size: 1.0625rem; transition: background-color 0.25s ease, padding 0.25s ease;
}
.need-list li::before {
  content: counter(need, decimal-leading-zero);
  font-family: var(--font-display); font-weight: 300; font-size: 1.5rem; line-height: 1; color: var(--blue-text);
}
.need-list li:hover { background: var(--steel); padding-left: 0.75rem; }
.need-list li:hover::before { color: var(--blue); }
@media (prefers-reduced-motion: reduce) {
  .check-tiles li, .need-list li { transition: none; }
  .check-tiles li:hover { transform: none; }
}
@media (max-width: 560px) { .check-tiles { grid-template-columns: 1fr; } }

/* Quote form */

.quote-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 3rem 5rem; }
.quote-aside p { color: var(--muted); }
.quote-aside .contact-lines { margin-top: 2rem; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.quote-aside .contact-lines li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.quote-aside .k { display: block; font-family: var(--font-display); font-size: var(--step--1); color: var(--muted); }
.quote-aside .v { font-family: var(--font-display); font-size: 1.1rem; }
@media (max-width: 900px) { .quote-layout { grid-template-columns: 1fr; } }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 1.5rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field-full { grid-column: 1 / -1; }
.field label, .field legend { font-family: var(--font-display); font-size: 0.98rem; font-weight: 500; color: var(--ink); }
.field .optional { font-weight: 400; color: var(--muted); }
.field .hint { font-size: 0.9rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1px solid #b9c1cf; border-radius: var(--radius);
  padding: 0.7rem 0.8rem; min-height: 2.875rem;
}
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field .error { color: #b3261e; font-size: 0.9rem; font-family: var(--font-display); }
.field .error:empty { display: none; }

fieldset.field { border: 0; padding: 0; margin: 0; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 1.5rem; margin-top: 0.5rem; }
.choice { display: flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; font-family: var(--font-body); font-size: 1rem; font-weight: 400; cursor: pointer; }
.choice input { width: 1.15rem; height: 1.15rem; min-height: 0; accent-color: var(--blue); margin: 0; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form-status { font-family: var(--font-display); }
.form-status.is-error { color: #b3261e; }
.form-success { grid-column: 1 / -1; border-left: 3px solid var(--blue); padding: 1rem 1.25rem; background: var(--steel); }
.form-success h3 { margin-bottom: 0.4rem; }

@media (max-width: 600px) {
  .form, .choices { grid-template-columns: 1fr; }
}

/* Footer */

.site-footer { background: var(--navy); color: var(--on-navy-muted); border-top: 1px solid var(--navy-line); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 5fr) repeat(2, minmax(0, 3fr)); gap: 2.5rem; padding-block: 3.5rem 2.5rem; }
.footer-inner h2 { font-size: 1rem; font-weight: 500; color: var(--on-navy); margin-bottom: 0.9rem; letter-spacing: 0; }
.footer-inner ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer-inner a { color: var(--on-navy-muted); text-decoration: none; overflow-wrap: anywhere; }
.footer-inner a:hover { color: var(--on-navy); text-decoration: underline; }
.footer-inner address { font-style: normal; margin-top: 1.25rem; line-height: 1.7; }
.footer-base { border-top: 1px solid var(--navy-line); padding-block: 1.25rem; font-size: 0.9rem; font-family: var(--font-display); }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }
