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

:root {
  color-scheme: light;
  --ink: #08090b;
  --muted: #58616f;
  --paper: #f7f8fa;
  --white: #ffffff;
  --navy: #061a33;
  --blue: #0057d9;
  --blue-dark: #0047b3;
  --blue-soft: #eaf2ff;
  --line: #d9dee7;
  --line-soft: #edf0f5;
  --green: #15803d;
  --max: 1040px;
  --radius: 8px;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html { scroll-behavior: smooth; }

body.site-home,
body.legal-page {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(6, 26, 51, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(6, 26, 51, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.site-home a,
body.legal-page a {
  color: inherit;
  text-decoration: none;
}

body.site-home img,
body.legal-page img {
  display: block;
  max-width: 100%;
}

body.site-home nav,
body.legal-page .site-top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

body.site-home .nav-inner,
body.legal-page .site-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 18px clamp(20px, 4vw, 44px);
}

body.site-home .logo img,
body.legal-page .brand img {
  width: 150px;
  height: auto;
}

body.site-home .nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

body.site-home .nav-cta,
body.site-home .hero-cta,
body.site-home .contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  color: #fff;
  background: var(--blue);
  border: 2px solid var(--blue);
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: center;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

body.site-home .nav-cta {
  min-height: 42px;
  padding: 9px 18px;
  color: var(--blue);
  background: transparent;
}

body.site-home .nav-cta:hover,
body.site-home .hero-cta:hover,
body.site-home .contact-form button:hover {
  color: #fff;
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-1px);
}

body.site-home main,
body.legal-page .container {
  width: min(var(--max), calc(100% - 40px));
  margin: clamp(24px, 5vw, 54px) auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(6, 26, 51, 0.08);
  overflow: hidden;
}

body.site-home .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 clamp(24px, 5vw, 58px);
}

body.site-home section {
  padding: clamp(42px, 7vw, 72px) 0;
  border-top: 1px solid var(--line);
}

body.site-home .hero {
  padding: clamp(38px, 7vw, 70px) 0 clamp(36px, 6vw, 60px);
  text-align: left;
  border-top: 0;
}

body.site-home .eyebrow,
body.site-home .section-label {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.site-home .hero h1 {
  max-width: 940px;
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0;
}

body.site-home .hero h1 .accent {
  color: var(--blue);
}

body.site-home .hero p.lede {
  max-width: 810px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.1vw, 23px);
  line-height: 1.55;
}

body.site-home .hero-cta {
  margin-top: 28px;
}

body.site-home .hero-brands {
  max-width: none;
  margin: 36px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

body.site-home .stack-label {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-align: left;
  text-transform: uppercase;
}

body.site-home .brand-logo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: none;
  margin: 0;
}

body.site-home .brand-logo {
  display: grid;
  place-items: center;
  min-height: 82px;
  padding: 14px;
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  opacity: 1;
}

body.site-home .brand-logo img {
  width: min(100%, 190px);
  height: 48px;
  object-fit: contain;
  filter: grayscale(1) saturate(0);
  opacity: 0.74;
}

body.site-home .logo-toyota img { width: 132px; }
body.site-home .logo-premiergarage img { width: 206px; }
body.site-home .logo-andersen img { width: 184px; }
body.site-home .logo-wizard img { width: 138px; height: 60px; }
body.site-home .logo-ffl img { width: 196px; }
body.site-home .logo-ndr img { width: 208px; }
body.site-home .logo-motley-rice img { width: 164px; height: 56px; }

body.site-home .section-title,
body.legal-page h1 {
  max-width: 820px;
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0;
  text-align: left;
}

body.site-home .section-sub {
  max-width: 790px;
  margin: 16px 0 28px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  text-align: left;
}

body.site-home .services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.site-home .service-card {
  padding: 22px;
  color: var(--ink);
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 160ms ease, transform 160ms ease;
}

body.site-home .service-card:hover {
  border-color: rgba(0, 87, 217, 0.26);
  transform: translateY(-1px);
}

body.site-home .service-card .icon-box {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid rgba(0, 87, 217, 0.16);
  border-radius: var(--radius);
}

body.site-home .service-card .icon-box svg {
  width: 20px;
  height: 20px;
  color: var(--blue);
}

body.site-home .service-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: 0;
}

body.site-home .service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

body.site-home .verticals {
  background: #fff;
}

body.site-home .vert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: none;
  margin: 0;
}

body.site-home .vert-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 14px;
  color: var(--navy);
  background: var(--blue-soft);
  border: 1px solid rgba(0, 87, 217, 0.16);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}

