/* ==========================================================================
   1. Variáveis Globais — Paleta LangDao (logo)
   Estética clean (referência: espaçamento e hierarquia tipo apple.com)
   Chave localStorage: langdao-theme — valores: "dark" | "light"
   ========================================================================== */
:root {
  --layout-max: 1068px;
  --content-max: 980px;

  /* Primárias (fixas em ambos os temas) — base do logo (globo China + anel) */
  --red-vibrant: #D91E18;
  --red-deep: #b01518;
  --red-soft: rgba(217, 30, 24, 0.12);
  --orange-warm: #F05A28;
  --yellow-highlight: #F2C94C;
  --ocean-blue: #1E88E5;
  --sky-blue: #4FC3F7;
  --green-brazil: #2ECC71;
  --green-dark: #1B8F3A;
  --brand-navy: #1a2b3c;
  --brand-forest: #248c24;

  --black: #000000;
  --white: #FFFFFF;
  --gray-metallic: #8A8A8A;

  /* Tema escuro — superfícies neutras, menos ruído */
  --bg-deep: #000000;
  --bg-raised: #1d1d1f;
  --bg-raised-alt: #2d2d2f;
  --bg-accent: #141416;
  --ocean-deep: #0c080a;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(255, 255, 255, 0.1);

  --text-primary: #f5f5f7;
  --text-body: #d2d2d7;
  --text-muted: #a1a1a6;
  --text-on-card: #1d1d1f;

  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.28);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.35);

  --header-bg: rgba(0, 0, 0, 0.72);
  --header-bg-scrolled: rgba(0, 0, 0, 0.88);
  --header-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 32px rgba(0, 0, 0, 0.35);
  --logo-l: #f5f5f7;

  --overlay-bg: rgba(0, 0, 0, 0.45);
  --nav-mobile-shadow: -12px 0 48px rgba(0, 0, 0, 0.45);
  --nav-sidebar-link-hover: rgba(255, 255, 255, 0.07);

  --grad-hero-default: linear-gradient(180deg, #000000 0%, #140808 48%, #0a1218 100%);
  --grad-hero-robotica: linear-gradient(180deg, #000000 0%, #120a0a 45%, #101820 100%);
  --grad-hero-saude: linear-gradient(180deg, #0d2818 0%, #145a32 55%, #1a7a45 100%);
  --grad-hero-regulacao: linear-gradient(180deg, #070a14 0%, #12192e 48%, #162240 100%);
  --grad-hero-comitivas: linear-gradient(180deg, #140805 0%, #221208 45%, #2c1810 100%);
  --grad-hero-curadoria: linear-gradient(180deg, #0c0614 0%, #1a0f28 50%, #241838 100%);
  --hero-heading: #f5f5f7;
  --hero-paragraph: rgba(245, 245, 247, 0.78);
  --btn-secondary-fg: #f5f5f7;
  --btn-secondary-border: rgba(255, 255, 255, 0.22);
  --carousel-btn-bg: rgba(255, 255, 255, 0.08);
  --carousel-btn-border: rgba(255, 255, 255, 0.18);
  --dot-inactive: rgba(255, 255, 255, 0.28);
  --carousel-dot-idle: rgba(255, 255, 255, 0.22);
  --carousel-dot-idle-border: rgba(255, 255, 255, 0.18);
  --carousel-dot-active: rgba(245, 245, 247, 0.88);
  --carousel-dot-active-glow: rgba(255, 255, 255, 0.12);

  --philosophy-synth-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, var(--bg-raised) 100%);
  --mv-box-grad: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, var(--bg-raised-alt) 100%);
  --mv-box-heading: #f5f5f7;

  --robotica-grad: linear-gradient(180deg, #000000 0%, #140a0a 38%, #0d1520 52%, #121820 100%);
  --robotics-sidebar-bg: rgba(255, 255, 255, 0.04);
  --robotics-sidebar-heading: #f5f5f7;
  --diff-list-color: rgba(245, 245, 247, 0.78);
  --robot-card-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --robot-card-bg: var(--bg-raised);
  --robot-card-border-top: rgba(217, 30, 24, 0.42);
  --robot-card-heading: var(--text-primary);
  --robot-card-body: var(--text-muted);

  --lideranca-grad: linear-gradient(180deg, var(--bg-accent) 0%, var(--bg-deep) 100%);
  --lideranca-header-p: rgba(245, 245, 247, 0.55);
  --team-member-heading: #f5f5f7;

  --card-icon-faint: rgba(255, 255, 255, 0.04);
  --service-number-faint: rgba(255, 255, 255, 0.06);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 22px;
  --radius-pill: 980px;

  --space-section-y: clamp(3.5rem, 8vw, 7rem);
  --space-section-x: max(1rem, min(5vw, 2rem));
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   Tema claro
   -------------------------------------------------------------------------- */
html[data-theme="light"] {
  color-scheme: light;
  --bg-deep: #f5f5f7;
  --bg-raised: #ffffff;
  --bg-raised-alt: #fafafa;
  --bg-accent: #f5f5f7;
  --ocean-deep: #f5f0ef;
  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-glow: rgba(0, 0, 0, 0.08);

  --text-primary: #1d1d1f;
  --text-body: #424245;
  --text-muted: #6e6e73;
  --text-on-card: #1d1d1f;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.08);

  --header-bg: rgba(251, 251, 253, 0.78);
  --header-bg-scrolled: rgba(251, 251, 253, 0.92);
  --header-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 24px rgba(0, 0, 0, 0.04);
  --logo-l: #1d1d1f;

  --overlay-bg: rgba(0, 0, 0, 0.32);
  --nav-mobile-shadow: -12px 0 40px rgba(0, 0, 0, 0.1);
  --nav-sidebar-link-hover: rgba(0, 0, 0, 0.05);

  --grad-hero-default: linear-gradient(180deg, #fbfbfd 0%, #faf5f4 55%, #f2e8e4 100%);
  --grad-hero-robotica: linear-gradient(180deg, #f5f5f7 0%, #f5ebe9 50%, #ebe4e2 100%);
  --grad-hero-saude: linear-gradient(180deg, #f0faf4 0%, #d4f0e2 55%, #b8e6cc 100%);
  --grad-hero-regulacao: linear-gradient(180deg, #f2f5fc 0%, #e8ecf8 55%, #dee5f5 100%);
  --grad-hero-comitivas: linear-gradient(180deg, #fdf6f2 0%, #f8ebe4 52%, #f3e4db 100%);
  --grad-hero-curadoria: linear-gradient(180deg, #faf5fb 0%, #f0e8f6 52%, #e8ddf2 100%);
  --hero-heading: #1d1d1f;
  --hero-paragraph: rgba(29, 29, 31, 0.72);
  --btn-secondary-fg: #1d1d1f;
  --btn-secondary-border: rgba(0, 0, 0, 0.14);
  --carousel-btn-bg: rgba(255, 255, 255, 0.85);
  --carousel-btn-border: rgba(0, 0, 0, 0.1);
  --dot-inactive: rgba(0, 0, 0, 0.18);
  --carousel-dot-idle: rgba(0, 0, 0, 0.12);
  --carousel-dot-idle-border: rgba(0, 0, 0, 0.1);
  --carousel-dot-active: rgba(45, 45, 48, 0.72);
  --carousel-dot-active-glow: rgba(0, 0, 0, 0.06);

  --philosophy-synth-bg: linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
  --mv-box-grad: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
  --mv-box-heading: var(--text-primary);

  --robotica-grad: linear-gradient(180deg, #fbfbfd 0%, #faf4f2 50%, #f0e8e6 100%);
  --robotics-sidebar-bg: rgba(0, 0, 0, 0.03);
  --robotics-sidebar-heading: var(--text-primary);
  --diff-list-color: var(--text-body);
  --robot-card-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  --robot-card-bg: #ffffff;
  --robot-card-border-top: rgba(217, 30, 24, 0.38);
  --robot-card-heading: var(--text-primary);
  --robot-card-body: var(--text-muted);

  --lideranca-grad: linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
  --lideranca-header-p: var(--text-muted);
  --team-member-heading: var(--text-primary);

  --card-icon-faint: rgba(0, 0, 0, 0.04);
  --service-number-faint: rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .section-header.light-text h2 {
  color: var(--red-vibrant);
}
html[data-theme="light"] .section-header.light-text p {
  color: var(--text-muted);
}

/* ==========================================================================
   2. Reset e Tipografia Base
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: dark;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Inter", sans-serif;
  color: var(--text-body);
  background-color: var(--bg-deep);
  line-height: 1.47059;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100%;
}
body.menu-open {
  overflow: hidden;
  touch-action: none;
}

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top));
  left: max(1rem, env(safe-area-inset-left));
  z-index: 10001;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.75rem 1.125rem;
  clip: auto;
  overflow: visible;
  white-space: normal;
  background: var(--bg-raised);
  color: var(--text-primary);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
  outline: 2px solid var(--red-vibrant);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1, h2 {
  font-family: "Montserrat", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  text-wrap: balance;
}
h3, h4 {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--text-primary);
}
section {
  padding: var(--space-section-y) var(--space-section-x);
}
main > section {
  scroll-margin-top: clamp(4.25rem, 10vw, 5.75rem);
}

/* ==========================================================================
   3. Cabeçalho e Menu
   ========================================================================== */
header {
  position: fixed; top: 0; left: 0; width: 100%;
  padding-bottom: 0.3rem;
  padding-top: max(0.3rem, env(safe-area-inset-top));
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  background: var(--header-bg);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border-subtle);
  border-bottom-color: color-mix(in srgb, var(--border-subtle) 72%, transparent);
  z-index: 2000; transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease, border-color 0.35s ease;
}
header.scrolled {
  padding-bottom: 0.25rem;
  padding-top: max(0.25rem, env(safe-area-inset-top));
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  box-shadow: var(--header-shadow);
  background: var(--header-bg-scrolled);
  border-bottom-color: color-mix(in srgb, var(--border-subtle) 50%, transparent);
}
.nav-container { max-width: var(--layout-max); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 max(1.1rem, min(3.5vw, 2rem)); gap: 0.75rem; }
.nav-end {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}
.logo {
  display: flex;
  align-items: center;
  z-index: 2000;
  position: relative;
  text-decoration: none;
  line-height: 0;
}
.logo-img {
  width: auto;
  height: clamp(72px, 7.5vw + 40px, 108px);
  max-width: min(400px, 72vw);
  object-fit: contain;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}
.nav-sidebar__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
}
.nav-sidebar__head { display: none; }
.nav-sidebar__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-sidebar__list li { display: flex; }
.nav-sidebar__cta { display: flex; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--text-body); font-weight: 500; font-size: 1rem;
  letter-spacing: -0.015em;
  transition: color 0.22s ease, opacity 0.22s ease, background 0.22s ease, transform 0.22s ease;
}
@media (min-width: 769px) {
  .nav-links a:not(.btn-cta-nav) {
    padding: 0.38rem 0.8rem;
    border-radius: var(--radius-pill);
  }
  .nav-links a:not(.btn-cta-nav):hover,
  .nav-links a:not(.btn-cta-nav):focus-visible {
    color: var(--red-vibrant);
    opacity: 1;
    background: rgba(217, 30, 24, 0.12);
  }
  html[data-theme="light"] .nav-links a:not(.btn-cta-nav):hover,
  html[data-theme="light"] .nav-links a:not(.btn-cta-nav):focus-visible {
    background: rgba(217, 30, 24, 0.08);
  }
}

.menu-toggle { display: none; cursor: pointer; flex-direction: column; gap: 6px; z-index: 2001; position: relative; }
.menu-toggle .bar { width: 22px; height: 2px; background-color: var(--text-primary); border-radius: 2px; transition: all 0.3s ease; }
.menu-toggle.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle.active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.theme-toggle:hover {
  background: rgba(128, 128, 128, 0.12);
  color: var(--text-primary);
}
html[data-theme="light"] .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}
.theme-toggle:active { transform: scale(0.96); }
.theme-toggle:focus-visible {
  outline: 2px solid var(--red-vibrant);
  outline-offset: 2px;
}
.theme-toggle__icon { display: flex; align-items: center; justify-content: center; }
.theme-toggle__icon--sun { display: none; }
.theme-toggle__icon--moon { display: flex; }
html[data-theme="light"] .theme-toggle__icon--sun { display: flex; }
html[data-theme="light"] .theme-toggle__icon--moon { display: none; }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--overlay-bg);
  z-index: 1998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
  pointer-events: none;
  -webkit-tap-highlight-color: transparent;
}
.nav-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ==========================================================================
   4. Botões — CTA primário: vermelho logo; hover: vermelho profundo
   ========================================================================== */
.nav-links .btn-cta-nav {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.btn-cta-nav {
  background: var(--red-vibrant) !important;
  color: var(--white) !important;
  padding: 0.42rem 1.1rem;
  border-radius: var(--radius-pill);
  font-weight: 500 !important;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  box-shadow: none;
}
.btn-cta-nav:hover {
  background: var(--red-deep) !important;
  color: var(--white) !important;
  transform: scale(1.02);
  opacity: 0.95;
}
.btn-cta-primary {
  display: inline-block;
  background: var(--red-vibrant);
  color: var(--white);
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 500;
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  text-align: center;
  min-height: 44px;
  line-height: 1.17647;
  box-shadow: none;
}
.btn-cta-primary:hover {
  background: var(--red-deep);
  color: var(--white);
  transform: scale(1.02);
}
.btn-cta-secondary {
  display: inline-block;
  background: transparent;
  color: var(--btn-secondary-fg);
  border: 1px solid var(--btn-secondary-border);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 500;
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  text-align: center;
  min-height: 44px;
  line-height: 1.17647;
}
.btn-cta-secondary:hover {
  border-color: var(--red-vibrant);
  background: var(--red-soft);
  color: var(--red-vibrant);
}
html[data-theme="dark"] .btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   5. Hero Section (Carrossel)
   ========================================================================== */
.hero-carousel {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background-color: var(--ocean-deep);
}
.carousel-container { width: 100%; height: 100%; position: absolute; top: 0; left: 0; }
.carousel-slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; visibility: hidden; transition: opacity 0.55s ease, visibility 0.55s ease;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: max(5rem, env(safe-area-inset-top)) clamp(1rem, 5vw, 5%) max(4rem, env(safe-area-inset-bottom)) clamp(1rem, 5vw, 5%);
  color: var(--hero-heading);
  background: var(--grad-hero-default);
  overflow-wrap: anywhere;
}
.carousel-slide.active { opacity: 1; visibility: visible; z-index: 1; }
.slide-robotica {
  background: var(--grad-hero-robotica);
}
.slide-saude {
  background: var(--grad-hero-saude);
}
.slide-regulacao {
  background: var(--grad-hero-regulacao);
}
.slide-comitivas {
  background: var(--grad-hero-comitivas);
}
.slide-curadoria {
  background: var(--grad-hero-curadoria);
}

.hero-content {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 0.5rem;
  transform: translateY(16px);
  transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.carousel-slide.active .hero-content { transform: translateY(0); }
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 0.35em;
  line-height: 1.07;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--hero-heading);
}
.highlight {
  color: var(--red-vibrant);
  font-weight: 600;
}
.hero-content p {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  margin-bottom: 2rem;
  font-weight: 400;
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
  color: var(--hero-paragraph);
  line-height: 1.5;
}
.hero-buttons { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--carousel-btn-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(245, 245, 247, 0.92);
  border: 1px solid var(--carousel-btn-border);
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 28px rgba(0, 0, 0, 0.18);
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
html[data-theme="light"] .carousel-btn { color: var(--text-primary); }
.carousel-btn svg {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}
.carousel-btn:focus-visible {
  outline: 2px solid var(--red-vibrant);
  outline-offset: 3px;
}
.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1), 0 10px 32px rgba(0, 0, 0, 0.22);
  transform: translateY(-50%) scale(1.04);
}
html[data-theme="light"] .carousel-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--red-vibrant);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.prev-btn { left: clamp(16px, 4vw, 30px); }
.next-btn { right: clamp(16px, 4vw, 30px); }

.carousel-nav-footer {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  width: max-content;
  max-width: min(100%, calc(100vw - 2rem));
  pointer-events: none;
}
.carousel-nav-footer .carousel-dots { pointer-events: auto; }

.carousel-dots {
  position: static;
  transform: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  width: max-content;
  padding: 5px 10px;
  margin: 0;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}
html[data-theme="light"] .carousel-dots {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.dot {
  width: 6px;
  height: 6px;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  background: var(--carousel-dot-idle);
  border: 1px solid var(--carousel-dot-idle-border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: width 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}
.dot:hover {
  background: rgba(255, 255, 255, 0.32);
  border-color: rgba(255, 255, 255, 0.28);
}
html[data-theme="light"] .dot:hover {
  background: rgba(0, 0, 0, 0.16);
  border-color: rgba(0, 0, 0, 0.12);
}
.dot:focus-visible {
  outline: 2px solid var(--red-vibrant);
  outline-offset: 2px;
}
.dot.active {
  width: 22px;
  background: var(--carousel-dot-active);
  border-color: transparent;
  box-shadow: 0 0 0 1px var(--carousel-dot-active-glow), 0 2px 8px rgba(0, 0, 0, 0.15);
}
html[data-theme="light"] .dot.active {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   6. Estrutura das Seções
   ========================================================================== */
.section-header {
  text-align: center;
  margin-bottom: clamp(2.25rem, 5.5vw, 3.25rem);
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}
.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.028em;
  color: var(--text-primary);
  margin-bottom: 0.45em;
  line-height: 1.12;
}
.section-header h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0.15em auto 0.5em;
  max-width: 36ch;
  line-height: 1.2;
}
.section-header.light-text h2, .section-header.light-text p { color: var(--white); }
.section-header p { font-size: 1.0625rem; color: var(--text-muted); max-width: 38rem; margin: 0 auto; line-height: 1.5; font-weight: 400; }

.fade-in { opacity: 0; transform: translateY(8px); transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1); }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Institucional */
.institucional { background: var(--bg-deep); }
.philosophy-scroll {
  max-width: var(--content-max);
  margin: 0 auto 3rem;
  width: 100%;
  box-sizing: border-box;
}
.philosophy-scroll .philosophy-grid {
  margin-bottom: 0;
  max-width: none;
}
.philosophy-scroll:focus-visible {
  outline: 2px solid var(--red-vibrant);
  outline-offset: 3px;
  border-radius: var(--radius-md);
}
.philosophy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(1.25rem, 3vw, 1.75rem); margin: 0 auto; max-width: var(--content-max); }
.philosophy-card {
  background: var(--bg-raised);
  padding: clamp(2rem, 4vw, 2.75rem);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s var(--ease-out-expo), box-shadow 0.35s ease;
}
@media (hover: hover) and (pointer: fine) {
  .philosophy-card:hover {
    border-color: color-mix(in srgb, var(--red-vibrant) 28%, var(--border-subtle));
    box-shadow: var(--shadow-hover);
  }
}
.card-icon { font-size: 4rem; color: var(--card-icon-faint); position: absolute; top: -10px; right: 20px; font-weight: 800; z-index: 0; }
.philosophy-card h3 { color: var(--text-primary); margin-bottom: 1rem; font-size: 1.25rem; font-weight: 600; position: relative; z-index: 1; letter-spacing: -0.02em; }
.philosophy-lead {
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}
.philosophy-lead--tight {
  margin-top: 1rem;
  margin-bottom: 0;
}
.philosophy-card ul { list-style: none; position: relative; z-index: 1; }
.philosophy-card li { margin-bottom: 1rem; padding-left: 1.5rem; position: relative; font-size: 0.95rem; color: var(--text-muted); }
.philosophy-card li::before { content: "•"; color: var(--red-vibrant); font-size: 1.5rem; position: absolute; left: 0; top: -8px; }

.philosophy-card--synthesis {
  text-align: center;
  background: var(--philosophy-synth-bg);
}
.philosophy-card--synthesis .card-icon {
  font-size: clamp(2.5rem, 6vw, 3.25rem);
  letter-spacing: -0.02em;
}
.philosophy-card--synthesis h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-bottom: 0.75rem;
}
.philosophy-card--synthesis > p:not(.philosophy-lead):not(.philosophy-synthesis__closing) {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}
.philosophy-card--synthesis > p + p:not(.philosophy-synthesis__closing) {
  margin-top: 0.85rem;
}
.philosophy-card--synthesis > p + ul {
  margin-top: 0.75rem;
}
.philosophy-card--synthesis ul {
  list-style: none;
  text-align: left;
  max-width: 42rem;
  margin: 0.5rem auto 0;
  padding: 0;
  position: relative;
  z-index: 1;
}
.philosophy-card--synthesis ul + p {
  margin-top: 1rem;
}
.philosophy-card--synthesis li {
  margin-bottom: 0.65rem;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-body);
}
.philosophy-card--synthesis li::before {
  content: "•";
  color: var(--red-vibrant);
  font-size: 1.35rem;
  position: absolute;
  left: 0;
  top: -6px;
}
.philosophy-synthesis__closing {
  margin-top: 0.85rem !important;
  font-weight: 600;
  color: var(--text-primary) !important;
  position: relative;
  z-index: 1;
}

/* Filosofia: desktop — 狼 e 道 na largura total da seção; síntese 狼道 mais estreita e centrada */
@media (min-width: 769px) {
  .institucional .institucional__philosophy {
    width: 100vw;
    max-width: none;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: var(--space-section-x);
    padding-right: var(--space-section-x);
    box-sizing: border-box;
  }
  .institucional .institucional__philosophy .philosophy-scroll-hint {
    max-width: var(--content-max);
    margin-left: auto;
    margin-right: auto;
  }
  .institucional .philosophy-scroll {
    max-width: none;
    width: 100%;
  }
  .institucional .philosophy-scroll > .philosophy-grid {
    max-width: none;
    width: 50%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .institucional .philosophy-scroll > .philosophy-grid > .philosophy-card--synthesis {
    grid-column: 1 / -1;
    max-width: var(--content-max);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    justify-self: center;
  }
}

.mission-vision { display: flex; gap: 1rem; flex-wrap: wrap; max-width: var(--content-max); margin: 0 auto; }
.mv-box {
  flex: 1; min-width: 280px;
  background: var(--mv-box-grad);
  color: var(--text-body);
  padding: clamp(2rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  border-left: 2px solid var(--red-vibrant);
  box-shadow: var(--shadow-sm);
}
.mv-box h4 { font-size: 1.3rem; margin-bottom: 1rem; color: var(--mv-box-heading); }

/* O Que Fazemos */
.o-que-fazemos {
  background: var(--bg-accent);
  position: relative;
}
.o-que-fazemos::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(217, 30, 24, 0.08), transparent 55%);
  opacity: 1;
}
html[data-theme="light"] .o-que-fazemos::before {
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(217, 30, 24, 0.06), transparent 55%);
}

