:root {
  --navy: #173460;
  --navy-deep: #102544;
  --title: #003584;
  --blue: #0096ff;
  --ink: #1c2836;
  --muted: #5c6b7c;
  --line: #d7e0ea;
  --paper: #f3f6fa;
  --card: #ffffff;
  --shadow: 0 10px 28px rgba(23, 52, 96, 0.08);
  --header: 112px;
  font-family: "Open Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--title); }
h1, h2, h3, h4, .brand, .btn, .site-nav, .kicker, .stat strong {
  font-family: Roboto, "Open Sans", sans-serif;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: #fff;
  color: var(--navy);
  padding: 8px 12px;
  z-index: 90;
}
.skip:focus { top: 12px; }

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.topbar {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand img {
  height: 46px;
  width: auto;
  max-width: min(240px, 52vw);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.phone {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.phone:hover { color: var(--title); }
.social {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}
.preview-tag {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.nav-toggle {
  display: none;
  border: 2px solid var(--navy);
  background: #fff;
  color: var(--navy);
  border-radius: 10px;
  min-height: 44px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}
.nav-toggle:focus-visible,
.site-nav button:focus-visible,
.site-nav a:focus-visible,
.btn:focus-visible,
.scroller-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.site-nav {
  max-width: 1240px;
  margin: 0 auto;
  padding: 6px 12px 10px;
}
.nav-contact { display: none; }
.site-nav > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.site-nav li { position: relative; }
.site-nav a,
.site-nav button.nav-parent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
}
.site-nav a:hover,
.site-nav button.nav-parent:hover { background: var(--paper); }
.site-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 50;
  list-style: none;
  margin: 0;
}
.site-nav .sub-menu .sub-menu {
  top: 0;
  left: calc(100% - 8px);
}
.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu,
.site-nav li.is-open > .sub-menu { display: block; }
.site-nav .sub-menu a,
.site-nav .sub-menu button.nav-parent { width: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 12px 16px;
  min-height: 48px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
  text-align: center;
}
.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--paper); color: var(--navy-deep); }
.btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-text {
  background: transparent;
  color: var(--navy);
  border-color: transparent;
  min-height: 40px;
  padding: 6px 4px;
}

.hero {
  position: relative;
  min-height: calc(100dvh - var(--header));
  background: var(--navy-deep);
  color: #fff;
  overflow: hidden;
}
.hero-media,
.hero-scrim { position: absolute; inset: 0; }
.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-scrim {
  background: linear-gradient(180deg, rgba(16, 37, 68, 0.28) 0%, rgba(16, 37, 68, 0.45) 42%, rgba(16, 37, 68, 0.9) 100%);
  display: flex;
  align-items: flex-end;
}
.hero-copy {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto 28px;
  background: rgba(16, 37, 68, 0.88);
  border-radius: 16px;
  padding: 22px 22px 18px;
}
.hero h1 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 900;
}
.hero .lede {
  margin: 0;
  color: #fff;
  font-size: 17px;
  line-height: 1.45;
  max-width: 46em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.section, .hero { scroll-margin-top: 12px; }
.section {
  padding: 56px 20px;
}
.section-inner { max-width: 1240px; margin: 0 auto; }
.section h2 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.section .intro {
  margin: 0 0 22px;
  max-width: 48em;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
}
.kicker {
  margin: 0 0 8px;
  color: var(--title);
  font-weight: 700;
  font-size: 14px;
}
.paper { background: var(--paper); }
.band {
  background: var(--navy-deep) center/cover no-repeat;
  color: #fff;
}
.band h2, .band .kicker, .band .intro { color: #fff; }
.band .intro { max-width: 40em; }

.timeline-lead {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}
.steps {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.steps li, .include-card, .problem-card, .kit-card, .stat, .review-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.steps li { padding: 16px 14px; color: var(--ink); }
.steps h3 { margin: 0 0 8px; color: var(--navy); font-size: 16px; line-height: 1.3; }
.steps p { margin: 0; font-size: 15px; line-height: 1.4; }
.band .steps li { background: #fff; }

.include-grid, .problem-grid, .choose-grid, .video-grid, .cat-grid, .kit-row {
  display: grid;
  gap: 16px;
}
.include-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.include-card, .problem-card { padding: 18px 16px 8px; }
.include-card h3, .problem-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.25;
}
.include-card p, .problem-card p {
  margin: 0 0 14px;
  line-height: 1.5;
  color: var(--ink);
}
.exception { font-weight: 700; }

.scroller-wrap { position: relative; }
.scroller {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 12px;
  scrollbar-width: thin;
}
.scroller figure, .review-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  margin: 0;
}
.scroller img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  background: #e6eef6;
}
.scroller figcaption, .review-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}
.review-card {
  padding: 8px;
  flex-basis: 280px;
}
.review-card img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  background: #fff;
}
.scroller-controls {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.scroller-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  font-size: 22px;
  cursor: pointer;
}

.problem-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.problem-card img {
  width: calc(100% + 32px);
  max-width: none;
  margin: -18px -16px 14px;
  height: 180px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
}
.problem-card .btn { margin-bottom: 12px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.stat {
  background: #fff;
  border: 0;
  border-top: 4px solid var(--blue);
  box-shadow: none;
  color: var(--ink);
  padding: 18px 16px 16px;
  text-align: left;
}
.stat h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.3;
}
.stat p {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
  font-size: 15px;
}