body.site-home .vert-item svg {
  width: 16px;
  height: 16px;
  color: var(--blue);
  flex: 0 0 16px;
}

body.site-home #contact {
  margin: 0;
  padding: clamp(44px, 7vw, 72px) 0;
  color: #fff;
  background: var(--navy);
  border-top: 0;
}

body.site-home #contact .section-title {
  color: #fff;
}

body.site-home #contact .section-sub {
  color: rgba(255, 255, 255, 0.74);
}

body.site-home .contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 620px;
  margin: 26px 0 0;
  padding: 22px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
}

body.site-home .form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.site-home .contact-form input,
body.site-home .contact-form select,
body.site-home .contact-form textarea,
body.site-home .captcha-row input {
  width: 100%;
  min-height: 50px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
  font-family: var(--sans);
  font-size: 15px;
}

body.site-home .contact-form textarea {
  min-height: 116px;
  resize: vertical;
}

body.site-home .contact-form input:focus-visible,
body.site-home .contact-form select:focus-visible,
body.site-home .contact-form textarea:focus-visible,
body.site-home .captcha-row input:focus-visible,
body.site-home .contact-form button:focus-visible,
body.site-home .nav-cta:focus-visible,
body.site-home .hero-cta:focus-visible {
  outline: 3px solid rgba(0, 87, 217, 0.28);
  outline-offset: 3px;
}

body.site-home .captcha-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px;
  background: var(--blue-soft);
  border: 1px solid rgba(0, 87, 217, 0.16);
  border-radius: var(--radius);
}

body.site-home .captcha-row label {
  flex: 1 1 220px;
  color: var(--muted);
  font-size: 14px;
}

body.site-home .captcha-row label span {
  color: var(--navy);
  font-weight: 900;
}

body.site-home .captcha-row input {
  width: 110px;
  min-height: 44px;
}

body.site-home .form-msg {
  display: none;
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  text-align: left;
  font-size: 14px;
  font-weight: 900;
}

body.site-home .form-msg.success {
  color: var(--green);
  background: transparent;
}

body.site-home .form-msg.error {
  color: #b91c1c;
  background: transparent;
}

body.site-home footer,
body.legal-page footer {
  padding: 30px 0;
  color: rgba(255, 255, 255, 0.62);
  background: var(--navy);
  border-top: 0;
}

body.site-home footer .container,
body.legal-page footer {
  width: 100%;
}

body.site-home .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

body.site-home .footer-links {
  display: flex;
  gap: 22px;
}

body.site-home .footer-links a,
body.legal-page footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

body.site-home .footer-links a:hover,
body.legal-page footer a:hover {
  color: #fff;
}

body.legal-page .top-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

body.legal-page .container {
  max-width: 860px;
  padding: clamp(24px, 5vw, 58px);
}

body.legal-page p,
body.legal-page li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

body.legal-page .updated {
  margin: 8px 0 42px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

body.legal-page h2 {
  margin: 34px 0 10px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 750;
  line-height: 1.05;
}

body.legal-page ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
}

body.legal-page li {
  position: relative;
  list-style: none;
  padding-left: 22px;
}

body.legal-page li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  content: "";
  background: var(--blue);
  border-radius: 50%;
}

body.legal-page .container > p:first-child a {
  display: inline-flex;
  align-items: center;
  color: var(--blue);
  font-weight: 900;
}

body.legal-page footer {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding-inline: 24px;
  text-align: center;
}

body.legal-page footer p {
  color: rgba(255, 255, 255, 0.62) !important;
}

@media (max-width: 900px) {
  body.site-home .brand-logo-grid,
  body.site-home .vert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body.site-home .services-grid,
  body.site-home .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body.site-home .nav-inner,
  body.legal-page .site-top {
    align-items: flex-start;
    flex-direction: column;
  }

  body.legal-page .top-note {
    text-align: left;
  }

  body.site-home main,
  body.legal-page .container {
    width: calc(100% - 24px);
    margin-top: 14px;
  }

  body.site-home .container,
  body.legal-page .container {
    padding-inline: 22px;
  }

  body.site-home .hero h1 {
    font-size: clamp(38px, 12vw, 58px);
  }

  body.site-home .brand-logo-grid,
  body.site-home .vert-grid {
    grid-template-columns: 1fr;
  }

  body.site-home .hero-cta,
  body.site-home .contact-form button,
  body.site-home .nav-cta {
    width: 100%;
  }

  body.site-home .contact-form {
    padding: 18px;
  }
}