.services-scroll {
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  padding: 0 max(1.25rem, min(5vw, 2rem));
}
.services-scroll:focus-visible {
  outline: 2px solid var(--red-vibrant);
  outline-offset: 3px;
  border-radius: var(--radius-md);
}

.services-grid {
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.125rem;
}
.service-card.full-width { grid-column: 1 / -1; }

.service-card {
  position: relative;
  padding: clamp(1.75rem, 4vw, 2.35rem);
  background: var(--bg-raised);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red-vibrant), var(--orange-warm));
  opacity: 0.95;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(217, 30, 24, 0.22);
}
html[data-theme="light"] .service-card:hover {
  border-color: rgba(217, 30, 24, 0.2);
}

.service-number {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--red-vibrant) 0%, var(--orange-warm) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.95;
}
.service-card h4 {
  color: var(--text-primary);
  margin-bottom: 0.65rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.service-card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.55; margin: 0; }

/* Robótica */
.robotica {
  background: var(--robotica-grad);
  color: var(--text-primary);
}
.robotics-container { max-width: var(--content-max); margin: 0 auto; display: flex; gap: 2rem; flex-wrap: wrap; }
.robotics-sidebar {
  flex: 1; min-width: 280px;
  padding: clamp(2rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--robotics-sidebar-bg);
  border: none;
}
.robotics-sidebar h3 { margin-bottom: 1.5rem; font-size: 1.5rem; color: var(--robotics-sidebar-heading); }
.diff-list { list-style: none; }
.diff-list li { margin-bottom: 1rem; font-size: 1rem; padding-left: 1.5rem; position: relative; color: var(--diff-list-color); }
.diff-list li::before { content: "✓"; color: var(--yellow-highlight); font-weight: bold; position: absolute; left: 0; }
.diff-list a {
  color: var(--yellow-highlight);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.diff-list a:hover { color: #fff; }
html[data-theme="light"] .diff-list a:hover { color: var(--red-vibrant); }

.robotics-scroll { flex: 2; min-width: min(100%, 280px); }
.robotics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1.5rem; }
.robot-card {
  background: var(--robot-card-bg);
  padding: clamp(1.75rem, 3vw, 2.25rem);
  border-radius: var(--radius-md);
  color: var(--robot-card-body);
  border: 1px solid var(--border-subtle);
  border-top: 2px solid var(--robot-card-border-top);
  box-shadow: var(--robot-card-shadow);
}
.robot-card h4 { color: var(--robot-card-heading); margin-bottom: 0.5rem; font-size: 1.0625rem; font-weight: 600; }
.robot-card p { color: var(--robot-card-body); }

/* Produtos — grid de cards com lightbox */
.produtos {
  background: var(--bg-accent);
  position: relative;
  overflow: hidden;
}
.produtos::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(217, 30, 24, 0.06), transparent 55%);
}
html[data-theme="light"] .produtos::before {
  background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(217, 30, 24, 0.04), transparent 55%);
}

