/* =========================================================
   FastHub Global Mobility - main stylesheet
   ========================================================= */

:root {
  --navy-900: #001a4b;
  --navy-800: #00286c;
  --navy-700: #0b4fb3;
  --cyan: #00a9fe;
  --blue: #0a63d1;
  --gold: #e0a92e;
  --ink: #1d2733;
  --muted: #5f6b7a;
  --line: #e3e8ee;
  --tint: #f2f6fd;
  --white: #ffffff;

  --font-head: "Plus Jakarta Sans", "Inter", "Segoe UI", sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 31, 51, 0.08);
  --container: 1200px;
  --header-h: 84px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0; }
button, input, select { font: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

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

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: 2px solid transparent;
  border-radius: 4px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }

.btn--accent { background: var(--cyan); color: var(--navy-900); }
.btn--accent:hover { background: var(--blue); color: var(--white); }

.btn--primary { background: var(--navy-800); color: var(--white); }
.btn--primary:hover { background: var(--navy-700); }


.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 15px;
  color: var(--navy-700);
}
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow--dark { color: var(--blue); }


/* ---------- Top bar ---------- */
.topbar {
  background: #f5f7fa;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
}
.topbar__lang {
  background: transparent;
  color: inherit;
  border: 0;
  cursor: pointer;
}
.topbar__lang option { color: var(--ink); }
.topbar__links { display: flex; gap: 22px; }
.topbar__links a:hover { color: var(--navy-900); }
.topbar__portal { color: var(--blue); font-weight: 600; }

/* ---------- Header / Nav ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 72px; width: auto; }
.logo--footer { display: inline-flex; }
.logo--footer img { height: 96px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
  display: block;
  padding: 10px 14px;
  font-weight: 500;
  color: var(--ink);
  border-radius: 8px;
  transition: color .2s;
}
.nav__link:hover { color: var(--blue); }
.has-dropdown > .nav__link::after {
  content: "";
  display: inline-block;
  margin-left: 7px;
  width: 6px; height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: 10px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 15px;
}
.dropdown a:hover { background: var(--tint); color: var(--blue); }
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__cta { padding: 11px 22px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 72px) 0 96px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 85% 20%, rgba(0,169,254,.10), transparent 45%),
    radial-gradient(#d5e3f7 1.2px, transparent 1.2px) 0 0 / 22px 22px,
    linear-gradient(180deg, #f7faff, #eef4fd);
  color: var(--navy-900);
}
/* Slides share one grid cell, so the hero takes the height of the tallest one */
.hero__slides { display: grid; }
.hero__slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 48px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease, visibility .8s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__art {
  width: 100%;
  max-width: 560px;
  height: auto;
  justify-self: end;
}
.hero__slide.is-active .hero__art { animation: float 6s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--navy-700);
}
.hero .eyebrow::before {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--gold);
}
.hero h1,
.hero h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--navy-900);
}
.hero p {
  margin-top: 22px;
  max-width: 540px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.btn--outline { border-color: var(--navy-900); color: var(--navy-900); }
.btn--outline:hover { background: var(--navy-900); color: var(--white); }

.hero__dots {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--container);
  padding: 0 24px;
  display: flex;
  gap: 18px;
}
.hero__dot {
  padding: 10px 0 0;
  width: 70px;
  background: none;
  border: 0;
  border-top: 3px solid rgba(0,26,75,.15);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color .3s, color .3s;
}
.hero__dot.is-active,
.hero__dot:hover { border-color: var(--cyan); color: var(--navy-900); }

/* ---------- Values ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.value {
  padding: 30px 26px;
  border-radius: var(--radius);
  background: var(--white);
  border-top: 4px solid var(--gold);
  box-shadow: var(--shadow);
}
.value__icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: var(--white);
}
.value__icon svg { width: 26px; height: 26px; }
.value h3 {
  margin-bottom: 8px;
  font-family: var(--font-head);
  font-size: 18px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy-900);
}
.value p { font-size: 15px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(60px, 9vw, 110px) 0; }
.section--tint { background: var(--tint); }

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 44px;
}
.section__head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 42px);
  color: var(--navy-900);
}
.section__title--sm { font-size: clamp(24px, 2.6vw, 30px); }
.section__lead { margin-top: 14px; font-size: 18px; color: var(--muted); }

/* ---------- Services ---------- */
.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.service {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 42px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--white) 60%, var(--tint));
  transition: border-color .25s, box-shadow .25s;
}
.service:hover { border-color: var(--cyan); box-shadow: var(--shadow); }
.service__icon {
  width: 58px; height: 58px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(0,169,254,.14);
  color: var(--blue);
}
.service__icon svg { width: 28px; height: 28px; }
.service h3 { font-family: var(--font-display); font-weight: 600; font-size: 28px; color: var(--navy-900); }
.service p { color: var(--muted); }
.service .btn { align-self: flex-start; margin-top: auto; }

