/* ═══════════════════════════════════════
   FREIGHT COUNTRY — DESIGN SYSTEM
   Single source of truth — matches index.html exactly
═══════════════════════════════════════ */

/* ─── TOKENS ─── */
:root {
  --red:        #D6202F;
  --red-dark:   #b01a26;
  --red-soft:   #fdf2f3;
  --blue:       #1B3F8B;
  --blue-mid:   #234db8;
  --blue-soft:  #eef2fb;
  --gray-100:   #e4e6ef;
  --gray-200:   #c8ccd8;
  --gray-400:   #8891a8;
  --gray-600:   #545d75;
  --gray-700:   #3a4260;
  --gray-800:   #252c45;
  --gray-900:   #141928;

  --nav-h:      60px;
  --max-w:      1240px;
  --r:          6px;
  --r-lg:       14px;
  --r-xl:       20px;
  --ease:       0.22s cubic-bezier(0.4,0,0.2,1);
  --sh-md:      0 4px 20px rgba(20,25,40,0.11);
  --sh-lg:      0 12px 40px rgba(20,25,40,0.14);
  --sh-xl:      0 24px 64px rgba(20,25,40,0.16);

  /* aliases used in pages.css */
  --nav-height: 60px;
  --max-width:  1240px;
  --radius:     6px;
  --radius-lg:  14px;
  --radius-xl:  20px;
  --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
  --shadow-md:  0 4px 20px rgba(20,25,40,0.11);
  --shadow-lg:  0 12px 40px rgba(20,25,40,0.14);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: #fff;
  color: #252c45;
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
}
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-w); margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--r);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  transition: var(--ease);
  white-space: nowrap;
  line-height: 1;
  cursor: pointer;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 16px rgba(214,32,47,0.28);
  border: none;
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(214,32,47,0.36); }
.btn-blue {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 16px rgba(27,63,139,0.28);
  border: none;
}
.btn-blue:hover { background: var(--blue-mid); transform: translateY(-1px); }
.btn-outline {
  border: 1.5px solid var(--gray-200);
  color: var(--gray-700);
  background: #fff;
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }
.btn-outline-blue {
  border: 1.5px solid var(--gray-200);
  color: var(--gray-700);
  background: #fff;
}
.btn-outline-blue:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }
.btn-ghost {
  color: var(--blue);
  font-weight: 600;
  padding: 0;
  gap: 5px;
  font-size: 15px;
  background: none;
  border: none;
}
.btn-ghost:hover { gap: 9px; }
.btn-ghost-blue {
  color: var(--blue);
  font-weight: 600;
  padding: 0;
  gap: 5px;
  font-size: 15px;
  background: none;
  border: none;
}
.btn-ghost-blue:hover { gap: 9px; }
.btn-white {
  background: #fff;
  color: var(--blue);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,0.14);
  border: none;
}
.btn-white:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.2); transform: translateY(-1px); }
.btn-lg { padding: 15px 32px; font-size: 16px; }

/* ─── LABEL ─── */
.label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 8px;
}
.label::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ─── SECTION HEADING ─── */
.section-title {
  font-size: clamp(24px, 3.2vw, 40px);
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 10px 0 14px;
}
.section-sub, .section-subtitle {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.75;
  max-width: 520px;
}
.section-hd, .section-header { margin-bottom: 52px; }
.section-hd.center, .section-header.centered { text-align: center; }
.section-hd.center .section-sub,
.section-header.centered .section-subtitle { margin: 0 auto; }

/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  transition: box-shadow var(--ease);
}
.navbar.scrolled { box-shadow: var(--sh-md); }
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-logo img { height: 28px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
  transition: color var(--ease);
  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(--ease);
}
.nav-links a:hover { color: var(--gray-900); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active-link { color: var(--red); }
.nav-links a.active-link::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  cursor: pointer;
}
.nav-hamburger span { display: block; height: 2px; background: var(--gray-800); border-radius: 2px; }

/* ─── MOBILE MENU ─── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a:not(.btn) {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
}
.mobile-menu a:not(.btn):hover { color: var(--red); }
.mobile-menu .btn { font-size: 15px; width: 220px; justify-content: center; }
.mobile-close {
  position: absolute;
  top: 20px; right: 24px;
  font-size: 32px;
  color: var(--gray-600);
  cursor: pointer;
}

/* ─── CARDS ─── */
.card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--r-lg);
  transition: transform var(--ease), box-shadow var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }

/* ─── FORMS ─── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r);
  padding: 12px 16px;
  font-size: 15px;
  color: var(--gray-900);
  transition: border-color var(--ease), box-shadow var(--ease);
  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; }

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  padding-top: calc(var(--nav-h) + 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(214,32,47,0.18) 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-sub { 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-h) + 35px); padding-bottom: 56px; } }

/* ─── FOOTER ─── */
footer { background: var(--gray-900); color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 72px 0 52px;
}
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.4); line-height: 1.75; margin-top: 14px; max-width: 260px; }
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 18px;
}
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,0.52); margin-bottom: 10px; transition: color var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.3); }
.footer-social, .f-soc { display: flex; gap: 10px; }
.footer-social a, .f-soc a {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  transition: var(--ease);
}
.footer-social a:hover, .f-soc a:hover { border-color: var(--red); color: #fff; background: var(--red); }

/* ─── FAQ ─── */
.faq-item { border-bottom: 1px solid var(--gray-100); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  transition: color var(--ease);
  user-select: none;
}
.faq-q:hover { color: var(--blue); }
.faq-arrow {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--blue);
  flex-shrink: 0;
  transition: transform var(--ease), border-color var(--ease);
}
.faq-item.open .faq-arrow { transform: rotate(180deg); border-color: var(--blue); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.75;
  transition: max-height 0.38s ease, padding 0.38s ease;
}
.faq-item.open .faq-a { max-height: 200px; padding-bottom: 18px; }

/* ─── SCROLL REVEAL ─── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.rv1, .reveal-delay-1 { transition-delay: 0.08s; }
.rv2, .reveal-delay-2 { transition-delay: 0.16s; }
.rv3, .reveal-delay-3 { transition-delay: 0.24s; }

/* ─── 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; gap: 32px; }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .nav-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 6px; }
  .form-row { grid-template-columns: 1fr; }
}