.scroll-hint--hidden {
  display: none !important;
}

/* Dicas “Deslize →” — tamanho único, bem discreto */
.philosophy-scroll-hint,
.services-scroll-hint,
.produtos-scroll-hint,
.roadmap-scroll-hint,
.solucoes-filter-hint,
.partners-scroll-hint,
.carousel-swipe-hint {
  display: none;
  margin: 0 auto 0.45rem;
  max-width: var(--content-max);
  padding: 0 max(1.25rem, min(5vw, 2rem));
  font-size: 0.625rem !important;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.68;
  text-align: center;
}
.carousel-swipe-hint {
  margin: 0;
  max-width: none;
  padding: 0 0.5rem;
  pointer-events: none;
}
.produtos-scroll {
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.produtos-scroll:focus-visible {
  outline: 2px solid var(--red-vibrant);
  outline-offset: 3px;
  border-radius: var(--radius-md);
}

.produtos-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: clamp(1.125rem, 2.2vw, 1.625rem);
  position: relative;
  z-index: 1;
}

/* Catálogo de robótica: 3 × 2 quando não é carrossel (≥769px; mesmo breakpoint do strip mobile) */
@media (min-width: 769px) {
  .robotica .produtos-scroll > .produtos-grid,
  .produtos .produtos-scroll > .produtos-grid,
  #produtos-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .robotica #eventos-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Filtro dos cards de eventos (Soluções — Comitivas e Eventos) */
.eventos-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 0.65rem;
  max-width: var(--content-max);
  margin: 0 auto clamp(1.25rem, 3vw, 1.75rem);
  padding: 0 max(1.25rem, min(5vw, 2rem));
  position: relative;
  z-index: 1;
}
.eventos-filter__btn {
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-raised);
  color: var(--text-primary);
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.eventos-filter__btn:hover {
  border-color: rgba(217, 30, 24, 0.28);
  color: var(--red-vibrant);
}
.eventos-filter__btn:focus-visible {
  outline: 2px solid var(--red-vibrant);
  outline-offset: 2px;
}
.eventos-filter__btn.is-active {
  background: var(--red-vibrant);
  border-color: var(--red-vibrant);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(217, 30, 24, 0.35);
}
html[data-theme="light"] .eventos-filter__btn.is-active {
  box-shadow: 0 4px 14px rgba(217, 30, 24, 0.25);
}

/* Filtro principal de Soluções: carrossel horizontal no mobile */
@media (max-width: 768px) {
  .robotica .solucoes-filter-hint.roadmap-scroll-hint {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
    padding-left: max(clamp(1rem, 5vw, 5%), env(safe-area-inset-left));
    padding-right: max(clamp(1rem, 5vw, 5%), env(safe-area-inset-right));
  }
  #solucoes-filter.eventos-filter {
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    max-width: none;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 0;
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    padding: 0.2rem 0 0.55rem;
    padding-left: max(clamp(1rem, 5vw, 5%), env(safe-area-inset-left));
    padding-right: max(clamp(1rem, 5vw, 5%), env(safe-area-inset-right));
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: max(clamp(1rem, 5vw, 5%), env(safe-area-inset-left));
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(217, 30, 24, 0.35) transparent;
    gap: 0.5rem;
  }
  #solucoes-filter.eventos-filter::-webkit-scrollbar {
    height: 4px;
  }
  #solucoes-filter.eventos-filter::-webkit-scrollbar-thumb {
    background: rgba(217, 30, 24, 0.42);
    border-radius: 3px;
  }
  #solucoes-filter.eventos-filter .eventos-filter__btn {
    flex: 0 0 auto;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    white-space: nowrap;
  }
}

