/* ===================================================================
   Roads Training – one-page site
   =================================================================== */

:root {
  --ink:        #101826;
  --ink-soft:   #1b2740;
  --slate:      #434f68;
  --mute:       #656f87;
  --line:       #e4e8ef;
  --bg:         #ffffff;
  --bg-alt:     #f6f8fb;
  --accent:     #b0631f;
  --accent-dk:  #8f5522;
  --accent-lt:  #e9a860;

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Merriweather Sans", var(--sans);

  --wrap: 1140px;
  --radius: 14px;
  --header-h: 72px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--slate);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent-dk); }

h1, h2, h3 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
}

p { margin: 0 0 1.1em; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--accent-lt);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------------------- Header ---------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}

.site-header.is-stuck {
  background: rgba(16, 24, 38, .92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08), 0 10px 30px rgba(0, 0, 0, .18);
}

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

.brand img {
  width: 148px;
  height: auto;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .45));
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}

.nav a {
  color: rgba(255, 255, 255, .88);
  text-decoration: none;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
  transition: color .2s ease;
}
.nav a:hover { color: #fff; }

.nav .nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 9px 18px;
  border-radius: 999px;
  text-shadow: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.nav .nav-cta:hover { background: var(--accent-dk); color: #fff; }

@media (max-width: 860px) {
  .nav a:not(.nav-cta) { display: none; }
  .brand img { width: 124px; }
}

/* ---------------------------- Hero ---------------------------- */

.hero {
  position: relative;
  min-height: clamp(580px, 92vh, 860px);
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 100px;
  overflow: hidden;
  isolation: isolate;
}

.hero-img, .hero-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  z-index: -2;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(10, 16, 28, .78) 0%, rgba(10, 16, 28, .46) 45%, rgba(10, 16, 28, .30) 78%, rgba(10, 16, 28, .42) 100%),
    linear-gradient(to right, rgba(10, 16, 28, .68) 0%, rgba(10, 16, 28, .28) 52%, rgba(10, 16, 28, 0) 86%);
}

.hero-inner { color: #fff; }

.hero-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0 0 22px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--accent-lt);
  text-shadow: 0 1px 16px rgba(0, 0, 0, .7);
}
.hero-meta::before {
  content: "";
  flex: none;
  width: 36px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-lt);
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 6.2vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  max-width: 16ch;
  text-shadow: 0 2px 40px rgba(0, 0, 0, .55);
  margin-bottom: .28em;
}

.hero-lede {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, .93);
  max-width: 54ch;
  text-shadow: 0 1px 18px rgba(0, 0, 0, .6);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------------------------- Buttons ---------------------------- */

.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  text-decoration: none;
  padding: 15px 28px;
  border-radius: 999px;
  transition: transform .18s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 26px rgba(176, 99, 31, .38);
}
.btn-primary:hover { background: var(--accent-dk); color: #fff; }

.btn-ghost {
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .16); border-color: #fff; }

.btn-lg { font-size: 19px; padding: 18px 36px; }

/* ---------------------------- Section shell ---------------------------- */

.section { padding: clamp(68px, 9vw, 112px) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section-title {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  max-width: 22ch;
}

.section-lede {
  font-size: 1.15rem;
  color: var(--mute);
  max-width: 58ch;
  margin-bottom: 0;
}

/* ---------------------------- Service cards ---------------------------- */

.cards {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: 0 1px 2px rgba(16, 24, 38, .04);
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.card:hover {
  box-shadow: 0 16px 40px rgba(16, 24, 38, .09);
  border-color: #d4dae5;
  transform: translateY(-3px);
}

.card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  padding-top: 14px;
  border-top: 3px solid var(--accent);
  display: inline-block;
}

.card > p { margin-bottom: 0; }

.card details { margin-top: 18px; }

.card summary {
  cursor: pointer;
  list-style: none;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--accent-dk);
  display: block;
}
.card summary::-webkit-details-marker { display: none; }
.card summary::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  margin-left: 9px;
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .22s ease;
}
.card details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.card summary:hover { color: var(--accent); }

.details-body {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
  color: var(--mute);
}
.details-body p:last-child { margin-bottom: 0; }

/* ---------------------------- Clients ---------------------------- */

.clients {
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, #223150 0%, rgba(34, 49, 80, 0) 60%),
    var(--ink);
  color: rgba(255, 255, 255, .82);
}

