/* Fonts specified in the FlexyFreight brand book. */
@font-face {
  font-family: "Gobold";
  src: local("Gobold Regular");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; }

.ff-page {
  --navy: #21283b;
  --brand-blue: #b9daeb;
  --deep-navy: #042139;
  --display-font: "Gobold", "Montserrat", Arial, sans-serif;
  --muted: #333333;
  --soft: color-mix(in srgb, var(--brand-blue) 17%, white);
  --tint: color-mix(in srgb, var(--brand-blue) 32%, white);
  --line: color-mix(in srgb, var(--brand-blue) 72%, white);
  --error: #b42332;
  container: ff-site / inline-size;
  background: #fff;
  color: var(--navy);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.ff-page h1,
.ff-page h2,
.ff-page h3,
.ff-page p { margin: 0; }
.ff-page h1,
.ff-page h2 { text-wrap: balance; }
.ff-page a { color: inherit; text-decoration: none; }
.ff-page button,
.ff-page input,
.ff-page textarea,
.ff-page select { font: inherit; }
.ff-page button,
.ff-page a,
.ff-page summary { -webkit-tap-highlight-color: transparent; }
.ff-page button:not(:disabled),
.ff-page summary { cursor: pointer; }
.ff-page :focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; }
.ff-page section[id] { scroll-margin-top: 96px; }

.ff-container {
  width: min(1272px, calc(100% - 96px));
  margin-inline: auto;
}

.ff-skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 20px;
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.ff-skip:focus { top: 16px; }

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

/* Header */
.ff-header {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}
.ff-header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.ff-desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.ff-desktop-nav a {
  font-size: 14px;
  font-weight: 550;
  color: var(--navy);
  padding: 10px 0;
  white-space: nowrap;
  transition: color .18s;
}
.ff-desktop-nav a:hover,
.ff-footer-links a:hover { color: var(--navy); }

.ff-lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  flex: none;
}
.ff-lang-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: background .18s, color .18s;
}
.ff-lang-switcher a:hover {
  color: var(--navy);
  background: var(--tint);
}
.ff-lang-switcher a[aria-current="page"] {
  background: var(--navy);
  color: #fff;
}

.ff-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 3px;
  text-align: center;
  white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s;
}
.ff-page .ff-button {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}
.ff-button-primary {
  background: var(--navy);
  color: #fff !important;
}
.ff-button-primary:hover { background: var(--brand-blue); color: var(--navy) !important; }
.ff-button:disabled {
  background: #c5cfdf;
  color: #34435e !important;
  cursor: not-allowed;
}
.ff-header-cta { flex: none; }

.ff-menu-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}
.ff-menu-lines {
  width: 17px;
  height: 12px;
  display: block;
  border-top: 2px solid;
  border-bottom: 2px solid;
  position: relative;
}
.ff-menu-lines:after {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
}

.ff-mobile-nav {
  display: none;
  padding-bottom: 20px;
}
.ff-mobile-lang {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0 4px;
  border-top: 1px solid var(--line);
  margin-top: 6px;
}
.ff-mobile-lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: #fff;
}
.ff-mobile-lang a[aria-current="page"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* Section typography */
.ff-eyebrow {
  font-family: "Montserrat", Arial, sans-serif;
  display: inline-block;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.4;
}
.ff-section-title {
  font-size: clamp(30px, 3cqi, 42px);
  font-family: var(--display-font);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.035em;
  margin-top: 12px !important;
  color: var(--navy);
}
.ff-section-lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 640px;
  margin-inline: 0;
  margin-top: 16px !important;
}
.ff-section-header {
  max-width: 640px;
  margin-inline: 0;
  text-align: left;
}

