/* ==========================================================================
   JFB Market Supply — Home
   ========================================================================== */

:root {
  --color-navy: #0a1d2e;
  --color-blue-deep: #033663;
  --color-blue-mid: #428ccd;
  --color-blue-light: #a8d2f8;
  --color-blue-pale: #c9dbec;
  --color-blue-softer: #b9cde0;
  --color-blue-softest: #d6e6f5;
  --color-yellow: #ffd863;
  --color-bg-light: #f4f7fa;
  --color-text-dark: #0a1d2e;
  --color-text-body: #34495c;
  --color-text-muted: #5b6f82;
  --color-text-faint: #8aa3ba;
  --color-border-light: #d8e4ee;
  --color-white: #ffffff;

  --font-heading: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Roboto', system-ui, sans-serif;

  --container-max: 1440px;
  --gutter: clamp(20px, 5vw, 80px);
  --section-pad-y: clamp(56px, 9vw, 120px);

  --header-height: 88px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--color-navy);
  color: var(--color-white);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3, p, ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

svg {
  flex-shrink: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 12px;
  z-index: 2000;
  background: var(--color-yellow);
  color: var(--color-navy);
  padding: 12px 18px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.eyebrow {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.divider {
  width: 56px;
  height: 4px;
  background: var(--color-yellow);
  border-radius: 2px;
}

.section-title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  text-transform: uppercase;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  min-height: 44px;
  border-bottom: 2px solid var(--color-yellow);
  transition: gap 0.2s ease;
}

.link-arrow:hover,
.link-arrow:focus-visible {
  gap: 14px;
}

.link-arrow svg {
  transition: transform 0.2s ease;
}

.link-arrow:hover svg {
  transform: translateX(2px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--color-yellow);
  color: var(--color-navy);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 8px 20px rgba(255, 216, 99, 0.35);
}

.btn-outline {
  border: 1.5px solid var(--color-blue-light);
  color: var(--color-white);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: rgba(168, 210, 248, 0.12);
}

.btn-outline-dark {
  border: 1.5px solid var(--color-blue-deep);
  color: var(--color-blue-deep);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus-visible {
  background: rgba(3, 54, 99, 0.06);
}

/* Focus visibility everywhere */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-yellow);
  outline-offset: 3px;
  border-radius: 2px;
}

/* -------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */
.site-header {
  /* No transform/filter/backdrop-filter/will-change on this element: any of
     those would make it the containing block for its position:fixed
     descendants (the mobile nav panel), breaking its full-viewport size. The
     blurred background instead lives on ::before, which isn't an ancestor. */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  isolation: isolate;
  transition: border-color 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: rgba(168, 210, 248, 0.16);
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: transparent;
  transition: background 0.25s ease, backdrop-filter 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled::before {
  background: rgba(10, 29, 46, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 60px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 36px);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.main-nav .btn {
  height: 44px;
  padding: 0 22px;
}

.main-nav a[aria-current="true"]:not(.btn) {
  color: var(--color-yellow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: rgba(10, 29, 46, var(--hero-shade, 0.45));
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: calc(var(--header-height) + 56px) var(--gutter) 64px;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(30px, 4.6vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.hero__lead {
  max-width: 580px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--color-blue-pale);
}

.hero__tag {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 20px;
  border-left: 2px solid var(--color-blue-mid);
}

.hero__tag-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-yellow);
  letter-spacing: 0.02em;
}

.hero__tag-text {
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-blue-light);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-top: 4px;
}

/* -------------------------------------------------------------------------
   Generic section
   ------------------------------------------------------------------------- */
.section {
  padding: var(--section-pad-y) 0;
}

.section--light {
  background: var(--color-bg-light);
  color: var(--color-text-dark);
}

.section--light .eyebrow { color: var(--color-blue-deep); }
.section--light .section-title { color: var(--color-blue-deep); }

.section--navy {
  background: var(--color-navy);
}

.section--blue-deep {
  background: var(--color-blue-deep);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Quem somos */
.split {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}

.split--top {
  align-items: start;
}

.split__header {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.split__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 18px;
  line-height: 1.65;
}

.split__body p strong {
  font-weight: 500;
}

.section--light .split__body { color: var(--color-text-body); }
.section--navy .split__body,
.section--blue-deep .split__body { color: var(--color-blue-pale); }

/* Atuação */
.section-header-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 64px;
}

.section-header-row__intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 640px;
}

