/* ============================================================
   Royal Family Trucking — one-page site
   Palette: navy #142A5C / deep #0C1B3A, gold #C9A24B, ink #1B2233
   Type: Barlow Condensed (display) + Inter (body), self-hosted
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/barlow-condensed-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/barlow-condensed-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/barlow-condensed-700italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/inter-var.woff2') format('woff2');
}

/* ---------- Tokens & reset ---------- */
:root {
  --navy: #142A5C;
  --navy-deep: #0C1B3A;
  --royal: #1B3A8C;
  --gold: #C9A24B;
  --gold-light: #E4C97E;
  --ink: #1B2233;
  --muted: #5A6478;
  --line: #E3E7EF;
  --bg: #FFFFFF;
  --bg-alt: #F5F7FB;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(12, 27, 58, 0.10);
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Inter', 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- Type helpers ---------- */
.gold-text { color: var(--gold); }

.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }

.section-eyebrow {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.95rem;
  color: var(--royal);
  margin-bottom: 10px;
}
.coverage .section-eyebrow,
.section-quote .section-eyebrow { color: var(--gold); }

.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.3rem, 4.5vw, 3.4rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  color: var(--navy);
  margin-bottom: 18px;
}
.section-sub { max-width: 640px; color: var(--muted); margin-bottom: 8px; }

.confirm-tag {
  display: inline-block;
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8A6D1F;
  background: #FBF3DC;
  border: 1px dashed #D9BC6E;
  border-radius: 4px;
  padding: 1px 6px;
  vertical-align: middle;
  cursor: help;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
  padding: 14px 30px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-deep);
  box-shadow: 0 8px 22px rgba(201, 162, 75, 0.35);
}
.btn-gold:hover { box-shadow: 0 12px 28px rgba(201, 162, 75, 0.5); }
.btn-outline {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--royal); }
.btn-sm { padding: 10px 20px; font-size: 0.95rem; }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.nav.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(12, 27, 58, 0.08); }
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}
.nav-logo img { height: 56px; width: auto; }
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.nav-links a {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1rem;
  color: var(--navy);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.22s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
  white-space: nowrap;
}
.nav-phone:hover { color: var(--royal); }
.nav-burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-burger span {
  display: block;
  width: 24px; height: 2.5px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: center;
  padding: 150px 0 80px;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('../assets/img/fleet-a.jpg') center 38% / cover no-repeat;
  transform: scale(1.04);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(8, 18, 42, 0.92) 0%, rgba(12, 27, 58, 0.72) 45%, rgba(12, 27, 58, 0.28) 100%),
    linear-gradient(to top, rgba(8, 18, 42, 0.85) 0%, transparent 40%);
}
.hero-content { position: relative; z-index: 2; max-width: 780px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.92rem;
  color: var(--gold-light);
  border: 1px solid rgba(228, 201, 126, 0.4);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 22px;
  background: rgba(201, 162, 75, 0.10);
}
.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(3rem, 7.2vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}
.hero-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 52px; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  max-width: 720px;
}
.hero-stats li {
  flex: 1 1 150px;
  padding: 18px 22px 0 0;
  margin-right: 22px;
}
.hero-stats li:last-child { margin-right: 0; }
.hero-stats strong {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--gold-light);
  line-height: 1.1;
}
.hero-stats span {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Trust bar ---------- */
.trustbar { background: var(--navy-deep); color: #fff; }
.trustbar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 20px 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.98rem;
}
.trust-item svg { color: var(--gold); flex-shrink: 0; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  margin-top: 48px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(12, 27, 58, 0.16); }
.service-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.service-card:hover .service-img img { transform: scale(1.05); }
.service-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-deep);
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.service-body { padding: 30px 30px 34px; display: flex; flex-direction: column; flex: 1; }
.service-body h3 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.7rem;
  color: var(--navy);
  margin-bottom: 10px;
}
.service-body > p { color: var(--muted); margin-bottom: 18px; }
.service-list { margin-bottom: 26px; }
.service-list li {
  position: relative;
  padding: 6px 0 6px 30px;
  font-size: 0.95rem;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 11px;
  width: 18px; height: 14px;
  background: var(--gold);
  clip-path: polygon(0% 55%, 8% 45%, 35% 68%, 90% 0%, 100% 10%, 37% 100%);
}
.service-body .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Why us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
}
.why-media { position: relative; }
.why-img-main {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  width: 88%;
}
.why-img-accent {
  position: absolute;
  right: 0; bottom: -34px;
  width: 46%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 6px solid #fff;
  box-shadow: var(--shadow);
}
.why-badge {
  position: absolute;
  top: 26px; right: 4%;
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  padding: 16px 22px;
  text-align: center;
  box-shadow: 0 14px 34px rgba(12, 27, 58, 0.35);
  border-bottom: 3px solid var(--gold);
}
.why-badge strong {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}
.why-badge span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.why-content > p { color: var(--muted); max-width: 520px; }
.why-list { margin-top: 34px; counter-reset: why; }
.why-list li {
  counter-increment: why;
  position: relative;
  padding: 0 0 26px 66px;
}
.why-list li::before {
  content: counter(why, decimal-leading-zero);
  position: absolute;
  left: 0; top: -2px;
  font-family: var(--display);
  font-weight: 700;
  font-style: italic;
  font-size: 1.6rem;
  color: var(--gold);
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(12, 27, 58, 0.08);
}
.why-list h4 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.25rem;
  color: var(--navy);
  letter-spacing: 0.03em;
}
.why-list p { color: var(--muted); font-size: 0.95rem; max-width: 480px; }

