/* ═══════════════════════════════════════
   FREIGHT COUNTRY — DESIGN SYSTEM v2
   Theme: Light, clean, red & blue brand
═══════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Syne:wght@700;800&display=swap');

/* ─── TOKENS ─── */
:root {
  --red:          #E8172C;
  --red-dark:     #c01020;
  --red-light:    #ff3347;
  --red-soft:     #fff0f1;
  --blue:         #1B3F8B;
  --blue-mid:     #2451ab;
  --blue-light:   #3d6fd4;
  --blue-soft:    #eef2fb;
  --white:        #ffffff;
  --off-white:    #f8f9fc;
  --gray-50:      #f4f5f8;
  --gray-100:     #e8eaf0;
  --gray-200:     #d0d4de;
  --gray-400:     #8c94a8;
  --gray-600:     #5a6278;
  --gray-800:     #2d3348;
  --gray-900:     #181c28;

  --font-display: 'DM Sans', sans-serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;

  --radius:       8px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --transition:   0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm:    0 1px 4px rgba(27,63,139,0.08);
  --shadow-md:    0 4px 20px rgba(27,63,139,0.12);
  --shadow-lg:    0 12px 48px rgba(27,63,139,0.16);
  --shadow-red:   0 8px 32px rgba(232,23,44,0.25);
  --shadow-blue:  0 8px 32px rgba(27,63,139,0.25);
  --max-width:    1280px;
  --nav-height:   72px;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--gray-800);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ─── LAYOUT ─── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ─── TYPOGRAPHY ─── */
.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}
.label::before {
  content: '';
  display: inline-block;
  width: 20px; height: 2px;
  background: var(--red);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-top: 12px;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 17px;
  color: var(--gray-600);
  max-width: 560px;
  line-height: 1.7;
}
.section-header { margin-bottom: 56px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin: 0 auto; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  border-radius: 100px;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: var(--shadow-red);
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(232,23,44,0.35);
}
.btn-blue {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}
.btn-blue:hover {
  background: var(--blue-mid);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(27,63,139,0.35);
}
.btn-outline-red {
  border: 2px solid var(--red);
  color: var(--red);
  background: transparent;
}
.btn-outline-red:hover { background: var(--red-soft); transform: translateY(-2px); }
.btn-outline-blue {
  border: 2px solid var(--blue);
  color: var(--blue);
  background: transparent;
}
.btn-outline-blue:hover { background: var(--blue-soft); transform: translateY(-2px); }
.btn-white {
  background: var(--white);
  color: var(--blue);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.2); }
.btn-ghost-blue {
  color: var(--blue);
  font-weight: 700;
  padding: 0;
  gap: 6px;
}
.btn-ghost-blue:hover { gap: 10px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }

/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo img { height: 36px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  border-radius: 2px;
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--gray-900); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block; height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--gray-900);
  transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--red); }
.mobile-close {
  position: absolute;
  top: 20px; right: 28px;
  font-size: 36px;
  color: var(--gray-600);
  cursor: pointer;
  line-height: 1;
}

/* ─── BADGE / PILL ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(232,23,44,0.15);
}
.badge-blue {
  background: var(--blue-soft);
  color: var(--blue);
  border-color: rgba(27,63,139,0.15);
}

/* ─── CARDS ─── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ─── FORMS ─── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-700, var(--gray-600));
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 15px;
  color: var(--gray-900);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27,63,139,0.12);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--gray-400); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ─── STATS TICKER ─── */
.stats-bar {
  background: var(--blue);
  padding: 14px 0;
  overflow: hidden;
}
.stats-ticker {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: ticker 35s linear infinite;
}
.stat-item {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.stat-item .num {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
}
.stat-item .txt {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
}
.stat-sep { color: rgba(255,255,255,0.3); font-size: 18px; }
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  padding-top: calc(var(--nav-height) + 72px);
  padding-bottom: 72px;
  background: #1e2d5a;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232,23,44,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .label { color: rgba(255,255,255,0.6); }
.page-hero .label::before { background: rgba(255,255,255,0.4); }
.page-hero .section-title { color: #fff; }
.page-hero .section-subtitle { color: rgba(255,255,255,0.72); }
.page-hero .display-lg { font-size: clamp(32px,4vw,52px); font-weight: 700; color: #fff; line-height: 1.15; letter-spacing: -0.02em; }
.page-hero .body-lg { font-size: 17px; color: rgba(255,255,255,0.68); line-height: 1.75; }
@media(max-width:768px){ .page-hero { padding-top: calc(var(--nav-height) + 32px); padding-bottom: 56px; } }

/* ─── FOOTER ─── */
footer {
  background: var(--gray-900);
  color: var(--white);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 72px 0 56px;
}
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.7; margin-top: 16px; max-width: 280px; }
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 10px;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.4); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}
.footer-social a:hover { border-color: var(--red); color: var(--white); background: var(--red); }

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── FAQ ─── */
.faq-item { border-bottom: 1px solid var(--gray-100); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  transition: color var(--transition);
}
.faq-q:hover { color: var(--blue); }
.faq-arrow {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gray-50);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: var(--blue);
  flex-shrink: 0;
  transition: transform var(--transition), background var(--transition);
}
.faq-item.open .faq-arrow { transform: rotate(180deg); background: var(--blue-soft); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.open .faq-a { max-height: 200px; padding-bottom: 20px; }

/* ─── DIVIDER ─── */
.section-divider {
  width: 100%; height: 1px;
  background: var(--gray-100);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .nav-links, .nav-cta .btn-outline-blue { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
}