/* Painéis filtráveis dentro de #solucoes */
.solucoes-panel {
  scroll-margin-top: clamp(4.25rem, 10vw, 5.75rem);
}

.produto-card {
  position: relative;
  isolation: isolate;
  background: var(--bg-raised);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  contain: layout style;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  transition:
    transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
    box-shadow 0.4s ease,
    border-color 0.35s ease;
}
/* Barra de acento animada no topo */
.produto-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red-vibrant) 0%, var(--orange-warm) 55%, var(--yellow-highlight) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
  z-index: 4;
  pointer-events: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
/* Hover: só em dispositivos com ponteiro preciso (evita “estado preso” no toque) */
@media (hover: hover) and (pointer: fine) {
  .produto-card:hover {
    transform: translateY(-8px);
    box-shadow:
      0 22px 56px rgba(0, 0, 0, 0.32),
      0 0 0 1px rgba(217, 30, 24, 0.14);
    border-color: rgba(217, 30, 24, 0.22);
  }
  html[data-theme="light"] .produto-card:hover {
    box-shadow:
      0 18px 44px rgba(0, 0, 0, 0.1),
      0 0 0 1px rgba(217, 30, 24, 0.12);
    border-color: rgba(217, 30, 24, 0.18);
  }
  .produto-card:hover::before {
    transform: scaleX(1);
  }
}
/* Teclado: mesmas animações ao focar o card */
.produto-card:focus-visible {
  outline: 2px solid var(--red-vibrant);
  outline-offset: 3px;
  transform: translateY(-8px);
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(217, 30, 24, 0.14);
  border-color: rgba(217, 30, 24, 0.22);
}
html[data-theme="light"] .produto-card:focus-visible {
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(217, 30, 24, 0.12);
  border-color: rgba(217, 30, 24, 0.18);
}
.produto-card:focus-visible::before {
  transform: scaleX(1);
}

.produto-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(165deg, var(--bg-raised-alt) 0%, rgba(217, 30, 24, 0.04) 100%);
  perspective: 640px;
}
.produto-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transform-origin: center 48%;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translateZ(0);
}
@media (hover: hover) and (pointer: fine) {
  .produto-card:hover .produto-card__thumb img {
    /* Robô “afasta” ao passar o mouse: menor + leve recuo em profundidade */
    transform: scale(0.88) translateY(4.5%) rotateX(2deg);
  }
}
.produto-card:focus-visible .produto-card__thumb img {
  transform: scale(0.88) translateY(4.5%) rotateX(2deg);
}

.produto-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1.2rem;
  padding-inline: 0.75rem;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.12) 45%, transparent 72%);
  opacity: 0;
  transition: opacity 0.38s ease;
}
.produto-card:hover .produto-card__overlay,
.produto-card:focus-visible .produto-card__overlay {
  opacity: 1;
}

.produto-card__overlay-label {
  pointer-events: auto;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-raised);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.5rem 1.05rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
  transform: translateY(14px);
  opacity: 0;
  transition:
    background 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.42s cubic-bezier(0.25, 0.1, 0.25, 1),
    opacity 0.35s ease;
}
.produto-card:hover .produto-card__overlay-label,
.produto-card:focus-visible .produto-card__overlay-label {
  transform: translateY(0);
  opacity: 1;
}
.produto-card__overlay-label:hover,
.produto-card__overlay-label:focus-visible {
  background: var(--red-vibrant);
  color: var(--white);
  border-color: var(--red-vibrant);
  box-shadow: 0 6px 24px rgba(217, 30, 24, 0.45);
}
.produto-card__overlay-label:active {
  background: var(--red-deep);
  border-color: var(--red-deep);
}
/* Teclado: card focado — “Ver mais” já visível em vermelho */
.produto-card:focus-visible .produto-card__overlay-label {
  background: var(--red-vibrant);
  color: var(--white);
  border-color: var(--red-vibrant);
}
.produto-card__overlay-label::after {
  content: "→";
  font-size: 0.88em;
  display: inline-block;
  transition: transform 0.28s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.produto-card__overlay-label:hover::after,
.produto-card__overlay-label:focus-visible::after {
  transform: translateX(5px);
}

.produto-card__foot {
  padding: 1rem 1.125rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-top: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, transparent 0%, rgba(217, 30, 24, 0.02) 100%);
  transition: border-color 0.35s ease;
}
@media (hover: hover) and (pointer: fine) {
  .produto-card:hover .produto-card__foot {
    border-top-color: rgba(217, 30, 24, 0.12);
  }
}
.produto-card:focus-visible .produto-card__foot {
  border-top-color: rgba(217, 30, 24, 0.12);
}
.produto-card__tag {
  display: inline-block;
  width: fit-content;
  padding: 0.2rem 0.58rem;
  border-radius: var(--radius-pill);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: var(--red-soft);
  color: var(--red-vibrant);
}
.produto-card__foot h3 {
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.28;
}
.produto-card__foot > p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.48;
  margin: 0;
}

/* ── Lightbox ── */
.produto-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}
.produto-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.produto-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  cursor: pointer;
}

.produto-lightbox__panel {
  position: relative;
  z-index: 1;
  background: var(--bg-raised);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glow);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255,255,255,0.04);
  width: min(100%, 1020px);
  max-height: min(94vh, 840px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
  will-change: transform, opacity;
}
html[data-theme="light"] .produto-lightbox__panel {
  box-shadow: 0 32px 80px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.06);
}
.produto-lightbox.is-open .produto-lightbox__panel {
  transform: translateY(0);
  opacity: 1;
  will-change: auto;
}

/* Modal — dica após abrir mailto (formulário / contato) */
.contact-mailto-modal {
  position: fixed;
  inset: 0;
  z-index: 3100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  pointer-events: none;
}
.contact-mailto-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.contact-mailto-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  cursor: pointer;
}
html[data-theme="light"] .contact-mailto-modal__backdrop {
  background: rgba(0, 0, 0, 0.45);
}
.contact-mailto-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  background: var(--bg-raised);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glow);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: 1.75rem 1.5rem 1.5rem;
  transform: translateY(10px) scale(0.98);
  opacity: 0;
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.26s ease;
}
html[data-theme="light"] .contact-mailto-modal__panel {
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.contact-mailto-modal.is-open .contact-mailto-modal__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.contact-mailto-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(128, 128, 128, 0.14);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.contact-mailto-modal__close:hover {
  background: rgba(217, 30, 24, 0.14);
  color: var(--red-vibrant);
}
.contact-mailto-modal__close:focus-visible {
  outline: 2px solid var(--red-vibrant);
  outline-offset: 2px;
}
.contact-mailto-modal__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-right: 2rem;
}
.contact-mailto-modal__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(217, 30, 24, 0.18) 0%, rgba(217, 30, 24, 0.06) 100%);
  color: var(--red-vibrant);
  border: 1px solid rgba(217, 30, 24, 0.22);
}
html[data-theme="light"] .contact-mailto-modal__icon {
  background: linear-gradient(145deg, rgba(217, 30, 24, 0.12) 0%, rgba(217, 30, 24, 0.04) 100%);
}
.contact-mailto-modal__title {
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: clamp(1.15rem, 3.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
}
.contact-mailto-modal__desc {
  margin: 0 0 0.75rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-body);
  text-align: center;
}
.contact-mailto-modal__email {
  color: var(--red-vibrant);
  font-weight: 600;
  word-break: break-all;
}
.contact-mailto-modal__hint {
  margin: 0 0 1.25rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
  text-align: center;
}
.contact-mailto-modal__actions {
  display: flex;
  justify-content: center;
}
.contact-mailto-modal__actions .btn-cta-primary {
  width: 100%;
  justify-content: center;
  text-align: center;
}
@media (prefers-reduced-motion: reduce) {
  .contact-mailto-modal,
  .contact-mailto-modal__panel {
    transition: none;
  }
  .contact-mailto-modal.is-open .contact-mailto-modal__panel {
    transform: none;
  }
}

.produto-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(128,128,128,0.15);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.produto-lightbox__close:hover {
  background: rgba(217,30,24,0.15);
  color: var(--red-vibrant);
}
.produto-lightbox__close:focus-visible {
  outline: 2px solid var(--red-vibrant);
  outline-offset: 2px;
}

.produto-lightbox__body {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  flex: 1;
  overflow: hidden;
}

.produto-lightbox__photo {
  margin: 0;
  overflow: hidden;
  background: var(--bg-raised-alt);
  display: flex;
  align-items: stretch;
}
.produto-lightbox__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.produto-lightbox__info {
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2rem) clamp(1.25rem, 2.5vw, 1.75rem);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(217,30,24,0.3) transparent;
}
.produto-lightbox__info::-webkit-scrollbar { width: 4px; }
.produto-lightbox__info::-webkit-scrollbar-thumb { background: rgba(217,30,24,0.35); border-radius: 2px; }

