/* ===== Cores de texto =====
   Fundos usam as cores oficiais exatas (#007F65, #E10B17, #A2A2A2).
   Em texto, o tema escuro usa um tom mais claro do mesmo verde/vermelho
   e o claro usa um cinza mais escuro, para manter a leitura (contraste 4,5:1). */
:root {
  --green-text: #007F65;
  --red-text: #E10B17;
  --gray-text: #6E6E6E;
}
[data-theme="dark"] {
  --green-text: #2BA888;
  --red-text: #F25560;
  --gray-text: #A2A2A2;
}

/* ===== Componentes compartilhados pelos 3 templates =====
   Usa as variáveis de cada template com fallback, pois os nomes variam
   (--ink / --text, --ink-muted / --text-muted, --bg-soft / --bg-alt). */

/* ----- Logo combinada OMB Latam Triel-HT ----- */
.brand-combo-link { display: inline-flex; align-items: center; }
.brand-combo { height: 58px; width: auto; }
.brand-combo-footer { height: 88px; width: auto; margin: 0 auto; }

.logo-theme--dark { display: none; }
[data-theme="dark"] .logo-theme--light { display: none; }
[data-theme="dark"] .logo-theme--dark { display: block; }

@media (max-width: 480px) {
  .brand-combo { height: 48px; }
}

/* ----- Vídeo institucional (topo do site) ----- */
.video-hero {
  position: relative;
  background: #000;
  line-height: 0;
}
.video-hero__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 80px);
  max-height: calc(100svh - 80px);
  margin: 0 auto;
  background: #000;
  object-fit: contain;
}
.video-hero__controls {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: flex;
  gap: 10px;
  line-height: 1;
}
.video-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(10, 11, 13, 0.6);
  backdrop-filter: blur(6px);
  color: #fff;
  font: 600 0.9rem/1 var(--font-head, Arial, sans-serif);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.video-hero__btn:hover { background: rgba(10, 11, 13, 0.85); border-color: #fff; }
.video-hero__btn:focus-visible { outline: 3px solid var(--omb-teal, #007F65); outline-offset: 2px; }

@media (max-width: 600px) {
  .video-hero__controls { right: 12px; bottom: 12px; }
  .video-hero__btn { padding: 8px 12px; font-size: 0.8rem; }
}

/* ----- Eco Expo 2026 / produto em destaque ----- */
.expo {
  padding: 90px 0;
  background: var(--bg-soft, var(--bg-alt));
  color: var(--ink, var(--text));
}
.expo-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}
.expo-media { position: relative; }
.expo-media::before {
  content: "";
  position: absolute;
  inset: 12% 4% 4%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 127, 101, 0.22), rgba(225, 11, 23, 0.10) 60%, transparent);
  filter: blur(10px);
}
.expo-media img { position: relative; width: 100%; height: auto; }