/* Full-width shipping map behind the introduction */
.ff-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(440px, 38cqi, 600px);
  padding-block: clamp(56px, 6cqi, 96px);
  background: #102837;
  color: #fff;
}
.ff-hero-map, .ff-hero::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.ff-hero-map {
  z-index: -2;
  object-fit: cover;
  object-position: center;
}
.ff-hero::before {
  content: "";
  z-index: -1;
  background: linear-gradient(90deg, #102837fa 0%, #102837ef 30%, #102837c9 46%, #10283724 73%, transparent);
}
.ff-hero .ff-button-primary, .ff-final .ff-button-primary {
  background: var(--brand-blue); color: var(--navy) !important;
}
.ff-hero .ff-button-primary:hover, .ff-final .ff-button-primary:hover { background: white; }
.ff-hero .ff-button-secondary { background: #102837bb; border-color: #b9daebb3; color: white; }
.ff-hero .ff-button-secondary:hover { background: #294454; }
.ff-hero :focus-visible { outline-color: white; }
.ff-hero h1 {
  max-width: 16ch;
  font: 400 clamp(2.5rem, 4.65cqi, 4.65rem)/1.04 var(--display-font);
  letter-spacing: -.055em;
}
.ff-hero .ff-hero-lead { max-width: 49ch; margin-top: 24px; font-size: clamp(1.05rem, 1.4cqi, 1.25rem); line-height: 1.55; color: #eef5f7; }
.ff-hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.ff-section-cta { margin-top: 24px; }
.ff-service-card[id] { scroll-margin-top: 100px; }
/* Consulting services */
.ff-services { padding: clamp(48px, 5cqi, 72px) 0; background: white; }
.ff-split-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: start;
  gap: clamp(48px, 4.5cqi, 64px);
}
.ff-services .ff-section-title { max-width: 18ch; margin-top: 0 !important; }
.ff-services-grid { display: grid; gap: 30px; }
.ff-service-card { display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: start; gap: 16px; }
.ff-service-icon { margin-top: 2px; color: var(--deep-navy); }
.ff-service-card h3 { font-size: 1.125rem; line-height: 1.4; }
.ff-service-card p { margin-top: 4px; line-height: 1.6; color: var(--muted); max-width: 62ch; }

/* Model capabilities */
.ff-ai { background: #f0f6f9; padding: clamp(52px, 6cqi, 84px) 0; }
.ff-ai .ff-section-title, .ff-final .ff-section-title { margin: 0 !important; }
.ff-ai .ff-section-lead { max-width: 72ch; }
.ff-ai-grid, .ff-delivery-sequence {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(24px, 2cqi, 32px);
}
.ff-ai-grid { margin-top: 30px; row-gap: 16px; }
.ff-ai-card {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  align-items: start;
  padding: clamp(22px, 2cqi, 30px);
  border-radius: 6px;
  background: white;
}
.ff-ai-label {
  display: flex; align-items: center; gap: 10px;
  font-size: .875rem; font-weight: 700; line-height: 1.35; color: #33586c;
}
.ff-ai-label svg { flex: none; }
.ff-ai-card h3 {
  font: 700 clamp(1.25rem, 1.75cqi, 1.5rem)/1.22 "Montserrat", Arial, sans-serif;
  letter-spacing: -.035em; text-wrap: balance;
}
.ff-ai-card p { color: var(--muted); line-height: 1.55; }
.ff-ai-invitation, .ff-final-layout {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px 32px;
}
.ff-ai-invitation { margin-top: 28px; }
.ff-ai-invitation p { max-width: 60ch; }
.ff-final { background: var(--navy); color: white; padding: clamp(46px, 5cqi, 72px) 0; }
.ff-final .ff-section-title { max-width: 26ch; color: white; }
.ff-final .ff-section-lead { max-width: 62ch; color: #e4eff5; }
.ff-final :focus-visible { outline-color: white; }

/* Delivery */
.ff-delivery {
  padding: clamp(52px, 5cqi, 80px) 0;
  background: #f7fafb;
}
#delivery-title { margin: 0 !important; }
.ff-delivery-sequence {
  row-gap: 12px;
  margin: clamp(24px, 3cqi, 42px) 0 0;
  padding: 0;
  list-style: none;
}
.ff-delivery-step {
  display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start;
  padding: clamp(22px, 2cqi, 30px); background: white;
  border: 1px solid #dce8ee; border-radius: 6px;
}
.ff-step-number {
  color: #466476;
  font: 400 clamp(1.85rem, 2.8cqi, 2.5rem)/1 var(--display-font);
  letter-spacing: -.05em; font-variant-numeric: tabular-nums;
}
.ff-delivery-step h3 { font-size: clamp(1.125rem, 1.5cqi, 1.375rem); line-height: 1.3; }
.ff-delivery-step p { line-height: 1.6; color: var(--muted); }

/* FAQ */
.ff-faq {
  padding: clamp(56px, 6cqi, 88px) 0;
  background: #fff;
}
#faq-title {
  margin-top: 0 !important;
}
#faq { scroll-margin-top: 96px; }
.ff-faq-intro .ff-section-lead { max-width: 39ch; }
.ff-faq-list { display: grid; gap: 6px; }
.ff-faq-list details {
  padding-inline: 20px;
  background: var(--soft);
  border-radius: 6px;
}
.ff-faq-list details[open] { background: var(--tint); }
.ff-faq-list details .ff-button { margin-bottom: 20px; }
.ff-faq-list summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  min-height: 48px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--navy);
}
.ff-faq-list summary::-webkit-details-marker { display: none; }
.ff-faq-list summary:after {
  content: "+";
  flex: none;
  color: var(--muted);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}
.ff-faq-list details[open] summary:after { content: "−"; }
.ff-faq-list details > p {
  padding: 0 28px 20px 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 68ch;
}

/* Footer */
.ff-footer {
  padding: 36px 0 28px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.ff-footer-inner { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: start; gap: 20px 48px; }
.ff-footer-nav-group { display: grid; gap: 8px; }
.ff-footer-nav-group p { color: var(--muted); }
.ff-footer-links, .ff-footer-lang { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 18px; }
.ff-footer-links a, .ff-footer .ff-text-button, .ff-footer-lang a {
  font: 400 .875rem/1.5 Arial, sans-serif; color: var(--navy); text-decoration: none; padding: 3px 0;
}
.ff-footer-links a:hover, .ff-footer .ff-text-button:hover, .ff-footer-lang a:hover,
.ff-footer-lang a[aria-current="page"] { text-decoration: underline; text-underline-offset: 3px; }
.ff-map-credit, .ff-copyright { color: var(--muted); font-size: .8125rem; }
.ff-map-credit { grid-column: 2; grid-row: 2; }
.ff-map-credit a { text-decoration: underline; text-underline-offset: 3px; }
.ff-copyright { grid-column: 1; grid-row: 2; }

/* Container-responsive adjustments */
@container ff-site (max-width: 1100px) {
  .ff-container { width: calc(100% - 48px); }
  .ff-header-inner { gap: 18px; }
  .ff-desktop-nav { gap: 20px; }
}

@container ff-site (max-width: 1140px) {
  .ff-header-inner { min-height: 72px; }
  .ff-desktop-nav,
  .ff-header-cta,
  .ff-lang-switcher { display: none; }
  .ff-menu-toggle { display: flex; margin-left: auto; }
  .ff-mobile-nav[data-open="true"],
  .ff-page:not(.ff-enhanced) .ff-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .ff-mobile-nav > a:not(.ff-button) {
    padding: 12px 0;
    min-height: 44px;
    border-top: 1px solid var(--line);
    font-size: 16px;
    font-weight: 550;
  }
  .ff-mobile-nav > .ff-button { align-self: flex-start; margin: 8px 0; }

}

@container ff-site (max-width: 820px) {
  .ff-hero::before { background: linear-gradient(90deg, #102837f5, #102837d9 58%, #10283760); }
  .ff-split-layout { grid-template-columns: 1fr; gap: 28px; }

}

@container ff-site (max-width: 900px) {
  .ff-ai-grid { grid-template-columns: 1fr; gap: 18px; }
  .ff-ai-card { grid-row: auto; grid-template-rows: auto; gap: 12px; }
}
@container ff-site (max-width: 740px) {
  .ff-delivery-sequence { grid-template-columns: 1fr; gap: 24px; }
  .ff-delivery-step { grid-row: auto; grid-template-rows: auto; gap: 10px; padding: 22px; }
  .ff-step-number { font-size: 1.85rem; }
  .ff-footer-inner { grid-template-columns: 1fr; gap: 16px; }
  .ff-map-credit, .ff-copyright { grid-column: auto; grid-row: auto; }
}
@container ff-site (max-width: 600px) {
  .ff-container { width: calc(100% - 40px); }
  .ff-hero { min-height: 0; padding: 52px 0 66px; }
  .ff-hero-map { object-position: 65% center; }
  .ff-hero::before { background: linear-gradient(115deg, #102837f2, #102837d9 60%, #10283780); }
  .ff-services,
  .ff-delivery,
  .ff-faq { padding: 56px 0; }
  .ff-footer-links { width: 100%; }
}

@container ff-site (max-width: 359px) {
  .ff-container { width: calc(100% - 32px); }
  .ff-button { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ff-page * { transition: none !important; animation: none !important; }
}

@media print {
  .ff-header { position: static; }
  .ff-menu-toggle,
  .ff-mobile-nav { display: none !important; }
  .ff-service-card,
  .ff-delivery-step { break-inside: avoid; }
}

.ff-consent-panel, .ff-cookie-dialog {
  box-sizing: border-box;
  color: #21283b;
  background: white;
  font: 1rem/1.48 Arial, sans-serif;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid #b9daeb;
  border-radius: 8px;
  box-shadow: 0 6px 32px #21283b26;
  overflow: auto;
}
.ff-consent-panel {
  position: fixed;
  inset: auto auto 16px 16px;
  width: min(540px, calc(100% - 32px));
  padding: 16px 20px;
  font-size: .9375rem;
  max-height: 50dvh;
  z-index: 120;
}
.ff-cookie-dialog { width: min(580px, calc(100% - 28px)); max-height: 85dvh; }
.ff-cookie-dialog::backdrop { background: #21283b70; }
.ff-consent-panel h2, .ff-cookie-dialog h2 { font-size: 1.25rem; margin: 0; }
.ff-consent-panel p, .ff-cookie-dialog p { margin: .55em 0; }
.ff-cookie-dialog h3 { font-size: 1rem; margin: 1.1em 0 0; }
.ff-cookie-dialog a, .ff-consent-panel a { color: #21283b; text-underline-offset: 3px; }
.ff-choice-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ff-choice-actions button {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 8px 12px;
  background: #21283b;
  color: white;
  border: 0;
  border-radius: 4px;
  font: 600 .925rem/1.3 Arial, sans-serif;
  cursor: pointer;
}
.ff-choice-actions button:hover { background: #35445c; }
.ff-text-button {
  appearance: none; background: transparent; color: inherit; border: 0;
  padding: 6px 0; cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 3px;
}
.ff-cookie-dialog form { margin: 12px 0 0; }
.ff-policy { width: min(72ch, calc(100% - 40px)); margin: 48px auto 80px; }
.ff-policy h1 { font: 400 clamp(2rem,4vw,3rem)/1.15 var(--display-font); }
.ff-policy h2 { font-size: 1.4rem; margin: 1.65em 0 .35em; }
.ff-policy h3 { font-size: 1.1rem; margin: 1em 0 .35em; }
.ff-policy p + p { margin-top: .65em; }
.ff-policy a { text-decoration: underline; text-underline-offset: 3px; }
.ff-policy button { margin-top: 1em; }
[hidden] { display: none !important; }
@media print { .ff-consent-panel, .ff-cookie-dialog, [data-cookie-settings] { display: none !important; } }

.ff-consent-panel h2 { font-size: 1.0625rem; }
.ff-consent-panel .ff-choice-actions { margin-top: 9px; }
@media (max-width: 500px) {
  .ff-consent-panel { inset: auto 8px 8px; width: auto; padding: 12px 14px; }
  .ff-consent-panel .ff-choice-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .ff-consent-panel .ff-choice-actions button { padding: 6px 8px; }
}