.produto-lightbox__header { display: flex; flex-direction: column; gap: 0.5rem; }
.produto-lightbox__tag {
  display: inline-block;
  width: fit-content;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--red-soft);
  color: var(--red-vibrant);
}
.produto-lightbox__title {
  font-size: clamp(1.25rem, 2.2vw, 1.5625rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}
.produto-lightbox__desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.produto-lightbox__specs-heading {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.625rem;
}
.produto-lightbox__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  margin: 0;
  padding: 0;
}
.produto-lightbox__specs dt {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}
.produto-lightbox__specs dd {
  font-size: 0.8125rem;
  color: var(--text-primary);
  font-weight: 500;
  margin: 0;
}

.produto-lightbox__features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.produto-lightbox__features span {
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(217, 30, 24, 0.06);
  color: var(--text-body);
  border: 1px solid rgba(217, 30, 24, 0.1);
}
html[data-theme="light"] .produto-lightbox__features span {
  background: rgba(217, 30, 24, 0.05);
  border-color: rgba(217, 30, 24, 0.08);
}

.produto-lightbox__video-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0a0a0c;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.produto-lightbox__video-shell iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 1;
}
.produto-lightbox__video-shell--embed-loaded .produto-lightbox__video-overlay {
  display: none;
}
.produto-lightbox__video-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  color: #fff;
  border: 0;
  font: inherit;
}
.produto-lightbox__video-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.65) 100%);
  z-index: 0;
  pointer-events: none;
}
.produto-lightbox__video-overlay:focus-visible {
  outline: 2px solid var(--accent, #d91e18);
  outline-offset: 2px;
}
.produto-lightbox__video-play-icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  background: rgba(217, 30, 24, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}
.produto-lightbox__video-play-icon svg {
  margin-left: 4px;
  opacity: 0.95;
}
.produto-lightbox__video-overlay-hint {
  position: relative;
  z-index: 1;
  font-size: 0.8125rem;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  max-width: 14rem;
  line-height: 1.35;
}
.produto-lightbox__video-external {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent, #d91e18);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.produto-lightbox__video-external:hover {
  opacity: 0.9;
}
.produto-lightbox__video-external[hidden] {
  display: none !important;
}

.produto-lightbox__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  margin-top: auto;
  margin-bottom: 3rem;
}

.produtos-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .produto-lightbox__panel {
    transition: none;
    transform: none;
    opacity: 1;
    will-change: auto;
  }
  .produto-card {
    transition: none;
  }
  .produto-card::before {
    transition: none;
  }
  .produto-card:hover,
  .produto-card:focus-visible {
    transform: none;
  }
  .produto-card__thumb img {
    transition: none;
  }
  .produto-card:hover .produto-card__thumb img,
  .produto-card:focus-visible .produto-card__thumb img {
    transform: none;
  }
  .produto-card__overlay {
    transition: none;
  }
  .produto-card__overlay-label {
    transition: none;
    transform: none;
    opacity: 1;
  }
  .produto-card__overlay-label::after {
    transition: none;
  }
}

/* Parceiros & Liderança & Roadmap */
.parceiros { background: var(--bg-deep); }
.partners-grid { max-width: var(--content-max); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1rem; }
.partner-card {
  text-align: center;
  padding: clamp(2rem, 4vw, 2.5rem) 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ease-out-expo);
}
@media (hover: hover) and (pointer: fine) {
  .partner-card:hover {
    border-color: color-mix(in srgb, var(--red-vibrant) 22%, var(--border-subtle));
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
  }
}
.partner-card p { color: var(--text-muted); }
.partner-card h3 { color: var(--text-primary); font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; word-break: break-word;}

.lideranca {
  background: var(--lideranca-grad);
}
.lideranca .section-header p { color: var(--lideranca-header-p); }

.team-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(1.75rem, 4vw, 2.75rem);
  text-align: center;
  align-items: start;
}
.team-member p { color: var(--text-muted); }
.team-member h4 { color: var(--team-member-heading); font-weight: 600; font-size: 1.0625rem; }
.member-avatar {
  width: 120px;
  height: 120px;
  background: linear-gradient(145deg, var(--red-vibrant), var(--orange-warm));
  color: var(--white);
  font-size: 1.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 1rem auto;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
/* Fotos reais da liderança */
.member-avatar--photo {
  padding: 0;
  overflow: hidden;
  background: var(--bg-raised-alt);
  border: 3px solid rgba(217, 30, 24, 0.2);
  box-shadow:
    var(--shadow-sm),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.member-avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.team-member {
  transition: transform 0.35s ease;
}
@media (hover: hover) and (pointer: fine) {
  .team-member:hover {
    transform: translateY(-4px);
  }
  .team-member:hover .member-avatar--photo {
    border-color: rgba(217, 30, 24, 0.45);
    box-shadow:
      0 12px 28px rgba(0, 0, 0, 0.2),
      0 0 0 1px rgba(217, 30, 24, 0.12) inset;
  }
}
html[data-theme="light"] .member-avatar--photo {
  border-color: rgba(217, 30, 24, 0.18);
  box-shadow: var(--shadow-sm);
}
@media (prefers-reduced-motion: reduce) {
  .team-member {
    transition: none;
  }
  .team-member:hover {
    transform: none;
  }
}

/* Contato (e-mail + LinkedIn) só no card do William */
.team-member--william {
  padding-bottom: 0.15rem;
}
.team-member__reach {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  width: 100%;
  max-width: 17rem;
  margin-left: auto;
  margin-right: auto;
}
.team-member__mailto {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  text-decoration: none;
  word-break: break-all;
  line-height: 1.35;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}
@media (hover: hover) and (pointer: fine) {
  .team-member__mailto:hover {
    color: #ffe8e8;
    border-bottom-color: var(--red-vibrant);
  }
}
.team-member__mailto:focus-visible {
  outline: 2px solid var(--red-vibrant);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
  border-bottom-color: transparent;
}
.team-member__linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  min-height: 40px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: #0a66c2;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 14px rgba(10, 102, 194, 0.35);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}
.team-member__linkedin-icon {
  flex-shrink: 0;
  opacity: 0.95;
}
@media (hover: hover) and (pointer: fine) {
  .team-member__linkedin:hover {
    background: #004182;
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(10, 102, 194, 0.45);
  }
}
.team-member__linkedin:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
html[data-theme="light"] .team-member__reach {
  border-top-color: rgba(0, 0, 0, 0.08);
}
html[data-theme="light"] .team-member__mailto {
  color: var(--red-deep);
}
html[data-theme="light"] .team-member__mailto:hover {
  color: var(--red-vibrant);
  border-bottom-color: var(--red-vibrant);
}
@media (prefers-reduced-motion: reduce) {
  .team-member__linkedin {
    transition: none;
  }
  .team-member__linkedin:hover {
    transform: none;
  }
}

.roadmap { background: var(--bg-accent); }
.eventos {
  background: var(--bg-deep);
}
.eventos .section-header p {
  color: var(--text-muted);
}
.roadmap-grid { max-width: var(--content-max); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1rem; }
.road-card {
  background: var(--bg-raised);
  padding: clamp(2rem, 4vw, 2.5rem);
  padding-top: clamp(2.35rem, 4.5vw, 2.85rem);
  border-radius: var(--radius-lg);
  position: relative;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .road-card:hover {
    border-color: color-mix(in srgb, var(--red-vibrant) 20%, var(--border-subtle));
    box-shadow: var(--shadow-hover);
  }
}
.road-card p { color: var(--text-muted); }
.road-card h4 { color: var(--text-primary); }
.badge {
  position: absolute; top: 0.85rem; right: 0.85rem;
  background: var(--red-vibrant);
  color: var(--white);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.roadmap-scroll {
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.roadmap-scroll:focus-visible {
  outline: 2px solid var(--red-vibrant);
  outline-offset: 3px;
  border-radius: var(--radius-md);
}

.partners-scroll {
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.partners-scroll:focus-visible {
  outline: 2px solid var(--red-vibrant);
  outline-offset: 3px;
  border-radius: var(--radius-md);
}

/* Footer — navy + acento vermelho logo */
.site-footer {
  --footer-surface: #0f1822;
  --footer-card: rgba(255, 255, 255, 0.06);
  --footer-card-border: rgba(255, 255, 255, 0.1);
  --footer-text: rgba(245, 245, 247, 0.88);
  --footer-muted: rgba(245, 245, 247, 0.62);
  --footer-input: rgba(10, 15, 20, 0.85);
  --footer-accent: var(--red-vibrant);
  background: linear-gradient(165deg, var(--brand-navy) 0%, #0d1520 42%, #070b0f 100%);
  color: var(--footer-text);
  border-top: 1px solid rgba(217, 30, 24, 0.22);
  padding: clamp(3.25rem, 7vw, 5rem) max(1.25rem, min(5vw, 2.25rem)) max(1.5rem, env(safe-area-inset-bottom));
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 100% 0%, rgba(217, 30, 24, 0.14) 0%, transparent 55%);
  pointer-events: none;
}
.footer-container {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
  margin-bottom: clamp(2rem, 5vw, 3rem);
  position: relative;
  z-index: 1;
}
.footer-brand { min-width: 0; }
.footer-brand__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}
.footer-brand__text {
  width: 100%;
  min-width: 0;
}
.footer-logo-link {
  display: inline-block;
  line-height: 0;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.footer-logo-link:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}
.footer-logo-link:focus-visible {
  outline: 2px solid var(--footer-accent);
  outline-offset: 4px;
}
.footer-logo-img {
  width: min(100%, 280px);
  height: auto;
  max-height: 120px;
  object-fit: contain;
  display: block;
}
.footer-tagline {
  color: var(--footer-muted);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 36ch;
  margin-bottom: 1rem;
}
.footer-cn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  margin-bottom: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(245, 245, 247, 0.78);
}
.footer-cn-rule {
  flex: 0 1 2.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  min-width: 1.5rem;
}
.footer-cn-text { flex-shrink: 0; }

.footer-address-card {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  padding: 1rem 1.125rem;
  margin: 1.25rem 0 1.5rem;
  max-width: 100%;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.footer-address-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(217, 30, 24, 0.18);
  color: #8fd98f;
}
.footer-address-card__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--footer-accent);
  margin-bottom: 0.35rem;
}
.footer-address-card__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--footer-muted);
}