.expo-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font: 700 0.78rem/1 var(--font-head, Arial, sans-serif);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted, var(--text-muted));
  margin-bottom: 18px;
}
.expo-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--omb-teal, #007F65);
}
.expo-status.is-live { color: var(--red-text); border-color: currentColor; }
.expo-status.is-live::before { background: var(--triel-red, #E10B17); animation: expo-pulse 1.4s ease-in-out infinite; }
@keyframes expo-pulse { 50% { opacity: 0.25; } }

.expo-title {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 18px;
}
.expo-title .text-gradient {
  background: linear-gradient(100deg, var(--triel-red, #E10B17) 0%, var(--brand-gray, #A2A2A2) 50%, var(--omb-teal, #007F65) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.expo-lead { color: var(--ink-muted, var(--text-muted)); font-size: 1.05rem; margin: 0 0 28px; }

.expo-details {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 12px;
  margin: 0 0 32px;
}
.expo-details div {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.expo-details dt {
  font: 700 0.72rem/1.2 var(--font-head, Arial, sans-serif);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted, var(--text-muted));
  margin-bottom: 4px;
}
.expo-details dd { margin: 0; font-weight: 600; line-height: 1.35; }
.expo-details .expo-stand dd {
  font: 800 1.5rem/1.1 var(--font-head, Arial, sans-serif);
  color: var(--triel-red, #E10B17);
}
.expo-actions { display: flex; gap: 14px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  .expo-status.is-live::before { animation: none; }
}
@media (max-width: 860px) {
  .expo { padding: 64px 0; }
  .expo-inner { grid-template-columns: 1fr; gap: 32px; }
  .expo-details { grid-template-columns: 1fr 1fr; }
  .expo-details .expo-local { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .expo-actions { flex-direction: column; align-items: stretch; }
}

/* ===== Ícones próprios (assets/icons.svg) =====
   Traço herdado aqui; o detalhe de destaque de cada ícone usa --ico-accent.
   Os "chips" são inclinados como as letras itálicas da logo OMB Triel-HT. */
.ico {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.2em;
  overflow: visible;
}
:root { --ico-accent: var(--omb-teal, #007F65); }

.btn .ico { width: 1.05em; height: 1.05em; }
.empresa-link .ico { width: 0.95em; height: 0.95em; vertical-align: -0.12em; }

/* Botões do topo (tema e painel) */
.theme-toggle .ico { width: 20px; height: 20px; }
.theme-toggle { color: var(--ink, var(--text)); --ico-accent: var(--triel-red, #E10B17); }
.header-admin { --ico-accent: var(--omb-teal, #007F65); text-decoration: none; }

/* Selo "em construção" */
.badge-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 19px;
  border-radius: 2px;
  transform: skewX(-12deg);
  background: var(--triel-red, #E10B17);
  box-shadow: 10px 0 0 var(--omb-teal, #007F65);
  vertical-align: 0.05em;
}

/* Cards "próximos passos" */
.proximo-item .proximo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 10px;
  border: 1.5px solid color-mix(in srgb, var(--ico-accent) 45%, transparent);
  background: color-mix(in srgb, var(--ico-accent) 12%, transparent);
  color: var(--ink, var(--text));
  transform: skewX(-12deg);
  font-size: 1rem;
}
.proximo-item .proximo-icon .ico { width: 27px; height: 27px; transform: skewX(12deg); }
.proximo-item:nth-child(1) { --ico-accent: var(--triel-red, #E10B17); }
.proximo-item:nth-child(2) { --ico-accent: var(--brand-gray, #A2A2A2); }
.proximo-item:nth-child(3) { --ico-accent: var(--omb-teal, #007F65); }

/* Contatos */
.contato-card:nth-child(1) { --ico-accent: var(--triel-red, #E10B17); }
.contato-card:nth-child(2) { --ico-accent: var(--omb-teal, #007F65); }
.contato-list .ci {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--ico-accent) 8%, transparent);
  color: var(--ink, var(--text));
  transform: skewX(-12deg);
}
.contato-list .ci .ico { width: 19px; height: 19px; transform: skewX(12deg); }
.social-row a { color: var(--ink, var(--text)); }
.social-row a .ico { width: 20px; height: 20px; }

/* Faixa da feira e detalhes da Eco Expo */
.feira-icon { display: inline-flex; --ico-accent: currentColor; }
.feira-icon .ico { width: 26px; height: 26px; }
.expo-details dt { display: flex; align-items: center; gap: 6px; }
.expo-details dt .ico { width: 15px; height: 15px; stroke-width: 2; --ico-accent: var(--triel-red, #E10B17); }

/* Botões do vídeo */
.video-hero__btn { --ico-accent: #fff; }
.video-hero__btn .ico { width: 17px; height: 17px; }

/* ===== Indicador "role para ver mais" ===== */
.scroll-cue {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 7px 7px 7px 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(10, 11, 13, 0.72);
  backdrop-filter: blur(8px);
  color: #fff;
  font: 600 0.88rem/1 var(--font-head, Arial, sans-serif);
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transform: translateX(-50%);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.scroll-cue.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
}
.scroll-cue:focus-visible { outline: 3px solid var(--omb-teal, #007F65); outline-offset: 3px; }
.scroll-cue__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--triel-red, #E10B17), var(--omb-teal, #007F65));
  --ico-accent: #fff;
  overflow: hidden;
}
.scroll-cue__arrow .ico {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
  color: rgba(255, 255, 255, 0.55);
  animation: scroll-cue-drop 1.6s ease-in-out infinite;
}
@keyframes scroll-cue-drop {
  0%   { transform: translateY(-5px); opacity: 0; }
  30%  { opacity: 1; }
  70%  { transform: translateY(4px); opacity: 1; }
  100% { transform: translateY(8px); opacity: 0; }
}
.scroll-cue:hover .scroll-cue__arrow { filter: brightness(1.1); }

@media (max-width: 600px) {
  .scroll-cue { padding: 6px; bottom: 18px; }
  .scroll-cue__text { display: none; }
  .scroll-cue__arrow { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue__arrow .ico { animation: none; color: #fff; }
}
