/* ==========================================================
   Flexa Logistics – static single page
   ========================================================== */

:root {
  --navy: #0E2F5E;
  --navy-dark: #081B38;
  --red: #E1141E;
  --red-dark: #B80F18;
  --red-soft: #FF6B72;
  --ink: #0B1F3F;
  --text: #46566F;
  --muted: #5A6A85;
  --line: #E4E8F0;
  --bg-alt: #F3F5F9;
  --on-dark: #D6DEEB;
  --on-dark-muted: #B9C6DA;
  --green: #1FAF5A;
  --green-dark: #178F49;

  --font-display: 'Archivo', sans-serif;
  --font-body: 'Instrument Sans', system-ui, sans-serif;

  --header-h: 81px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--navy); text-decoration: none; transition: color .2s, background-color .2s, border-color .2s; }
a:hover { color: var(--red); }

h1, h2, p { margin: 0; }

section[id] { scroll-margin-top: var(--header-h); }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.text-red { color: var(--red); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  padding: 11px 22px;
  border-radius: 4px;
  border: 1.5px solid transparent;
  text-align: center;
}
.btn--lg { font-size: 16px; padding: 16px 30px; }

.btn--red { color: #fff; background: var(--red); }
.btn--red:hover { color: #fff; background: var(--red-dark); }

.btn--navy { color: #fff; background: var(--navy); }
.btn--navy:hover { color: #fff; background: var(--navy-dark); }

.btn--ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { color: #fff; border-color: #fff; }

.btn--outline { color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { color: var(--red); border-color: var(--red); }

.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-group--mt { margin-top: 40px; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red-soft);
  margin-bottom: 16px;
}
.eyebrow--dark { color: var(--red); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-dark); color: #C9D3E3; font-size: 13px; }
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 24px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar a { color: #C9D3E3; }
.topbar a:hover { color: #fff; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.header__logo img { height: 56px; width: auto; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav__link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav__link.is-active { color: var(--red); border-bottom-color: var(--red); }

.menu-toggle {
  display: none;
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: 4px;
  width: 48px;
  height: 48px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}
.hero__stripes {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-62deg, transparent 0 120px, rgba(255,255,255,.035) 120px 122px);
}
.hero__speed {
  position: absolute;
  right: -8%;
  top: 18%;
  width: 55%;
  display: flex;
  flex-direction: column;
  gap: 22px;
  opacity: .9;
}
.hero__speed span {
  display: block;
  height: 10px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(225,20,30,0), var(--red));
  transform: skewX(-40deg);
  animation: speed 3.2s ease-in-out infinite alternate;
}
.hero__speed span:nth-child(2) { width: 80%; margin-left: 10%; animation-delay: .4s; }
.hero__speed span:nth-child(3) { width: 90%; animation-delay: .8s; }
.hero__speed span:nth-child(4) { width: 70%; margin-left: 20%; animation-delay: 1.2s; }

@keyframes speed {
  from { translate: 0 0; }
  to   { translate: -24px 0; }
}

.hero__content {
  position: relative;
  padding-top: clamp(64px, 10vw, 140px);
  padding-bottom: clamp(64px, 9vw, 120px);
}
.hero .eyebrow { margin-bottom: 20px; }
.hero__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-stretch: 118%;
  font-size: clamp(40px, 7.2vw, 96px);
  line-height: .98;
  letter-spacing: -.01em;
  max-width: 900px;
  text-wrap: balance;
}
.hero__text {
  margin-top: 28px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
  color: var(--on-dark);
  max-width: 620px;
  text-wrap: pretty;
}
.hero .btn-group { margin-top: 40px; }

/* ---------- Tagline strip ---------- */
.tagline { background: var(--navy-dark); color: #fff; }
.tagline__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  padding-top: 22px;
  padding-bottom: 22px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-stretch: 115%;
  font-size: clamp(18px, 2.2vw, 24px);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 8vw, 110px) 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: clamp(48px, 6vw, 88px) 0; }

.section__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 48px;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  color: var(--navy);
  max-width: 760px;
  text-wrap: balance;
}
.section__title--mb { margin-bottom: 48px; }

.link-arrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--red);
}
.link-arrow:hover { color: var(--navy); }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: #fff;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 170px;
  transition: background-color .2s;
}
.service-card:hover { background: #FAFBFD; }
.service-card__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 15px;
  color: var(--red);
}
.service-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.3;
  color: var(--navy);
  text-wrap: balance;
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 56px;
  align-items: start;
}
.about__text { display: flex; flex-direction: column; gap: 24px; }
.about__text .eyebrow { margin-bottom: -8px; }
.about__lead {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.4;
  color: var(--navy);
  text-wrap: pretty;
}
.about__body { font-size: 18px; line-height: 1.7; color: var(--text); text-wrap: pretty; }

