/* McGregor Traffic Solutions - streamlined site styles */

:root {
  --navy: #102a43;
  --navy-dark: #081b2c;
  --blue: #1769aa;
  --blue-dark: #0f548b;
  --green: #3d7f61;
  --ink: #1d2a35;
  --muted: #5f6f7d;
  --line: #d9e2ea;
  --surface: #f4f7f9;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(16, 42, 67, 0.12);
  --radius: 18px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue);
}

a:hover {
  color: var(--blue-dark);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.15;
}

h1 {
  max-width: 850px;
  margin-bottom: 24px;
  font-size: clamp(2.55rem, 6vw, 5rem);
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

p:last-child {
  margin-bottom: 0;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.narrow {
  max-width: 850px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 15px;
  top: -80px;
  z-index: 9999;
  padding: 12px 18px;
  color: var(--white);
  background: var(--navy-dark);
  border-radius: 8px;
}

.skip-link:focus {
  top: 15px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(217, 226, 234, 0.9);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--navy);
  text-decoration: none;
}

.brand:hover {
  color: var(--navy);
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand strong {
  font-size: 0.98rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.73rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

.site-nav a {
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--blue);
}

.site-nav .nav-feature {
  padding: 10px 15px;
  color: var(--white);
  background: var(--blue);
  border-radius: 999px;
}

.site-nav .nav-feature:hover {
  color: var(--white);
  background: var(--blue-dark);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 44px;
  padding: 9px;
  border: 0;
  background: transparent;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--navy);
}

.hero,
.landing-hero {
  position: relative;
  overflow: hidden;
  padding: 94px 0 82px;
  background:
    radial-gradient(circle at 85% 25%, rgba(23, 105, 170, 0.15), transparent 34%),
    linear-gradient(135deg, #f7fafc 0%, #eef4f8 100%);
}

.hero-grid,
.landing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(340px, 0.93fr);
  align-items: center;
  gap: 65px;
}

.hero-copy .lead,
.landing-hero .lead {
  max-width: 730px;
}

.lead {
  margin-bottom: 30px;
  color: #415364;
  font-size: clamp(1.08rem, 2vw, 1.34rem);
}

.eyebrow {
  margin-bottom: 13px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin: 29px 0;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 2px solid transparent;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 10px 28px rgba(23, 105, 170, 0.22);
}

.button-primary:hover {
  color: var(--white);
  background: var(--blue-dark);
}

.button-secondary {
  color: var(--navy);
  background: var(--white);
  border-color: #bccbd7;
}

.button-secondary:hover {
  color: var(--navy);
  border-color: var(--navy);
}

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

.button-light:hover {
  color: var(--navy);
  background: #eaf1f5;
}

.hero-points,
.check-list {
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.hero-points li,
.check-list li {
  position: relative;
  padding-left: 28px;
}

.hero-points li {
  color: #415364;
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-points li::before,
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--green);
  font-weight: 800;
}

.hero-image,
.landing-figure {
  position: relative;
  margin: 0;
}

.hero-image::before,
.landing-figure::before {
  content: "";
  position: absolute;
  inset: 20px -20px -20px 20px;
  z-index: 0;
  background: rgba(23, 105, 170, 0.12);
  border-radius: var(--radius);
}

.hero-image img,
.landing-figure img {
  position: relative;
  z-index: 1;
  min-height: 390px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.landing-figure img {
  min-height: 480px;
  object-fit: contain;
  background: var(--white);
}

.landing-figure figcaption {
  position: relative;
  z-index: 2;
  margin-top: 13px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: right;
}

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

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-grid div {
  padding: 25px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  text-align: center;
}

.trust-grid div:last-child {
  border-right: 0;
}

.trust-grid strong,
.trust-grid span {
  display: block;
}

.trust-grid strong {
  font-size: 1.15rem;
}

.trust-grid span {
  margin-top: 2px;
  color: #c9d6df;
  font-size: 0.78rem;
}

.section {
  padding: 88px 0;
}

.section-muted {
  background: var(--surface);
}

.section-dark {
  color: #dbe7ee;
  background: var(--navy-dark);
}

.section-dark h2,
.section-dark h3,
.section-dark .eyebrow {
  color: var(--white);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 80px;
}

.two-column p {
  color: var(--muted);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: end;
  gap: 60px;
  margin-bottom: 42px;
}

.section-heading h2 {
  margin-bottom: 0;
}

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

.light-heading > p {
  color: #dbe7ee;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.service-card {
  min-height: 225px;
  padding: 29px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(16, 42, 67, 0.06);
}

.service-card p {
  color: var(--muted);
}

.featured-card {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.featured-card h3,
.featured-card p,
.featured-card .text-link {
  color: var(--white);
}

.card-label {
  margin-bottom: 28px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.72;
}

.text-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
  text-decoration: none;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  overflow: hidden;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(16, 42, 67, 0.06);
  text-decoration: none;
}

.project-card:hover {
  color: var(--blue);
  transform: translateY(-2px);
}

.project-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.project-card span {
  display: block;
  padding: 16px;
  font-size: 0.85rem;
  font-weight: 700;
}

.callout {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-dark), var(--navy));
}

