/* ============================================================
   ROYAL CARGO CARRIERS — design tokens
   Palette: deep highway navy + royal gold, on a warm paper cream
   Type: Fraunces (display) / Barlow Condensed (utility, uppercase)
         / Inter (body)
   Signature: the dashed "route line" — a truck's path — that
   threads through the hero, the stats bar, and the branch map.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Barlow+Condensed:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root{
  --navy: #0B1F3A;
  --navy-deep: #071528;
  --steel: #1C3D6B;
  --gold: #C9A227;
  --gold-light: #E6C558;
  --cream: #F4F1E8;
  --paper: #FBF9F3;
  --ink: #16181B;
  --ink-soft: #4B5158;
  --line: #DBD5C2;
  --white: #FFFFFF;
  --danger: #B23A2E;

  --font-display: 'Fraunces', serif;
  --font-utility: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4{ font-family: var(--font-display); margin: 0; line-height: 1.15; color: var(--navy); }
p{ margin: 0; }

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

.eyebrow{
  font-family: var(--font-utility);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 600;
  font-size: 13px;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before{
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ===================== HEADER ===================== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-crest{
  height: 54px;
  width: auto;
  max-width: 120px;
  border-radius: 6px;
  background: var(--white);
 
  object-fit: contain;
  flex-shrink: 0;
}
.brand-name{
  font-family: var(--font-display);
  color: var(--white);
  font-size: 29px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.1;
}
.brand-name span{
  display: block;
  font-family: var(--font-utility);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--gold-light);
  font-weight: 600;
  margin-top: 2px;
}

.main-nav ul{
  display: flex;
  gap: 6px;
}
.main-nav a{
  font-family: var(--font-utility);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
  font-size: 14.5px;
  color: rgba(255,255,255,.82);
  padding: 10px 16px;
  border-radius: 3px;
  transition: color .15s ease, background .15s ease;
}
.main-nav a:hover{ color: var(--white); background: rgba(255,255,255,.06); }
.main-nav a.active{ color: var(--navy-deep); background: var(--gold); }

.nav-toggle{
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 4px;
  padding: 8px 10px;
  color: var(--white);
}

@media (max-width: 880px){
  .nav-toggle{ display: inline-flex; }
  .main-nav{
    position: absolute;
    top: 84px;
    left: 0; right: 0;
    background: var(--navy);
    border-bottom: 1px solid rgba(255,255,255,.08);
    display: none;
  }
  .main-nav.open{ display: block; }
  .main-nav ul{ flex-direction: column; padding: 10px 28px 20px; gap: 2px; }
  .main-nav a{ display: block; }
}

/* ===================== BUTTONS ===================== */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-utility);
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 600;
  font-size: 14.5px;
  padding: 14px 26px;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-gold{ background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover{ background: var(--gold-light); transform: translateY(-1px); }
.btn-outline{ background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-outline:hover{ border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-outline-dark{ background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-dark:hover{ background: var(--navy); color: var(--white); }

/* ===================== HERO ===================== */
.hero{
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero .container{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
  padding-top: 76px;
  padding-bottom: 76px;
}
.hero h1{
  color: var(--white);
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 600;
  margin: 18px 0 22px;
}
.hero h1 em{
  font-style: italic;
  color: var(--gold-light);
}
.hero p.lede{
  font-size: 17px;
  color: rgba(255,255,255,.82);
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero-actions{ display: flex; gap: 14px; flex-wrap: wrap; }

/* --- signature route-line animation --- */
.route-card{
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 22px;
}
.route-card svg{ width: 100%; height: auto; overflow: visible; }
.route-path{
  fill: none;
  stroke: rgba(255,255,255,.28);
  stroke-width: 2;
  stroke-dasharray: 7 8;
}
.route-path-active{
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.5;
  stroke-dasharray: 640;
  stroke-dashoffset: 640;
  animation: draw-route 5.5s ease-in-out infinite;
}
@keyframes draw-route{
  0%{ stroke-dashoffset: 640; }
  55%{ stroke-dashoffset: 0; }
  85%{ stroke-dashoffset: 0; opacity: 1;}
  100%{ stroke-dashoffset: 0; opacity: 0; }
}
.route-node circle{ fill: var(--navy-deep); stroke: var(--gold); stroke-width: 2; }
.route-node text{
  font-family: var(--font-utility);
  font-size: 11px;
  letter-spacing: .06em;
  fill: rgba(255,255,255,.75);
  text-transform: uppercase;
}
.route-truck{
  offset-rotate: 0deg;
  animation: move-truck 5.5s ease-in-out infinite;
}
@keyframes move-truck{
  0%{ offset-distance: 0%; opacity: 0; }
  6%{ opacity: 1; }
  58%{ offset-distance: 100%; opacity: 1; }
  70%{ opacity: 0; }
  100%{ opacity: 0; offset-distance: 100%; }
}

@media (prefers-reduced-motion: reduce){
  .route-path-active, .route-truck{ animation: none; stroke-dashoffset: 0; offset-distance: 100%; opacity: 1;}
}

@media (max-width: 880px){
  .hero .container{ grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 44px; }
}

/* ===================== STATS STRIP ===================== */
.stats{
  background: var(--gold);
}
.stats .container{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 30px;
  padding-bottom: 30px;
}
.stat h3{
  font-size: clamp(26px, 3vw, 36px);
  color: var(--navy-deep);
}
.stat p{
  font-family: var(--font-utility);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--navy-deep);
  opacity: .8;
  margin-top: 4px;
}
@media (max-width: 700px){
  .stats .container{ grid-template-columns: repeat(2, 1fr); }
}

/* ===================== SECTIONS ===================== */
section{ padding: 84px 0; }
.section-head{ max-width: 640px; margin-bottom: 46px; }
.section-head h2{ font-size: clamp(26px, 3.2vw, 38px); margin-top: 14px; font-weight: 600; }
.section-head p{ color: var(--ink-soft); margin-top: 14px; font-size: 16px; }

.section-alt{ background: var(--cream); }

/* ===================== CARD GRIDS ===================== */
.grid{ display: grid; gap: 24px; }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px){
  .grid-3{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px){
  .grid-3, .grid-2{ grid-template-columns: 1fr; }
}

.card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 30px 26px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover{
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -18px rgba(11,31,58,.35);
  border-color: var(--gold);
}
.card-icon{
  width: 44px; height: 44px;
  margin-bottom: 18px;
  color: var(--navy);
}
.card-icon svg{ width: 100%; height: 100%; }
.card h3{ font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.card p{ color: var(--ink-soft); font-size: 15px; }
.card ul{ margin-top: 14px; display: grid; gap: 7px; }
.card ul li{
  font-size: 14px;
  color: var(--ink-soft);
  padding-left: 18px;
  position: relative;
}
.card ul li::before{
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 2px;
  background: var(--gold);
}

/* ===================== BRANCH CHIPS / MAP STRIP ===================== */
.route-strip{
  position: relative;
  padding: 46px 0 10px;
}
.route-strip::before{
  content: "";
  position: absolute;
  left: 28px; right: 28px; top: 68px;
  height: 2px;
  background-image: linear-gradient(90deg, var(--line) 60%, transparent 40%);
  background-size: 14px 2px;
}
.chip-row{
  display: flex;
  flex-wrap: wrap;
  gap: 14px 10px;
  position: relative;
}
.chip{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-utility);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
}
.chip .dot{
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--navy);
}

/* ===================== CTA BANNER ===================== */
.cta-banner{
  background: var(--navy);
  color: var(--white);
}
.cta-banner .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h2{ color: var(--white); font-size: clamp(24px,3vw,32px); max-width: 26ch; }
.cta-banner p{ color: rgba(255,255,255,.75); margin-top: 8px; }

/* ===================== PAGE HEADER (inner pages) ===================== */
.page-header{
  background: var(--navy);
  color: var(--white);
  padding: 64px 0 46px;
}
.page-header h1{ color: var(--white); font-size: clamp(30px,4vw,44px); margin-top: 14px; }
.page-header p{ color: rgba(255,255,255,.75); margin-top: 14px; max-width: 60ch; font-size: 16px; }

/* ===================== FOOTER ===================== */
.site-footer{
  background: var(--navy-deep);
  color: rgba(255,255,255,.7);
  padding: 56px 0 26px;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
}
.footer-grid h4{
  color: var(--white);
  font-family: var(--font-utility);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 13px;
  margin-bottom: 16px;
}
.footer-grid ul{ display: grid; gap: 10px; }
.footer-grid a:hover{ color: var(--gold-light); }
.footer-brand p{ margin-top: 12px; font-size: 14.5px; max-width: 34ch; }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
}
@media (max-width: 880px){
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}

/* ===================== FORMS (contact page) ===================== */
.form-grid{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 44px;
}
@media (max-width: 880px){ .form-grid{ grid-template-columns: 1fr; } }

.field{ margin-bottom: 18px; }
.field label{
  display: block;
  font-family: var(--font-utility);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--navy);
  margin-bottom: 7px;
}
.field input, .field select, .field textarea{
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 4px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
}
.field textarea{ resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus{
  border-color: var(--gold);
}

.info-card{
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
  padding: 32px;
}
.info-card h3{ color: var(--white); font-size: 20px; margin-bottom: 18px; }
.info-row{ display: flex; gap: 14px; margin-bottom: 20px; }
.info-row svg{ width: 20px; height: 20px; flex-shrink: 0; color: var(--gold-light); margin-top: 2px; }
.info-row div p{ font-size: 14.5px; color: rgba(255,255,255,.8); }
.info-row div strong{ display:block; color: var(--white); font-size: 15px; margin-bottom: 2px; }

.form-note{
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* ===================== ABOUT PAGE EXTRAS ===================== */
.value-list{ display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
@media (max-width: 620px){ .value-list{ grid-template-columns: 1fr; } }

.split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 880px){ .split{ grid-template-columns: 1fr; } }

.timeline{ position: relative; padding-left: 26px; border-left: 2px dashed var(--line); display: grid; gap: 26px; }
.timeline-item h4{ font-size: 16px; color: var(--navy); }
.timeline-item span{
  font-family: var(--font-utility);
  color: var(--gold);
  font-weight: 700;
  letter-spacing: .05em;
}
.timeline-item p{ color: var(--ink-soft); font-size: 14.5px; margin-top: 4px; }
