/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
img {
  max-width: 100%;
  display: block;
}

body {
  /* Default binding for the accent-as-ink token. Every .section rebinds it
     below; this covers the header, footer and the fixed-position controls,
     which sit outside any section. */
  --accent-ink: var(--accent-ink-on-base);
  font-family: var(--font-body);
  color: var(--text-on-base);
  background: var(--surface-base);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease, color 0.2s ease;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
p {
  margin: 0 0 1em;
  line-height: 1.6;
}
ul {
  margin: 0 0 1em;
  padding-left: 1.25em;
  line-height: 1.8;
}
a {
  color: var(--accent-ink);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-text);
  padding: 0.75em 1em;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

/* Header */
.site-header {
  background: var(--surface-base);
  border-bottom: 1px solid var(--border-on-base);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-header__row {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.site-header__logo {
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-on-base);
  text-decoration: none;
  font-size: 1.05rem;
}
.site-nav {
  display: flex;
  gap: 1.5rem;
  flex: 1;
  justify-content: center;
}
.site-nav a {
  color: var(--text-on-base);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a:hover {
  color: var(--accent-ink);
}

/* Theme toggle */
.theme-toggle {
  border: 1px solid var(--border-on-base);
  background: transparent;
  border-radius: 999px;
  width: 44px;
  height: 24px;
  padding: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.theme-toggle__track {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
}
.theme-toggle__thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.2s ease;
}
[data-theme="dark"] .theme-toggle__thumb {
  transform: translateX(18px);
}

/* Sections — surface axis only; theme is handled by tokens.css */
.section {
  background: var(--surface-base);
  color: var(--text-on-base);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.section {
  --accent-ink: var(--accent-ink-on-base);
}
.section--brand {
  background: var(--surface-brand);
  color: var(--text-on-brand);
  --accent-ink: var(--accent-ink-on-brand);
}
.section--alt {
  background: var(--surface-alt);
  color: var(--text-on-alt);
  --accent-ink: var(--accent-ink-on-alt);
}
.section--base {
  background: var(--surface-base);
  color: var(--text-on-base);
  --accent-ink: var(--accent-ink-on-base);
}
.section__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section--brand .muted {
  color: var(--text-muted-on-brand);
}
.section--alt .muted {
  color: var(--text-muted-on-alt);
}
.section--base .muted {
  color: var(--text-muted-on-base);
}

/* Diagonal modifier — layers on top of any surface (independent of both
   the surface and theme axes) for a bolder, more graphic top-of-page
   treatment. Extra bottom padding keeps content clear of the cut edge. */
.section--diagonal {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 90%);
}
.section--diagonal .section__inner {
  padding-bottom: 7rem;
}
/* Photo modifier — a fourth independent piece: a background photo behind
   any surface/theme/diagonal combination, with a fixed navy wash so text
   stays legible regardless of the photo's own colors or which theme is
   active. Pair with an inline style="background-image:url(...)". */
.section--photo {
  background-size: cover;
  background-position: center;
  position: relative;
}
.section--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 20, 33, 0.72);
}
.section--photo .section__inner {
  position: relative;
  z-index: 1;
}

@media (max-width: 720px) {
  .section--diagonal {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 95%);
  }
  .section--diagonal .section__inner {
    padding-bottom: 4rem;
  }
}

.lede {
  font-size: 1.15rem;
  max-width: 60ch;
}

/* Buttons */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.btn {
  display: inline-block;
  padding: 0.85em 1.6em;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
}
.btn--accent {
  background: var(--accent);
  color: var(--accent-text);
}
.btn--accent:hover {
  background: var(--accent-hover);
}
.btn--outline {
  border-color: currentColor;
  color: inherit;
  background: transparent;
}
.btn--outline:hover {
  background: rgba(127, 127, 127, 0.12);
}

/* Current-page nav indicator */
.site-nav a[aria-current="page"] {
  color: var(--accent-ink);
  font-weight: 700;
}

/* Generic card — used for pillar/value/service-teaser/coming-soon grids.
   Default reads against alt/base surfaces; --on-brand variant reads
   against the brand navy surface. */
.card {
  background: var(--surface-base);
  color: var(--text-on-base);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: 0 1px 4px rgba(20, 32, 43, 0.08);
}
[data-theme="dark"] .card {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.card--on-brand {
  background: rgba(255, 255, 255, 0.07);
  color: inherit;
  border: 1px solid var(--border-on-brand);
  box-shadow: none;
}
.card {
  --accent-ink: var(--accent-ink-on-base);
}
.card--on-brand {
  --accent-ink: var(--accent-ink-on-brand);
}
.card h3 {
  margin-bottom: 0.5rem;
}
.card p:last-child {
  margin-bottom: 0;
}
.card a {
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}
.card a:hover {
  text-decoration: underline;
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3em 0.7em;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  margin-bottom: 0.75rem;
}
.badge--muted {
  background: rgba(127, 127, 127, 0.16);
  color: var(--text-muted-on-base);
}

/* Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Stat block (cargo theft figures) */
.stat-card h3 {
  font-size: 2.5rem;
  color: var(--accent-ink);
  margin-bottom: 0.35rem;
}

/* Trust strip — icon row */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}
.trust-item {
  flex: 1 1 200px;
  text-align: center;
}
.trust-item .icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 0.75rem;
  color: var(--accent-ink);
}
.trust-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}
.trust-item p {
  font-size: 0.92rem;
}

