/* Hevi Embalagens — direção "industrial escuro".
   Paleta derivada do logo (laranja #FF7A01, azul #0457A7) com neutros grafite/kraft. */

/* Fontes hospedadas no próprio site (OFL; licenças em assets/fonts): nenhuma chamada ao Google antes do consentimento. */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 500 900; font-stretch: 100% 125%; font-display: swap; src: url(../assets/fonts/archivo-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 500 900; font-stretch: 100% 125%; font-display: swap; src: url(../assets/fonts/archivo-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../assets/fonts/instrument-sans-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../assets/fonts/instrument-sans-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: oklch(0.16 0.008 60);
  --bg-2: oklch(0.2 0.01 60);
  --surface: oklch(0.24 0.012 60);
  --line: oklch(0.32 0.012 60);
  --ink: oklch(0.96 0.008 75);
  --muted: oklch(0.74 0.015 70);
  --kraft: oklch(0.74 0.075 70);
  --kraft-deep: oklch(0.55 0.07 65);
  --accent: oklch(0.72 0.19 50);
  --accent-ink: oklch(0.2 0.03 50);
  --blue: oklch(0.47 0.14 255);
  --light: oklch(0.96 0.006 75);
  --light-ink: oklch(0.2 0.01 60);
  --light-muted: oklch(0.45 0.012 60);

  --font-display: "Archivo", "Arial Narrow", sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", sans-serif;
  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 48px);
  --space: clamp(56px, 6vw, 80px); /* respiro vertical de cada seção; entre duas seções = 2× */
  --radius: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 64px;
}

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; }

/* Tipografia */
.display, .h2, .display-sm, .stat strong, .flute-name, .flute-mm {
  font-family: var(--font-display);
  font-stretch: 112%;
  letter-spacing: -0.02em;
  line-height: 0.95;
}
.display { font-size: clamp(3rem, 9vw, 8.5rem); font-weight: 850; }
.display-sm { font-size: clamp(2.4rem, 6vw, 5.25rem); font-weight: 800; }
.h2 { font-size: clamp(2.2rem, 5vw, 4.25rem); font-weight: 800; }
.accent { color: var(--accent); }
.eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--kraft); margin-bottom: 18px; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.375rem); color: var(--muted); max-width: 38ch; margin-top: 24px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: color-mix(in oklch, var(--ink) 8%, transparent); border-color: color-mix(in oklch, var(--ink) 25%, transparent); color: var(--ink); }