.footer-email-card {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  padding: 1rem 1.125rem;
  margin: 0 0 1.5rem;
  max-width: 100%;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.footer-email-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(79, 195, 247, 0.12);
  color: #7dd3fc;
}
.footer-email-card__body {
  min-width: 0;
}
.footer-email-card__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--footer-accent);
  margin-bottom: 0.35rem;
}
.footer-email-card__link {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--footer-text);
  text-decoration: none;
  word-break: break-word;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-email-card__link:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.35);
}
.footer-email-card__link:focus-visible {
  outline: 2px solid var(--footer-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
  border-bottom-color: transparent;
}
.footer-email-card--whatsapp .footer-email-card__icon {
  background: rgba(37, 211, 102, 0.14);
  color: #b8f5cf;
}

.footer-actions-wrap {
  margin-top: 0.25rem;
}
.footer-actions-heading {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(245, 245, 247, 0.45);
  margin-bottom: 0.75rem;
}
.footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  min-height: 44px;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--footer-text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.footer-btn__icon {
  flex-shrink: 0;
  opacity: 0.95;
}
.footer-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.footer-btn:focus-visible {
  outline: 2px solid var(--footer-accent);
  outline-offset: 2px;
}
.footer-btn--youtube:hover {
  background: rgba(255, 0, 0, 0.12);
  border-color: rgba(255, 82, 82, 0.45);
  color: #ffb4b4;
}
.footer-btn--linkedin:hover {
  background: rgba(10, 102, 194, 0.2);
  border-color: rgba(100, 180, 255, 0.45);
  color: #b8d9ff;
}

.footer-qr {
  position: relative;
  display: inline-flex;
}
.footer-qr__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  min-height: 44px;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-family: inherit;
  cursor: pointer;
  color: var(--footer-text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.footer-qr__trigger:hover,
.footer-qr:focus-within .footer-qr__trigger {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.footer-qr__trigger:focus-visible {
  outline: 2px solid var(--footer-accent);
  outline-offset: 2px;
}
.footer-qr__trigger--whatsapp:hover,
.footer-qr:focus-within .footer-qr__trigger--whatsapp {
  background: rgba(37, 211, 102, 0.15);
  border-color: rgba(37, 211, 102, 0.45);
  color: #b8f5cf;
}
.footer-qr__trigger--wechat:hover,
.footer-qr:focus-within .footer-qr__trigger--wechat {
  background: rgba(9, 187, 7, 0.14);
  border-color: rgba(9, 187, 7, 0.42);
  color: #c8f5c4;
}
.footer-qr__icon {
  flex-shrink: 0;
  opacity: 0.95;
}
.footer-qr__balloon {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  min-width: min(200px, 72vw);
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid rgba(217, 30, 24, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(6px);
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
}
.footer-qr__balloon::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  margin-left: -8px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #fff;
  filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.06));
}
.footer-qr:hover .footer-qr__balloon,
.footer-qr:focus-within .footer-qr__balloon {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.footer-qr__img {
  display: block;
  width: min(168px, 56vw);
  height: auto;
  border-radius: var(--radius-sm);
}
.footer-qr__caption {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #424245;
}
.footer-qr__hint {
  display: block;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #6e6e73;
  text-align: center;
  line-height: 1.4;
  max-width: 15rem;
}
@media (max-width: 480px) {
  .footer-qr__balloon {
    left: 0;
    right: auto;
    transform: translateX(0) translateY(6px);
  }
  .footer-qr:hover .footer-qr__balloon,
  .footer-qr:focus-within .footer-qr__balloon {
    transform: translateX(0) translateY(0);
  }
  .footer-qr__balloon::after {
    left: 1.25rem;
    right: auto;
    margin-left: -8px;
  }
}

.footer-form {
  background: var(--footer-card);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--footer-card-border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.footer-form h3 {
  margin-bottom: 1.25rem;
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--footer-text);
  letter-spacing: -0.02em;
}
.footer-form__context-hint {
  margin: -0.35rem 0 0;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-form form { display: flex; flex-direction: column; gap: 1rem; }
.footer-form input,
.footer-form .form-select {
  padding: 0.875rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: "Inter", sans-serif;
  width: 100%;
  font-size: 1rem;
  background: var(--footer-input);
  color: var(--footer-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.footer-form input::placeholder { color: rgba(255, 255, 255, 0.38); }
.footer-form .form-select {
  color: var(--footer-text);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.5rem;
}
.footer-form .form-select option { background: #1a2430; color: #f5f5f7; }
.footer-form input:focus,
.footer-form .form-select:focus {
  outline: none;
  border-color: var(--footer-accent);
  box-shadow: 0 0 0 3px rgba(36, 140, 36, 0.25);
}
.footer-submit.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.25rem;
  width: 100%;
}
.footer-bottom {
  text-align: center;
  color: rgba(245, 245, 247, 0.45);
  font-size: 0.8125rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
}
.footer-bottom::before {
  content: "";
  display: block;
  width: min(120px, 30%);
  height: 2px;
  margin: 0 auto 1rem;
  background: linear-gradient(90deg, transparent, var(--footer-accent), transparent);
  border-radius: 1px;
  opacity: 0.85;
}
.footer-bottom .dev-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 0.9rem;
  margin-top: 0.45rem;
}
.footer-bottom .dev-text {
  font-size: 0.875rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: var(--footer-muted);
}
.footer-bottom .dev-info a {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  border-radius: 6px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.footer-bottom .dev-info a:hover {
  opacity: 0.88;
}
.footer-bottom .dev-info a:focus-visible {
  outline: 2px solid var(--footer-accent);
  outline-offset: 3px;
}
.footer-bottom .image-solunova {
  display: block;
  height: clamp(38px, 6.2vw, 50px);
  width: auto;
  max-width: 236px;
  object-fit: contain;
}

/* Botão voltar ao topo */
.scroll-to-top {
  position: fixed;
  z-index: 1900;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  width: 48px;
  height: 48px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: #D91E18;
  color: var(--white);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.scroll-to-top.scroll-to-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-to-top:hover {
  background: #D81E00;
}
.scroll-to-top:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}
.scroll-to-top:active {
  transform: translateY(2px);
}
.scroll-to-top.scroll-to-top--visible:active {
  transform: translateY(2px);
}

/* ==========================================================================
   7. RESPONSIVIDADE (Mobile & Tablets)
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-content h1 { font-size: clamp(2.25rem, 4.5vw, 3rem); }
  .section-header h2 { font-size: clamp(1.65rem, 3.5vw, 2.2rem); }
  section { padding: clamp(5rem, 9vw, 6.5rem) var(--space-section-x); }
  .robotics-container { flex-direction: column; }
  .produtos-grid { grid-template-columns: repeat(2, 1fr); }
  .produto-lightbox__body { grid-template-columns: 1fr; }
  .produto-lightbox__photo { max-height: 300px; }
}

@media (max-width: 900px) {
  .site-footer .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Logo + frase em linha só em telas estreitas (celular); no PC/tablet permanece em coluna */
@media (max-width: 639px) {
  .footer-brand__intro {
    flex-direction: row;
    align-items: center;
    gap: clamp(0.75rem, 3vw, 1.25rem);
  }
  .footer-logo-link {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .footer-logo-img {
    width: auto;
    max-height: clamp(64px, 18vw, 88px);
    max-width: min(140px, 38vw);
  }
  .footer-brand__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    min-width: 0;
  }
  .footer-tagline {
    margin-bottom: 0;
    max-width: none;
    font-size: clamp(0.8125rem, 2.75vw, 0.9375rem);
    line-height: 1.45;
  }
  .footer-cn {
    gap: 0.5rem;
    font-size: clamp(0.75rem, 2.2vw, 0.875rem);
  }
  .footer-cn-rule {
    flex-basis: 1.25rem;
    min-width: 0.75rem;
  }
}

@media (max-width: 768px) {
  .nav-overlay { display: block; }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    margin: -8px -8px -8px 0;
    padding: 8px;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 88vw);
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    z-index: 1999;
    background: var(--bg-raised-alt);
    box-shadow: var(--nav-mobile-shadow);
    border-left: 1px solid var(--border-subtle);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
  }
  .nav-links::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--red-vibrant) 0%, var(--orange-warm) 100%);
    opacity: 0.85;
    pointer-events: none;
  }
  .nav-links.active { right: 0; }
  .nav-sidebar__inner {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    min-height: 0;
    height: 100%;
  }
  .nav-sidebar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    padding: 1rem 1.25rem 1rem 1.5rem;
    padding-top: max(1rem, calc(env(safe-area-inset-top) + 0.35rem));
    border-bottom: 1px solid var(--border-subtle);
    background: linear-gradient(180deg, var(--bg-raised) 0%, var(--bg-raised-alt) 100%);
  }
  .nav-sidebar__title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
  }
  .nav-sidebar__list {
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    gap: 0.125rem;
    padding: 0.75rem 0.75rem 1rem 1.25rem;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .nav-sidebar__list li { display: block; width: 100%; }
  .nav-sidebar__list a {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0.55rem 0.9rem;
    margin-left: -0.25rem;
    border-radius: var(--radius-sm);
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    width: 100%;
    box-sizing: border-box;
  }
  .nav-sidebar__list a:hover,
  .nav-sidebar__list a:focus-visible {
    background: var(--nav-sidebar-link-hover);
    opacity: 1;
    color: var(--text-primary);
  }
  html[data-theme="dark"] .nav-sidebar__list a:hover,
  html[data-theme="dark"] .nav-sidebar__list a:focus-visible {
    background: rgba(217, 30, 24, 0.12);
    color: var(--red-vibrant);
  }
  .nav-sidebar__list a:focus-visible {
    outline: 2px solid var(--red-vibrant);
    outline-offset: 0;
  }
  html[data-theme="light"] .nav-sidebar__list a:hover,
  html[data-theme="light"] .nav-sidebar__list a:focus-visible {
    color: var(--red-vibrant);
    background: rgba(217, 30, 24, 0.07);
  }
  .nav-sidebar__cta {
    flex-shrink: 0;
    padding: 1rem 1.25rem 1.25rem;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-accent);
  }
  .nav-sidebar__cta .btn-cta-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    text-align: center;
    padding: 0.95rem 1.35rem;
    font-size: 1.0625rem;
  }

  section { padding: clamp(4.25rem, 9vw, 5.5rem) var(--space-section-x); }
  .hero-carousel { min-height: 85vh; min-height: 85dvh; }
  .hero-content { padding-top: clamp(3.5rem, 12vw, 4.25rem); }
  .hero-content h1 { font-size: clamp(1.85rem, 6.5vw, 2.4rem); }
  .hero-content p { font-size: 1.05rem; margin-bottom: 2rem; }

  .hero-buttons { flex-direction: column; width: 100%; gap: 1rem; }
  .hero-buttons a { width: 100%; text-align: center; }

  .carousel-btn {
    display: none !important;
  }

  .carousel-nav-footer {
    bottom: max(16px, env(safe-area-inset-bottom));
    gap: 0.5rem;
  }
  .carousel-swipe-hint {
    display: block;
  }
  .carousel-dots {
    padding: 4px 9px;
    gap: 6px;
  }
  .dot {
    width: 5px;
    height: 5px;
  }
  .dot.active {
    width: 18px;
  }

  .section-header h2 { font-size: 1.8rem; }
  .produto-lightbox { padding: 0.5rem; }
  .produto-lightbox__panel { max-height: 92vh; border-radius: var(--radius-md); }
  .produto-lightbox__specs { grid-template-columns: 1fr; }
  .philosophy-grid, .partners-grid, .team-grid { grid-template-columns: 1fr; }
  .philosophy-card, .partner-card, .road-card { padding: 2.5rem 1.5rem; }

  .philosophy-scroll-hint:not(.scroll-hint--hidden),
  .roadmap-scroll-hint:not(.scroll-hint--hidden),
  .partners-scroll-hint:not(.scroll-hint--hidden),
  .produtos-scroll-hint:not(.scroll-hint--hidden),
  .services-scroll-hint {
    display: block;
    margin-bottom: 0.45rem;
    padding-left: max(clamp(1rem, 5vw, 5%), env(safe-area-inset-left));
    padding-right: max(clamp(1rem, 5vw, 5%), env(safe-area-inset-right));
  }
  .robotica .roadmap-scroll:not(.scroll-strip--single),
  .eventos .roadmap-scroll:not(.scroll-strip--single),
  .roadmap .roadmap-scroll:not(.scroll-strip--single) {
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    padding: 0;
    padding-bottom: 0.65rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: max(clamp(1rem, 5vw, 5%), env(safe-area-inset-left));
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(217, 30, 24, 0.35) transparent;
  }
  .robotica .roadmap-scroll:not(.scroll-strip--single)::-webkit-scrollbar,
  .eventos .roadmap-scroll:not(.scroll-strip--single)::-webkit-scrollbar,
  .roadmap .roadmap-scroll:not(.scroll-strip--single)::-webkit-scrollbar {
    height: 5px;
  }
  .robotica .roadmap-scroll:not(.scroll-strip--single)::-webkit-scrollbar-thumb,
  .eventos .roadmap-scroll:not(.scroll-strip--single)::-webkit-scrollbar-thumb,
  .roadmap .roadmap-scroll:not(.scroll-strip--single)::-webkit-scrollbar-thumb {
    background: rgba(217, 30, 24, 0.42);
    border-radius: 3px;
  }
  .robotica .roadmap-scroll:not(.scroll-strip--single) > .roadmap-grid,
  .eventos .roadmap-scroll:not(.scroll-strip--single) > .roadmap-grid,
  .roadmap .roadmap-scroll:not(.scroll-strip--single) > .roadmap-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 1rem;
    width: max-content;
    min-width: 100%;
    max-width: none;
    margin: 0;
    padding-left: max(clamp(1rem, 5vw, 5%), env(safe-area-inset-left));
    padding-right: max(clamp(1rem, 5vw, 5%), env(safe-area-inset-right));
    padding-bottom: 2px;
  }
  .robotica .roadmap-scroll:not(.scroll-strip--single) > .roadmap-grid > .road-card,
  .eventos .roadmap-scroll:not(.scroll-strip--single) > .roadmap-grid > .road-card,
  .roadmap .roadmap-scroll:not(.scroll-strip--single) > .roadmap-grid > .road-card,
  .robotica .roadmap-scroll:not(.scroll-strip--single) > .roadmap-grid > .evento-card,
  .eventos .roadmap-scroll:not(.scroll-strip--single) > .roadmap-grid > .evento-card,
  .roadmap .roadmap-scroll:not(.scroll-strip--single) > .roadmap-grid > .evento-card {
    flex: 0 0 min(86vw, 300px);
    max-width: min(86vw, 300px);
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }
  /* Cards de evento no carrossel: “Ver mais” sempre visível (como produtos) */
  .robotica .roadmap-scroll:not(.scroll-strip--single) > .roadmap-grid > .evento-card .produto-card__overlay,
  .eventos .roadmap-scroll:not(.scroll-strip--single) > .roadmap-grid > .evento-card .produto-card__overlay,
  .roadmap .roadmap-scroll:not(.scroll-strip--single) > .roadmap-grid > .evento-card .produto-card__overlay {
    opacity: 1;
  }
  .robotica .roadmap-scroll:not(.scroll-strip--single) > .roadmap-grid > .evento-card .produto-card__overlay-label,
  .eventos .roadmap-scroll:not(.scroll-strip--single) > .roadmap-grid > .evento-card .produto-card__overlay-label,
  .roadmap .roadmap-scroll:not(.scroll-strip--single) > .roadmap-grid > .evento-card .produto-card__overlay-label {
    opacity: 1;
    transform: translateY(0);
    background: var(--red-vibrant);
    color: var(--white);
    border-color: var(--red-vibrant);
  }

  .roadmap-scroll.scroll-strip--single > .roadmap-grid {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: var(--content-max);
    min-width: 0;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
  }
  .roadmap-scroll.scroll-strip--single > .roadmap-grid > .road-card,
  .roadmap-scroll.scroll-strip--single > .roadmap-grid > .evento-card {
    flex: none;
    max-width: none;
    scroll-snap-align: unset;
    scroll-snap-stop: normal;
  }
  .robotica .roadmap-scroll.scroll-strip--single,
  .eventos .roadmap-scroll.scroll-strip--single,
  .roadmap .roadmap-scroll.scroll-strip--single {
    max-width: var(--content-max);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow-x: visible;
    overflow-y: visible;
    scroll-snap-type: none;
    padding: 0;
    padding-bottom: 0;
  }

  .robotica .partners-scroll:not(.scroll-strip--single) {
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    padding: 0;
    padding-bottom: 0.65rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: max(clamp(1rem, 5vw, 5%), env(safe-area-inset-left));
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(217, 30, 24, 0.35) transparent;
  }
  .robotica .partners-scroll:not(.scroll-strip--single)::-webkit-scrollbar {
    height: 5px;
  }
  .robotica .partners-scroll:not(.scroll-strip--single)::-webkit-scrollbar-thumb {
    background: rgba(217, 30, 24, 0.42);
    border-radius: 3px;
  }
  .robotica .partners-scroll:not(.scroll-strip--single) > .partners-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 1rem;
    width: max-content;
    min-width: 100%;
    max-width: none;
    margin: 0;
    padding-left: max(clamp(1rem, 5vw, 5%), env(safe-area-inset-left));
    padding-right: max(clamp(1rem, 5vw, 5%), env(safe-area-inset-right));
    padding-bottom: 2px;
  }
  .robotica .partners-scroll:not(.scroll-strip--single) > .partners-grid > .partner-card {
    flex: 0 0 min(86vw, 300px);
    max-width: min(86vw, 300px);
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }
  .partners-scroll.scroll-strip--single > .partners-grid {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: var(--content-max);
    min-width: 0;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
  }
  .partners-scroll.scroll-strip--single > .partners-grid > .partner-card {
    flex: none;
    max-width: none;
    scroll-snap-align: unset;
    scroll-snap-stop: normal;
  }
  .robotica .partners-scroll.scroll-strip--single {
    max-width: var(--content-max);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow-x: visible;
    overflow-y: visible;
    scroll-snap-type: none;
    padding: 0;
    padding-bottom: 0;
  }

  .institucional .philosophy-scroll:not(.scroll-strip--single) {
    max-width: none;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 3rem;
    padding: 0;
    padding-bottom: 0.65rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: max(clamp(1rem, 5vw, 5%), env(safe-area-inset-left));
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(217, 30, 24, 0.35) transparent;
  }
  .institucional .philosophy-scroll:not(.scroll-strip--single)::-webkit-scrollbar {
    height: 5px;
  }
  .institucional .philosophy-scroll:not(.scroll-strip--single)::-webkit-scrollbar-thumb {
    background: rgba(217, 30, 24, 0.42);
    border-radius: 3px;
  }
  .institucional .philosophy-scroll:not(.scroll-strip--single) > .philosophy-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 1rem;
    width: max-content;
    min-width: 100%;
    max-width: none;
    margin: 0;
    padding-left: max(clamp(1rem, 5vw, 5%), env(safe-area-inset-left));
    padding-right: max(clamp(1rem, 5vw, 5%), env(safe-area-inset-right));
    padding-bottom: 2px;
  }
  .institucional .philosophy-scroll:not(.scroll-strip--single) > .philosophy-grid > .philosophy-card {
    flex: 0 0 min(88vw, 340px);
    max-width: min(88vw, 340px);
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }
  .philosophy-scroll.scroll-strip--single > .philosophy-grid {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: var(--content-max);
    min-width: 0;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
  }
  .philosophy-scroll.scroll-strip--single > .philosophy-grid > .philosophy-card {
    flex: none;
    max-width: none;
    scroll-snap-align: unset;
    scroll-snap-stop: normal;
  }
  .institucional .philosophy-scroll.scroll-strip--single {
    max-width: var(--content-max);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
    overflow-x: visible;
    overflow-y: visible;
    scroll-snap-type: none;
    padding: 0;
    padding-bottom: 0;
  }

  .robotica .produtos-scroll:not(.scroll-strip--single),
  .produtos .produtos-scroll:not(.scroll-strip--single) {
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    padding: 0;
    padding-bottom: 0.65rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: max(clamp(1rem, 5vw, 5%), env(safe-area-inset-left));
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(217,30,24,0.3) transparent;
  }
  .robotica .produtos-scroll:not(.scroll-strip--single)::-webkit-scrollbar,
  .produtos .produtos-scroll:not(.scroll-strip--single)::-webkit-scrollbar {
    height: 5px;
  }
  .robotica .produtos-scroll:not(.scroll-strip--single)::-webkit-scrollbar-thumb,
  .produtos .produtos-scroll:not(.scroll-strip--single)::-webkit-scrollbar-thumb {
    background: rgba(217, 30, 24, 0.42);
    border-radius: 3px;
  }
  .robotica .produtos-scroll:not(.scroll-strip--single) > .produtos-grid,
  .produtos .produtos-scroll:not(.scroll-strip--single) > .produtos-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.875rem;
    width: max-content;
    min-width: 100%;
    max-width: none;
    margin: 0;
    padding-left: max(clamp(1rem, 5vw, 5%), env(safe-area-inset-left));
    padding-right: max(clamp(1rem, 5vw, 5%), env(safe-area-inset-right));
    padding-bottom: 2px;
  }
  .robotica .produtos-scroll:not(.scroll-strip--single) > .produtos-grid > .produto-card,
  .produtos .produtos-scroll:not(.scroll-strip--single) > .produtos-grid > .produto-card {
    flex: 0 0 min(78vw, 300px);
    max-width: min(78vw, 300px);
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }
  /* Sem hover no toque: mantém “Ver mais” visível nos cards do carrossel */
  .robotica .produtos-scroll:not(.scroll-strip--single) > .produtos-grid > .produto-card .produto-card__overlay,
  .produtos .produtos-scroll:not(.scroll-strip--single) > .produtos-grid > .produto-card .produto-card__overlay {
    opacity: 1;
  }
  .robotica .produtos-scroll:not(.scroll-strip--single) > .produtos-grid > .produto-card .produto-card__overlay-label,
  .produtos .produtos-scroll:not(.scroll-strip--single) > .produtos-grid > .produto-card .produto-card__overlay-label {
    opacity: 1;
    transform: translateY(0);
    background: var(--red-vibrant);
    color: var(--white);
    border-color: var(--red-vibrant);
  }

  .robotica .produtos-scroll.scroll-strip--single,
  .produtos .produtos-scroll.scroll-strip--single {
    max-width: var(--content-max);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow-x: visible;
    overflow-y: visible;
    scroll-snap-type: none;
    padding: 0;
    padding-bottom: 0;
  }
  .robotica .produtos-scroll.scroll-strip--single > .produtos-grid,
  .produtos .produtos-scroll.scroll-strip--single > .produtos-grid {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: min(100%, 340px);
    min-width: 0;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
    gap: clamp(1rem, 2vw, 1.25rem);
  }
  .robotica .produtos-scroll.scroll-strip--single > .produtos-grid > .produto-card,
  .produtos .produtos-scroll.scroll-strip--single > .produtos-grid > .produto-card {
    flex: none;
    max-width: none;
    scroll-snap-align: unset;
  }

  .o-que-fazemos .services-scroll {
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    padding: 0;
    padding-bottom: 0.65rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: max(clamp(1rem, 5vw, 5%), env(safe-area-inset-left));
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(217, 30, 24, 0.35) transparent;
  }
  .o-que-fazemos .services-scroll::-webkit-scrollbar {
    height: 5px;
  }
  .o-que-fazemos .services-scroll::-webkit-scrollbar-thumb {
    background: rgba(217, 30, 24, 0.42);
    border-radius: 3px;
  }
  .o-que-fazemos .services-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 1rem;
    width: max-content;
    min-width: 100%;
    padding-left: max(clamp(1rem, 5vw, 5%), env(safe-area-inset-left));
    padding-right: max(clamp(1rem, 5vw, 5%), env(safe-area-inset-right));
    padding-bottom: 2px;
  }
  .o-que-fazemos .service-card {
    flex: 0 0 min(86vw, 300px);
    max-width: min(86vw, 300px);
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    padding: 1.75rem 1.35rem;
  }
  .o-que-fazemos .service-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }

  .mission-vision { flex-direction: column; gap: 1.5rem; }
  .mv-box { padding: 2.5rem 1.5rem; border-left: none; border-top: 2px solid var(--red-vibrant);}

  .robotics-scroll {
    min-width: 0;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
    padding-left: max(clamp(1rem, 5vw, 5%), env(safe-area-inset-left));
    padding-right: max(clamp(1rem, 5vw, 5%), env(safe-area-inset-right));
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: max(clamp(1rem, 5vw, 5%), env(safe-area-inset-left));
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(217, 30, 24, 0.35) transparent;
    padding-bottom: 0.75rem;
  }
  .robotics-scroll::-webkit-scrollbar {
    height: 6px;
  }
  .robotics-scroll::-webkit-scrollbar-thumb {
    background: rgba(79, 195, 247, 0.45);
    border-radius: 3px;
  }
  .robotics-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    width: max-content;
    min-width: 100%;
    padding-bottom: 2px;
  }
  .robotics-scroll .robot-card {
    flex: 0 0 min(82vw, 300px);
    max-width: min(82vw, 300px);
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    padding: 1.75rem 1.5rem;
  }

  .footer-brand { min-width: 0; }
  .footer-form { min-width: 0; }

  /* Redes sociais / QR: uma linha no mobile (sem overflow-x: evita recortar tooltip do QR) */
  .footer-actions-wrap {
    min-width: 0;
  }
  .footer-actions {
    flex-wrap: nowrap;
    gap: 0.3rem;
    max-width: 100%;
  }
  .footer-actions > .footer-qr,
  .footer-actions > .footer-btn {
    flex: 1 1 0;
    min-width: 0;
  }
  .footer-qr__trigger,
  .footer-btn {
    width: 100%;
    max-width: 100%;
    padding: 0.45rem 0.5rem;
    min-height: 40px;
    font-size: 0.72rem;
    gap: 0.3rem;
  }
  .footer-qr__trigger span,
  .footer-btn span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .footer-qr__icon,
  .footer-btn__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .robotica .roadmap-scroll:not(.scroll-strip--single),
  .eventos .roadmap-scroll:not(.scroll-strip--single),
  .roadmap .roadmap-scroll:not(.scroll-strip--single),
  .robotica .partners-scroll:not(.scroll-strip--single),
  .institucional .philosophy-scroll:not(.scroll-strip--single) {
    scroll-snap-type: none;
  }
}