/* Process steps (How We Operate) */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.step {
  text-align: center;
}
.step__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 0.75rem;
}
@media (max-width: 800px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* Media placeholder — stands in for Adobe Stock photography (Phase 1
   checklist item, not yet sourced). Swap for a real <img> later; the
   hex variant is the distinctive crop treatment from the competitor
   reference set. */
.media-placeholder {
  background: linear-gradient(135deg, var(--surface-alt), var(--border-on-base));
  border: 1px dashed var(--border-on-base);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted-on-base);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
  min-height: 260px;
}
.media-placeholder--hex {
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  border: none;
}

/* Split section — full-bleed text/media pair with a diagonal inner edge
   on the media side, for founder-story / mission-style content. */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.split-section__media {
  min-height: 420px;
  position: relative;
}
.split-section__media .media-placeholder,
.split-section__media img {
  position: absolute;
  inset: 0;
  min-height: 0;
  border-radius: 0;
  border: none;
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
}
.split-section__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split-section__text {
  background: var(--surface-base);
  color: var(--text-on-base);
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.split-section__text--alt {
  background: var(--surface-alt);
  color: var(--text-on-alt);
}
@media (max-width: 860px) {
  .split-section {
    grid-template-columns: 1fr;
  }
  .split-section__media {
    min-height: 240px;
  }
  .split-section__media .media-placeholder,
  .split-section__media img {
    clip-path: none;
  }
  .split-section__text {
    padding: 3rem 1.5rem;
  }
}

/* Contact form */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-grid[hidden] {
  display: none;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.form-field--full {
  grid-column: 1 / -1;
}
.form-field label {
  font-weight: 600;
  font-size: 0.9rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.7em 0.85em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-on-base);
  background: var(--surface-base);
  color: var(--text-on-base);
}
.form-field textarea {
  resize: vertical;
  min-height: 120px;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--accent-ink);
  outline-offset: 1px;
}
.form-note {
  font-size: 0.85rem;
}
.form-status {
  display: none;
  padding: 0.85em 1em;
  border-radius: var(--radius-sm);
  background: rgba(232, 163, 61, 0.16);
  border: 1px solid var(--accent);
  font-size: 0.9rem;
  margin-top: 1rem;
}
.form-status--visible {
  display: block;
}
@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-field--full {
    grid-column: auto;
  }
}

/* Footer */
.site-footer {
  background: var(--surface-alt);
  color: var(--text-muted-on-alt);
  border-top: 1px solid var(--border-on-alt);
}
.site-footer__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .site-header__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .site-header__row {
    justify-content: space-between;
  }
  .site-nav {
    justify-content: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
  }
}

/* ==========================================================================
   Launch pass — added 2026-09-08.
   Everything below composes with the surface/theme/diagonal axes above; no
   rule here hardcodes a color that a theme would need to override.
   ========================================================================== */

/* Focus ring — one visible, consistent ring on every interactive control.
   :focus-visible, not :focus, so a mouse click doesn't leave a ring behind. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent-ink);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Mobile nav ------------------------------------------------------------- */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border-on-base);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-on-base);
  cursor: pointer;
}
.nav-toggle svg {
  width: 22px;
  height: 22px;
}
.nav-toggle__close,
.nav-toggle[aria-expanded="true"] .nav-toggle__open {
  display: none;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__close {
  display: block;
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }
  .site-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    padding-top: 0.5rem;
  }
  .site-nav--open {
    display: flex;
  }
  .site-nav a {
    padding: 0.85rem 0.25rem;
    border-top: 1px solid var(--border-on-base);
    font-size: 1rem;
  }
}

/* Back to top ------------------------------------------------------------ */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-on-base);
  background: var(--surface-base);
  color: var(--text-on-base);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(20, 32, 43, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 20;
}
.back-to-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  border-color: var(--accent-ink);
  color: var(--accent-ink);
}

/* Floating contact CTA — public pages, hidden on Contact itself (there is
   nothing to send someone to from the page they are already on). Sits above
   the back-to-top button, which is why the two bottom offsets differ. */