/* Header translúcido */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  background: color-mix(in oklch, var(--bg) 94%, transparent);
  border-bottom: 1px solid color-mix(in oklch, var(--ink) 8%, transparent);
}
.bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo img { height: 40px; width: auto; }
.nav-desktop { display: none; gap: 28px; align-items: center; font-size: 0.92rem; }
.nav-desktop a { text-decoration: none; color: var(--muted); transition: color 0.2s; }
.nav-desktop a:hover { color: var(--ink); }
.nav-desktop .nav-cta { color: var(--accent-ink); background: var(--accent); padding: 8px 16px; border-radius: 999px; font-weight: 600; }
.nav-desktop .nav-cta:hover { color: var(--accent-ink); }
.menu-toggle { width: 44px; height: 44px; border: 0; background: none; display: grid; place-content: center; gap: 6px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform 0.3s var(--ease); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu-mobile {
  position: fixed; inset: var(--header-h) 0 0; z-index: 49; background: var(--bg);
  display: flex; flex-direction: column; padding: 24px var(--pad);
}
.menu-mobile[hidden] { display: none; }
.menu-mobile a { font: 800 2rem/1.2 var(--font-display); font-stretch: 112%; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 960px) {
  .nav-desktop { display: flex; }
  .menu-toggle, .menu-mobile { display: none !important; }
}

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 40px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.08); animation: hero-zoom 2.4s var(--ease) forwards; backface-visibility: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, oklch(0.16 0.008 60 / 0.85) 0%, oklch(0.16 0.008 60 / 0.35) 60%, transparent 100%),
    radial-gradient(120% 80% at 80% 10%, transparent 0%, oklch(0.16 0.008 60 / 0.55) 55%),
    linear-gradient(180deg, oklch(0.16 0.008 60 / 0.35) 0%, oklch(0.16 0.008 60 / 0.2) 40%, var(--bg) 96%);
}
.hero-inner { padding-top: calc(var(--header-h) + 80px); }
.hero .display { font-size: clamp(2.4rem, 5.4vw, 5.5rem); max-width: 18ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
@keyframes hero-zoom { to { transform: scale(1); } }

/* Números */
.stats { border-block: 1px solid var(--line); background: var(--bg); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.stat { padding: 40px 0; display: flex; flex-direction: column; gap: 8px; }
.stat strong { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat > span { color: var(--muted); font-size: 0.95rem; }
.stat strong small { font-size: 0.5em; white-space: nowrap; }
@media (min-width: 900px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat { padding: 56px 0; }
  .stat + .stat { padding-left: 32px; border-left: 1px solid var(--line); }
}

/* Ondas — seção fixa com corte animado */
.flutes { position: relative; height: 330vh; background: radial-gradient(90% 60% at 70% 50%, var(--bg-2), var(--bg)); }
.flutes-sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; contain: layout paint; }
.flutes-stage { display: grid; gap: 32px; align-items: center; padding-top: var(--header-h); }
.flute-readout { margin-top: 32px; }
.flute-name { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; color: var(--accent); }
.flute-mm { font-size: clamp(4.5rem, 12vw, 10rem); font-weight: 900; font-variant-numeric: tabular-nums; }
.flute-mm small { font-size: 0.3em; font-weight: 600; margin-left: 0.15em; color: var(--muted); }
.flute-desc { color: var(--muted); font-size: 1.1rem; margin-top: 8px; min-height: 1.6em; }
.flute-steps { display: flex; gap: 8px; margin-top: 28px; }
.flute-steps button {
  min-width: 56px; height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; font-weight: 600;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s;
}
.flute-steps button[aria-current="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.flutes-visual { position: relative; background: radial-gradient(60% 55% at 50% 50%, oklch(0.74 0.075 70 / 0.08), transparent 70%); }
.flute-svg { width: 100%; height: auto; overflow: visible; }
.flute-svg g { opacity: 0; transform: translateY(24px) scale(0.98); transform-origin: 50% 50%; transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); }
.flute-svg g.is-active { opacity: 1; transform: none; }
.flute-svg .liner { fill: var(--kraft); }
.flute-svg .liner-edge { fill: var(--kraft-deep); }
.flute-svg .wave { fill: none; stroke: var(--kraft); stroke-width: 6; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.flute-svg g.is-active .wave { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s var(--ease) 0.15s; }
.flute-svg .dim { stroke: var(--accent); stroke-width: 2; }
.flute-svg .dim-text { fill: var(--accent); font: 700 22px var(--font-display); }
.flute-scale { margin-top: 20px; color: var(--muted); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
@media (min-width: 900px) { .flutes-stage { grid-template-columns: 0.9fr 1.3fr; gap: 64px; } }
@media (max-width: 899px) { .flute-mm { font-size: clamp(3.5rem, 18vw, 6rem); } .flute-readout { margin-top: 16px; } }

/* Seções */
.section { padding-block: var(--space); }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); }

.split-grid { display: grid; gap: 48px; align-items: center; }
.split-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .split-grid { grid-template-columns: 1fr 1fr; gap: 96px; } }

/* Acabamentos */
.finish-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.finish { background: var(--surface); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 10px; }
.finish-svg { width: 100%; height: auto; margin-bottom: 16px; }
.finish h3 { font: 800 clamp(1.6rem, 3vw, 2.2rem) var(--font-display); font-stretch: 112%; }
.finish p { color: var(--muted); max-width: 40ch; }
.finish-note { margin-top: 20px; color: var(--muted); font-size: 0.9rem; }
.finish-svg .liner { fill: var(--kraft); }
.finish-svg .liner-white { fill: oklch(0.97 0.004 90); }
.finish-svg .wave { fill: none; stroke: var(--kraft); stroke-width: 6; stroke-linejoin: round; }
.finish-svg .resin { fill: oklch(0.75 0.08 230 / 0.55); }
.finish-svg .resin-shine { fill: oklch(0.98 0.02 230 / 0.7); }
.finish-svg .drop { fill: oklch(0.8 0.09 230 / 0.85); }

/* Logística: comboio animado */
/* Cenário guiado pela rolagem: --p (0→1) e --x vêm do js/main.js */
.track { position: relative; height: 280vh; }
.road-scene {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-start;
  padding-top: calc(var(--header-h) + clamp(16px, 4vh, 56px)); padding-bottom: 8vh;
  background: linear-gradient(180deg, var(--bg) 0%, oklch(0.2 0.035 255) 45%, oklch(0.3 0.06 265) 74%, oklch(0.2 0.01 60) 74.2%, var(--bg) 100%);
  --p: 0; --x: -100%;
}
.sky-glow { position: absolute; left: 50%; bottom: 26%; width: 70vmax; height: 30vmax; transform: translateX(-50%); background: radial-gradient(closest-side, oklch(0.78 0.05 230 / 0.22), transparent); pointer-events: none; }
.forest { position: absolute; left: 0; background-repeat: repeat-x; background-size: auto 100%; pointer-events: none; will-change: transform; }
.forest-far {
  bottom: 25.8%; height: 16vh; opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 120'%3E%3Cpath fill='%2318261f' d='M0 120V78q18-26 36-4 16-34 34-6 20-30 40-2 14-18 30 0 22-40 46-4 18-24 38 0 20-30 42-2 16-20 34 2 22-34 44-4 18-18 36 4V120z'/%3E%3C/svg%3E");
  width: calc(100% + 300px); transform: translate3d(calc(var(--p) * -300px), 0, 0);
}
.forest-near {
  bottom: 25.8%; height: 11vh;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 80'%3E%3Cpath fill='%230c140f' d='M0 80V50q14-24 30-2 12-26 28-4 16-20 30 2 18-32 38-2 12-16 26 2 16-28 34-2 14-18 30 0 18-26 36 0 12-14 28 4 10-10 20 2V80z'/%3E%3C/svg%3E");
  width: calc(100% + 900px); transform: translate3d(calc(var(--p) * -900px), 0, 0);
}
.convoy {
  position: relative; display: flex; align-items: flex-end; gap: clamp(80px, 12vw, 200px); width: max-content;
  transform: translate3d(var(--x), 0, 0); will-change: transform;
}
.vehicle { height: clamp(64px, min(max(15vw, 12svh), 19svh), 190px); width: auto; display: block; overflow: visible; }
.v-unit { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.v-tag { font-size: clamp(0.8rem, 1.8svh, 1rem); color: var(--muted); white-space: nowrap; text-align: center; }
.v-tag strong { display: block; font: 900 clamp(1.6rem, min(5vw, 5.5svh), 4rem)/1 var(--font-display); font-stretch: 112%; color: var(--ink); }
.vehicle .body-accent { fill: var(--accent); stroke: oklch(0.96 0.02 75 / 0.55); stroke-width: 2; }
.v-unit { position: relative; }
.v-unit::after { content: ""; position: absolute; left: 3%; right: 3%; bottom: -10px; height: 22px; z-index: -1; background: radial-gradient(closest-side, oklch(0.05 0.01 60 / 0.6), transparent); pointer-events: none; }
.vehicle .body-light { fill: oklch(0.96 0.008 75); }
.vehicle .body-cab { fill: var(--blue); }
.vehicle .glass { fill: oklch(0.82 0.04 230); }
.vehicle .chassis { fill: oklch(0.1 0.005 60); }
.wheel { transform-box: view-box; transform-origin: 0 0; transform: rotate(calc(var(--p) * 5400deg)); }
.road {
  position: relative; height: 56px; margin-top: 0; background: oklch(0.2 0.006 60);
  border-top: 3px solid oklch(0.3 0.01 60); overflow: hidden;
}
.road::after {
  content: ""; position: absolute; left: 0; top: 50%; width: calc(100% + 4000px); height: 4px; margin-top: -2px;
  background: linear-gradient(90deg, oklch(0.85 0.12 85) 0 48px, transparent 48px) 0 0 / 110px 4px repeat-x;
  transform: translate3d(calc(var(--p) * -4000px), 0, 0); will-change: transform;
}
.transbox { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 56px; }
.transbox img { height: 56px; width: auto; background: var(--light); border-radius: 12px; padding: 6px 12px; box-sizing: content-box; }
.transbox p { color: var(--muted); font-size: 1.1rem; }

/* Seção clara */
.section-light { background: var(--light); color: var(--light-ink); }
.section-light .eyebrow { color: var(--kraft-deep); }
.seals { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.seal {
  background: oklch(1 0 0 / 0.7); border: 1px solid oklch(0.88 0.008 70); border-radius: 22px;
  padding: 28px; display: flex; flex-direction: column; gap: 4px; min-height: 220px; justify-content: flex-end;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.seal:hover { transform: translateY(-4px); box-shadow: 0 20px 40px oklch(0.2 0.01 60 / 0.08); }
.seal img { height: 72px; width: auto; max-width: 100%; object-fit: contain; object-position: left; margin-bottom: auto; padding-bottom: 20px; }
.seal strong { font: 800 1.5rem var(--font-display); font-stretch: 112%; }
.seal span { color: var(--light-muted); }

/* Faixa de foto */
.banner-photo { position: relative; min-height: 90svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; padding-bottom: clamp(48px, 8vw, 96px); }
.banner-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.banner-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, oklch(0.16 0.008 60 / 0.2) 35%, oklch(0.16 0.008 60 / 0.85) 100%); }

/* Compliance */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.card { position: relative; background: var(--surface); border-radius: 22px; padding: 28px 28px 72px; display: flex; flex-direction: column; gap: 10px; }
.card-icon { width: 56px; height: 56px; margin-bottom: 12px; padding: 12px; border-radius: 16px; background: oklch(0.72 0.19 50 / 0.12); fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font: 800 1.35rem var(--font-display); font-stretch: 112%; }
.card p { color: var(--muted); }
.card-more {
  position: absolute; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--ink); color: var(--bg); font-size: 1.5rem; line-height: 1;
  transition: transform 0.3s var(--ease);
}
.card-more:hover { transform: rotate(90deg); }
.compliance-link { margin-top: 32px; }
.compliance-link a { color: var(--accent); font-weight: 600; text-decoration: none; }

.dialog {
  margin: auto; max-width: min(640px, calc(100vw - 32px)); max-height: 85vh; overflow: auto;
  background: var(--bg-2); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px;
}
.dialog::backdrop { background: oklch(0.1 0.01 60 / 0.7); backdrop-filter: blur(6px); }
.dialog h3 { font: 800 1.8rem/1.1 var(--font-display); font-stretch: 112%; margin-bottom: 16px; }
.dialog p { color: var(--muted); margin-bottom: 12px; }
.docs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 8px; }
.docs li { padding: 8px 14px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 0.9rem; }
.docs li[aria-disabled] { cursor: not-allowed; }
.docs li:has(a) { padding: 0; }
.docs a { display: block; padding: 8px 14px; border-radius: inherit; color: var(--ink); text-decoration: none; }
.docs a:hover { color: var(--accent); }
.docs-note { font-size: 0.85rem; }
.dialog form { margin-top: 20px; }