.section-header-row__note {
  margin: 0;
  max-width: 480px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-blue-pale);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.card {
  min-height: 260px;
  padding: 36px;
  background: var(--color-navy);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

.card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.3;
}

.card__text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-blue-softer);
}

.card--cta {
  background: var(--color-yellow);
  color: var(--color-navy);
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card--cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

.card--cta__headline {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.25;
}

/* Experiência / mercados */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  border-top: 1px solid rgba(168, 210, 248, 0.2);
  border-bottom: 1px solid rgba(168, 210, 248, 0.2);
  margin: 56px 0;
}

.stat {
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat__number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
  color: var(--color-yellow);
}

.stat__label {
  font-size: 16px;
  color: var(--color-blue-light);
}

.regions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
  align-items: start;
}

.region {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.region__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
}

.region__text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-blue-softer);
}

.regions-grid .link-arrow {
  grid-column: 1 / -1;
  align-self: flex-start;
  color: var(--color-white);
}

/* Estratégia e execução */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 16px;
  margin: 64px 0 40px;
}

.timeline__line {
  position: absolute;
  top: 11px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--color-blue-light);
}

.timeline__step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline__dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-blue-deep);
  border: 4px solid var(--color-bg-light);
  box-sizing: border-box;
}

.timeline__step--active .timeline__dot {
  background: var(--color-yellow);
}

.timeline__number {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-blue-mid);
}

.timeline__label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
  color: var(--color-blue-deep);
}

.callout {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 32px 36px;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: 6px;
}

.callout p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text-body);
}

.callout strong {
  color: var(--color-blue-deep);
  font-weight: 500;
}

/* João Rezende */
.person {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}

.person__photo {
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  background: var(--color-navy);
  border: none;
  padding: 0;
  overflow: hidden;
}

.person__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

.person__info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.person__quote {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.45;
  color: var(--color-yellow);
}

.person__info p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-blue-pale);
}

.person__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding-top: 8px;
}

.lang-badges {
  display: flex;
  gap: 8px;
}

.lang-badge {
  padding: 6px 12px;
  border: 1px solid rgba(168, 210, 248, 0.5);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-blue-light);
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: 6px;
  overflow: hidden;
  color: var(--color-text-dark);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(3, 54, 99, 0.14);
}

.blog-card__image {
  height: 180px;
  background: var(--color-blue-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-blue-light);
}

.blog-card__body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-card__cat {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-blue-deep);
}

.blog-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.35;
}

.blog-card__meta {
  font-size: 14px;
  color: var(--color-text-muted);
}

.blog-card .link-arrow {
  color: var(--color-blue-deep);
  border-bottom-color: transparent;
  font-size: 15px;
  padding-top: 8px;
  min-height: unset;
}

/* CTA final */
.cta-final {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(72px, 12vw, 120px) var(--gutter);
  text-align: center;
}

.cta-final__media {
  position: absolute;
  inset: 0;
}

.cta-final__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

.cta-final__scrim {
  position: absolute;
  inset: 0;
  background: var(--color-blue-deep);
  opacity: 0.88;
}

.cta-final__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  max-width: 900px;
}

.cta-final__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(26px, 4.5vw, 46px);
  line-height: 1.15;
  text-transform: uppercase;
}

.cta-final__lead {
  max-width: 760px;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.6;
  color: var(--color-blue-softest);
}

.cta-final__tag {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-yellow);
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.site-footer {
  padding: clamp(48px, 8vw, 72px) 0 32px;
  background: var(--color-navy);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px 24px;
}

.footer-brand {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand img {
  width: 140px;
  height: auto;
}

.footer-brand p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-blue-light);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(168, 210, 248, 0.3);
  color: var(--color-blue-light);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--color-navy);
  background: var(--color-yellow);
  border-color: var(--color-yellow);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
}

