/* =========================================================
   PRIMERA — International freight forwarding
   White #FFFFFF · Black #111111 · Mint #BFE9E0
   Display: Playfair Display · Body: Inter
   Aesthetic: luxury-corporate, boutique, Scandinavian minimal
   ========================================================= */

:root {
  --white: #ffffff;
  --ink: #111111;
  --ink-soft: #51514e;
  --muted: #8c8c88;
  --mint: #bfe9e0;
  --mint-deep: #5fb0a0;       /* legible mint for small accents/hubs */
  --paper: #f7f8f7;           /* faint neutral section tint */
  --paper-mint: #f1f8f6;      /* faint mint tint */
  --line: #ececec;
  --line-soft: #f1f1f1;

  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1200px;
  --pad: clamp(22px, 5vw, 52px);
  --section-y: clamp(90px, 12vw, 158px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink-soft);
  background: var(--white);
  line-height: 1.7;
  font-size: 17px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select, button { font-family: inherit; font-size: inherit; color: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: var(--section-y); position: relative; }

/* ---------- type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 28px;
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--mint-deep); }

.kicker {
  font-size: 12px; font-weight: 500; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--ink); margin-bottom: 30px;
}

.section-title {
  font-family: var(--font-head); font-weight: 400;
  font-size: clamp(28px, 3.7vw, 46px);
  line-height: 1.12; letter-spacing: -0.015em; color: var(--ink);
  max-width: 20ch;
}
.section-title + .lead, .section-title + p, .section-title + .about__copy { margin-top: 26px; }
.lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; color: var(--ink-soft); max-width: 56ch; }
p { color: var(--ink-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 17px 34px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; border: 1px solid var(--ink); border-radius: 0;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn__arrow { transition: transform .35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(5px); }
.btn--solid { background: var(--ink); color: var(--white); }
.btn--solid:hover { background: #000; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); transform: translateY(-2px); }
.btn--block { width: 100%; }

/* ---------- brand lockup (eagle above · mint globe behind · black wordmark) ---------- */
.brand { display: inline-flex; align-items: center; color: var(--ink); }
.brand__lockup { position: relative; display: inline-flex; align-items: baseline; padding-top: 4px; }
.wordmark {
  position: relative; z-index: 2;
  font-family: var(--font-head); font-weight: 600; font-size: 26px;
  letter-spacing: 0.01em; line-height: 1; color: currentColor;
}
.wordmark b { font-weight: 600; color: currentColor; }
.brand__eagle {
  position: absolute; z-index: 3; width: 30px; height: 18px;
  top: -12px; left: 50%; transform: translateX(-58%); fill: currentColor;
}
.brand__globe {
  position: absolute; z-index: 1; width: 30px; height: 30px;
  right: -10px; top: 50%; transform: translateY(-48%);
  fill: none; stroke: var(--mint-deep); stroke-width: 1; opacity: 0.85;
}
.brand--light { color: var(--white); }
.brand--light .brand__globe { stroke: var(--mint); }

/* ---------- real logo image (replaces the SVG lockup) ---------- */
.brand__img { height: 62px; width: auto; display: block; transition: height .4s var(--ease); }
.header.scrolled .brand__img { height: 50px; }
.footer .brand__img { height: 54px; }
/* reverse the black wordmark to white on the dark footer */
.brand--light .brand__img, .brand__img--light { filter: brightness(0) invert(1); }
@media (max-width: 900px) { .brand__img { height: 48px; } }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-block: 24px; transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
}
.header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(150%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 14px;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 40px); }
.nav__link {
  position: relative; font-size: 13px; font-weight: 500; letter-spacing: 0.04em; color: var(--ink); padding-block: 6px;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--mint-deep); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__cta { margin-left: 8px; padding: 13px 24px; }

.hamburger { display: none; width: 28px; height: 18px; position: relative; }
.hamburger span { position: absolute; left: 0; height: 1.5px; width: 100%; background: var(--ink); transition: transform .3s var(--ease), opacity .2s var(--ease); }
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 8px; }
.hamburger span:nth-child(3) { top: 16px; }
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero { padding-top: clamp(160px, 24vh, 240px); padding-bottom: var(--section-y); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: var(--pad); right: var(--pad); bottom: 0; height: 1px; background: var(--line); }
.hero__globe {
  position: absolute; top: 34%; right: -5%; transform: translateY(-50%);
  width: min(56vw, 700px); height: auto; opacity: 0.9; pointer-events: none;
}
.hero__inner { position: relative; max-width: 940px; }
.hero__title {
  font-family: var(--font-head); font-weight: 400;
  font-size: clamp(40px, 6.6vw, 88px); line-height: 1.04; letter-spacing: -0.02em; color: var(--ink);
}
.hero__lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--ink-soft); max-width: 56ch; margin-top: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 42px; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 14px 38px; margin-top: 56px; padding-top: 30px; border-top: 1px solid var(--line); }
.hero__proof li { position: relative; padding-left: 22px; font-size: 13.5px; font-weight: 500; letter-spacing: 0.02em; color: var(--ink); }
.hero__proof li::before { content: ""; position: absolute; left: 0; top: 8px; width: 10px; height: 10px; border: 1px solid var(--mint-deep); border-radius: 50%; }