/* Contato */
.contact { background: var(--bg-2); }
.contact-grid { display: grid; gap: 48px; align-items: stretch; }
.contact-phone {
  display: inline-block; margin: 28px 0 32px; text-decoration: none;
  font: 800 clamp(1.8rem, 4vw, 3rem) var(--font-display); font-stretch: 112%; color: var(--accent);
}
.chips { display: grid; gap: 12px; }
.chips li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.chips span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); min-width: 140px; }
.chips a { text-decoration: none; font-weight: 500; }
.chips a:hover { color: var(--accent); }
.contact-phone { display: inline-flex; align-items: center; gap: 0.32em; }
.contact-phone .wa-icon { width: 0.62em; height: 0.62em; flex: none; opacity: 0.75; transition: opacity 0.2s, transform 0.2s var(--ease); }
.contact-phone:hover .wa-icon, .contact-phone:focus-visible .wa-icon { opacity: 1; transform: scale(1.08); }
.contact-address { margin-top: 24px; color: var(--muted); }
.contact-address a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in oklch, currentColor 35%, transparent); text-underline-offset: 4px; transition: color 0.2s; }
.contact-address a:hover, .contact-address a:focus-visible { color: var(--ink); text-decoration-color: var(--accent); }
.contact-address .ext-icon { display: inline-block; width: 0.95em; height: 0.95em; margin-left: 0.35em; vertical-align: -0.12em; }
.map { border-radius: var(--radius); overflow: hidden; background: var(--surface); min-height: 420px; display: flex; }
.map iframe { width: 100%; border: 0; min-height: 420px; }
.map-placeholder { margin: auto; padding: 32px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; color: var(--muted); max-width: 360px; }
.map-placeholder a { color: var(--ink); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 80px; } }

