@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&family=Roboto:wght@400;500;700&display=swap');

.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Keep critical product navigation visible even if animation JS is delayed,
   blocked, or unsupported by an older browser. */
.products-sidebar.fade-in-up {
  opacity: 1;
  transform: none;
}

.home-hero-eyebrow {
  background: var(--imb-white);
  border-radius: 9999px;
  box-shadow: 0 10px 24px rgba(31, 35, 34, 0.16);
  color: var(--imb-orange);
}

/* Hero slideshow — crossfading placeholder photos, cycled by js/main.js. */
.hero-slideshow {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-slide.is-active {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }
}

/* Ploomes CRM contact form embed (responsive iframe). */
.ploomes-form-embed {
  width: 100%;
}
.ploomes-form-embed iframe {
  display: block;
  width: 100%;
  min-height: 800px;
  border: 0;
  border-radius: 8px;
}

/* Single-color button utilities. */
.btn-solid-orange {
  background: var(--imb-orange);
}
.btn-solid-orange:hover {
  background: var(--imb-red);
}

.btn-secondary-light {
  background: var(--imb-neutral-200);
  border: 1px solid var(--imb-neutral-300);
  color: var(--imb-black);
}
.btn-secondary-light:hover {
  background: var(--imb-neutral-300);
}

.nav-link {
  color: var(--imb-neutral-600);
  flex-shrink: 0;
  transition: color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.is-active {
  color: var(--imb-orange);
}
.nav-link.is-active {
  border-bottom: 2px solid var(--imb-orange);
  padding-bottom: 0.25rem;
}

.nav-cta {
  align-items: center;
  border-radius: 9999px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  justify-content: center;
  letter-spacing: 0.04em;
  line-height: 1;
  min-height: 2.55rem;
  padding: 0.75rem 1.2rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.lang-pill {
  border-radius: 9999px;
  color: var(--imb-black);
  display: inline-flex;
  line-height: 1;
  padding: 0.45rem 0.6rem;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.lang-pill:hover {
  background: var(--imb-neutral-200);
}
.lang-pill.is-current {
  background: var(--imb-neutral-200);
  color: var(--imb-neutral-600);
}

.wa-solid {
  background: var(--imb-success);
}
.wa-solid:hover {
  background: rgba(76, 202, 57, 0.84);
}

/* Pulsa pontinho verde indicando online/horário comercial. */
.wa-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--imb-neutral-600);
  letter-spacing: 0.02em;
}
.wa-hint::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--imb-success);
  box-shadow: 0 0 0 0 rgba(76, 202, 57, 0.55);
  animation: wa-hint-pulse 2s infinite;
}
@keyframes wa-hint-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(76, 202, 57, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(76, 202, 57, 0);  }
  100% { box-shadow: 0 0 0 0 rgba(76, 202, 57, 0);    }
}
@media (prefers-reduced-motion: reduce) {
  .wa-hint::before { animation: none; }
}

.catalog-control-panel {
  background: var(--imb-white);
  border: 1px solid var(--imb-neutral-300);
  border-radius: var(--imb-radius-card);
  box-shadow: var(--imb-shadow-1);
  padding: 1.25rem;
}

.catalog-control-stack {
  display: grid;
  gap: 1rem;
}

.catalog-control-label {
  color: var(--imb-neutral-600);
  display: block;
  font-family: 'Roboto', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
}

.catalog-search,
.catalog-select {
  background: var(--imb-neutral-100);
  border: 1px solid var(--imb-neutral-300);
  border-radius: 9999px !important;
  color: var(--imb-black);
  font-size: 0.88rem;
  min-height: 44px;
  padding: 0.75rem 1rem;
  width: 100%;
}

.catalog-search {
  background: linear-gradient(180deg, #f1f3f5 0%, #e9ecef 100%);
  border-color: var(--imb-neutral-400);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.catalog-search::placeholder {
  color: var(--imb-neutral-600);
}

.catalog-search:focus {
  border-color: var(--imb-orange);
  box-shadow: 0 0 0 3px rgba(var(--imb-orange-rgb), 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  outline: none;
}

.catalog-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6.25L8 10.25L12 6.25' stroke='%236c757d' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 1rem center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
  padding-right: 2.75rem;
}

.catalog-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.catalog-filter-button {
  align-items: center;
  background: var(--imb-neutral-100);
  border: 1px solid var(--imb-neutral-300);
  border-radius: 9999px;
  color: var(--imb-neutral-700);
  cursor: pointer;
  display: inline-flex;
  font-family: 'Roboto', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  justify-content: center;
  letter-spacing: 0.04em;
  line-height: 1.1;
  min-height: 34px;
  padding: 0.55rem 0.85rem;
  text-transform: uppercase;
}

.catalog-filter-button.is-active {
  background: var(--imb-orange) !important;
  border-color: var(--imb-orange) !important;
  color: #ffffff !important;
}

.catalog-filter-button:focus-visible {
  outline: 3px solid rgba(var(--imb-orange-rgb), 0.24);
  outline-offset: 2px;
}

.catalog-result-summary {
  align-items: center;
  color: var(--imb-neutral-600);
  display: flex;
  font-size: 0.86rem;
  justify-content: space-between;
  line-height: 1.4;
}

.catalog-empty {
  background: var(--imb-white);
  border: 1px dashed var(--imb-neutral-400);
  border-radius: var(--imb-radius-card);
  color: var(--imb-neutral-600);
  padding: 2rem;
  text-align: center;
}

.ghost-border {
  outline: 1px solid rgba(209, 197, 171, 0.2);
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

body {
  font-family: 'Roboto', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
}

/* Drive the drawer transform explicitly (ID specificity beats Tailwind's .translate-x-full).
   Toggling the .translate-x-full class alone removed the transform *property*, which froze
   the CSS transition mid-closed and left the panel off-screen on mobile. Explicit values on
   both states let the 0.3s slide animate reliably. JS still toggles .translate-x-full. */
#mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}
#mobile-menu:not(.translate-x-full) {
  transform: translateX(0);
}

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(76, 202, 57, 0.5); }
  50% { box-shadow: 0 0 0 12px rgba(76, 202, 57, 0); }
}
.wa-fab {
  animation: wa-pulse 2.5s infinite;
}

/* --- Mobile usability --- */
/* The WhatsApp FAB markup is `hidden md:flex`, so it never showed on phones — even though it
   carries a mobile size (w-14 h-14). For a WhatsApp-first site that's the wrong default. Force it
   visible on every viewport; `a.wa-fab` outranks the `.hidden` utility on specificity, and the
   print rule (display:none !important) still hides it when printing. */
