/* ──────────────────────────────────────────────────────────
   Falox® — página provisória
   Segue o stand: ilustração do F sobre branco, onda verde/navy,
   setores em círculos azuis, valores a verde.
   Paleta oficial 2026 — azul dominante, verde só como acento.
   ────────────────────────────────────────────────────────── */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/dm-sans-latin.woff2") format("woff2");
}

:root {
  --blue: #024391; /* Falox Blue · Pantone 2945 C */
  --green: #0dce87; /* Falox Green · Pantone 2416 C */
  --navy: #022a71;
  --forest: #17914f;
  --slate: #64748b;
  --hairline: #e2e8f0;

  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

/* em ecrãs altos, a secção navy estica até ao fundo (sem faixa branca por baixo) */
body { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
main, .sectors { flex: 1; display: flex; flex-direction: column; }
.sectors__body { flex: 1; display: flex; flex-direction: column; justify-content: center; }

img { display: block; max-width: 100%; }
h1, h2, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ── Topo ─────────────────────────────────────────────── */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
}

/* seletor de língua (canto superior direito) */
.lang {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: #ffffff;
}
.lang a {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--blue);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.lang a:hover { background: #f5f7fa; }
.lang a[aria-current="page"] { background: var(--navy); color: #ffffff; }
.top__logo { width: 120px; height: auto; }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  display: grid;
  gap: 28px;
  padding-top: 40px;
  padding-bottom: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}
.eyebrow__dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--green);
  opacity: 0;
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.8); opacity: 0; }
}

.hero__title {
  margin-top: 24px;
  font-size: clamp(2.6rem, 11vw, 5.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}
.hero__title span { display: block; }
.hero__work { color: var(--navy); }
.hero__last { color: var(--forest); }

.hero__lead {
  margin-top: 24px;
  font-size: clamp(1.15rem, 4.4vw, 1.45rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--blue);
}
.hero__note {
  margin-top: 14px;
  font-size: 15px;
  color: var(--slate);
}

.hero__art {
  position: relative;
  justify-self: center;
  width: min(92vw, 460px);
  /* dissolve os limites do vídeo/imagem no branco da página */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 4%, #000 96%, transparent);
  mask-composite: intersect;
}
/* a imagem é o 1.º fotograma do vídeo: fica por baixo e é o fallback */
.hero__poster { width: 100%; height: auto; }
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 960px) {
  :root { --gutter: 40px; }
  .top { padding-top: 32px; }
  .top__logo { width: 140px; }
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 48px;
    min-height: min(720px, calc(100svh - 190px));
    padding-top: 8px;
    padding-bottom: 0;
  }
  .hero__title { font-size: clamp(3.6rem, 5.6vw, 5.6rem); }
  .hero__art { width: 100%; max-width: 600px; justify-self: end; }
}

/* ── Produtos (carrossel contínuo) ────────────────────── */
.products { padding: 8px 0 56px; }
.products__eyebrow {
  margin-bottom: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest);
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 70s linear infinite;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}
/* com JS: o movimento passa para o app.js e o carrossel segue o dedo/rato */
.marquee.is-js {
  touch-action: pan-y; /* o scroll vertical da página continua a funcionar */
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}
.marquee.is-js .marquee__track { animation: none; will-change: transform; }
.marquee.is-dragging { cursor: grabbing; }
.marquee img { pointer-events: none; -webkit-user-drag: none; }
.marquee__list {
  display: flex;
  gap: 20px;
  padding-right: 20px; /* = gap, para o loop não dar salto */
}
.product {
  display: grid;
  gap: 12px;
  width: 190px;
}
.product__img {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 18px;
  background: #f5f7fa;
}
.product__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply; /* o branco da foto passa a ser o fundo do cartão */
  transition: transform 0.5s var(--ease);
}
.product:hover .product__img img { transform: scale(1.05); }
.product__name {
  padding-left: 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
}
@media (min-width: 960px) {
  .products { padding: 24px 0 72px; }
  .product { width: 250px; }
  .marquee__list { gap: 24px; padding-right: 24px; }
}

/* ── Setores (navy, como no stand) ────────────────────── */
.sectors__wave {
  display: block;
  width: 100%;
  height: clamp(60px, 8.5vw, 128px);
  margin-bottom: -1px; /* sem fresta entre a onda e o fundo */
}
.sectors__body {
  padding: 32px 0 0;
  background: var(--navy);
  color: #ffffff;
}

.sectors__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  text-align: center;
}
.sectors__title {
  margin-top: 12px;
  font-size: clamp(1.75rem, 6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-align: center;
  text-wrap: balance;
}

.sectors__intro {
  max-width: 62ch;
  margin: 20px auto 0;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.6;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  text-wrap: pretty;
}

.sectors__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 16px;
  margin-top: 48px;
}
.sectors__grid li {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 16px;
  text-align: center;
}
.sector__icon {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--blue);
  transition: transform 0.35s var(--ease);
}
.sectors__grid li:hover .sector__icon { transform: translateY(-4px); }
.sector__icon img { width: 100%; height: 100%; }
.sector__name {
  max-width: 16ch;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (min-width: 680px) {
  .sectors__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1080px) {
  .sectors__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
  .sector__icon { width: 112px; height: 112px; }
}

/* valores */
.values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 16px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.values li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}
.values img { width: 30px; height: 30px; flex: none; }

@media (min-width: 860px) {
  .values {
    display: flex;
    justify-content: center;
    gap: 56px;
  }
}

/* rodapé */
.foot {
  margin-top: 48px;
  padding: 40px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.foot__top {
  display: grid;
  gap: 32px;
}
.foot__logo { width: 112px; height: auto; }
.foot__contacts {
  display: grid;
  gap: 24px;
}
.foot__contacts li { display: grid; gap: 6px; align-content: start; }
.foot__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}
.foot__contacts a,
.foot__contacts address {
  font-size: 15px;
  font-style: normal;
  line-height: 1.55;
  color: #ffffff;
  text-decoration: none;
}
.foot__contacts a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot__contacts small { font-size: 12px; color: rgba(255, 255, 255, 0.55); }
.foot__legal {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}
.foot__legal a { color: inherit; text-underline-offset: 3px; }
.foot__legal a:hover { color: #ffffff; }

@media (min-width: 720px) {
  .foot__contacts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1080px) {
  .foot__top { grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr); align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; scroll-snap-type: x mandatory; }
  .marquee__track { animation: none; padding-inline: var(--gutter); }
  .marquee__list[aria-hidden="true"] { display: none; }
  .product { scroll-snap-align: start; }
  .product__img img { transition: none; }
  .eyebrow__dot::after { animation: none; }
  .sector__icon { transition: none; }
}