/* Rodapé */
.site-footer { padding: 64px 0 32px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: start; }
.footer-grid img { height: 52px; width: auto; }
.footer-grid nav { display: grid; gap: 10px; }
.footer-grid a, .footer-grid button { color: var(--muted); text-decoration: none; background: none; border: 0; text-align: left; padding: 0; font-size: 0.95rem; }
.footer-grid a:hover, .footer-grid button:hover { color: var(--ink); }
.footer-grid .social { display: inline-flex; align-items: center; gap: 10px; }
.social .social-icon { display: block; width: 20px; height: 20px; flex: none; }
.social .ext-icon { display: block; width: 0.8em; height: 0.8em; opacity: 0.5; transition: opacity 0.2s, transform 0.2s var(--ease); }
.social:hover .ext-icon, .social:focus-visible .ext-icon { opacity: 1; transform: translate(2px, -2px); }
.footer-copy { margin-top: 48px; color: var(--muted); font-size: 0.85rem; }

/* Páginas internas */
.page-hero { padding: calc(var(--header-h) + 96px) 0 64px; }
.page-body { padding-bottom: 120px; }
.page-body .card { padding-bottom: 28px; max-width: 760px; }

/* CookieYes com o visual do site (cores, fontes e raios nos dois temas).
   O script aplica cores inline, por isso os !important. */