a.wa-fab {
  display: flex;
}
/* Footer links render as ~14px text — fiddly to tap on mobile. Pad the hit area vertically
   without disturbing the visual layout. Footer has no anchor logo, so this only hits real links. */
footer a {
  display: inline-block;
  padding-block: 0.35rem;
}

.spec-chip {
  border-radius: 9999px;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f8f9fa;
}
::-webkit-scrollbar-thumb {
  background: #ced4da;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #6c757d;
}

::selection {
  background: #ea7805;
  color: #1f2322;
}

/* ========== Clients marquee ========== */
.marquee {
  position: relative;
  overflow: hidden;
  z-index: 1;
  isolation: isolate;
  /* Vertical padding gives cards room to lift on hover without being clipped. */
  padding-top: 4px;
  padding-bottom: 4px;
  margin-top: -4px;
  margin-bottom: -4px;
  /* Edge fade mask removed for the solid-color treatment. */
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 45s linear infinite;
  will-change: transform;
}
/* Marquee continues running even on hover/focus — never pause */
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}
.client-logo {
  flex: 0 0 auto;
  height: 96px;
  min-width: 220px;
  margin-right: 1.75rem;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Cores fixas nos dois temas: as marcas dos clientes precisam do mesmo fundo
     para o qual foram desenhadas — trocar no dark mode apaga metade dos logos. */
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 20px;
  padding: 1.25rem 1.75rem;
  font-family: 'Roboto', sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 1.05rem;
  color: var(--imb-neutral-600);
  text-align: center;
  line-height: 1.05;
  /* Dessaturação leve: com logos reais, grayscale(100%) + opacity .65 apagava marcas
     de tom claro (CONTEC, ICV). Cor cheia no hover. */
  filter: grayscale(55%);
  opacity: 0.9;
  transition: filter 0.3s, opacity 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
}
.client-logo:hover { filter: grayscale(0); opacity: 1; color: #ea7805; border-color: #ea7805; transform: translateY(-2px); z-index: 3; }
.client-logo img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
/* Logos monocromáticos em branco só aparecem sobre fundo escuro. */
.client-logo--dark {
  background: #1f2322;
  border-color: #1f2322;
}

/* ========== Compare page ========== */
.compare-picker-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(278px, 1fr));
}

/* ToDo(compare-picker-card): se a foto oficial de cada produto mudar, revisar object-position nos thumbnails. */
.picker-card {
  align-items: center;
  background: var(--imb-white);
  border: 1px solid var(--imb-neutral-300) !important;
  border-radius: var(--imb-radius-card);
  box-shadow: 0 3px 10px rgba(31, 35, 34, 0.12);
  column-gap: 0.75rem;
  cursor: pointer;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  min-height: 104px;
  padding: 0.5rem 2.75rem 0.5rem 0.5rem;
  position: relative;
  text-align: left;
  transition: border-color var(--imb-transition), box-shadow var(--imb-transition), transform var(--imb-transition);
}

.picker-card:hover {
  border-color: var(--imb-neutral-400) !important;
  box-shadow: var(--imb-shadow-1);
  transform: translateY(-1px);
}

.picker-card[aria-pressed="true"] {
  border-color: var(--imb-orange) !important;
  box-shadow: 0 0 0 2px rgba(var(--imb-orange-rgb), 0.18), var(--imb-shadow-1);
}

.picker-thumb {
  align-self: stretch;
  background: var(--imb-neutral-200);
  border-radius: 14px;
  min-height: 88px;
  overflow: hidden;
}

.picker-thumb img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--imb-transition);
  width: 100%;
}

.picker-card:hover .picker-thumb img {
  transform: scale(1.04);
}

.picker-copy {
  min-width: 0;
}

.picker-title {
  color: var(--imb-black);
  display: -webkit-box;
  font-family: 'Poppins', sans-serif;
  font-size: var(--imb-type-subtitle-2);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.15;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.picker-subtitle {
  color: var(--imb-neutral-600);
  display: grid;
  font-family: 'Roboto', sans-serif;
  font-size: var(--imb-type-body-2);
  font-weight: 400;
  line-height: 1.25;
  margin-top: 0.25rem;
  row-gap: 0.1rem;
}

.cmp-top-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  margin-bottom: 0.75rem;
  padding-bottom: 0.15rem;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}