/* =========================================================
   WHO WE ARE
   ========================================================= */
.about__head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 72px); align-items: end; }
.about__head .eyebrow { grid-column: 1 / -1; }
.about__head .section-title { max-width: 16ch; }
.about__copy p { margin-bottom: 16px; }
.about__copy p:last-child { margin-bottom: 0; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(54px, 7vw, 90px); border-top: 1px solid var(--line); }
.stat { padding: 40px 28px 0 0; border-right: 1px solid var(--line); position: relative; }
.stat:last-child { border-right: none; }
.stat::before { content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 2px; background: var(--mint-deep); }
.stat__figure { display: block; font-family: var(--font-head); font-weight: 400; font-size: clamp(26px, 2.9vw, 40px); line-height: 1; color: var(--ink); letter-spacing: -0.01em; }
.stat__label { display: block; margin-top: 16px; font-size: 13.5px; color: var(--muted); max-width: 22ch; }

/* =========================================================
   WHAT WE STAND FOR
   ========================================================= */
.values { background: var(--paper); }
.values .section-title { margin-bottom: clamp(44px, 6vw, 76px); }
.values__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.value { background: var(--paper); padding: 44px 38px; transition: background .35s var(--ease); }
.value:hover { background: var(--white); }
.value__num { font-family: var(--font-head); font-size: 18px; color: var(--mint-deep); }
.value h3 { font-family: var(--font-head); font-weight: 500; font-size: 23px; color: var(--ink); margin: 16px 0 12px; }
.value p { font-size: 14.5px; color: var(--ink-soft); }

/* =========================================================
   WORLDWIDE REACH
   ========================================================= */
.network__inner { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(40px, 6vw, 86px); align-items: center; }
.network .lead { margin-bottom: 40px; }
.regions { display: grid; gap: 4px; }
.regions li { display: flex; gap: 16px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line); }
.regions li:first-child { border-top: none; }
.regions__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px var(--paper-mint); transform: translateY(-1px); }
.regions h4 { font-family: var(--font-head); font-weight: 500; font-size: 18px; color: var(--ink); }
.regions p { font-size: 14px; color: var(--muted); margin-top: 2px; }
.worldmap { width: 100%; height: auto; overflow: visible; }
.dot { fill: #d6dbda; }
.dot--hub { fill: var(--mint-deep); }
.route { fill: none; stroke: var(--mint-deep); stroke-width: 0.6; opacity: 0.85; }
.route-pulse { fill: var(--mint-deep); }
.hub-ring { fill: none; stroke: var(--mint-deep); stroke-width: 0.5; opacity: 0.6; }

/* =========================================================
   WHAT WE DO
   ========================================================= */
.services .section-title { margin-bottom: clamp(44px, 6vw, 76px); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service { background: var(--white); padding: 46px 40px; position: relative; transition: background .35s var(--ease); }
.service::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--mint); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.service:hover { background: var(--paper-mint); }
.service:hover::before { transform: scaleX(1); }
.service__num { font-family: var(--font-head); font-size: 15px; color: var(--muted); }
.service__icon { width: 40px; height: 40px; margin: 22px 0 26px; fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-family: var(--font-head); font-weight: 500; font-size: 22px; line-height: 1.2; color: var(--ink); margin-bottom: 12px; }
.service p { font-size: 14.5px; color: var(--ink-soft); }

/* =========================================================
   HOW WE WORK
   ========================================================= */
.process { background: var(--paper); text-align: center; }
.process .eyebrow { justify-content: center; }
.process .section-title { margin: 0 auto clamp(50px, 7vw, 84px); max-width: none; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; }
.steps::before { content: ""; position: absolute; top: 22px; left: 12%; right: 12%; height: 1px; background: var(--line); }
.step { position: relative; text-align: center; padding-top: 0; }
.step__num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 24px;
  font-family: var(--font-head); font-size: 16px; color: var(--ink);
  background: var(--white); border: 1px solid var(--mint-deep); border-radius: 50%; position: relative; z-index: 1;
}
.step h3 { font-family: var(--font-head); font-weight: 500; font-size: 21px; color: var(--ink); margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--ink-soft); max-width: 24ch; margin: 0 auto; }
.process__close { margin-top: clamp(44px, 6vw, 72px); font-family: var(--font-head); font-style: italic; font-size: clamp(18px, 2vw, 24px); color: var(--ink); }

