:root {
  --blue: #123d8c;
  --blue-2: #1f55b5;
  --blue-dark: #0b2459;
  --yellow: #f5b400;
  --green: #3aa935;
  --ink: #1b2a41;
  --muted: #5b6b82;
  --line: #e3e9f2;
  --bg: #ffffff;
  --bg-alt: #f4f7fc;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 40, 90, .06), 0 8px 24px rgba(16, 40, 90, .07);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-2); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); color: var(--blue-dark); }
h3 { font-size: 1.1rem; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--blue-2); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang a { padding: 4px 10px; font-size: .8rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.lang a[aria-current] { background: var(--blue); color: #fff; }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--blue-dark); }
/* Camada de mídia (foto e, em telas maiores, vídeo) sob o degradê da marca */
.hero-media { position: absolute; inset: 0; z-index: 0; background: url("/img/hero-800.jpg") center / cover no-repeat; }
@media (min-width: 801px) { .hero-media { background-image: url("/img/hero.jpg"); } }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.5s; }
.hero-media.playing .hero-video { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(245,180,0,.18), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(58,169,53,.2), transparent 60%),
    linear-gradient(100deg, rgba(11,36,89,.95) 0%, rgba(18,61,140,.86) 45%, rgba(18,61,140,.5) 100%); }
.hero-toggle { position: absolute; z-index: 2; right: 16px; bottom: 16px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; cursor: pointer; background: rgba(11,36,89,.4); border: 1px solid rgba(255,255,255,.3); }
.hero-toggle[hidden] { display: none; }
.hero-toggle:hover { background: rgba(11,36,89,.7); }
.hero-toggle:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.hero-toggle svg { width: 16px; height: 16px; }
.hero-toggle[aria-pressed="true"] .i-pause, .hero-toggle:not([aria-pressed="true"]) .i-play { display: none; }
.hero-in { position: relative; z-index: 1; padding: clamp(64px, 10vw, 120px) 0 56px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--yellow); margin: 0 0 14px; }
.hero h1 { font-size: clamp(2.2rem, 5.6vw, 4rem); font-weight: 800; max-width: 15ch; }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); max-width: 60ch; color: rgba(255,255,255,.86); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 52px; }
.btn { display: inline-block; padding: 13px 24px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 600; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--yellow); color: var(--blue-dark); }
.btn-primary:hover { background: #ffc61f; }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.stats { list-style: none; padding: 26px 0 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 24px; border-top: 1px solid rgba(255,255,255,.2); }
.stats strong { display: block; font-size: 2rem; font-weight: 800; }
.stats span { font-size: .9rem; color: rgba(255,255,255,.75); }

/* Sections */
.section { padding: clamp(64px, 9vw, 104px) 0; }
.alt { background: var(--bg-alt); }
.sub { color: var(--muted); max-width: 62ch; font-size: 1.05rem; margin: 0 0 36px; }
.small { font-size: .85rem; color: var(--muted); }
.label { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--muted); margin: 28px 0 10px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.about p { color: #34445c; }
.about-img { border-radius: var(--radius); box-shadow: var(--shadow); }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc { padding: 26px; }
.svc p { color: var(--muted); margin: 0; font-size: .95rem; }
.ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff; margin-bottom: 16px; }
.ico svg { width: 24px; height: 24px; }

.products { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.prod { overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.prod h3 { font-size: 1.02rem; }
.prod:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(16,40,90,.12); }
.prod-img { aspect-ratio: 16 / 10; background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; }
.prod-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.prod-body p { color: var(--muted); font-size: .95rem; margin: 0 0 14px; }
.prod-links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; }
.prod-links a { font-weight: 600; text-decoration: none; }
.prod-links .cuts { font-weight: 500; font-size: .88rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* Certificações: selos originais em cartões; a Câmara Árabe (da própria SAPI) fica à parte */
.seals { border-bottom: 1px solid var(--line); background: #fff; }
.seals-in { padding: clamp(32px, 4vw, 48px) 0; }
.seals .label { margin: 0 0 20px; text-align: center; }
.seals-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 16px; }
.badges { list-style: none; padding: 0; margin: 0; display: flex; flex: 0 1 auto; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 16px; }
.badge { width: 138px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 22px 12px 18px; text-align: center; }
.badge img { height: 64px; width: auto; max-width: 110px; object-fit: contain; image-rendering: -webkit-optimize-contrast; }
.badge b { font-size: .86rem; line-height: 1.25; color: var(--blue-dark); }
.badge-wide { width: auto; max-width: 320px; flex-direction: row; text-align: left; gap: 16px; padding: 16px 22px; }
.badge-wide img { height: 96px; max-width: none; flex: none; }
.badge-wide b { font-weight: 600; }

/* Novidades */
.news-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.news-head .sub { margin: 0; }
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post { overflow: hidden; display: flex; flex-direction: column; }
.post-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--blue-dark); }
.post-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.post-img:hover img { transform: scale(1.03); }
.post-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.post-body time { font-size: .8rem; font-weight: 600; color: var(--blue-2); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.post-body p { color: var(--muted); font-size: .94rem; margin: 0 0 14px; }
.post-body a { margin-top: auto; font-weight: 600; text-decoration: none; }
.btn-li { display: inline-flex; align-items: center; gap: 10px; background: #0a66c2; color: #fff; }
.btn-li:hover { background: #0958a8; }
.btn-li svg, .office a svg.li { width: 20px; height: 20px; }
.foot-li { color: #fff; display: grid; place-items: center; }
.foot-li svg { width: 26px; height: 26px; }

/* Mapa de alcance */
.reach-sec { background: linear-gradient(180deg, var(--blue-dark), var(--blue)); color: #fff; }
.reach-sec h2 { color: #fff; }
.reach-sec .sub { color: rgba(255,255,255,.78); }
.map-wrap { margin: 0 -8px; }
.world { width: 100%; height: auto; display: block; overflow: visible; }
.world .land { fill: rgba(255,255,255,.13); stroke: rgba(255,255,255,.18); stroke-width: .5; }
.world .origin-land { fill: var(--green); stroke: rgba(255,255,255,.5); stroke-width: .6; }
.world .arc { stroke: var(--yellow); stroke-width: 1.6; stroke-linecap: round; opacity: .85; stroke-dasharray: 6 5; animation: flow 1.6s linear infinite; }
.world .dest circle { fill: var(--yellow); stroke: var(--blue-dark); stroke-width: 2; }
.world .office circle { fill: #fff; stroke: var(--yellow); stroke-width: 3; }
.world text { fill: #fff; font: 600 14px Inter, system-ui, sans-serif; paint-order: stroke; stroke: rgba(11,36,89,.85); stroke-width: 4px; stroke-linejoin: round; }
.world .hq circle { fill: #fff; }
.world .hq .pulse { fill: rgba(245,180,0,.35); transform-box: fill-box; transform-origin: center; animation: pulse 2s ease-out infinite; }
@keyframes flow { to { stroke-dashoffset: -22; } }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.legend { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: .92rem; color: rgba(255,255,255,.85); }
.legend li { display: flex; align-items: center; gap: 10px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.lg-origin { background: var(--green); }
.lg-office { background: #fff; border: 3px solid var(--yellow); border-radius: 50% !important; }

/* WhatsApp */
.btn-wa { display: inline-flex; align-items: center; gap: 10px; background: #0f7a40; color: #fff; margin: 0 0 28px; }
.btn-wa:hover { background: #0b6634; }
.btn-wa svg { width: 22px; height: 22px; }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); transition: transform .15s; }
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 32px; height: 32px; }

.market { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.cepea { padding: 18px; }
/* O widget do Cepea roda isolado num iframe para não travar a página; main.js ajusta a altura */
.cepea-frame { display: block; width: 100%; min-height: 300px; border: 0; }

.contact-sec { padding-bottom: 0; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding-bottom: 64px; }
.contact .office { margin: 0 0 22px; }
.contact .office h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
.contact .office a, .contact .office p { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; color: var(--ink); text-decoration: none; font-weight: 500; }
.contact .office a:hover { color: var(--blue-2); }
.contact .office svg { width: 18px; height: 18px; color: var(--blue-2); flex: none; }

/* Foco visível para quem navega pelo teclado */
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 2px; }
.hero :focus-visible, .reach-sec :focus-visible, .foot :focus-visible, .lang a[aria-current]:focus-visible { outline-color: var(--yellow); }
.lang a:focus-visible, .post-img:focus-visible { outline-offset: -3px; }
.form { padding: 30px; display: grid; gap: 14px; align-self: start; }
.form h3 { font-size: 1.3rem; color: var(--blue-dark); }
.form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: #34445c; }
.form input, .form textarea { font: inherit; padding: 11px 13px; border: 1px solid #cfd8e6; border-radius: 9px; background: #fbfcfe; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--blue-2); outline-offset: 0; border-color: transparent; background: #fff; }
.form .btn { justify-self: start; margin-top: 6px; }
.map { display: block; width: 100%; height: 360px; border: 0; filter: saturate(.85); }

.foot { background: var(--blue-dark); color: rgba(255,255,255,.75); padding: 34px 0 96px; font-size: .88rem; }
.foot-in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot img { height: 44px; width: auto; background: #fff; border-radius: 8px; padding: 4px 8px; }
.foot p { margin: 0; flex: 1; }
.foot a { color: #fff; }
.foot .lang { border-color: rgba(255,255,255,.25); }
.foot .lang a { color: rgba(255,255,255,.75); }

@media (max-width: 960px) {
  /* Menu recolhível só com JavaScript; sem JS os links aparecem em linha */
  .js .nav { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); display: none; }
  .js .nav.open { display: flex; }
  .js .nav a { padding: 14px 20px; border-top: 1px solid var(--line); }
  .js .burger { display: block; }
  html:not(.js) .top-in { height: auto; flex-wrap: wrap; padding: 8px 0; }
  html:not(.js) .nav { order: 3; width: 100%; flex-wrap: wrap; gap: 4px 16px; margin: 0; }
  .top-in .lang { margin-left: auto; }
  .about, .market, .contact { grid-template-columns: 1fr; gap: 36px; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .products { grid-template-columns: repeat(3, 1fr); }
  .news { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .brand img { height: 42px; }
  .grid3, .news { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr 1fr; gap: 12px; }
  .prod-body { padding: 14px; }
  .prod-body p { font-size: .85rem; }
  .seals-row, .badges { gap: 10px; }
  .badge { width: calc(50% - 5px); padding: 16px 8px 14px; gap: 8px; }
  .badge b { font-size: .8rem; }
  .badge img { height: 56px; }
  .badge-wide { width: 100%; max-width: none; padding: 14px 16px; }
  .badge-wide img { height: 72px; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stats strong { font-size: 1.5rem; }
  .stats span { font-size: .78rem; }
  .world text { font-size: 22px; stroke-width: 6px; }
  .world .caucasus text, .world .russia text { display: none; }
  .wa-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .prod, .wa-float { transition: none; } .world .arc, .world .pulse { animation: none; } }

/* ===== Movimento sutil (desligado para quem pede "reduzir movimento") ===== */
/* O cabeçalho mantém a altura (sem "pulo" na página); só o logo reduz e ganha sombra */
.top.scrolled { background: rgba(255,255,255,.97); box-shadow: 0 4px 20px rgba(11,36,89,.08); }
.brand img { transform-origin: left center; }
.top.scrolled .brand img { transform: scale(.86); }
@media (min-width: 961px) {
  .nav a { position: relative; }
  .nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--yellow); transform: scaleX(0); transition: transform .25s; }
  .nav a:hover::after, .nav a.on::after { transform: scaleX(1); }
  .nav a.on { color: var(--blue-2); }
}
.stats strong { font-variant-numeric: tabular-nums; }

/* "screen": na impressão/PDF tudo aparece, sem estados ocultos */
@media screen and (prefers-reduced-motion: no-preference) {
  .top { transition: box-shadow .3s, background .3s; }
  .brand img { transition: transform .3s; }

  @keyframes sapi-up { from { opacity: 0; translate: 0 14px; } }
  .hero-in > :not(.stats) { animation: sapi-up .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero-in > :nth-child(2) { animation-delay: .06s; }
  .hero-in > :nth-child(3) { animation-delay: .12s; }
  .hero-in > :nth-child(4) { animation-delay: .18s; }

  .js :is(.section h2, .section .sub, .card, .about-img, .legend, .contact .office, .stats) {
    transition: opacity .7s cubic-bezier(.2,.7,.2,1) var(--d, 0s), translate .7s cubic-bezier(.2,.7,.2,1) var(--d, 0s), transform .25s, box-shadow .25s;
  }
  .js :is(.section h2, .section .sub, .card, .about-img, .legend, .contact .office, .stats):not(.in) { opacity: 0; translate: 0 16px; }
  .js .hero .stats { --d: .3s; }

  .js .world:not(.in) .arc { opacity: 0; }
  .js .world :is(.dest, .office) circle { transform-box: fill-box; transform-origin: center; transition: scale .5s ease-out 1.2s, opacity .5s 1.2s; }
  .js .world:not(.in) :is(.dest, .office) circle { scale: .4; opacity: 0; }
  .js .world text { transition: opacity .6s 1.5s; }
  .js .world:not(.in) text { opacity: 0; }

  @media (hover: hover) {
    .svc:hover, .post:hover, .badge:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(16,40,90,.12); }
    .prod-img img { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
    .prod:hover .prod-img img { transform: scale(1.03); }
  }
}
@media (prefers-reduced-motion: reduce) { .hero-video, .hero-toggle { display: none !important; } }