.cmp-top-scroll-track {
  height: 1px;
}
.cmp-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}
.cmp-grid {
  display: grid;
  min-width: 720px;
}
.cmp-head-cell {
  padding: 1.25rem 1rem;
  background: var(--imb-white);
  border-bottom: 1px solid var(--imb-neutral-200);
  position: sticky;
  top: 0;
  z-index: 5;
}
.cmp-head-label {
  background: var(--imb-neutral-100);
  border-right: 1px solid var(--imb-neutral-200);
}
.cmp-row-label {
  padding: 0.9rem 1rem;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--imb-neutral-600);
  background: var(--imb-neutral-100);
  border-right: 1px solid var(--imb-neutral-200);
  border-bottom: 1px solid var(--imb-neutral-100);
  display: flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cmp-cell {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--imb-neutral-100);
  border-right: 1px solid var(--imb-neutral-100);
  display: flex;
  align-items: center;
}
.cmp-cell:last-child { border-right: 0; }
.cmp-section-head {
  padding: 0.85rem 1rem;
  background: #e9ecef;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: #1f2322;
  border-top: 1px solid #ced4da33;
  border-bottom: 1px solid #ced4da33;
}
/* Cabeçalho de categoria vira botão de recolher/expandir. */
.cmp-section-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  border-left: 0;
  border-right: 0;
  cursor: pointer;
  transition: box-shadow 0.2s;
  /* Sem `font: inherit` aqui: o shorthand zeraria a tipografia de .cmp-section-head. */
}
/* Realce translúcido para o hover funcionar no tema claro e no escuro. */
.cmp-section-toggle:hover { box-shadow: inset 0 0 0 999px rgba(127, 127, 127, 0.14); }
.cmp-section-toggle:focus-visible { outline: 2px solid #ea7805; outline-offset: -2px; }
.cmp-section-chevron {
  margin-left: 0.5rem;
  font-size: 1.25rem;
  color: var(--imb-neutral-600);
  transition: transform 0.25s;
}
.cmp-section-toggle[aria-expanded="false"] .cmp-section-chevron { transform: rotate(-90deg); }
/* A contagem só aparece quando a seção está recolhida, para lembrar o que ficou escondido. */
.cmp-section-count {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--imb-neutral-600);
  text-transform: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.cmp-section-toggle[aria-expanded="false"] .cmp-section-count { opacity: 1; }
.cmp-section-title { margin-right: 0.5rem; }
.cmp-row-hidden { display: none; }
.cmp-bar-track {
  width: 100%;
  height: 8px;
  background: var(--imb-neutral-200);
  border-radius: 9999px;
  overflow: hidden;
}
.cmp-bar-fill {
  height: 100%;
  background: var(--imb-orange);
  border-radius: 9999px;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.cmp-table-wrap {
  box-shadow: 0 1px 0 rgba(22,28,31,0.04);
  overflow: hidden;
}

@media (max-width: 640px) {
  .cmp-head-cell { padding: 0.85rem 0.6rem; }
  .cmp-row-label { padding: 0.75rem 0.6rem; font-size: 0.7rem; }
  .cmp-cell      { padding: 0.75rem 0.6rem; }
  .cmp-section-head { padding: 0.7rem 0.6rem; }
}

@media print {
  nav, .wa-fab, #mobile-menu, #menu-overlay { display: none !important; }
  body { font-size: 12pt; }
  .cmp-scroll { overflow: visible !important; }
  .cmp-grid   { min-width: 0; }
  #share-link-btn, #print-btn, #picker, #select-all-btn, #clear-btn, footer { display: none !important; }
  /* O PDF é documento técnico: sai completo mesmo com seções recolhidas na tela. */
  .cmp-row-hidden { display: block !important; }
  .cmp-section-chevron, .cmp-section-count { display: none !important; }
}
/* ========== IMB Design System tokens ==========
   Typography: Poppins for headlines (h1-h6, .font-headline); Roboto for body/labels.
   Spacing: prefer Tailwind utilities aligned to multiples of 8 — i.e. p-2 (8), p-4 (16),
   p-6 (24), p-8 (32), p-12 (48), p-16 (64). Avoid p-3 (12) / p-5 (20) for major
   layout rhythm — they remain only for small interior gaps where 8 is too loose.
   Base spacing unit: 16px. */
:root {
  --imb-black: #1f2322;
  --imb-body: #1f2322;
  --imb-orange: #ea7805;
  --imb-red: #e94f1b;
  --imb-blue-dark: #272e63;
  --imb-accent: #272e63;
  --imb-yellow: #fdc531;
  --imb-success: #4cca39;
  --imb-error: #ff0000;
  --imb-neutral-800: #343a40;
  --imb-neutral-700: #495057;
  --imb-neutral-600: #6c757d;
  --imb-neutral-500: #adb5bd;
  --imb-neutral-400: #ced4da;
  --imb-neutral-300: #dee2e6;
  --imb-neutral-200: #e9ecef;
  --imb-neutral-100: #f8f9fa;
  --imb-white: #ffffff;
  color-scheme: light;
  --imb-orange-rgb: 234, 120, 5;
  --imb-blue-dark-rgb: 39, 46, 99;
  --imb-yellow-rgb: 253, 197, 49;
  --imb-transition: 400ms ease-in-out;
  --imb-radius-card: 20px;
  --imb-radius-control: 8px;
  --imb-shadow-1: 0 8px 24px rgba(31, 35, 34, 0.08);
  --imb-shadow-2: 0 12px 40px rgba(31, 35, 34, 0.12);
  --imb-container: 1440px;
  --imb-type-h1: 60px;
  --imb-type-h2: 48px;
  --imb-type-h3: 40px;
  --imb-type-subtitle-1: 28px;
  --imb-type-subtitle-2: 18px;
  --imb-type-body-1: 18px;
  --imb-type-body-2: 16px;
}

html {
  font-size: 16px;
}

body {
  background: var(--imb-neutral-100);
  color: var(--imb-body);
  font-family: 'Roboto', sans-serif;
  font-size: var(--imb-type-body-2);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-headline,
/* É <button> por causa do recolher/expandir, mas segue sendo título de seção. */
.cmp-section-toggle {
  font-family: 'Poppins', sans-serif !important;
}

.font-body,
.font-label {
  font-family: 'Roboto', sans-serif !important;
}

/* ToDo(type-scale): if future pages need smaller local titles, add semantic classes instead of new ad-hoc Tailwind sizes. */
h1 {
  font-size: clamp(42px, 5vw, var(--imb-type-h1)) !important;
  line-height: 1.08 !important;
}

h2:not([class*="text-sm"]):not([class*="text-xs"]) {
  font-size: clamp(34px, 4vw, var(--imb-type-h2)) !important;
  line-height: 1.1 !important;
}

h3:not([class*="text-sm"]):not([class*="text-base"]):not([class*="text-lg"]):not([class*="text-xl"]) {
  font-size: clamp(30px, 3.4vw, var(--imb-type-h3)) !important;
  line-height: 1.15 !important;
}

p,
li,
td,
th {
  font-family: 'Roboto', sans-serif;
}

nav a,
nav button,
footer a,
footer p,
button,
input,
select,
textarea,
.nav-cta,
.wa-link,
.lang-switcher-btn,
.catalog-filter-button,
.catalog-search,
.catalog-select,
.cmp-cell,
.cmp-row-label {
  font-family: 'Roboto', sans-serif !important;
}

/* IMB Design System utility overrides.
   The static pages use Tailwind CDN tokens inline, so this layer normalizes
   every page and JS-rendered component to the approved palette. */
.max-w-7xl {
  max-width: var(--imb-container) !important;
}

.bg-white,
.bg-surface,
.bg-background,
.bg-surface-container-lowest {
  background-color: var(--imb-white) !important;
}
.bg-surface-container-low,
.bg-surface-container {
  background-color: var(--imb-neutral-100) !important;
}
.bg-surface-container-high,
.bg-surface-container-highest,
.bg-surface-dim,
.bg-secondary-container {
  background-color: var(--imb-neutral-200) !important;
}
.bg-primary,
.bg-primary-container {
  background-color: var(--imb-orange) !important;
}
.bg-primary-fixed,
.bg-primary-fixed-dim {
  background-color: var(--imb-yellow) !important;
}
.bg-tertiary,
.bg-on-background,
.bg-inverse-surface {
  background-color: var(--imb-blue-dark) !important;
}
.bg-tertiary-container,
.bg-tertiary-fixed {
  background-color: rgba(var(--imb-blue-dark-rgb), 0.08) !important;
}
.bg-on-surface,
.bg-inverse-primary {
  background-color: #1f2322 !important;
}
.bg-success {
  background-color: var(--imb-success) !important;
}
.bg-success-soft {
  background-color: rgba(76, 202, 57, 0.16) !important;
}
.hover\:bg-success-strong:hover {
  background-color: rgba(76, 202, 57, 0.84) !important;
}
.bg-primary-container\/20,
.bg-primary-container\/30,
.bg-primary-container\/40 {
  background-color: rgba(var(--imb-orange-rgb), 0.12) !important;
}
.bg-tertiary-container\/20,
.bg-tertiary-container\/30 {
  background-color: rgba(var(--imb-blue-dark-rgb), 0.08) !important;
}
.bg-white\/10,
.bg-white\/15,
.bg-white\/20 {
  background-color: rgba(255, 255, 255, 0.16) !important;
}
.bg-on-surface\/5,
.bg-on-surface\/40,
.bg-on-surface\/90 {
  background-color: rgba(33, 37, 41, 0.9) !important;
}

.text-on-surface,
.text-on-background,
.text-on-primary-fixed,
.text-on-primary-fixed-variant {
  color: var(--imb-body) !important;
}
.text-on-surface-variant,
.text-secondary,
.text-outline,
.text-outline-variant,
.text-on-secondary-container {
  color: var(--imb-neutral-600) !important;
}
.text-primary,
.text-primary-container {
  color: var(--imb-orange) !important;
}
.text-on-primary,
.text-on-primary-container,
.text-white {
  color: #ffffff !important;
}
.text-tertiary,
.text-on-tertiary-container,
.text-on-tertiary-fixed,
.text-on-tertiary-fixed-variant {
  color: var(--imb-accent) !important;
}
.text-inverse-on-surface {
  color: #f1f3f5 !important;
}
.text-success {
  color: var(--imb-success) !important;
}

.border-primary,
.border-primary-container {
  border-color: var(--imb-orange) !important;
}
.border-outline,
.border-outline-variant,
.border-surface-container-high,
.border-surface-container-highest {
  border-color: var(--imb-neutral-400) !important;
}
.border-tertiary {
  border-color: var(--imb-blue-dark) !important;
}
.ring-primary {
  --tw-ring-color: var(--imb-orange) !important;
}

.hover\:bg-primary:hover,
.hover\:bg-primary-container:hover,
.hover\:bg-primary-fixed-dim:hover {
  background-color: var(--imb-red) !important;
}
.hover\:bg-surface-container-high:hover,
.hover\:bg-surface-dim:hover {
  background-color: var(--imb-neutral-200) !important;
}
.hover\:bg-inverse-surface:hover,
.hover\:bg-on-background:hover {
  background-color: var(--imb-neutral-800) !important;
}
.hover\:text-primary:hover {
  color: var(--imb-orange) !important;
}
.hover\:text-on-primary:hover,
.hover\:text-on-primary-container:hover {
  color: #ffffff !important;
}

.tracking-tight,
.tracking-tighter {
  letter-spacing: 0 !important;
}

.rounded-lg,
.rounded-xl,
.rounded-2xl,
.client-logo,
.cmp-table-wrap {
  border-radius: var(--imb-radius-card) !important;
}
.rounded,
.rounded-md,
input,
select,
textarea {
  border-radius: var(--imb-radius-control) !important;
}
.rounded-full,
.spec-chip,
.wa-fab {
  border-radius: 9999px !important;
}

/* ToDo(button-radius): manter CTAs e controles acionáveis em formato pill;
   cards continuam usando var(--imb-radius-card). */
a.rounded,
a.rounded-sm,
a.rounded-md,
button.rounded,
button.rounded-sm,
button.rounded-md,
button:not(.picker-card):not(.cmp-section-toggle),
.btn-solid-orange,
.btn-secondary-light,
.nav-cta,
.wa-link,
a[class*="px-"][class*="py-"][class*="rounded"],
span[class*="px-"][class*="py-"][class*="rounded"][class*="bg-"],
a[class*="inline-flex"].rounded-lg,
a[class~="flex"].rounded-lg,
button.rounded-lg[class*="inline-flex"],
button.rounded-lg[class~="flex"] {
  border-radius: 9999px !important;
}
/* Force-keep card radius on these even if other rules want to override. */
.picker-card,
button.picker-card {
  border-radius: var(--imb-radius-card) !important;
}
.wa-fab {
  border-radius: 9999px !important;
}
/* Mobile menu round icon buttons (rounded-full already, but keep explicit). */
#mobile-menu-btn,
#close-menu-btn {
  border-radius: 9999px !important;
}

a,
button,
input,
select,
textarea,
.picker-card,
.spec-chip,
.client-logo,
.cmp-bar-fill {
  transition-duration: 400ms !important;
  transition-timing-function: ease-in-out !important;
}
.duration-300,
.duration-500,
.duration-700 {
  transition-duration: 400ms !important;
}

.shadow-sm,
.shadow-md,
.shadow-lg,
.shadow-xl,
.shadow-2xl {
  box-shadow: var(--imb-shadow-1) !important;
}
.hover\:shadow-xl:hover,
.hover\:shadow-2xl:hover {
  box-shadow: var(--imb-shadow-2) !important;
}
/* Force orange-tinted shadow classes back to neutral grey (DS shadow tokens). */
[class*="shadow-primary"],
[class*="shadow-on-surface"] {
  box-shadow: var(--imb-shadow-1) !important;
}
[class*="hover:shadow-primary"]:hover,
[class*="hover:shadow-on-surface"]:hover {
  box-shadow: var(--imb-shadow-2) !important;
}

input,
select,
textarea {
  border-color: var(--imb-neutral-400) !important;
  color: var(--imb-body);
  font-family: 'Roboto', sans-serif;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--imb-orange) !important;
  box-shadow: 0 0 0 3px rgba(var(--imb-orange-rgb), 0.16) !important;
  outline: none;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled,
.disabled {
  opacity: 0.56;
  cursor: not-allowed;
}

.bg-white\/80 {
  background-color: rgba(255, 255, 255, 0.94) !important;
}
.bg-primary\/10,
.bg-primary-container\/10 {
  background-color: rgba(var(--imb-orange-rgb), 0.10) !important;
}
.bg-tertiary\/10 {
  background-color: rgba(var(--imb-blue-dark-rgb), 0.10) !important;
}
.bg-surface-container-high\/30 {
  background-color: rgba(233, 236, 239, 0.30) !important;
}
.bg-on-background\/60 {
  background-color: rgba(var(--imb-blue-dark-rgb), 0.60) !important;
}

.border-primary\/20,
.border-primary\/30,
.border-primary-container\/30,
.border-primary-container\/40 {
  border-color: rgba(var(--imb-orange-rgb), 0.32) !important;
}
.border-outline-variant\/20 {
  border-color: rgba(206, 212, 218, 0.40) !important;
}
.border-white\/5,
.border-white\/10,
.border-white\/20,
.border-white\/30 {
  border-color: rgba(255, 255, 255, 0.24) !important;
}

.text-white\/50 { color: rgba(255, 255, 255, 0.50) !important; }
.text-white\/70 { color: rgba(255, 255, 255, 0.70) !important; }
.text-white\/80 { color: rgba(255, 255, 255, 0.80) !important; }
.text-white\/85 { color: rgba(255, 255, 255, 0.85) !important; }
.text-on-primary-container\/70 { color: rgba(255, 255, 255, 0.70) !important; }
.text-on-surface-variant\/60 { color: rgba(108, 117, 125, 0.60) !important; }
.text-on-surface-variant\/70 { color: rgba(108, 117, 125, 0.70) !important; }
.text-surface-container-high\/50 { color: rgba(233, 236, 239, 0.50) !important; }
.text-surface-container-high\/60 { color: rgba(233, 236, 239, 0.60) !important; }
.text-surface-container-high\/70 { color: rgba(233, 236, 239, 0.70) !important; }
.text-surface-container-high\/80 { color: rgba(233, 236, 239, 0.80) !important; }

.btn-solid-orange {
  background: var(--imb-orange) !important;
}
.btn-solid-orange:hover {
  background: var(--imb-red) !important;
}

.cmp-bar-fill {
  background: var(--imb-orange) !important;
}
.cmp-section-head {
  background: var(--imb-neutral-200) !important;
  color: var(--imb-body) !important;
}
.cmp-head-cell,
.cmp-row-label {
  border-color: var(--imb-neutral-300) !important;
}

#select-all-btn,
#clear-btn {
  border: 1px solid transparent;
  color: var(--imb-body) !important;
}

#select-all-btn {
  background: var(--imb-orange) !important;
  border-color: var(--imb-orange) !important;
  color: #ffffff !important;
}

