/* Truck Proud — static site styles. Colors match the original WordPress/Elementor theme. */
:root {
  --navy: #001C38;
  --red: #DE1E2D;
  --red-hover: #FF0000;
  --sky: #6EC1E4;
  --white: #FFFFFF;
  --muted: rgba(255, 255, 255, 0.65);
  --rule: rgba(255, 255, 255, 0.19);
  --container: 1140px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

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

a { color: var(--white); text-decoration: none; transition: color .2s; }
a:hover, a:focus-visible { color: var(--sky); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }

h1, h2, h3 { font-weight: 500; line-height: 1.2; margin: 0 0 .5em; }
h1, .h1 { font-size: clamp(30px, 4vw, 40px); }
p { margin: 0 0 .9em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--white); color: var(--navy); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 10px; top: 10px; }

.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* ---------- Buttons ---------- */
.btn, button[type="submit"] {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font: inherit;
  font-size: 19px;
  line-height: 1.6;
  border: 0;
  border-radius: 5px;
  padding: 5px 30px;
  cursor: pointer;
  transition: background-color .2s;
}
.btn:hover, .btn:focus-visible, button[type="submit"]:hover, button[type="submit"]:focus-visible { background: var(--red-hover); color: var(--white); }
.btn-lg { padding: 14px 24px; }

/* ---------- Header ---------- */
.site-header { padding: 30px 0 20px; position: relative; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo img { width: 120px; height: 120px; object-fit: contain; background: var(--white); }
.logo { margin-left: 62px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.site-nav a {
  display: block;
  position: relative;
  padding: 31px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--red);
  opacity: 0;
  transition: opacity .2s;
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { opacity: 1; }
.site-nav a.active { color: var(--sky); }
.site-nav a.active::after { background: var(--sky); opacity: 1; }

.nav-toggle { display: none; background: none; border: 0; color: var(--white); font-size: 25px; padding: 8px; cursor: pointer; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle:hover { color: var(--sky); }

@media (max-width: 1024px) {
  .logo { margin-left: 0; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #f2f2f2;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { color: #000; padding: 14px 24px; }
  .site-nav a::after { display: none; }
  .site-nav a:hover, .site-nav a:focus-visible { background: #ededed; color: #000; }
  .site-nav a.active { background: var(--sky); color: #000; }
}
@media (max-width: 767px) {
  .site-header { padding: 20px 0; }
  .logo img { width: 90px; height: 90px; }
}

/* ---------- Main ---------- */
main { padding-bottom: 60px; }

.intro { padding-top: 20px; }
.lead { font-size: 16px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 50px; }
.card { text-align: center; padding: 0 10px; }
.card-img { display: block; margin-bottom: 24px; overflow: hidden; }
.card-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s; }
.card-img:hover img { transform: scale(1.03); }
.card .btn { margin-bottom: 20px; }
.card p { line-height: 1.6; }

.hero { margin: 0 0 20px; }
.hero img { width: 100%; }

.body-lg { font-size: 17px; line-height: 1.6; }
.center .btn { margin-top: 20px; }

/* Icon boxes (Get Educated / Get Involved) */
.icon-boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: 40px 0 20px; }
.icon-box { display: block; text-align: center; color: var(--white); }
.icon-box .box-icon { font-size: 50px; width: auto; height: 1em; aspect-ratio: auto; color: var(--red); margin: 0 auto 20px; }
.icon-box h2 { font-size: 28px; margin-bottom: 16px; transition: color .2s; }
.icon-box p { line-height: 1.6; }
.icon-box:hover h2, .icon-box:focus-visible h2 { color: var(--sky); }
.icon-box:hover, .icon-box:focus-visible { color: var(--white); }

/* Accordion */
.training { margin-top: 60px; scroll-margin-top: 20px; }
.section-title { font-size: 32px; margin-bottom: 14px; }
.accordion { border: 1px solid #d5d8dc; }
.accordion-item + .accordion-item { border-top: 1px solid #d5d8dc; }
.accordion-item summary {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary:hover { color: var(--sky); }
.accordion-item .opened { display: none; }
.accordion-item[open] .opened { display: block; }
.accordion-item[open] .closed { display: none; }
.accordion-item[open] summary { border-bottom: 1px solid #d5d8dc; }
.link-list { list-style: none; margin: 0; padding: 15px 20px; }
.link-list li { display: flex; align-items: center; gap: 8px; padding: 1px 0; }
.link-list .icon { font-size: 14px; }
.link-list li.nolink { padding-left: 22px; }

/* Prose pages */
.prose { padding-top: 10px; }
.prose p { line-height: 1.6; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px; padding-top: 10px; }
.icon-list { list-style: none; margin: 0; padding: 0; }
.icon-list li { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.icon-list .icon { font-size: 14px; }
.icon-list-lg li { font-size: 20px; gap: 30px; padding: 6px 0; }
.icon-list-lg .icon { font-size: 25px; }
.map { margin-top: 20px; }
.map iframe { display: block; width: 100%; height: 300px; border: 0; }

.contact-form label { display: block; font-size: 16px; line-height: 1; margin-top: 10px; }
.contact-form input, .contact-form textarea {
  display: block; width: 100%;
  font: inherit; font-size: 15px;
  padding: 8px 16px;
  margin-top: 0;
  border: 1px solid #69727d;
  border-radius: 3px;
  background: var(--white); color: #1f2124;
}
.contact-form textarea { resize: vertical; min-height: 96px; }
.contact-form button { width: 100%; margin-top: 10px; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin-top: 12px; min-height: 1.5em; }

/* ---------- Footer ---------- */
.site-footer { padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; padding-bottom: 70px; }
.footer-logo img { width: 180px; }
.footer-about p { font-size: 14px; font-weight: 300; color: var(--muted); line-height: 1.5; }
.social { list-style: none; margin: 30px 0 0; padding: 0; display: flex; gap: 9px; }
.social a {
  display: grid; place-items: center;
  width: 33px; height: 33px;
  background: rgba(255, 255, 255, 0.21);
  border-radius: 3px;
  color: var(--white);
  font-size: 15px;
  transition: background-color .2s, color .2s;
}
.social a:hover, .social a:focus-visible { background: var(--white); color: var(--navy); }
.footer-contact h2 { font-size: 18px; font-weight: 500; margin-bottom: 14px; }

.footer-bottom { border-top: 1px solid var(--rule); margin: 0 30px; }
.footer-bottom-inner { display: flex; justify-content: space-around; align-items: center; min-height: 60px; gap: 10px 30px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.footer-bottom p { margin: 0; font-size: 12px; font-weight: 300; color: #adadad; }
.footer-bottom a { color: var(--white); }
.footer-bottom a:hover { color: var(--sky); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards, .icon-boxes { gap: 24px; }
}
@media (max-width: 767px) {
  .cards, .icon-boxes, .contact-grid { grid-template-columns: 1fr; }
  .cards { gap: 50px; margin-top: 30px; }
  .icon-boxes { gap: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding-bottom: 40px; }
  .footer-logo img { width: 130px; }
  .site-footer { padding-top: 40px; }
  .footer-bottom { margin: 0; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .icon-list-lg li { font-size: 18px; gap: 18px; }
}