.about__list { background: #fff; border-radius: 6px; padding: 36px 32px; }
.about__list-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 12px;
}
.about__list ul { list-style: none; margin: 0; padding: 0; }
.about__list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid #DDE3EC;
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink);
}
.about__list li:last-child { border-bottom: 0; }
.about__list li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  background: var(--red);
  transform: skewX(-20deg) translateY(-2px);
}

/* ---------- Prices ---------- */
.prices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 20px;
}
.price-card {
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  border-radius: 6px;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.price-card--red { border-top-color: var(--red); }
.price-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--navy);
}
.price-card__value {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-stretch: 115%;
  font-size: clamp(52px, 6vw, 72px);
  line-height: 1;
  color: var(--navy);
}
.price-card__value small {
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  color: var(--muted);
}
.price-card__desc { font-size: 17px; line-height: 1.55; color: var(--text); }

.weight-box {
  margin-top: 20px;
  background: var(--navy);
  color: #fff;
  border-radius: 6px;
  padding: 40px 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 28px;
  align-items: center;
}
.weight-box__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-stretch: 112%;
  font-size: 28px;
}
.weight-box__item { display: flex; flex-direction: column; gap: 4px; }
.weight-box__item span { font-size: 15px; color: var(--on-dark-muted); }
.weight-box__item strong { font-family: var(--font-display); font-weight: 700; font-size: 22px; }

/* ---------- CTA ---------- */
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
}
.cta__title {
  max-width: 640px;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  color: var(--navy);
  text-wrap: balance;
}

/* ---------- Contact ---------- */
.contact-hero { background: var(--navy); color: #fff; padding: clamp(56px, 7vw, 96px) 0; }
.contact-hero__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-stretch: 118%;
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1;
  text-wrap: balance;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.contact-card {
  background: #fff;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-card__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
}
.contact-card a,
.contact-card__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--navy);
}
.contact-card a:hover { color: var(--red); }
.contact-card .contact-card__email { font-size: clamp(15px, 1.5vw, 18px); overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-dark); color: var(--on-dark-muted); }
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 28px;
}
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.6; }
.footer__col a { color: var(--on-dark-muted); }
.footer__col a:hover { color: #fff; }
.footer__brand {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-stretch: 120%;
  font-size: 30px;
  color: #fff;
  margin-bottom: 4px;
}
.footer__heading { font-family: var(--font-display); font-weight: 700; color: #fff; margin-bottom: 4px; }
.footer__bottom {
  padding-top: 20px;
  padding-bottom: 32px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13px;
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 20px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(8,27,56,.25);
}
.wa-float:hover { background: var(--green-dark); color: #fff; }

/* ==========================================================
   Responsive
   ========================================================== */

/* Tablet & mobile: collapse nav into a dropdown */
@media (max-width: 899px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 8px 24px 20px;
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(8,27,56,.08);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { display: flex; }

  .nav__link {
    font-size: 18px;
    padding: 12px 0;
    border-bottom: 1px solid #EEF1F6;
  }
  .nav__link.is-active { border-bottom-color: #EEF1F6; }

  .nav__portal { margin-top: 12px; font-size: 16px; padding: 14px 22px; }
}

/* Phones */
@media (max-width: 600px) {
  :root { --header-h: 69px; }
  .container { padding-left: 16px; padding-right: 16px; }
  .nav { padding-left: 16px; padding-right: 16px; }

  .topbar__inner { justify-content: center; }
  .header__logo img { height: 44px; }

  .hero__speed { width: 80%; right: -30%; top: 8%; opacity: .5; }

  .btn--lg { width: 100%; }
  .hero .btn-group .btn,
  .cta .btn-group,
  .btn-group--mt { width: 100%; }

  .tagline__inner { gap: 4px 20px; }

  .service-card { min-height: 0; padding: 26px 22px; }
  .about__list,
  .price-card,
  .weight-box { padding: 30px 22px; }
  .contact-card { padding: 26px 22px; }

  .wa-float { right: 14px; bottom: 14px; padding: 12px 16px; font-size: 14px; }
  .footer__bottom { padding-bottom: 80px; } /* room for floating button */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__speed span { animation: none; }
}