#select-all-btn:hover {
  background: var(--imb-red) !important;
  border-color: var(--imb-red) !important;
}

#clear-btn {
  background: var(--imb-neutral-200) !important;
  border-color: var(--imb-neutral-300) !important;
}

#clear-btn:hover {
  background: var(--imb-neutral-300) !important;
  border-color: var(--imb-neutral-400) !important;
}

#select-all-btn:focus-visible,
#clear-btn:focus-visible {
  outline: 3px solid rgba(var(--imb-orange-rgb), 0.16);
  outline-offset: 2px;
}

/* Compare bool icons: plain check (green) / x (grey), no bubble. */
.cmp-bool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  line-height: 1;
}
.cmp-bool-yes { color: var(--imb-success); }
.cmp-bool-no  { color: var(--imb-neutral-500); }

/* ToDo(compare-picker): keep this icon CSS-drawn; icon fonts have uneven glyph boxes here. */
.picker-card .picker-toggle {
  background: var(--imb-neutral-200);
  border: 0;
  border-radius: 9999px;
  color: var(--imb-neutral-600);
  height: 24px;
  pointer-events: none;
  position: absolute;
  right: 10px;
  top: 10px;
  transition: background-color var(--imb-transition), border-color var(--imb-transition), color var(--imb-transition);
  width: 24px;
}