.checklist { display: grid; gap: 8px; margin-bottom: 8px; }
.checklist li { position: relative; padding-left: 28px; font-weight: 500; }
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 1px;
  width: 19px; height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--navy-900);
  font-size: 11px;
  font-weight: 700;
}

/* ---------- Banner ---------- */
.banner {
  padding: clamp(80px, 12vw, 140px) 0;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(0,26,75,.95), rgba(0,40,108,.7)),
    var(--bg) center / cover no-repeat;
}
.banner__inner > * { max-width: 620px; }
.banner h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 600;
}
.banner p { margin: 18px 0 30px; font-size: 18px; color: rgba(255,255,255,.85); }

/* ---------- Insights ---------- */
.insights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.insight {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .25s;
}
.insight:hover { background: var(--tint); }
.insight__meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.insight h3 { font-size: 19px; line-height: 1.35; color: var(--navy-900); flex: 1; }
.insight h3 a:hover { color: var(--blue); }
.insight__region { font-size: 13px; font-weight: 600; color: var(--navy-700); }

.pill {
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--navy-900);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.pill--alt { background: var(--cyan); color: var(--navy-900); }
.pill--warm { background: var(--gold); color: var(--navy-900); }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--white); }
.newsletter__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.newsletter__form {
  display: flex;
  gap: 10px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.newsletter__form input {
  flex: 1;
  min-width: 0;
  padding: 12px 18px;
  border: 0;
  outline: none;
  background: transparent;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--tint);
  color: var(--muted);
  padding-top: 72px;
  border-top: 3px solid var(--gold);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr) 1.4fr;
  gap: 40px;
  padding-bottom: 60px;
}
.footer__brand p { margin: 18px 0 22px; font-size: 15px; max-width: 300px; }
.footer h4 {
  margin-bottom: 18px;
  color: var(--navy-900);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.footer__col li { margin-bottom: 10px; }
.footer__col a,
.footer__bottom a { font-size: 15px; transition: color .2s; }
.footer__col a:hover { color: var(--blue); }
.footer__cta p { margin-bottom: 18px; font-size: 15px; }

.social { display: flex; gap: 10px; }
.social a {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #c9d6ea;
  background: var(--white);
  transition: background .2s, border-color .2s;
}
.social a:hover { background: var(--navy-900); border-color: var(--navy-900); }
.social svg { width: 18px; height: 18px; fill: var(--navy-900); transition: fill .2s; }
.social a:hover svg { fill: var(--white); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  padding-bottom: 24px;
  border-top: 1px solid #d5e0f0;
  font-size: 13px;
}

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

@media (max-width: 1100px) {
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand,
  .footer__cta { grid-column: span 3; }
}

@media (max-width: 980px) {
  /* Mobile navigation */
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    height: calc(100vh - var(--header-h));
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 24px 24px 64px;
    background: var(--white);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .35s ease;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__link { padding: 16px 4px; font-size: 18px; }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 12px 12px;
    min-width: 0;
  }
  .has-dropdown > .nav__link::after { display: none; }
  .nav__cta { width: 100%; }

  .hero__slide { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .hero__art { order: -1; max-width: 400px; justify-self: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__dots { justify-content: center; }

  .insights { grid-template-columns: 1fr 1fr; }
  .services,
  .newsletter__inner { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --header-h: 72px; }
  .container { padding: 0 16px; }
  .logo img { height: 56px; }
  .values { grid-template-columns: 1fr; }
  .topbar__links li:not(:last-child) { display: none; }

  .hero__actions .btn { flex: 1 1 100%; }
  .hero { padding-top: 24px; }
  .hero__art { max-width: 300px; }
  .hero__dots { padding: 0 16px; }
  .hero__dot { width: 56px; }

  .section__head { flex-direction: column; align-items: flex-start; }
  .section__head--center { align-items: center; }

  .insights { grid-template-columns: 1fr; }
  .service { padding: 28px 22px; }
  .service .btn { align-self: stretch; }

  .newsletter__form { flex-direction: column; border-radius: var(--radius); }
  .newsletter__form .btn { width: 100%; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand,
  .footer__cta { grid-column: span 2; }
  .footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
