/* ==========================================================================
   Double Time Distribution — shared stylesheet
   Design tokens derived from the DTD fleet livery:
   ink navy cabs, white panels, the red "T" accent, diagonal slash graphics.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Colour */
  --ink:        #0E1A2B;   /* primary dark — cab navy */
  --ink-2:      #16263D;   /* secondary dark panels */
  --red:        #D5202C;   /* DTD red "T" */
  --red-dark:   #A8171F;
  --paper:      #F4F5F7;   /* light section bg */
  --white:      #FFFFFF;
  --steel:      #5B6B7C;   /* muted text on light */
  --steel-light:#9FB0C0;   /* muted text on dark */
  --line-light: #E2E6EA;
  --line-dark:  #28384F;

  /* Type */
  --display: "Archivo", sans-serif;
  --body: "Inter", sans-serif;

  /* Layout */
  --container: 1180px;
  --radius: 4px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }
* { max-width: 100%; box-sizing: border-box; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.3rem; }

.eyebrow {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  display: block;
  width: 22px;
  height: 3px;
  background: var(--red);
  transform: skewX(-20deg);
}

.lede {
  font-size: 1.15rem;
  color: var(--steel);
  max-width: 640px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost:hover { border-color: var(--white); }

.btn-dark {
  background: var(--ink);
  color: var(--white);
}
.btn-dark:hover { background: var(--ink-2); transform: translateY(-1px); }

.btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline-dark:hover { background: var(--ink); color: var(--white); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.topbar {
  background: var(--ink);
  color: var(--white);
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 38px;
}
.topbar a { color: var(--steel-light); }
.topbar a:hover { color: var(--white); }
.topbar .topbar-phone {
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.topbar .topbar-phone span { color: var(--red); margin-right: 6px; }

.navwrap {
  background: var(--white);
  border-bottom: 1px solid var(--line-light);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo img { height: 44px; width: auto; }
.logo-text {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1.1;
  color: var(--ink);
}
.logo-text span { color: var(--red); }
.logo-sub {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--steel);
  font-weight: 600;
}

.navlinks {
  display: flex;
  gap: 30px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.navlinks a {
  position: relative;
  padding: 6px 0;
  color: var(--ink);
  transition: color 0.15s ease;
}
.navlinks a:hover, .navlinks a.active { color: var(--red); }
.navlinks a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  background: var(--red);
}

.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-cta .btn { padding: 11px 22px; font-size: 0.85rem; }

.navtoggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.navtoggle span {
  width: 26px; height: 3px;
  background: var(--ink);
  display: block;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(14,26,43,0.96) 0%, rgba(14,26,43,0.82) 38%, rgba(14,26,43,0.35) 75%, rgba(14,26,43,0.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 100px 0 90px;
}
.hero-content .eyebrow { color: var(--red); }
.hero h1 {
  max-width: 780px;
  margin-bottom: 22px;
  word-break: break-word;
}
.hero h1 em {
  font-style: normal;
  color: var(--red);
}
.hero .lede {
  color: var(--steel-light);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Page hero (smaller, for sub-pages) */
.pagehero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}
.pagehero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.pagehero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(14,26,43,0.94) 10%, rgba(14,26,43,0.55) 100%);
}
.pagehero-content {
  position: relative;
  z-index: 2;
  padding: 76px 0 70px;
}
.pagehero h1 { max-width: 760px; }
.pagehero .lede { color: var(--steel-light); margin-top: 16px; }

/* ==========================================================================
   Road-line divider — signature element
   ========================================================================== */

.roadline {
  height: 1px;
  background: var(--line-light);
  position: relative;
  margin: 0;
}
.roadline::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 100%;
  height: 3px;
  background-image: repeating-linear-gradient(
    to right,
    var(--red) 0px, var(--red) 28px, transparent 28px, transparent 56px
  );
  opacity: 0.9;
}
.roadline.on-dark { background: var(--line-dark); }

/* ==========================================================================
   Stat strip
   ========================================================================== */

.statstrip {
  background: var(--ink-2);
  color: var(--white);
}
.statstrip .container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.stat {
  padding: 34px 20px;
  text-align: center;
  border-left: 1px solid var(--line-dark);
}
.stat:first-child { border-left: none; }
.stat .num {
  font-family: var(--display);
  font-weight: 900;
  font-size: 2.4rem;
  color: var(--white);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}
.stat .num .tick { color: var(--red); }
.stat .label {
  margin-top: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-light);
  font-weight: 600;
}