.contact-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7em 1.15em;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(20, 32, 43, 0.25);
  z-index: 20;
}
.contact-fab:hover {
  background: var(--accent-hover);
}
.contact-fab svg {
  width: 17px;
  height: 17px;
}
@media (max-width: 480px) {
  .contact-fab span {
    display: none;
  }
  .contact-fab {
    padding: 0.85em;
  }
}

/* Form states ------------------------------------------------------------ */
/* Honeypot. Off-screen rather than display:none — some bots skip anything
   the CSS hides outright, and this one needs to look fillable. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-error {
  color: #B3261E;
  font-size: 0.85rem;
  font-weight: 600;
}
[data-theme="dark"] .field-error {
  color: #F2B8B5;
}
.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: #B3261E;
}
[data-theme="dark"] .form-field input[aria-invalid="true"],
[data-theme="dark"] .form-field select[aria-invalid="true"],
[data-theme="dark"] .form-field textarea[aria-invalid="true"] {
  border-color: #F2B8B5;
}

/* Status region. Colour is carried by a left rule plus a tint, never by the
   text colour alone — a colour-blind visitor gets the same information from
   the wording, which is why each message starts with a bolded verdict. */
.form-status {
  border-left: 4px solid var(--accent);
}
.form-status--success {
  background: rgba(29, 122, 74, 0.12);
  border-color: #1D7A4A;
}
.form-status--error {
  background: rgba(179, 38, 30, 0.10);
  border-color: #B3261E;
}
.form-status--notice {
  background: rgba(232, 163, 61, 0.16);
  border-color: var(--accent);
}
.form-status a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}
.form-status__detail {
  margin-top: 0.6rem;
  font-size: 0.8rem;
}
.form-status__detail summary {
  cursor: pointer;
  opacity: 0.75;
}
.form-status__detail code {
  display: block;
  margin-top: 0.4rem;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(127, 127, 127, 0.14);
  word-break: break-word;
  font-size: 0.78rem;
}

button.is-submitting {
  opacity: 0.75;
  cursor: progress;
}

/* FAQ -------------------------------------------------------------------- */
.faq {
  max-width: 780px;
  margin: 0 auto;
}
.faq details {
  border-bottom: 1px solid var(--border-on-base);
}
.section--alt .faq details {
  border-bottom-color: var(--border-on-alt);
}
.faq summary {
  cursor: pointer;
  padding: 1.15rem 2rem 1.15rem 0;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.35rem;
  top: 1.5rem;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--accent-ink);
  border-bottom: 2px solid var(--accent-ink);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}
.faq details[open] summary::after {
  transform: rotate(-135deg);
}
.faq details > p:last-child {
  padding-bottom: 1.15rem;
  margin-bottom: 0;
}

/* Footer ----------------------------------------------------------------- */
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}
.site-footer__grid h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.85rem;
  color: var(--text-on-alt);
}
.site-footer__grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 2;
}
.site-footer a {
  color: inherit;
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--accent-ink);
  text-decoration: underline;
}
.site-footer__brand {
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-on-alt);
  display: block;
  margin-bottom: 0.6rem;
}
.site-footer__legal {
  border-top: 1px solid var(--border-on-alt);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
  font-size: 0.85rem;
}
.site-footer__legal ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 0;
  margin: 0;
}
@media (max-width: 720px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Error page ------------------------------------------------------------- */
.error-code {
  font-size: 5rem;
  line-height: 1;
  color: var(--accent-ink);
  margin-bottom: 0.25rem;
}

/* Reduced motion --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print ------------------------------------------------------------------ */
/* A quote request or a services page does get printed — by a broker
   attaching it to a bid packet. Drop the chrome, force light ink on white
   regardless of the active theme, and expand link targets so the printout
   still carries the URLs. */
@media print {
  .site-header,
  .site-footer,
  .back-to-top,
  .contact-fab,
  .skip-link,
  .theme-toggle,
  .nav-toggle,
  form button[type="submit"] {
    display: none !important;
  }
  html,
  body,
  .section,
  .section--brand,
  .section--alt,
  .section--base,
  .card {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
  }
  .section--diagonal {
    clip-path: none !important;
  }
  .section--photo::before {
    display: none !important;
  }
  .section--photo {
    background-image: none !important;
  }
  .section__inner {
    padding: 1.25rem 0 !important;
    max-width: none;
  }
  .faq details {
    /* open:true is a DOM property, not a style, so force the answer visible */
    display: block !important;
  }
  .faq details > * {
    display: block !important;
  }
  a[href^="http"]::after,
  a[href^="mailto:"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    word-break: break-all;
  }
  .stat-card h3 {
    color: #000 !important;
  }
}

/* Header control cluster — theme toggle + hamburger sit together so the
   hamburger can appear at the mobile breakpoint without reflowing the logo. */
.site-header__controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
@media (max-width: 720px) {
  .site-header__row {
    width: 100%;
  }
}