/* ---------- Coverage ---------- */
.coverage {
  position: relative;
  padding: 110px 0;
  color: #fff;
  overflow: hidden;
}
.coverage-bg {
  position: absolute; inset: 0;
  background: url('../assets/img/aerial.jpg') center / cover no-repeat;
}
.coverage-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8, 18, 42, 0.95) 0%, rgba(12, 27, 58, 0.88) 55%, rgba(20, 42, 92, 0.72) 100%);
}
.coverage-content { position: relative; z-index: 2; max-width: 720px; }
.coverage-content .section-title { color: #fff; }
.coverage-content > p { color: rgba(255, 255, 255, 0.85); margin-bottom: 28px; }
.corridor-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.corridor-chips span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  padding: 8px 18px;
  border-radius: 8px;
  background: rgba(201, 162, 75, 0.14);
  border: 1px solid rgba(201, 162, 75, 0.45);
  color: var(--gold-light);
}
.coverage-cities { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.coverage-cities li {
  position: relative;
  padding-left: 18px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}
.coverage-cities li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 44px;
}
.testimonial {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  border-top: 3px solid var(--gold);
}
.stars { color: var(--gold); letter-spacing: 4px; margin-bottom: 14px; font-size: 1.05rem; }
.testimonial blockquote {
  font-size: 0.97rem;
  color: var(--ink);
  margin-bottom: 20px;
  flex: 1;
}
.testimonial figcaption strong {
  display: block;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
  color: var(--navy);
}
.testimonial figcaption span { font-size: 0.82rem; color: var(--muted); }

/* ---------- Quote ---------- */
.section-quote {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(201, 162, 75, 0.16), transparent 60%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 70%, #16305F 100%);
  color: #fff;
}
.section-quote .section-title { color: #fff; }
.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.quote-info > p { color: rgba(255, 255, 255, 0.85); max-width: 480px; }
.contact-list { margin-top: 34px; }
.contact-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-ico {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  background: rgba(201, 162, 75, 0.15);
  border: 1px solid rgba(201, 162, 75, 0.4);
  border-radius: 10px;
  color: var(--gold-light);
  font-size: 1.15rem;
  flex-shrink: 0;
}
.contact-list strong {
  display: block;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.02rem;
  color: var(--gold-light);
}
.contact-list a, .contact-list span { color: rgba(255, 255, 255, 0.88); font-size: 0.95rem; }
.contact-list a:hover { color: #fff; text-decoration: underline; }

.quote-form {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 38px 36px 32px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}
.quote-form h3 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 22px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 16px; display: flex; flex-direction: column; }
.form-field label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #FBFCFE;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.2);
}
.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 14px;
}

/* ---------- Footer ---------- */
.footer { background: #081226; color: rgba(255, 255, 255, 0.75); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding: 64px 0 48px;
}
.footer-mark {
  width: 84px; height: 84px;
  background: #fff;
  border-radius: 16px;
  display: grid;
  place-items: center;
  padding: 10px;
  margin-bottom: 18px;
  border-bottom: 3px solid var(--gold);
}
.footer-brand p { font-size: 0.9rem; max-width: 300px; }
.footer-col h4 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1.05rem;
  color: var(--gold-light);
  margin-bottom: 16px;
}
.footer-col a, .footer-col span {
  display: block;
  font-size: 0.9rem;
  padding: 4px 0;
}
.footer-col a:hover { color: #fff; }
.footer-col span.confirm-tag {
  display: inline-block;
  width: auto;
  font-size: 0.62rem;
  padding: 1px 6px;
  margin-top: 6px;
}
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 0.82rem;
}
.footer-bottom a { color: var(--gold-light); }
.footer-bottom a:hover { text-decoration: underline; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
body.noanim .reveal { opacity: 1; transform: none; transition: none; }
body.noanim .hero { min-height: 720px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav-phone { display: none; }
  .services-grid { gap: 24px; }
  .why-grid { gap: 44px; }
}

@media (max-width: 860px) {
  .section { padding: 72px 0; }

  .nav-links {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 10px 6%;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(12, 27, 58, 0.12);
    transform: translateY(-130%);
    transition: transform 0.3s ease;
    margin-left: 0;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--bg-alt); }
  .nav-burger { display: block; margin-left: auto; }
  .nav-cta { margin-left: auto; }
  .nav-cta .btn { display: none; }
  .nav-inner { gap: 12px; }

  .hero { min-height: auto; padding: 140px 0 64px; }
  .hero-stats li { flex: 1 1 40%; margin-right: 0; }

  .trustbar-inner { grid-template-columns: 1fr 1fr; gap: 6px; padding: 16px 0; }
  .trust-item { justify-content: flex-start; font-size: 0.88rem; }

  .services-grid { grid-template-columns: 1fr; }

  .why-grid { grid-template-columns: 1fr; gap: 70px; }
  .why-img-main { width: 100%; aspect-ratio: 16 / 11; }
  .why-img-accent { bottom: -30px; width: 42%; }

  .testimonial-grid { grid-template-columns: 1fr; }

  .quote-grid { grid-template-columns: 1fr; gap: 44px; }
  .quote-form { padding: 30px 24px 26px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; padding: 52px 0 40px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.9rem; }
  .hero-ctas .btn { width: 100%; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
}