.picker-card .picker-toggle::before,
.picker-card .picker-toggle::after {
  background: currentColor;
  border-radius: 9999px;
  content: '';
  left: 50%;
  position: absolute;
  top: 50%;
  transform-origin: center;
}

.picker-card .picker-toggle.is-add::before {
  height: 2px;
  transform: translate(-50%, -50%);
  width: 10px;
}

.picker-card .picker-toggle.is-add::after {
  height: 10px;
  transform: translate(-50%, -50%);
  width: 2px;
}

.picker-card .picker-toggle.is-selected {
  background: var(--imb-orange);
  color: #ffffff;
}

.picker-card .picker-toggle.is-selected::before {
  height: 2px;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 12px;
}

.picker-card .picker-toggle.is-selected::after {
  height: 2px;
  transform: translate(-50%, -50%) rotate(-45deg);
  width: 12px;
}

/* Neutralize product spec chips (was navy blue). */
.spec-chip.bg-tertiary-container,
.spec-chip[class*="bg-tertiary-container"] {
  background-color: var(--imb-neutral-200) !important;
}
.spec-chip .text-tertiary,
.spec-chip.text-on-tertiary-container,
.spec-chip .text-on-tertiary-container,
.spec-chip .text-on-tertiary-fixed-variant {
  color: var(--imb-neutral-800) !important;
}

/* Suporte Técnico sidebar block (produtos.html): neutralize navy text. */
.bg-tertiary-fixed .text-on-tertiary-fixed,
.bg-tertiary-fixed .text-on-tertiary-fixed-variant,
.bg-tertiary-fixed .text-tertiary {
  color: var(--imb-neutral-800) !important;
}
.bg-tertiary-fixed a.text-tertiary,
.bg-tertiary-fixed a.text-tertiary:hover {
  color: var(--imb-neutral-800) !important;
}