.callout h2,
.callout .eyebrow {
  color: var(--white);
}

.callout h2 {
  max-width: 800px;
  margin-bottom: 0;
}

.callout-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.contact-grid,
.quote-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 0.8fr);
  gap: 70px;
  align-items: start;
}

.contact-grid > div:first-child p {
  max-width: 680px;
  color: var(--muted);
}

.contact-card,
.quote-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-card p {
  margin-bottom: 20px;
}

.contact-card a {
  font-weight: 700;
}

.site-footer {
  color: #c8d4dd;
  background: var(--navy-dark);
}

.footer-inner {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.footer-inner p {
  margin: 0;
  font-size: 0.8rem;
}

.footer-inner div {
  display: flex;
  gap: 18px;
}

.footer-inner a {
  color: #dce8ef;
  font-size: 0.78rem;
}

.compact li {
  margin-bottom: 8px;
}

.problem-section {
  text-align: center;
}

.large-copy {
  color: var(--muted);
  font-size: 1.16rem;
}

.vehicle-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: flex-start;
}

.vehicle-list span {
  padding: 11px 15px;
  color: var(--navy);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  padding: 0;
  margin: 0;
  counter-reset: step;
  list-style: none;
}

.process-grid li {
  padding: 26px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

.process-grid li > span {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--navy-dark);
  background: var(--white);
  border-radius: 50%;
  font-weight: 800;
}

.process-grid p {
  color: #c7d4dc;
  font-size: 0.9rem;
}

.application-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 45px;
}

.application-grid div {
  padding: 22px;
  background: var(--surface);
  border-left: 4px solid var(--blue);
  border-radius: 0 12px 12px 0;
}

.application-grid strong,
.application-grid span {
  display: block;
}

.application-grid strong {
  margin-bottom: 5px;
  color: var(--navy);
}

.application-grid span {
  color: var(--muted);
  font-size: 0.88rem;
}

.landing-projects {
  grid-template-columns: repeat(3, 1fr);
}

.faq-section details {
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.faq-section summary {
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
}

.faq-section details p {
  padding: 14px 0 0 22px;
  color: var(--muted);
}

.quote-section {
  background:
    radial-gradient(circle at 15% 20%, rgba(23, 105, 170, 0.12), transparent 35%),
    #f7fafc;
}

.quote-card .check-list li {
  margin-bottom: 12px;
}

.small-note {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.8rem;
}

@media (max-width: 980px) {
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 82px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(16, 42, 67, 0.12);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 8px;
  }

  .site-nav .nav-feature {
    margin-top: 8px;
    text-align: center;
  }

  .nav-toggle {
    display: block;
  }

  .hero-grid,
  .landing-grid,
  .two-column,
  .contact-grid,
  .quote-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .landing-grid {
    gap: 45px;
  }

  .hero-image img,
  .landing-figure img {
    min-height: auto;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .application-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .callout-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .header-inner {
    min-height: 72px;
  }

  .brand img {
    width: 49px;
    height: 49px;
  }

  .brand small {
    display: none;
  }

  .brand strong {
    max-width: 210px;
    font-size: 0.82rem;
  }

  .site-nav {
    top: 72px;
  }

  .hero,
  .landing-hero {
    padding: 62px 0 58px;
  }

  h1 {
    font-size: clamp(2.35rem, 13vw, 3.8rem);
  }

  .section {
    padding: 64px 0;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid div:nth-child(2) {
    border-right: 0;
  }

  .trust-grid div:nth-child(-n+2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .two-column {
    gap: 30px;
  }

  .card-grid,
  .project-grid,
  .process-grid,
  .application-grid,
  .landing-projects {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }

  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-points {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