.clients .section-title { color: #fff; max-width: 24ch; }

.clients-head { text-align: center; }
.clients-head .section-title { margin-inline: auto; }

.stats {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(28px, 7vw, 72px);
}
.stats li { display: flex; flex-direction: column; align-items: center; }
.stats strong {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.1rem);
  font-weight: 800;
  color: var(--accent-lt);
  line-height: 1;
}
.stats span {
  font-size: 12.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  margin-top: 9px;
}

.marquee {
  list-style: none;
  margin: 52px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.marquee li {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(.95rem, 1.6vw, 1.1rem);
  color: #fff;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  padding: 10px 20px;
}

.sectors {
  margin-top: 64px;
  padding-top: 52px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  columns: 4 220px;
  column-gap: 34px;
}

.sector {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: 34px;
}

.sector h3 {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent-lt);
  margin-bottom: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.sector ul { list-style: none; margin: 0; padding: 0; }

.sector li {
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .78);
  padding: 4px 0;
}

/* ---------------------------- Testimonials ---------------------------- */

.quotes {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.quote {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px 28px;
  position: relative;
}

.quote::before {
  content: "\201C";
  font-family: var(--display);
  font-size: 5rem;
  line-height: 1;
  color: var(--accent);
  opacity: .22;
  position: absolute;
  top: 10px;
  left: 22px;
}

.quote blockquote { margin: 0; position: relative; flex: 1; }
.quote blockquote p {
  font-size: 16.5px;
  line-height: 1.68;
  color: var(--slate);
  margin-bottom: 1.3em;
}

.quote figcaption {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.quote .who { font-weight: 600; color: var(--ink); font-size: 15px; }
.quote .org { font-size: 14px; color: var(--mute); margin-top: 2px; }

/* ---------------------------- About ---------------------------- */

.about-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1.3fr .95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.about-copy .lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ink);
}

.bio {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
}

.bio-photo {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 6px 20px rgba(16, 24, 38, .16);
  margin-bottom: 18px;
}

.bio h3 { font-size: 1.25rem; font-weight: 700; }
.bio p { font-size: 15.5px; }

.sig {
  font-family: var(--display);
  font-weight: 700;
  color: var(--accent-dk);
  margin-bottom: .8em;
}

.byline {
  display: flex;
  flex-direction: column;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin-bottom: 0;
  font-size: 15px;
}
.byline strong { color: var(--ink); }
.byline span { color: var(--mute); font-size: 14px; }

.friends {
  margin-top: clamp(44px, 6vw, 68px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.friends h3 {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 14px;
}
.friends ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.friends li {
  font-family: var(--display);
  font-weight: 700;
  color: var(--ink);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 15px;
}

/* ---------------------------- Contact ---------------------------- */

.contact {
  background: linear-gradient(170deg, var(--ink-soft) 0%, var(--ink) 100%);
  color: rgba(255, 255, 255, .8);
  text-align: center;
}
.contact .section-title { color: #fff; margin-inline: auto; }

.contact-lede {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, .78);
  max-width: 54ch;
  margin: 0 auto 2.2rem;
}

.contact-note {
  margin: 26px 0 0;
  font-size: 14.5px;
  color: rgba(255, 255, 255, .5);
}

/* ---------------------------- Footer ---------------------------- */

.site-footer {
  background: #0a1019;
  padding: 52px 0 46px;
  text-align: center;
  color: rgba(255, 255, 255, .45);
}

.footer-logo { width: 150px; height: auto; margin: 0 auto 16px; opacity: .9; }

.footer-tag {
  font-size: 13px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 1.4em;
}

.footer-legal { font-size: 14px; margin: 0; }

/* ---------------------------- Responsive ---------------------------- */

@media (max-width: 1040px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .sectors { columns: 2 200px; }
}

@media (max-width: 680px) {
  .cards, .quotes { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 20px; }
  .hero { padding-bottom: 116px; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .sectors { columns: 1; }
  .stats { gap: 30px; }
}

/* Very narrow phones: the rule and the line no longer fit side by side. */
@media (max-width: 380px) {
  .hero-meta { display: block; }
  .hero-meta::before { display: block; margin-bottom: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .btn:hover, .card:hover { transform: none; }
}