/* ========== World map (Presença Global) — halftone style ========== */
.world-map-card {
  background: #0a0a0d;
  border-radius: var(--imb-radius-card);
  box-shadow: var(--imb-shadow-1);
  overflow: hidden;
  padding: 0;
}
.world-map-svg,
.world-map-image {
  display: block;
  height: auto;
  width: 100%;
}
.world-map-stats {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 16px 32px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
  padding-top: 16px;
}
.world-map-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.world-map-stat-label {
  color: var(--imb-yellow);
  font-family: 'Roboto', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.world-map-stat-value {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  line-height: 1.4;
}
@media (max-width: 900px) {
  .world-map-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 540px) {
  .world-map-stats {
    grid-template-columns: 1fr;
  }
}

/* Cases banner overlay: black only, no navy tint. */
.bg-inverse-surface\/60,
.bg-inverse-surface\/40 {
  background-color: rgba(31, 35, 34, 0.6) !important;
}

/* Testimonial card opening quote mark: clear left-side curly quote (not 99). */
.testimonial-quote-mark {
  color: var(--imb-neutral-800);
  display: block;
  font-family: 'Roboto', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  height: 32px;
  line-height: 1;
  margin-bottom: 8px;
  margin-top: -8px;
}

/* Company history timeline placeholders for the Sobre a IMB page. */
.company-timeline {
  display: grid;
  gap: 1.25rem;
  position: relative;
}

.company-timeline::before {
  background: var(--imb-neutral-300);
  bottom: 0.75rem;
  content: '';
  left: 5.4rem;
  position: absolute;
  top: 0.75rem;
  width: 2px;
}

.company-timeline-item {
  align-items: stretch;
  display: grid;
  gap: 1rem;
  grid-template-columns: 4.5rem 1.8rem minmax(0, 1fr);
  position: relative;
}

.company-timeline-year {
  color: var(--imb-orange);
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.2;
  padding-top: 0.3rem;
}

.company-timeline-marker {
  align-self: start;
  background: var(--imb-orange);
  border: 4px solid var(--imb-white);
  border-radius: 9999px;
  box-shadow: 0 0 0 2px rgba(var(--imb-orange-rgb), 0.22);
  height: 1.1rem;
  justify-self: center;
  margin-top: 0.35rem;
  width: 1.1rem;
  z-index: 1;
}

.company-timeline-card {
  background: var(--imb-white);
  border: 1px solid var(--imb-neutral-300);
  border-radius: var(--imb-radius-card);
  box-shadow: var(--imb-shadow-1);
  padding: 1.25rem;
  transition: border-color var(--imb-transition), box-shadow var(--imb-transition), transform var(--imb-transition);
}

.company-timeline-card:hover {
  border-color: rgba(var(--imb-orange-rgb), 0.36);
  box-shadow: var(--imb-shadow-2);
  transform: translateY(-2px);
}

.company-timeline-card h3 {
  color: var(--imb-black);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 0.45rem;
  text-transform: uppercase;
}

.company-timeline-card p {
  color: var(--imb-neutral-600);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

/* ========== Case cards ========== */
.case-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.case-card {
  background: var(--imb-neutral-100);
  border: 1px solid var(--imb-neutral-300);
  border-radius: var(--imb-radius-card);
  box-shadow: var(--imb-shadow-1);
  overflow: hidden;
  transition: transform var(--imb-transition), box-shadow var(--imb-transition), border-color var(--imb-transition);
}

.case-card:hover {
  border-color: var(--imb-neutral-400);
  box-shadow: var(--imb-shadow-2);
  transform: translateY(-2px);
}

.case-card-link {
  color: inherit;
  display: grid;
  grid-template-columns: minmax(210px, 42%) minmax(0, 1fr);
  min-height: 252px;
}

.case-card-media {
  background: var(--imb-neutral-300);
  min-height: 252px;
  overflow: hidden;
}

.case-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--imb-transition);
}

#obras .case-card-link {
  grid-template-columns: 1fr;
  min-height: 0;
}

#obras .case-card-media {
  aspect-ratio: 16 / 10;
  min-height: 0;
}

/* ToDo(case-card-media): ajustar estes pontos por foto quando as imagens finais de cada case forem aprovadas. */
.case-card[data-case-id="aeroporto-floripa"] .case-card-media img {
  object-position: 48% center;
}

.case-card[data-case-id="anel-joinville"] .case-card-media img {
  object-position: 50% center;
}

.case-card[data-case-id="rodoanel-sp"] .case-card-media img {
  object-position: 52% center;
}

.case-card:hover .case-card-media img {
  transform: scale(1.04);
}

.case-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 1.5rem 1.65rem;
}

.case-card-location {
  align-items: center;
  color: var(--imb-orange);
  display: flex;
  font-family: 'Roboto', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 0.35rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
}

.case-card-location .material-symbols-outlined {
  font-size: 1rem;
}

.case-card-title {
  color: var(--imb-black);
  font-family: 'Poppins', sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.28;
  margin: 0;
}

.case-card-summary {
  color: var(--imb-neutral-600);
  display: -webkit-box;
  font-size: 0.98rem;
  line-height: 1.55;
  margin: 0.5rem 0 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.case-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.case-card-chip {
  background: var(--imb-neutral-200);
  border-radius: 9999px;
  color: var(--imb-black);
  display: inline-flex;
  font-size: 0.92rem;
  line-height: 1.2;
  padding: 0.5rem 0.85rem;
  white-space: nowrap;
}

/* ========== Home required sections ========== */
.home-kpi-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-kpi-card {
  background: var(--imb-white);
  border-left: 4px solid var(--imb-orange);
  border-radius: var(--imb-radius-control);
  box-shadow: var(--imb-shadow-1);
  padding: 1rem;
}

.home-kpi-value {
  color: var(--imb-black);
  font-family: 'Poppins', sans-serif;
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.home-kpi-label {
  color: var(--imb-neutral-600);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.25;
  margin-top: 0.35rem;
  text-transform: uppercase;
}

/* Vídeo do YouTube na página de case — 16:9 responsivo. */
.case-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--imb-radius-card, 20px);
  overflow: hidden;
  background: #000;
  box-shadow: var(--imb-shadow-2, 0 12px 32px rgba(0, 0, 0, 0.16));
}

.case-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Galeria da obra — carrossel automático na página de case (js/case-page.js).
   Crossfade por opacidade; setas e bullets aparecem só com 2+ fotos. */
.media-carousel {
  position: relative;
  border-radius: var(--imb-radius-card, 20px);
  overflow: hidden;
  box-shadow: var(--imb-shadow-2, 0 12px 32px rgba(0, 0, 0, 0.16));
}

.media-carousel-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--imb-neutral-200, #e9ecef);
}

.media-carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease-in-out;
}

.media-carousel-slide.is-active { opacity: 1; }