.choose-grid { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
.checks { margin: 0; padding: 0; list-style: none; }
.checks li {
  position: relative;
  padding: 8px 0 8px 22px;
  border-bottom: 1px solid var(--line);
  line-height: 1.4;
}
.checks li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--navy);
  position: absolute;
  left: 0;
  top: 0.85em;
}

.cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cat-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 14px;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.cat-grid a:hover { border-color: var(--navy); background: var(--paper); }
.cat-feature {
  grid-column: 1 / -1;
  min-height: 96px !important;
  background: var(--navy) !important;
  color: #fff !important;
  font-size: 22px;
  border-color: var(--navy) !important;
}
.cat-feature:hover { background: var(--navy-deep) !important; color: #fff !important; }

.kit-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kit-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: var(--navy);
  min-height: 100%;
}
.kit-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #e6eef6; }
.kit-card strong { display: block; padding: 14px 14px 0; font-size: 18px; line-height: 1.3; }
.kit-card em {
  margin-top: auto;
  padding: 10px 14px 16px;
  font-style: normal;
  font-weight: 700;
  color: var(--title);
  font-size: 14px;
}

.video-grid { grid-template-columns: 1fr 1fr; }
.video-card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.3;
}
.video-card video {
  width: 100%;
  background: #102544;
  border-radius: 12px;
  aspect-ratio: 16 / 9;
}

.notice {
  border: 2px solid var(--navy);
  border-radius: 16px;
  padding: 20px 22px;
  background: #fff;
}
.notice h2 { font-size: clamp(24px, 3vw, 32px); }
.notice p { margin: 0 0 10px; line-height: 1.5; max-width: 62em; }
.notice .sign { margin: 0; font-style: italic; color: var(--navy); }

.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.site-footer {
  background: var(--navy-deep);
  color: #e8eef5;
  padding: 28px 20px 36px;
}
.site-footer .section-inner { display: grid; gap: 8px; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0; line-height: 1.45; }

.quote-dialog {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(16, 37, 68, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.quote-dialog[hidden] { display: none; }
.quote-panel {
  background: #fff;
  width: min(480px, 100%);
  max-height: min(88vh, 760px);
  overflow: auto;
  border-radius: 16px;
  padding: 16px;
}
.quote-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.quote-panel h2 { margin: 0; color: var(--navy); font-size: 20px; }
.quote-note { margin: 8px 0 12px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.quote-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 16px; }
#quote-body input[type="checkbox"] { width: auto; margin-right: 8px; }
#quote-body .helpful-now-options label { font-weight: 500; }
#quote-body .form_page { margin-bottom: 8px; }
#quote-body .hidden { display: none; }
#quote-body label { display: block; font-weight: 700; margin: 10px 0 4px; color: var(--navy); }
#quote-body select, #quote-body input, #quote-body textarea {
  width: 100%;
  border: 1px solid #c5d0dc;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}
#quote-body a { font-weight: 700; }
body.nav-open, body.sheet-open { overflow: hidden; }

@media (max-width: 1100px) {
  .steps, .stats { grid-template-columns: 1fr 1fr; }
  .include-grid, .problem-grid { grid-template-columns: 1fr 1fr; }
  .choose-grid, .video-grid, .kit-row { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --header: 64px; }
  .topbar { padding: 8px 12px; }
  .brand img { height: 36px; }
  .preview-tag, .social { display: none; }
  .nav-toggle { display: inline-flex; }
  .top-actions .js-quote { display: none; }
  .nav-contact { display: block; padding: 8px 0 12px; }
  .site-nav {
    display: none;
    max-height: calc(100dvh - var(--header));
    overflow: auto;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 8px 12px 20px;
  }
  .site-nav.is-open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; }
  .site-nav .sub-menu,
  .site-nav li:hover > .sub-menu,
  .site-nav li:focus-within > .sub-menu {
    display: none;
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 12px;
    min-width: 0;
  }
  .site-nav li.is-open > .sub-menu { display: block; }
  .hero-copy { margin-bottom: 16px; padding: 16px; }
  .hero h1 { font-size: 30px; }
  .hero .lede { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .section { padding: 36px 16px; }
  .steps, .include-grid, .problem-grid, .stats, .cat-grid { grid-template-columns: 1fr; }
  .quote-dialog { align-items: flex-end; padding: 0; }
  .quote-panel { border-radius: 16px 16px 0 0; max-height: 88vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Header: "Steel building kits" is a link with its own submenu toggle
   (same rules as steel-building-kits/styles.css, t97u). */
.site-nav .nav-split {
  display: flex;
  align-items: center;
}
.site-nav .nav-split > .nav-split-link {
  padding-right: 4px;
}
.site-nav .nav-split > button.nav-split-toggle {
  padding: 8px 6px;
  font-size: 12px;
  line-height: 1;
}
.site-nav .nav-split > .sub-menu { top: 100%; }

@media (max-width: 860px) {
  .site-nav .nav-split { flex-wrap: wrap; }
  .site-nav .nav-split > .nav-split-link { flex: 1 1 auto; }
  .site-nav .nav-split > button.nav-split-toggle {
    min-width: 44px;
    min-height: 40px;
    justify-content: center;
    border: 1px solid var(--line);
  }
  .site-nav .nav-split > .sub-menu { flex: 1 0 100%; }
  .site-nav .nav-split.is-open > button.nav-split-toggle span { display: inline-block; transform: rotate(180deg); }
}