.cky-consent-container, .cky-modal, .cky-btn { font-family: var(--font-body) !important; }
.cky-consent-container .cky-consent-bar, .cky-preference-center {
  background: var(--bg-2) !important; color: var(--ink) !important; border: 1px solid var(--line) !important;
  border-radius: 24px !important; box-shadow: 0 30px 80px oklch(0.05 0.01 60 / 0.6) !important;
}
.cky-title, .cky-preference-title, .cky-accordion-btn { color: var(--ink) !important; font-family: var(--font-display) !important; font-weight: 800 !important; font-stretch: 112%; }
/* Caixa da Hevi antes dos títulos (o "Custom logo" do painel só existe no plano Ultimate) */
.cky-title::before, .cky-preference-title::before {
  content: ""; display: inline-block; width: 1.15em; height: 1.15em; margin-right: 0.45em; vertical-align: -0.2em;
  background: url(../assets/logo/hevi-caixa.svg) center / contain no-repeat;
}
.cky-notice-des, .cky-preference-content-wrapper, .cky-dma-content-wrapper, .cky-accordion-header-des, .cky-accordion-body { color: var(--muted) !important; }
.cky-consent-container a, .cky-modal a:not([href*="cookieyes"]), .cky-show-desc-btn { color: var(--ink) !important; }
.cky-preference-header, .cky-footer-wrapper, .cky-horizontal-separator, .cky-accordion { border-color: var(--line) !important; }
.cky-audit-table { background: var(--surface) !important; color: var(--muted) !important; border-color: var(--line) !important; }
.cky-footer-shadow { background: linear-gradient(180deg, transparent, var(--bg-2)) !important; }
.cky-modal div[style*="#EDEDED"] { background: var(--surface) !important; border-radius: 0 0 24px 24px !important; }
/* Contêiner do modal é branco com cantos de 6px: some por trás da caixa arredondada */
.cky-modal { background: transparent !important; border-radius: 24px !important; box-shadow: none !important; }
.cky-btn-close img { filter: var(--cky-icon-filter, invert(1)); }
.cky-btn-close:focus-visible, .cky-btn:focus-visible { outline: 2px solid var(--accent) !important; outline-offset: 2px; }
html[data-theme="light"] { --cky-icon-filter: none; }
.cky-btn { border-radius: 999px !important; font-weight: 600 !important; }
/* Aceitar e Rejeitar com o mesmo destaque (sem dark pattern) */
.cky-btn-accept, .cky-btn-reject { background: var(--accent) !important; border-color: var(--accent) !important; color: var(--accent-ink) !important; }
.cky-btn-customize, .cky-btn-preferences {
  background: color-mix(in oklch, var(--ink) 8%, transparent) !important; color: var(--ink) !important;
  border-color: color-mix(in oklch, var(--ink) 25%, transparent) !important;
}
.cky-switch input { background: var(--line) !important; }
.cky-switch input:checked { background: var(--accent) !important; }
.cky-always-active { color: var(--kraft) !important; }
.cky-btn-revisit-wrapper { background: var(--accent) !important; }
html[data-a11y-contrast] :is(.cky-consent-bar, .cky-preference-center) { background: var(--bg) !important; }