.footer-nav { grid-column: 6 / span 2; }
.footer-lang { grid-column: 8 / span 2; color: var(--color-blue-softer); }
.footer-contact { grid-column: 10 / span 3; color: var(--color-blue-softer); }

.footer-col__title {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-white);
  padding-bottom: 4px;
}

.footer-col a {
  color: var(--color-blue-softer);
  transition: color 0.15s ease;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--color-yellow);
}

.footer-contact a {
  color: var(--color-yellow);
  font-weight: 500;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(168, 210, 248, 0.16);
  font-size: 13px;
  color: var(--color-text-faint);
}

.footer-bottom a:hover,
.footer-bottom a:focus-visible {
  color: var(--color-yellow);
}

.footer-bottom__right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.footer-credit {
  color: var(--color-text-faint);
}

/* Placeholder content markers (to be replaced with real assets/copy) */
.is-placeholder {
  outline: 1px dashed rgba(255, 216, 99, 0.5);
  outline-offset: -1px;
}

/* -------------------------------------------------------------------------
   Floating WhatsApp button
   ------------------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  right: clamp(16px, 4vw, 28px);
  bottom: clamp(16px, 4vw, 28px);
  z-index: 1100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(10, 29, 46, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: scale(1.08);
  box-shadow: 0 14px 30px rgba(10, 29, 46, 0.45);
  color: #ffffff;
  outline: none;
}

.whatsapp-float:focus-visible {
  outline: 2px solid var(--color-yellow);
  outline-offset: 3px;
}

.whatsapp-float__icon {
  position: relative;
  width: 30px;
  height: 30px;
}

.whatsapp-float__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  opacity: 0.55;
  animation: whatsapp-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

.whatsapp-float__label {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translate(8px, -50%);
  background: var(--color-navy);
  color: #ffffff;
  padding: 9px 16px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.whatsapp-float__label::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--color-navy);
}

@media (hover: hover) {
  .whatsapp-float:hover .whatsapp-float__label,
  .whatsapp-float:focus-visible .whatsapp-float__label {
    opacity: 1;
    transform: translate(0, -50%);
  }
}

body.nav-open .whatsapp-float {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 480px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
  }

  .whatsapp-float__icon {
    width: 26px;
    height: 26px;
  }

  .whatsapp-float__label {
    display: none;
  }
}

/* -------------------------------------------------------------------------
   Responsive breakpoints
   ------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .regions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .regions-grid .link-arrow { grid-column: auto; margin-top: 8px; }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 40px; }
  .timeline__line { display: none; }
}

@media (max-width: 1080px) {
  .main-nav {
    position: fixed;
    inset: var(--header-height) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    background: var(--color-navy);
    padding: 12px var(--gutter) 32px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav a:not(.btn) {
    padding: 16px 0;
    border-bottom: 1px solid rgba(168, 210, 248, 0.14);
    font-size: 16px;
  }

  .main-nav .btn {
    margin-top: 20px;
    width: 100%;
    height: 52px;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 860px) {
  .split,
  .person {
    grid-template-columns: 1fr;
  }

  .person__photo {
    aspect-ratio: 16 / 10;
    order: -1;
  }

  .split__body {
    font-size: 17px;
  }

  .hero {
    min-height: 0;
  }

  .hero__content {
    max-width: none;
    padding: calc(var(--header-height) + 40px) var(--gutter) 48px;
  }
}

@media (max-width: 680px) {
  .cards-grid,
  .regions-grid,
  .blog-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-left: 4px;
    border-left: 2px solid var(--color-blue-light);
  }

  .timeline__step {
    padding-left: 20px;
  }

  .timeline__dot {
    position: absolute;
    left: -33px;
    top: 0;
  }

  .section-header-row {
    align-items: flex-start;
  }

  .callout {
    flex-direction: column;
    gap: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand,
  .footer-nav,
  .footer-lang,
  .footer-contact {
    grid-column: span 1;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  :root {
    --section-pad-y: 48px;
  }

  .btn {
    width: 100%;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
}