@media (min-width: 769px) {
  .nav-overlay { display: none !important; pointer-events: none !important; }

  /* Institucional: blocos alinhados e espaçamento só no desktop (mobile inalterado) */
  .institucional__body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: clamp(2.5rem, 5vw, 3.5rem);
    max-width: var(--content-max);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
  .institucional__philosophy,
  .institucional__mission {
    width: 100%;
    min-width: 0;
  }
  .institucional .institucional__philosophy .philosophy-scroll {
    margin-bottom: 0;
  }
  .institucional .mission-vision {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .section-header h2 { font-size: 1.55rem; }
  .section-header p { font-size: 1rem; }
  .hero-content h1 { font-size: 1.65rem; line-height: 1.2; }
  .hero-content p { font-size: 1rem; }
  .philosophy-card--synthesis { padding: 2rem 1.25rem; }
  .badge { font-size: 0.7rem; padding: 4px 10px; right: 12px; }
  .produtos-cta { flex-direction: column; width: 100%; }
  .produtos-cta a { width: 100%; text-align: center; }
}

@media (max-height: 520px) and (max-width: 900px) {
  .hero-carousel { min-height: auto; min-height: 100dvh; }
  .carousel-slide { padding-top: max(4.5rem, env(safe-area-inset-top)); padding-bottom: 2rem; }
  .hero-content p { margin-bottom: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .philosophy-card,
  .partner-card,
  .road-card {
    transition: none;
  }
}
@media (prefers-reduced-motion: reduce) and (hover: hover) and (pointer: fine) {
  .philosophy-card:hover,
  .partner-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }
  .road-card:hover {
    box-shadow: var(--shadow-sm);
  }
}