/* Widget de acessibilidade */
.a11y { position: fixed; right: 16px; bottom: 16px; z-index: 55; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.a11y-fab { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--blue); color: var(--ink); display: grid; place-items: center; box-shadow: 0 8px 24px oklch(0.05 0.01 60 / 0.5); }
.a11y-panel { width: min(280px, calc(100vw - 32px)); background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: grid; gap: 8px; }
.a11y-panel[hidden] { display: none; }
.a11y-title { font-weight: 700; font-size: 1.1rem; }
.a11y-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.a11y-row div { display: flex; gap: 4px; }
.a11y-panel button { min-height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; }
.a11y-row button { min-width: 48px; }
.a11y-panel button:disabled { opacity: 0.4; cursor: not-allowed; }
.a11y-opt { text-align: left; padding: 0 12px; }
.a11y-opt[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* Revelação na rolagem (só com JS) */
.js .reveal { opacity: 0; transform: translateX(-40px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js #contato .reveal:not(.is-in) { transform: translateY(32px); }
.js .scene-head.reveal { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), color 0.9s ease; }

/* Preferências de acessibilidade */
html[data-a11y-font="1"] { font-size: 112.5%; }
html[data-a11y-font="2"] { font-size: 125%; }
html[data-a11y-font="3"] { font-size: 150%; }
html[data-a11y-links] a { text-decoration: underline !important; text-underline-offset: 3px; }
html[data-a11y-contrast] {
  --bg: oklch(0.08 0 0); --bg-2: oklch(0.08 0 0); --surface: oklch(0.12 0 0); --line: oklch(0.98 0 0);
  --ink: oklch(0.99 0 0); --muted: oklch(0.99 0 0); --kraft: oklch(0.95 0.18 105); --kraft-deep: oklch(0.95 0.18 105);
  --accent: oklch(0.95 0.18 105); --accent-ink: oklch(0.08 0 0); --blue: oklch(0.95 0.18 105);
  --light: oklch(0.08 0 0); --light-ink: oklch(0.99 0 0); --light-muted: oklch(0.99 0 0);
}
html[data-a11y-contrast] :is(.finish, .card, .seal, .a11y-panel, .dialog) { border: 1px solid var(--line); background: var(--bg); }
html[data-a11y-contrast] :is(.hero-bg, .banner-photo > img) { opacity: 0.25; }
html[data-a11y-contrast] .a11y-fab { color: var(--accent-ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .track { height: auto; }
  .road-scene { position: relative; height: auto; overflow-x: auto; }
  .convoy { transform: none; padding-inline: var(--pad); }
}

/* Texto corrido (páginas internas) */
.prose h2 { font: 800 1.4rem var(--font-display); font-stretch: 112%; margin-bottom: 8px; }
.prose ul { display: grid; gap: 12px; margin-top: 16px; list-style: disc; padding-left: 20px; color: var(--muted); }
.prose strong { color: var(--ink); }

/* Título dentro do quadro da cena, sobre o céu */
.scene-head {
  position: relative; z-index: 1; flex: none;
  color: oklch(0.97 0.006 75); text-shadow: 0 2px 24px oklch(0.1 0.01 60 / 0.55); pointer-events: none;
}
.scene-head .eyebrow { color: oklch(0.85 0.09 70); }
.scene-head .h2 { font-size: clamp(2rem, min(5vw, 7svh), 4.25rem); }
.road-scene .convoy { margin-top: auto; }
.scene-head { margin-bottom: clamp(20px, 4vh, 48px); }

/* Ferramentas do cabeçalho: idioma e tema */
.tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.langs { display: flex; gap: 2px; }
.langs button, .theme-toggle {
  width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent;
  display: grid; place-items: center; color: var(--ink); opacity: 0.55; transition: opacity 0.2s, background 0.2s;
}
.langs button:hover, .theme-toggle:hover { opacity: 1; background: color-mix(in oklch, var(--ink) 8%, transparent); }
.langs button[aria-pressed="true"] { opacity: 1; }
.langs svg { width: 24px; height: auto; border-radius: 3px; box-shadow: 0 0 0 1px color-mix(in oklch, var(--ink) 20%, transparent); }
.theme-toggle { opacity: 0.8; }
.theme-toggle svg { width: 22px; height: 22px; }
.nav-desktop { margin-left: auto; }
@media (min-width: 960px) { .tools { margin-left: 0; } }
@media (max-width: 959px) { .tools { gap: 2px; } .langs button, .theme-toggle { width: 36px; } }

/* Logo conforme o tema */
.logo-light { display: none; }
html[data-theme="light"] .logo-dark { display: none; }
html[data-theme="light"] .logo-light { display: block; }
html[data-a11y-contrast] .logo-light { display: none !important; }
html[data-a11y-contrast] .logo-dark { display: block !important; }

/* Tema claro */
html[data-theme="light"] {
  --bg: oklch(0.97 0.006 75);
  --bg-2: oklch(0.94 0.008 75);
  --surface: oklch(0.995 0.003 75);
  --line: oklch(0.87 0.01 70);
  --ink: oklch(0.2 0.012 60);
  --muted: oklch(0.45 0.015 60);
  --kraft: oklch(0.52 0.08 62);
  --kraft-deep: oklch(0.5 0.08 62);
  --light: oklch(0.92 0.01 75);
  --light-ink: oklch(0.2 0.012 60);
  --light-muted: oklch(0.45 0.015 60);
}
html[data-theme="light"] .tile, html[data-theme="light"] .card, html[data-theme="light"] .finish { box-shadow: 0 1px 2px oklch(0.2 0.01 60 / 0.06), 0 8px 24px oklch(0.2 0.01 60 / 0.06); }
/* Topo com foto e faixa de foto continuam escuros no tema claro */
html[data-theme="light"] :is(.hero, .banner-photo) {
  --bg: oklch(0.16 0.008 60);
  --bg-2: oklch(0.2 0.01 60);
  --line: oklch(0.32 0.012 60);
  --ink: oklch(0.96 0.008 75);
  --muted: oklch(0.74 0.015 70);
  --kraft: oklch(0.74 0.075 70);
  color: var(--ink);
}

/* Certificações: carrossel com cartões de vidro (glassmorphism) */
.certs { position: relative; overflow: hidden; isolation: isolate; padding-bottom: calc(var(--space) - 40px); }
.certs-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 46% at 18% 62%, oklch(0.72 0.19 50 / 0.55), transparent 70%),
    radial-gradient(34% 44% at 62% 38%, oklch(0.47 0.14 255 / 0.6), transparent 70%),
    radial-gradient(30% 40% at 92% 78%, oklch(0.74 0.075 70 / 0.45), transparent 70%);
  filter: blur(10px);
}
.certs-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.glass-nav { display: flex; gap: 10px; margin-bottom: clamp(40px, 6vw, 72px); }
.glass-btn {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in oklch, var(--ink) 10%, transparent); border: 1px solid color-mix(in oklch, var(--ink) 22%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--ink);
  transition: background 0.2s, transform 0.2s var(--ease);
}
.glass-btn:hover { background: color-mix(in oklch, var(--ink) 18%, transparent); transform: scale(1.06); }
.glass-btn:disabled { opacity: 0.35; transform: none; cursor: default; }
.glass-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.glass-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 320px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  padding: 28px max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad))) 40px; margin-top: -20px;
  scroll-padding-inline: max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad)));
}
.glass-rail::-webkit-scrollbar { display: none; }
.glass-card {
  scroll-snap-align: start; min-height: 360px; padding: 28px; border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 6px;
  background: linear-gradient(160deg, oklch(1 0 0 / 0.16), oklch(1 0 0 / 0.05));
  border: 1px solid oklch(1 0 0 / 0.22);
  backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.25) inset, 0 24px 60px oklch(0.05 0.01 60 / 0.35);
  transition: transform 0.4s var(--ease);
}
.glass-plate { display: grid; place-items: center; height: 150px; margin-bottom: auto; padding: 12px 4px; }
.glass-plate img { max-height: 100%; width: 100%; object-fit: contain; }
.glass-card strong { font: 800 1.6rem var(--font-display); font-stretch: 112%; margin-top: 22px; }
.glass-card span:not(.glass-plate) { color: var(--muted); }
html[data-theme="light"] .glass-card {
  background: linear-gradient(160deg, oklch(1 0 0 / 0.72), oklch(1 0 0 / 0.42));
  border-color: oklch(1 0 0 / 0.8);
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.9) inset, 0 24px 60px oklch(0.2 0.01 60 / 0.12);
}
html[data-theme="light"] .certs-glow { opacity: 0.7; }
html[data-a11y-contrast] .glass-card { background: var(--bg); backdrop-filter: none; border: 1px solid var(--line); }
html[data-a11y-contrast] .certs-glow { display: none; }
@media (max-width: 640px) { .glass-nav [data-rail="prev"], .glass-nav [data-rail="next"] { display: none; } }
.glass-btn .i-play { display: none; }
.glass-btn[aria-pressed="true"] .i-play { display: block; fill: currentColor; stroke: none; }
.glass-btn[aria-pressed="true"] .i-pause { display: none; }