/* ==========================================================================
   Generic sections
   ========================================================================== */

.section { padding: 86px 0; }
.section-tight { padding: 60px 0; }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark .steel { color: var(--steel-light); }
.section-paper { background: var(--paper); }

.section-head {
  max-width: 680px;
  margin-bottom: 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.steel { color: var(--steel); }

/* ==========================================================================
   Cards / grids
   ========================================================================== */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: 0 14px 40px rgba(14,26,43,0.10); transform: translateY(-3px); }
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card .card-body { padding: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--steel); font-size: 0.95rem; margin-bottom: 16px; }
.card .card-link {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.card .card-link::after { content: "→"; transition: transform 0.15s ease; }
.card:hover .card-link::after { transform: translateX(4px); }

/* List with red tick markers */
.ticklist { list-style: none; }
.ticklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  font-size: 1rem;
}
.ticklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 14px; height: 4px;
  background: var(--red);
  transform: skewX(-20deg);
}
.ticklist.on-dark li { color: var(--steel-light); }
.ticklist.on-dark li strong { color: var(--white); }

/* Feature split (image + text) */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.reverse { grid-template-columns: 1fr 1.05fr; }
.split.reverse .split-media { order: 2; }
.split-media img {
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  object-fit: cover;
}
.split-media.tall img { aspect-ratio: 3/4; }

/* ==========================================================================
   Pull quote / award strip
   ========================================================================== */

.awardstrip {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 28px;
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
}
.awardstrip .badge {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.9rem;
  color: var(--red);
  line-height: 1;
  white-space: nowrap;
}
.awardstrip .badge small {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--steel);
  font-weight: 700;
  margin-top: 4px;
}
.awardstrip p { font-size: 0.95rem; color: var(--steel); margin: 0; }
.awardstrip p strong { color: var(--ink); }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq { border-top: 1px solid var(--line-light); }
.faq-item { border-bottom: 1px solid var(--line-light); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: "+";
  font-size: 1.6rem;
  color: var(--red);
  flex-shrink: 0;
  font-family: var(--body);
  font-weight: 400;
  transition: transform 0.2s ease;
}
details[open] .faq-q::after { transform: rotate(45deg); }
.faq-a {
  padding: 0 0 24px;
  color: var(--steel);
  max-width: 720px;
}

/* ==========================================================================
   CTA band
   ========================================================================== */

.ctaband {
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.ctaband::before {
  content: "";
  position: absolute;
  top: 0; right: -10%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent 40%, var(--red) 40.5%, var(--red) 42%, transparent 42.5%);
  opacity: 0.5;
}
.ctaband .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding: 56px 24px;
}
.ctaband h2 { margin-bottom: 6px; }
.ctaband p { color: var(--steel-light); }
.ctaband-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  background: var(--ink);
  color: var(--steel-light);
  font-size: 0.92rem;
}
.footer-top {
  padding: 64px 0 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-top .logo-text, .footer-top .logo-text span { color: var(--white); }
.footer-top .logo-sub { color: var(--steel-light); }
.footer-brand p { margin-top: 18px; max-width: 320px; }
.footer-col h4 {
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}
.footer-bottom a:hover { color: var(--white); }
.social { display: flex; gap: 14px; }
.social a {
  width: 34px; height: 34px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.social a:hover { border-color: var(--red); color: var(--white); }

.credential-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 9px 16px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-light);
}
.credential-badge::before {
  content: "";
  display: block;
  width: 14px; height: 4px;
  background: var(--red);
  transform: skewX(-20deg);
  flex-shrink: 0;
}

/* ==========================================================================
   Breadcrumb / page intro
   ========================================================================== */