.media-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(31, 35, 34, 0.55);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.media-carousel-arrow:hover,
.media-carousel-arrow:focus-visible { background: var(--imb-orange, #ea7805); }
.media-carousel-arrow--prev { left: 0.85rem; }
.media-carousel-arrow--next { right: 0.85rem; }

.media-carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.9rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.media-carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.media-carousel-dot.is-active {
  background: var(--imb-orange, #ea7805);
  transform: scale(1.25);
}

@media (prefers-reduced-motion: reduce) {
  .media-carousel-slide { transition: none; }
}

@media (max-width: 640px) {
  .media-carousel-arrow { width: 36px; height: 36px; }
}

/* Listas de países/estados dos cards de rede oficial (Sobre a IMB → Onde atuamos).
   Duas colunas para as listas longas não esticarem o card. */
.presence-list {
  columns: 2;
  column-gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.presence-list li {
  break-inside: avoid;
  color: rgba(233, 236, 239, 0.72);
  font-size: 0.82rem;
  line-height: 1.6;
  padding-left: 0.85rem;
  position: relative;
}

.presence-list li::before {
  background: var(--imb-orange, #ea7805);
  border-radius: 50%;
  content: '';
  height: 4px;
  left: 0;
  position: absolute;
  top: 0.65em;
  width: 4px;
}

@media (max-width: 400px) {
  .presence-list { columns: 1; }
}

.global-presence-panel {
  background: var(--imb-white);
  border: 1px solid var(--imb-neutral-300);
  border-radius: var(--imb-radius-card);
  box-shadow: var(--imb-shadow-1);
  overflow: hidden;
}

.global-presence-map {
  background: var(--imb-neutral-100);
  min-height: 330px;
  position: relative;
}

.global-presence-map::before,
.global-presence-map::after {
  background: rgba(var(--imb-orange-rgb), 0.14);
  border: 1px solid rgba(var(--imb-orange-rgb), 0.25);
  content: '';
  position: absolute;
}

.global-presence-map::before {
  clip-path: polygon(32% 14%, 45% 8%, 58% 15%, 63% 27%, 57% 42%, 62% 58%, 54% 78%, 39% 90%, 31% 72%, 22% 55%, 18% 35%);
  inset: 42px 48% 44px 40px;
}

.global-presence-map::after {
  clip-path: polygon(48% 5%, 58% 14%, 64% 31%, 60% 46%, 67% 62%, 60% 86%, 45% 96%, 35% 78%, 29% 57%, 34% 38%, 31% 20%);
  inset: 32px 80px 36px 45%;
}

.global-country {
  align-items: center;
  background: var(--imb-orange);
  border: 2px solid var(--imb-white);
  border-radius: 9999px;
  box-shadow: 0 8px 18px rgba(31, 35, 34, 0.18);
  color: #ffffff;
  display: inline-flex;
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  height: 2.35rem;
  justify-content: center;
  letter-spacing: 0;
  position: absolute;
  width: 2.35rem;
  z-index: 2;
}

.global-country-br { left: 58%; top: 48%; }
.global-country-ar { left: 52%; top: 72%; }
.global-country-cl { left: 47%; top: 70%; }
.global-country-py { left: 53%; top: 58%; }
.global-country-uy { left: 56%; top: 76%; }
.global-country-pe { left: 43%; top: 47%; }
.global-country-co { left: 45%; top: 33%; }

.global-country-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.global-country-pill {
  background: var(--imb-neutral-200);
  border-radius: 9999px;
  color: var(--imb-black);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
}

.global-country-table {
  border-collapse: collapse;
  width: 100%;
}

.global-country-table th,
.global-country-table td {
  border: 1px solid var(--imb-neutral-300);
  padding: 1.1rem 1.25rem;
  text-align: left;
  vertical-align: top;
}

.global-country-table th {
  background: var(--imb-neutral-200);
  color: var(--imb-black);
  font-family: 'Poppins', sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
}

.global-country-table td {
  background: var(--imb-white);
  color: var(--imb-black);
  font-size: 0.95rem;
  line-height: 1.35;
}

.global-country-table td:first-child {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  width: 26%;
}

@media (max-width: 1023px) {
  .case-list-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .case-card-link {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .case-card-media {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .case-card-body {
    padding: 1.25rem;
  }

  .case-card-title {
    font-size: 1rem;
  }

  .case-card-summary {
    font-size: 0.92rem;
  }

  .home-kpi-grid {
    grid-template-columns: 1fr;
  }

  .global-presence-map {
    min-height: 280px;
  }

  .global-country-table,
  .global-country-table thead,
  .global-country-table tbody,
  .global-country-table tr,
  .global-country-table th,
  .global-country-table td {
    display: block;
    width: 100%;
  }

  .global-country-table thead {
    display: none;
  }

  .global-country-table tr + tr {
    border-top: 1px solid var(--imb-neutral-300);
  }

  .global-country-table td {
    border-bottom: 0;
  }

  .global-country-table td:first-child {
    background: var(--imb-neutral-200);
    border-bottom: 1px solid var(--imb-neutral-300);
  }

  .company-timeline::before {
    left: 0.55rem;
  }

  .company-timeline-item {
    grid-template-columns: 1.2rem minmax(0, 1fr);
  }

  .company-timeline-year {
    grid-column: 2;
    padding-top: 0;
  }

  .company-timeline-marker {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin-top: 0.2rem;
  }

  .company-timeline-card {
    grid-column: 2;
  }
}

::-webkit-scrollbar-track {
  background: var(--imb-neutral-100);
}
::-webkit-scrollbar-thumb {
  background: var(--imb-neutral-400);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--imb-neutral-600);
}
::selection {
  background: var(--imb-orange);
  color: #ffffff;
}

/* ========== User-requested palette overrides ========== */
/* Dark surfaces & overlays: black (not navy) */
.bg-tertiary,
.bg-on-background,
.bg-inverse-surface {
  background-color: #1f2322 !important;
}
.bg-on-background\/60 {
  background-color: rgba(31, 35, 34, 0.6) !important;
}
/* Footer is always black with light text.
   Selectors stacked because the HTML still carries Tailwind utilities like
   `bg-surface-container-low` whose own class-level `!important` would otherwise
   outrank a plain `footer` rule. */
footer,
footer.bg-surface-container-low,
footer.bg-surface-container,
footer.bg-white,
footer.bg-surface,
footer.bg-background {
  background-color: #1f2322 !important;
  color: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
footer h5,
footer .font-headline,
footer .text-on-surface {
  color: #ffffff !important;
}
footer a {
  color: rgba(255, 255, 255, 0.72) !important;
}
footer a:hover,
footer .hover\:text-primary:hover {
  color: var(--imb-orange) !important;
}
footer .text-on-surface-variant,
footer .text-on-surface-variant\/60,
footer .text-on-surface-variant\/70 {
  color: rgba(255, 255, 255, 0.6) !important;
}
footer .bg-surface-container-high {
  background-color: rgba(255, 255, 255, 0.08) !important;
}
footer .border-surface-container-high,
footer .border-surface-container-highest,
footer .border-t {
  border-color: rgba(255, 255, 255, 0.08) !important;
}
footer .material-symbols-outlined.text-primary {
  color: var(--imb-orange) !important;
}

/* WhatsApp button: solid green. */
.wa-solid {
  background: var(--imb-success) !important;
}
.wa-solid:hover {
  background: rgba(76, 202, 57, 0.84) !important;
}

/* ========== Comparison: truncate long product titles ==========
   Long equipment names (e.g. "Pavimentadora IMB-7300 ULTRA") otherwise push picker
   rows and comparison header cells to different heights. Two-line clamp + reserved
   min-height keeps every card the same vertical size — only on the compare page. */
.picker-title,
.cmp-head-cell .font-headline {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cmp-head-cell .text-on-surface-variant {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cmp-head-cell .cmp-selected-subtitle {
  line-height: 1.25;
  min-height: 2.5em;
}
.cmp-head-cell .cmp-selected-name {
  line-height: 1.25;
  min-height: 3rem;
}
.cmp-head-cell .cmp-selected-actions {
  min-height: 3.8rem;
}

/* ========== Site logo (replaces text "IMB Brasil" in nav + footer) ========== */
/* TODO(logo): SVG file lives at site/images/LOGO_IMB.svg. Root pages use images/...,
   pages inside en/ and es/ use ../images/... To swap the logo, replace the SVG file. */
.site-logo {
  display: inline-flex;
  align-items: center;
}
.site-logo-img {
  height: 40px;
  width: auto;
  display: block;
}
@media (min-width: 768px) {
  .site-logo-img { height: 48px; }
}
.site-logo-footer {
  display: inline-flex;
  align-items: center;
}
/* Footer renders the logo in its native SVG colors — no invert/desaturate. */
.site-logo-footer .site-logo-img {
  height: 56px;
}

/* ========== Language switcher (emoji flags + dropdown) ==========
   Uses regional flag emoji in the trigger and dropdown items.
   main.js handles open/close + outside-click.
   Markup contract:
      <div class="lang-switcher">
        <button class="lang-switcher-btn" aria-expanded="false">…emoji flag…</button>
        <ul class="lang-switcher-menu" data-open="false">
          <li><a href="<pt-url>" data-lang="pt" aria-label="Português">…emoji flag…</a></li>
          <li><a href="<en-url>" data-lang="en" aria-label="English">…emoji flag…</a></li>
          <li><a href="<es-url>" data-lang="es" aria-label="Español">…emoji flag…</a></li>
        </ul>
      </div>
   The <html lang> attribute drives which item gets the `is-current` style. */
.lang-switcher {
  position: relative;
}
.lang-switcher-btn {
  align-items: center;
  background: transparent;
  border: 1px solid var(--imb-neutral-300);
  border-radius: 9999px;
  color: var(--imb-black);
  cursor: pointer;
  display: inline-flex;
  font-family: 'Roboto', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  height: 40px;
  justify-content: center;
  line-height: 1;
  min-width: 52px;
  padding: 0 0.7rem;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.lang-switcher-btn:hover {
  background: var(--imb-neutral-200);
  border-color: var(--imb-neutral-400);
}
.lang-switcher-btn .lang-flag,
.lang-switcher-menu a .lang-flag {
  display: inline-block;
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  vertical-align: middle;
  flex-shrink: 0;
}
.lang-switcher-menu {
  background: var(--imb-white);
  border: 1px solid var(--imb-neutral-300);
  border-radius: 12px;
  box-shadow: var(--imb-shadow-2);
  display: none;
  list-style: none;
  margin: 0.5rem 0 0;
  min-width: 148px;
  padding: 0.4rem;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 60;
}
.lang-switcher-menu[data-open="true"] {
  display: block;
}
.lang-switcher-menu li { margin: 0; }
.lang-switcher-menu a {
  align-items: center;
  border-radius: 8px;
  color: var(--imb-black);
  display: flex;
  font-family: 'Roboto', sans-serif;
  gap: 0.55rem;
  justify-content: flex-start;
  padding: 0.55rem 0.65rem;
  text-decoration: none;
}
.lang-switcher-menu a:hover { background: var(--imb-neutral-100); }
.lang-switcher-menu a.is-current {
  background: var(--imb-neutral-200);
  color: var(--imb-orange);
}
.lang-switcher-menu a .lang-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--imb-neutral-600);
  white-space: nowrap;
}
.lang-switcher-menu a.is-current .lang-name { color: var(--imb-orange); }

/* ========== Dark theme ========== */
/* The whole site is themed through --imb-* variables (see the utility override
   layer above). Dark mode just redefines those primitives. Brand colors
   (orange, yellow, success) stay constant in both themes. */
:root[data-theme="dark"] {
  --imb-black: #e8eaec;
  --imb-body: #e8eaec;
  --imb-white: #1a1e22;
  --imb-neutral-100: #15181b;
  --imb-neutral-200: #23282d;
  --imb-neutral-300: #2d333a;
  --imb-neutral-400: #3a4149;
  --imb-neutral-500: #6b7178;
  --imb-neutral-600: #9aa1a9;
  --imb-neutral-700: #c5c9ce;
  --imb-neutral-800: #dfe2e5;
  --imb-accent: #9aa6f0;
  --imb-error: #ff6b6b;
  --imb-shadow-1: 0 8px 24px rgba(0, 0, 0, 0.45);
  --imb-shadow-2: 0 12px 40px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}
/* Translucent nav bar: dark glass instead of white glass. */
:root[data-theme="dark"] .bg-white\/80 {
  background-color: rgba(26, 30, 34, 0.92) !important;
}
:root[data-theme="dark"] .bg-white\/90,
:root[data-theme="dark"] .bg-white\/95 {
  background-color: rgba(26, 30, 34, 0.95) !important;
}
/* Light surface-tint utilities meant for light mode become subtle on dark. */
:root[data-theme="dark"] .bg-surface-container-high\/30 {
  background-color: rgba(255, 255, 255, 0.05) !important;
}
/* "Eng. Responsável" quote callout (contato.html): a dark card on light mode,
   so it inverts to a white card with black text on dark mode to keep contrast. */
:root[data-theme="dark"] .quote-callout {
  background-color: #ffffff !important;
  border-color: rgba(31, 35, 34, 0.12) !important;
}
:root[data-theme="dark"] .quote-callout .text-white {
  color: #1f2322 !important;
}
:root[data-theme="dark"] .quote-callout .text-white\/70 {
  color: rgba(31, 35, 34, 0.66) !important;
}

/* ========== Theme toggle button (nav) ========== */
.theme-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 9999px;
  color: var(--imb-neutral-600);
  cursor: pointer;
  display: inline-flex;
  flex-shrink: 0;
  height: 40px;
  justify-content: center;
  padding: 0;
  transition: background-color 0.18s ease, color 0.18s ease;
  width: 40px;
}
.theme-toggle:hover {
  background: var(--imb-neutral-200);
  color: var(--imb-orange);
}
.theme-toggle:focus-visible {
  outline: 3px solid rgba(var(--imb-orange-rgb), 0.24);
  outline-offset: 2px;
}
.theme-toggle .material-symbols-outlined {
  font-size: 1.4rem;
}

/* Smooth color crossfade applied only while toggling (not on load/hover). */
html.theme-anim,
html.theme-anim *,
html.theme-anim *::before,
html.theme-anim *::after {
  transition: background-color 0.3s ease, border-color 0.3s ease,
    color 0.3s ease, fill 0.3s ease, box-shadow 0.3s ease !important;
}
@media (prefers-reduced-motion: reduce) {
  html.theme-anim,
  html.theme-anim *,
  html.theme-anim *::before,
  html.theme-anim *::after {
    transition: none !important;
  }
}