/* Liquid glass no hover: brilho segue o cursor, borda refrata, vidro "incha" */
.glass-card { position: relative; overflow: hidden; --mx: 50%; --my: 0%;
  transition: transform 0.5s var(--ease), backdrop-filter 0.5s, box-shadow 0.5s; }
.glass-card::before, .glass-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s; }
.glass-card::before { background: radial-gradient(240px circle at var(--mx) var(--my), oklch(1 0 0 / 0.32), oklch(1 0 0 / 0.06) 45%, transparent 70%); mix-blend-mode: soft-light; }
.glass-card::after {
  padding: 1.5px;
  background: radial-gradient(160px circle at var(--mx) var(--my), oklch(1 0 0 / 0.95), transparent 70%),
              linear-gradient(135deg, oklch(1 0 0 / 0.55), transparent 40%, transparent 60%, oklch(0.8 0.1 60 / 0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.glass-card > * { position: relative; z-index: 1; }
.glass-card:hover {
  transform: translateY(-8px) scale(1.025);
  backdrop-filter: blur(30px) saturate(1.9) brightness(1.12); -webkit-backdrop-filter: blur(30px) saturate(1.9) brightness(1.12);
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.5) inset, 0 -1px 0 oklch(1 0 0 / 0.12) inset, 0 34px 80px oklch(0.05 0.01 60 / 0.45);
}
.glass-card:hover::before, .glass-card:hover::after { opacity: 1; }
.glass-card:hover .glass-plate img { transform: scale(1.06); }
.glass-plate img { transition: transform 0.5s var(--ease); filter: drop-shadow(0 0 1px oklch(1 0 0 / 0.9)) drop-shadow(0 6px 18px oklch(0.05 0.01 60 / 0.25)); }
@media (prefers-reduced-motion: reduce) { .glass-card:hover { transform: none; } }

/* FSC: branco chapado com liquid glass (igual nos dois temas) */
.glass-card.glass-fsc, html[data-theme="light"] .glass-card.glass-fsc {
  background: oklch(1 0 0); color: oklch(0.24 0.04 165); border-color: oklch(1 0 0);
  box-shadow: inset 0 1px 0 oklch(1 0 0), inset 0 -10px 28px oklch(0.88 0.03 160 / 0.45), 0 24px 60px oklch(0.05 0.01 60 / 0.3);
}
.glass-card.glass-fsc span:not(.glass-plate) { color: oklch(0.4 0.04 165); }
.glass-card.glass-fsc::before { mix-blend-mode: normal; background: radial-gradient(260px circle at var(--mx) var(--my), oklch(0.9 0.06 160 / 0.5), oklch(0.95 0.03 160 / 0.15) 45%, transparent 70%); }
.glass-card.glass-fsc::after { background: radial-gradient(160px circle at var(--mx) var(--my), oklch(0.7 0.1 160 / 0.9), transparent 70%), linear-gradient(135deg, oklch(0.85 0.05 160 / 0.8), transparent 40%, transparent 60%, oklch(0.8 0.1 60 / 0.6)); }
.glass-card.glass-fsc:hover { box-shadow: inset 0 1px 0 oklch(1 0 0), inset 0 -12px 32px oklch(0.85 0.04 160 / 0.55), 0 34px 80px oklch(0.05 0.01 60 / 0.4); }
.glass-card.glass-fsc .glass-plate img { filter: none; }
html[data-a11y-contrast] .glass-card.glass-fsc { color: oklch(0.1 0 0); }

/* Logística: tema escuro = noite, tema claro = dia. O céu de dia entra em fade por cima da noite. */
.road-scene::before {
  content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 0.9s ease;
  background: linear-gradient(180deg, var(--bg) 0%, oklch(0.8 0.08 235) 32%, oklch(0.92 0.045 215) 74%, oklch(0.58 0.06 130) 74.2%, var(--bg) 100%);
}
.road-scene .forest { transition: filter 0.9s ease; }
.road, .sky-glow, .scene-head { transition: background-color 0.9s ease, color 0.9s ease, opacity 0.9s ease; }
html[data-theme="light"] .road-scene::before { opacity: 1; }
html[data-theme="light"] .road-scene .forest { filter: brightness(2.9) saturate(1.35); }
html[data-theme="light"] .sky-glow { background: radial-gradient(closest-side, oklch(0.99 0.07 95 / 0.75), transparent); }
html[data-theme="light"] .road { background-color: oklch(0.4 0.006 60); border-top-color: oklch(0.55 0.01 60); }
html[data-theme="light"] .scene-head { color: oklch(0.2 0.02 250); text-shadow: 0 2px 20px oklch(1 0 0 / 0.5); }
html[data-theme="light"] .scene-head .eyebrow { color: oklch(0.45 0.13 50); }

/* Utilitários (substituem style inline; CSP sem 'unsafe-inline') */
.mt-20 { margin-top: 20px; }
.nowrap { white-space: nowrap; }
.pos-72 { object-position: 72% center; }