.breadcrumb {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel-light);
  margin-bottom: 18px;
  font-family: var(--display);
  font-weight: 700;
}
.breadcrumb a { color: var(--steel-light); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { margin: 0 8px; opacity: 0.5; }

/* ==========================================================================
   Contact page specifics
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
}
.contact-detail {
  display: flex;
  gap: 18px;
  margin-bottom: 26px;
}
.contact-detail .ico {
  width: 44px; height: 44px;
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--red);
  font-weight: 800;
  font-family: var(--display);
}
.contact-detail h4 { font-size: 1rem; margin-bottom: 4px; }
.contact-detail p, .contact-detail a { color: var(--steel); font-size: 0.95rem; }

.formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.formgrid .full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--ink);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  font-family: var(--body);
  font-size: 0.95rem;
  background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
}
.field textarea { resize: vertical; min-height: 120px; }
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-light);
  margin-top: 26px;
}
.map-embed iframe { width: 100%; height: 280px; border: 0; display: block; }

/* ==========================================================================
   News / stories page
   ========================================================================== */

.newscard {
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: 320px 1fr;
}
.newscard img { aspect-ratio: 4/3; object-fit: cover; height: 100%; }
.newscard .newscard-body { padding: 30px; }
.newscard .date {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
  display: block;
}
.newscard p { color: var(--steel); }

/* ==========================================================================
   Editable placeholder helper (visible only as a code comment marker)
   ========================================================================== */

.editnote {
  background: #FFF8E1;
  border: 1px dashed #D8B400;
  color: #6B5500;
  font-size: 0.82rem;
  padding: 10px 14px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-family: var(--body);
}

/* ==========================================================================
   Responsive — tablet (max 980px)
   ========================================================================== */

@media (max-width: 980px) {
  .navlinks { display: none; }
  .navlinks.open {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--line-light);
    box-shadow: 0 12px 24px rgba(14,26,43,0.08);
    padding: 8px 24px 18px;
    text-transform: none;
    z-index: 100;
  }
  .navlinks.open a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line-light);
    font-size: 1rem;
  }
  .navlinks.open a:last-child { border-bottom: none; }
  .navlinks.open a.active::after { display: none; }
  .navwrap { position: relative; }
  .navtoggle { display: flex; }
  .nav-cta .btn { padding: 10px 18px; }
  .statstrip .container { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd) { border-left: none; }
  .stat { border-bottom: 1px solid var(--line-dark); }
  .stat:nth-last-child(-n+2) { border-bottom: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse .split-media { order: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .newscard { grid-template-columns: 1fr; }
  .newscard img { aspect-ratio: 16/9; }
}

/* ==========================================================================
   Responsive — mobile (max 640px)
   ========================================================================== */

@media (max-width: 640px) {
  /* Typography */
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.6rem; }

  /* Spacing */
  .section { padding: 48px 0; }
  .section-tight { padding: 40px 0; }
  .container { padding: 0 18px; }

  /* Topbar */
  .topbar .topbar-links { display: none; }
  .topbar .container { justify-content: center; }

  /* Nav */
  .nav { height: 68px; }
  .logo img { height: 36px; }
  .nav-cta .btn span.btn-label { display: none; }
  .nav-cta .btn { padding: 10px 14px; font-size: 0.85rem; }

  /* Hero */
  .hero { min-height: auto; }
  .hero-content { padding: 52px 0 46px; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .pagehero-content { padding: 48px 0 42px; }

  /* Stats — tighter on mobile */
  .statstrip .container { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 18px 10px; }
  .stat .num { font-size: 1.5rem; }
  .stat .label { font-size: 0.65rem; letter-spacing: 0.08em; }

  /* Section heads */
  .section-head { margin-bottom: 28px; }
  .lede { font-size: 1rem; }

  /* Cards */
  .card .card-body { padding: 18px; }

  /* Ticklist — force single column */
  .ticklist[style*="columns"] { columns: 1 !important; column-gap: 0 !important; }

  /* Award strip */
  .awardstrip { flex-direction: column; align-items: flex-start; gap: 10px; }
  .awardstrip .badge { font-size: 1.5rem; }

  /* CTA band */
  .ctaband .container { flex-direction: column; align-items: flex-start; padding: 40px 18px; gap: 24px; }
  .ctaband-actions { flex-direction: column; width: 100%; }
  .ctaband-actions .btn { width: 100%; justify-content: center; }

  /* Contact form */
  .formgrid { grid-template-columns: 1fr; gap: 14px; }
  .map-embed { margin-top: 18px; }
  .map-embed iframe { height: 200px; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }

  /* News */
  .newscard-body { padding: 20px; }

  /* Tall split images */
  .split-media.tall img { aspect-ratio: 16/9; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