/* =========================================================
   PARTNERSHIP
   ========================================================= */
.partnership__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.partnership__text .section-title { max-width: 14ch; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 32px; }
.pillars li { padding-top: 22px; border-top: 1px solid var(--ink); }
.pillars h4 { font-family: var(--font-head); font-weight: 500; font-size: 19px; color: var(--ink); margin-bottom: 10px; }
.pillars p { font-size: 14.5px; color: var(--ink-soft); }

/* =========================================================
   QUOTE BAND
   ========================================================= */
.quoteband { background: var(--ink); color: var(--white); padding-block: clamp(90px, 12vw, 150px); }
.quoteband__inner { text-align: center; }
.quoteband__rule { display: block; width: 46px; height: 1px; margin: 0 auto 34px; background: var(--mint); }
.quoteband blockquote { font-family: var(--font-head); font-weight: 400; font-style: italic; font-size: clamp(26px, 4vw, 50px); line-height: 1.18; letter-spacing: -0.015em; color: var(--white); max-width: 20ch; margin: 0 auto; }
.quoteband__by { margin-top: 36px; font-size: 11px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--mint); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(44px, 6vw, 90px); align-items: start; }
.contact__intro .section-title { max-width: 14ch; }
.contact__steps { display: grid; gap: 14px; margin: 34px 0 44px; }
.contact__steps li { position: relative; padding-left: 30px; font-size: 15px; color: var(--ink); }
.contact__steps li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 16px; height: 1px; background: var(--mint-deep);
}
.contact__details { display: grid; gap: 18px; border-top: 1px solid var(--line); padding-top: 32px; }
.contact__details li { display: flex; gap: 18px; align-items: baseline; }
.contact__details span { flex: none; width: 64px; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.contact__details a, .contact__details address { font-size: 16px; color: var(--ink); }
.contact__details a:hover { color: var(--mint-deep); }

.contact__form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact__form input, .contact__form select, .contact__form textarea {
  width: 100%; padding: 16px 2px; background: transparent; border: none; border-bottom: 1px solid var(--line-strong, #dcdcdc);
  font-size: 15px; color: var(--ink); transition: border-color .3s var(--ease);
}
.contact__form input::placeholder, .contact__form textarea::placeholder { color: var(--muted); }
.contact__form select { color: var(--muted); }
.contact__form input:focus, .contact__form select:focus, .contact__form textarea:focus { outline: none; border-color: var(--ink); }
.contact__form .invalid { border-color: #c2603f; }
.contact__form textarea { resize: vertical; }
.contact__form .btn { margin-top: 18px; }
.form-status { font-size: 14px; min-height: 18px; }
.form-status.ok { color: var(--mint-deep); font-weight: 600; }
.form-status.err { color: #b9522f; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--ink); color: rgba(255,255,255,0.66); padding-top: clamp(60px, 8vw, 96px); }
.footer__inner { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.footer__about { font-size: 14px; max-width: 36ch; margin-top: 26px; color: rgba(255,255,255,0.6); }
.footer__col h5 { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mint); margin-bottom: 22px; }
.footer__col a, .footer__contact address { display: block; color: rgba(255,255,255,0.66); font-size: 14.5px; padding-block: 6px; transition: color .25s var(--ease); }
.footer__col a:hover { color: var(--white); }
.footer__contact address { line-height: 1.7; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-block: 26px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 12.5px; color: rgba(255,255,255,0.5); }
.footer__aux a { color: var(--mint); }
.footer__aux a:hover { color: var(--white); }

/* =========================================================
   REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 28px;
    background: var(--white); padding: 44px; transform: translateX(100%);
    transition: transform .4s var(--ease); box-shadow: -20px 0 60px rgba(17,17,17,0.1);
  }
  .nav.open { transform: translateX(0); }
  .nav__link { font-size: 17px; }
  .nav__cta { margin-left: 0; }
  .hamburger { display: block; z-index: 110; }

  .about__head { grid-template-columns: 1fr; gap: 24px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: none; }
  .stat { padding-bottom: 32px; }
  .values__grid { grid-template-columns: 1fr 1fr; }
  .network__inner { grid-template-columns: 1fr; gap: 44px; }
  .network__map { order: -1; }
  .services__grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 44px 30px; }
  .steps::before { display: none; }
  .partnership__inner { grid-template-columns: 1fr; gap: 40px; }
  .contact__inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  :root { --section-y: 76px; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); padding: 28px 0; }
  .stat::before { display: none; }
  .values__grid, .services__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
