/* TRC Logistics corporate site
   Palette shared with the Synchron brands:
   navy #00043C (shared), purple #5D41C4 (Synchron Permits), teal #00CFBF (Synchron Safety) */

:root {
  --navy: #00043c;
  --navy-2: #0b1052;
  --ink: #00043c;
  --body: #3d3f5c;
  --muted: #5e6080;
  --line: #e2e3f0;
  --bg: #ffffff;
  --bg-soft: #f5f5ff;
  --permits: #5d41c4;
  --permits-deep: #3f18b3;
  --permits-soft: #ede8ff;
  --safety: #00cfbf;
  --safety-deep: #057a71;
  --safety-soft: #effffe;
  --radius: 14px;
  --wrap: 1160px;
  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--permits-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--safety); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10;
}
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px 24px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font: 600 1.1rem/1 var(--font-head);
}
.logo small { display: block; font: 500 .68rem/1.2 var(--font-body); color: var(--muted); letter-spacing: .12em; text-transform: uppercase; margin-top: 3px; }
.logo svg { width: 36px; height: 36px; flex: none; }

.nav { display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; }
.nav a {
  color: var(--ink); text-decoration: none;
  font: 500 .95rem/1 var(--font-head); padding: 8px 0;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--permits); }
.nav .btn { padding: 10px 16px; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }
@media (max-width: 719px) {
  .nav { width: 100%; justify-content: space-between; gap: 4px 14px; }
  .nav a { font-size: .9rem; }
  .nav .btn { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; padding: 13px 22px;
  font: 600 .98rem/1 var(--font-head); text-decoration: none;
  border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--permits); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--safety); color: var(--navy); }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-permits { background: var(--permits); color: #fff; }
.btn-permits:hover { background: var(--permits-deep); color: #fff; }
.btn-safety { background: var(--safety); color: var(--navy); }
.btn-safety:hover { background: var(--safety-deep); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero {
  background: var(--navy);
  background-image:
    radial-gradient(900px 420px at 88% -10%, rgba(93, 65, 196, .55), transparent 60%),
    radial-gradient(700px 380px at 105% 105%, rgba(0, 207, 191, .28), transparent 60%);
  color: #d8d9ee; overflow: hidden;
}
.hero .wrap { padding-top: 72px; padding-bottom: 80px; display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 1.15fr .85fr; padding-top: 96px; padding-bottom: 104px; } }
.hero h1 { color: #fff; }
.hero p.lead { font-size: 1.15rem; color: #c9cbe6; max-width: 36em; }
.eyebrow {
  display: inline-block; font: 600 .78rem/1.2 var(--font-head);
  letter-spacing: .16em; text-transform: uppercase; color: var(--safety); margin-bottom: 18px;
}
.eyebrow.permits { color: var(--permits); }
.hero-diagram { width: 100%; max-width: 440px; justify-self: center; }

.hero-brand { padding: 0; }
.hero-brand.permits {
  background: var(--navy);
  background-image: radial-gradient(900px 460px at 90% -10%, rgba(93, 65, 196, .7), transparent 60%);
}
.hero-brand.safety {
  background: var(--navy);
  background-image: radial-gradient(900px 460px at 90% -10%, rgba(0, 207, 191, .38), transparent 60%);
}
.hero-brand .wrap { grid-template-columns: 1fr; }

/* Sections */
section { padding: 72px 0; }
@media (min-width: 960px) { section { padding: 96px 0; } }
.soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { font-size: 1.08rem; color: var(--muted); }
.kicker {
  display: block; font: 600 .78rem/1.2 var(--font-head); letter-spacing: .16em;
  text-transform: uppercase; color: var(--permits); margin-bottom: 12px;
}

/* Brand cards */
.brand-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .brand-grid { grid-template-columns: 1fr 1fr; } }
.brand-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; overflow: hidden;
}
.brand-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--accent);
}
.brand-card.permits { --accent: var(--permits); --accent-soft: var(--permits-soft); }
.brand-card.safety { --accent: var(--safety); --accent-soft: var(--safety-soft); }
.brand-name { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.brand-name h3 { margin: 0; font-size: 1.5rem; }
.brand-dot {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--accent); display: grid; place-items: center;
  color: #fff; font: 700 1.2rem/1 var(--font-head);
}
.brand-card.safety .brand-dot { color: var(--navy); }
.brand-tag { font: 600 1.05rem/1.4 var(--font-head); color: var(--ink); margin: 14px 0 10px; }
.brand-card ul { padding: 0; margin: 8px 0 24px; list-style: none; display: grid; gap: 8px; }
.brand-card li { padding-left: 26px; position: relative; }
.brand-card li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px;
  border-radius: 50%; background: var(--accent-soft); border: 3px solid var(--accent);
}
.brand-meta { font-size: .93rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin-top: auto; margin-bottom: 20px; }
.brand-meta strong { color: var(--ink); }
.brand-links { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.brand-links .text-link { font: 500 .95rem/1 var(--font-head); }

/* Split / compare */
.split { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }

.compare { width: 100%; border-collapse: collapse; font-size: .97rem; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.compare th, .compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font: 600 .95rem/1.3 var(--font-head); color: #fff; }
.compare thead th:first-child { background: var(--navy); }
.compare thead th.p { background: var(--permits); }
.compare thead th.s { background: var(--safety); color: var(--navy); }
.compare tbody th { font: 500 .9rem/1.4 var(--font-head); color: var(--ink); width: 28%; background: var(--bg-soft); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); }
@media (max-width: 599px) {
  .compare, .compare thead, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare thead { display: none; }
  .compare tbody th { background: var(--navy); color: #fff; }
  .compare td::before { content: attr(data-label); display: block; font: 600 .75rem/1.4 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
}

/* Principles */
.grid-4 { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.grid-3 { display: grid; gap: 20px; }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.tile h3 { font-size: 1.1rem; }
.tile p { margin: 0; color: var(--muted); font-size: .97rem; }
.tile .num { font: 600 .85rem/1 var(--font-head); color: var(--permits); margin-bottom: 14px; display: block; }

/* Founder / quote */
.quote {
  border-left: 4px solid var(--safety); padding: 6px 0 6px 24px; margin: 0 0 24px;
  font: 500 clamp(1.2rem, 2.2vw, 1.5rem)/1.45 var(--font-head); color: var(--ink);
}

/* Feature list on brand pages */
.feature-list { display: grid; gap: 18px; }
@media (min-width: 760px) { .feature-list { grid-template-columns: 1fr 1fr; } }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature h3 { font-size: 1.08rem; margin-bottom: .4em; }
.feature p { margin: 0; color: var(--muted); font-size: .97rem; }
.permits-page .feature { border-top: 4px solid var(--permits); }
.safety-page .feature { border-top: 4px solid var(--safety); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font: 500 .92rem/1.2 var(--font-head); color: var(--ink); }

.fact-list { margin: 0; display: grid; gap: 14px; }
.fact-list div { display: grid; gap: 2px; }
.fact-list dt { font: 600 .78rem/1.3 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fact-list dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }

.note { font-size: .9rem; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--navy); color: #c9cbe6; }
.cta-band .wrap { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .cta-band .wrap { grid-template-columns: 1.3fr 1fr; } }
.cta-band h2 { color: #fff; }
.cta-band a:not(.btn) { color: #fff; }

/* Breadcrumb */
.crumbs { font-size: .88rem; margin-bottom: 18px; color: #a9abd0; }
.crumbs a { color: #d8d9ee; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #6f72a6; }

/* Footer */
.site-footer { background: #000228; color: #a9abd0; font-size: .94rem; padding: 64px 0 32px; }
.site-footer a { color: #e5e6f7; text-decoration: none; }
.site-footer a:hover { color: var(--safety); text-decoration: underline; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { font: 600 .8rem/1.2 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer .logo { color: #fff; margin-bottom: 16px; }
.site-footer .logo small { color: #a9abd0; }
.legal { border-top: 1px solid #1c2060; margin-top: 48px; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .85rem; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

.tile-link { text-decoration: none; transition: border-color .15s, transform .15s; }
.tile-link:hover { border-color: var(--permits); transform: translateY(-2px); }
.safety-page .tile-link:hover { border-color: var(--safety); }
.tile-link h3 { color: var(--ink); }

/* Legal documents */
.legal-doc { max-width: 780px; }
.legal-doc h2 { font-size: 1.35rem; margin-top: 2.2em; padding-top: .4em; scroll-margin-top: 140px; }
.legal-doc h3 { font-size: 1.05rem; margin-top: 1.6em; }
.legal-doc ul, .legal-doc ol { padding-left: 1.3em; margin: 0 0 1em; }
.legal-doc li { margin-bottom: .4em; }
.legal-doc strong { color: var(--ink); }
.legal-meta { font-size: .92rem; color: #c9cbe6; }
.callout { background: var(--bg-soft); border: 1px solid var(--line); border-left: 4px solid var(--permits); border-radius: 10px; padding: 18px 22px; margin: 0 0 1.4em; }
.callout.teal { border-left-color: var(--safety); }
.callout p:last-child { margin-bottom: 0; }
.sms { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 0 0 10px; color: var(--ink); }
.keywords { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0 !important; }
.keywords li { font: 600 .85rem/1 var(--font-head); background: var(--navy); color: #fff; border-radius: 6px; padding: 7px 10px; margin: 0 !important; }
.toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 8px; }
.toc h2 { font-size: 1rem; margin: 0 0 10px; padding: 0; }
.toc ol { margin: 0; columns: 2 260px; column-gap: 32px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.legal-doc table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .95rem; }
.legal-doc th, .legal-doc td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; }
.legal-doc th { font: 600 .9rem/1.3 var(--font-head); color: var(--ink); }

/* TRC pillars */
.pillar { position: relative; padding-top: 30px; }
.pillar-letter {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; margin-bottom: 18px;
  font: 700 1.6rem/1 var(--font-head); color: #fff; background: var(--navy);
}
.pillars .pillar:nth-child(1) .pillar-letter { background: var(--permits); }
.pillars .pillar:nth-child(2) .pillar-letter { background: var(--navy); }
.pillars .pillar:nth-child(3) .pillar-letter { background: var(--safety); color: var(--navy); }
.pillar h3 { font-size: 1.25rem; }
