/* ==========================================================================
   Vieira Filho Tecnologia - Estilos Oficiais Estáticos
   Layout Fiel ao Design Original (HTML5 + CSS3 Puro)
   Sem cor laranja; Paleta oficial: Azul Petróleo / Teal (#1E4B57 / #14323A), Branco e Neutros
   ========================================================================== */

/* As fontes Google Fonts agora são carregadas via <link> no <head> para evitar bloqueio de renderização */

:root {
  --color-primary: #1E4B57;
  --color-primary-dark: #14323A;
  --color-primary-light: #2A6675;
  --color-accent: #1E4B57;
  --color-text: #262626;
  --color-text-muted: #5A6A70;
  --color-bg-light: #F8F9FA;
  --color-bg-alt: #EEF4F6;
  --color-white: #FFFFFF;
  --color-border: #E2E8F0;
  --color-border-light: #EBEBEB;
  
  --font-title: 'Istok Web', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  
  --container-width: 1140px;
  --header-height: 80px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 20px rgba(20, 50, 58, 0.07);
  --shadow-lg: 0 12px 32px rgba(20, 50, 58, 0.12);
  --transition: all 0.25s ease;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--color-primary-dark);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

p.lead {
  font-size: 1.12rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-sm {
  padding: 3rem 0;
}

.section-bg-light {
  background-color: var(--color-bg-light);
}

.section-bg-alt {
  background-color: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem auto;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  line-height: 1.2;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(20, 50, 58, 0.25);
}

.btn-outline {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-outline-white {
  border-color: var(--color-white);
  color: var(--color-white);
  background-color: transparent;
}

.btn-outline-white:hover {
  background-color: var(--color-white);
  color: var(--color-primary-dark);
}

/* ==========================================================================
   TOP BAR & HEADER
   ========================================================================== */
.top-bar {
  position: relative;
  z-index: 1050;
  background-color: var(--color-primary-dark);
  color: #D3E0E4;
  font-size: 0.85rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #D3E0E4;
}

.top-bar-item:hover {
  color: var(--color-white);
}

.top-bar-item svg {
  width: 14px;
  height: 14px;
  fill: #8CAAB5;
}

/* Seletor Dropdown de Idioma (Fiel à Referência) */
.lang-selector-dropdown {
  position: relative;
  display: inline-block;
  user-select: none;
}

.lang-selector-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  min-width: 24px;
  height: 24px;
  padding: 0 0.4rem;
  color: #D3E0E4;
  font-family: var(--font-body);
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
  box-sizing: border-box;
}

.lang-selector-btn:hover,
.lang-selector-dropdown.open .lang-selector-btn {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
}

.lang-current-flag {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  display: block;
}

.lang-arrow {
  width: 8px;
  height: 8px;
  fill: #A0B9C2;
  transition: transform 0.25s ease;
  margin-left: 1px;
}

.lang-selector-dropdown.open .lang-arrow {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background-color: #14323A;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  list-style: none;
  padding: 0.35rem 0;
  margin: 0;
  min-width: 140px;
  z-index: 1060;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.lang-selector-dropdown.open .lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 32px;
  padding: 0.45rem 0.9rem;
  color: #D3E0E4;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.lang-option:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

.lang-option.is-selected {
  background-color: rgba(255, 255, 255, 0.16);
  color: var(--color-white);
  font-weight: 600;
}

.lang-option img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  display: block;
}

.lang-opt-name {
  flex-grow: 1;
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-white);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.header-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-primary-dark);
  position: relative;
  padding: 0.4rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--color-primary-dark);
  font-weight: 700;
}

.header-cta {
  margin-left: 0.5rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-primary-dark);
}

.mobile-toggle svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.close-menu-btn,
.mobile-only {
  display: none !important;
}

/* ==========================================================================
   HERO BANNER COM VÍDEO
   ========================================================================== */
.hero-banner {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  background-color: #0A1B20;
  color: var(--color-white);
  overflow: hidden;
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(90deg, rgba(10, 27, 32, 0.94) 0%, rgba(15, 45, 53, 0.72) 55%, rgba(15, 45, 53, 0.35) 100%),
    radial-gradient(circle at 75% 50%, transparent 20%, rgba(10, 27, 32, 0.65) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  margin-left: 0;
  padding: 0 0 3.5rem 0;
  width: 100%;
}

/* Headline Animada (Texto Branco Puro, Slide-Down) */
.headline-container {
  display: block;
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: normal;
}

.headline-words-wrapper {
  display: block;
  position: relative;
  overflow: hidden;
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.25;
  height: 1.35em;
  min-height: 1.35em;
  padding-bottom: 0.15em;
  width: 100%;
  max-width: 100%;
}

.headline-word {
  display: block;
  white-space: nowrap;
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  color: var(--color-white);
  line-height: inherit;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  will-change: transform, opacity;
}

.headline-word.is-active {
  transform: translateY(0);
  opacity: 1;
}

.headline-word.slide-out {
  transform: translateY(110%);
  opacity: 0;
}

.headline-fixed-text {
  display: block;
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  color: rgba(255, 255, 255, 0.90);
  font-weight: 400;
  margin-top: 0.2rem;
  line-height: 1.2;
}

/* Inner Page Hero (Alinhado à base inferior, exatamente como na Home) */
.page-hero {
  position: relative;
  min-height: 350px;
  display: flex;
  align-items: flex-end;
  background-color: #0A1B20;
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  padding: 0;
  overflow: hidden;
}

.page-hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.page-hero .hero-overlay {
  background: 
    linear-gradient(135deg, rgba(10, 27, 32, 0.94) 0%, rgba(15, 45, 53, 0.78) 100%),
    radial-gradient(circle at 50% 50%, transparent 35%, rgba(10, 27, 32, 0.45) 100%);
}

.page-hero .hero-content {
  position: relative;
  z-index: 2;
  padding: 0 0 3.5rem 0;
  max-width: none;
  width: 100%;
}

.page-hero h1 {
  color: var(--color-white);
  margin-bottom: 0;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.2;
}

.page-hero p {
  color: #D3E4EA;
  font-size: 1.15rem;
  margin-top: 0.35rem;
  margin-bottom: 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #A4C2CC;
  margin-bottom: 0.8rem;
}
.breadcrumb a {
  color: #E2ECF0;
}
.breadcrumb a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

/* ==========================================================================
   SEÇÃO INTRODUÇÃO & MÉTRICAS (Fiel ao Print)
   ========================================================================== */
.home-intro-section {
  padding: 5rem 0 4rem 0;
  background-color: var(--color-white);
}

.intro-title-wrapper {
  text-align: center;
  margin-bottom: 3.5rem;
}

.intro-title-wrapper h2 {
  font-size: clamp(1.6rem, 2vw, 2.1rem);
  color: #14323A;
  font-weight: 400;
  line-height: 1.4;
}

.intro-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.intro-two-cols p {
  font-size: 0.95rem;
  color: #333333;
  line-height: 1.7;
  text-align: justify;
}

/* Contadores lado a lado com divisória vertical (Fiel ao Print) */
.metrics-divider-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 650px;
  margin: 0 auto;
  position: relative;
  padding: 1.5rem 0;
  align-items: start;
}

.metrics-divider-wrapper::after {
  content: '';
  position: absolute;
  top: 10%;
  bottom: 10%;
  left: 50%;
  width: 1px;
  background-color: #DDE4E7;
}

.metric-col {
  text-align: center;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.metric-sublabel {
  font-size: 1rem;
  font-weight: 500;
  color: #555555;
  min-height: 1.5rem;
  line-height: 1.5;
  margin-bottom: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric-number {
  font-family: var(--font-title);
  font-size: clamp(3.2rem, 5vw, 4.4rem);
  font-weight: 700;
  color: #14323A;
  line-height: 1;
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1em;
}

.metric-label {
  font-size: 1rem;
  font-weight: 500;
  color: #555555;
  min-height: 1.5rem;
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   GRID DE 8 COMPETÊNCIAS / SERVIÇOS (Fiel ao Print)
   ========================================================================== */
.competencias-section {
  padding: 4rem 0 5rem 0;
  background-color: var(--color-white);
}

.competencias-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.competencia-card {
  background: var(--color-white);
  border: 1px solid #E5E9EB;
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.competencia-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #CBD5DA;
  transform: translateY(-3px);
}

.competencia-img-wrapper {
  width: 100%;
  height: 140px;
  overflow: hidden;
  background-color: #F8F9FA;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.competencia-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.competencia-card:hover .competencia-img-wrapper img {
  transform: scale(1.04);
}

.competencia-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #14323A;
  margin-bottom: 0.6rem;
  line-height: 1.25;
}

.competencia-card p {
  font-size: 0.85rem;
  color: #555555;
  line-height: 1.55;
  margin-bottom: 0;
}

/* ==========================================================================
   DUO CARDS DE INFRAESTRUTURA (Softwares & Prototipação)
   ========================================================================== */
.infra-duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.infra-card {
  background: var(--color-white);
  border: 1px solid #E5E9EB;
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.infra-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-sm);
}

.infra-card h3 {
  font-size: 1.6rem;
  color: #14323A;
  margin-bottom: 0.75rem;
}

.infra-card p {
  font-size: 0.85rem;
  color: #555555;
  margin-bottom: 1.25rem;
}

.infra-logos-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid #EEF2F4;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.infra-logos-row img {
  max-height: 24px;
  max-width: 18%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: var(--transition);
  flex-shrink: 1;
}

.infra-logos-row img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.infra-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.infra-list li {
  font-size: 0.9rem;
  color: #444444;
  position: relative;
  padding-left: 1.2rem;
  line-height: 1.5;
}

.infra-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

/* ==========================================================================
   SEÇÃO CERTIFICAÇÃO (Visual Corporativo Limpo e Destacado)
   ========================================================================== */
.certificacao-section {
  padding: 4.5rem 0;
  background: linear-gradient(180deg, #F0F4F6 0%, #E8EEF1 100%);
  border-top: 1px solid #DCE6EA;
  border-bottom: 1px solid #DCE6EA;
}

.certificacao-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;
  max-width: 860px;
  margin: 0 auto;
  background-color: var(--color-white);
  padding: 2.75rem 3.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 35px rgba(20, 50, 58, 0.08);
  border: 1px solid #DCE5E9;
  border-left: 6px solid var(--color-primary);
  position: relative;
}

.certificacao-img-wrapper {
  background-color: #F4F8FA;
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid #E2EAEF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.certificacao-img {
  width: 120px;
  height: auto;
  object-fit: contain;
}

.certificacao-text h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #14323A;
  margin-bottom: 0.85rem;
  line-height: 1.25;
}

.certificacao-text h2 .cert-subheading {
  display: block;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--color-primary);
  margin-top: 0.25rem;
}

.certificacao-text p {
  font-size: 1.05rem;
  color: #444444;
  line-height: 1.65;
  margin-bottom: 0;
}

.cert-meta-item svg {
  width: 14px;
  height: 14px;
  fill: var(--color-primary);
}

/* ==========================================================================
   PRODUTOS DESTAQUE (Substituto a "Conteúdos")
   ========================================================================== */
.home-produtos-section {
  background-color: #F8F9FA;
  padding: 5rem 0;
}

.home-produtos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.home-produto-card {
  background: var(--color-white);
  border: 1px solid #E5E9EB;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.home-produto-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #CBD5DA;
}

.home-produto-media {
  background-color: #F3F6F8;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.home-produto-media img {
  max-height: 150px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.home-produto-card:hover .home-produto-media img {
  transform: scale(1.05);
}

.home-produto-body {
  padding: 1.4rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.home-produto-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
  letter-spacing: 0.5px;
  margin-bottom: 0.3rem;
}

.home-produto-body h3 {
  font-size: 1.15rem;
  color: #14323A;
  margin-bottom: 0.5rem;
}

.home-produto-body p {
  font-size: 0.88rem;
  color: #555555;
  margin-bottom: 0;
  line-height: 1.5;
}

/* ==========================================================================
   PORTFÓLIO - LORAWAN & VÍDEOS
   ========================================================================== */
.lorawan-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.lorawan-header h2 {
  font-size: 2.6rem;
  color: #14323A;
}

.lorawan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 5rem;
}

.lorawan-card {
  background: var(--color-white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #E5E9EB;
  display: flex;
  flex-direction: column;
}

.lorawan-card-header {
  background: #14323A;
  color: var(--color-white);
  padding: 1.8rem;
  text-align: center;
}

.lorawan-card-header h3 {
  color: var(--color-white);
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
}

.lorawan-card-header span {
  font-size: 0.95rem;
  color: #A4C2CC;
}

.lorawan-gallery {
  padding: 2rem;
  background-color: var(--color-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  border-bottom: 1px solid #E5E9EB;
}

.lorawan-gallery img {
  max-height: 190px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.lorawan-gallery img:hover {
  transform: scale(1.04);
}

.lorawan-specs {
  padding: 2rem;
  flex-grow: 1;
}

.lorawan-specs ul {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.lorawan-specs li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: #333333;
}

.lorawan-specs li svg {
  width: 16px;
  height: 16px;
  fill: var(--color-primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.projects-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.project-video-card {
  background: var(--color-white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #E5E9EB;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #CBD5DA;
}

.project-video-wrapper {
  position: relative;
  background-color: #0B191D;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: default;
}

@media (hover: none) {
  .project-video-wrapper {
    cursor: pointer;
  }
}

.project-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-video-wrapper .play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background-color: rgba(20, 50, 58, 0.75);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  pointer-events: none;
  transition: var(--transition);
}

.project-video-wrapper:hover .play-badge {
  background-color: var(--color-primary);
  transform: translate(-50%, -50%) scale(1.08);
  opacity: 0.5;
}

.project-video-card h3 {
  padding: 1.25rem;
  font-size: 1.05rem;
  margin-bottom: 0;
  text-align: center;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.4;
  color: #14323A;
}

/* ==========================================================================
   SUPORTE
   ========================================================================== */
.suporte-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.suporte-box {
  background: var(--color-white);
  border-radius: var(--radius-sm);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid #E5E9EB;
  display: flex;
  flex-direction: column;
}

.suporte-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #EEF4F6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--color-primary);
}

.suporte-icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.suporte-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.suporte-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.suporte-contact-item svg {
  width: 20px;
  height: 20px;
  fill: var(--color-primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.suporte-contact-item h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 0.25rem;
}

.suporte-contact-item p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

.suporte-contact-item a {
  color: var(--color-primary);
  font-weight: 500;
  transition: var(--transition);
}

.suporte-contact-item a:hover {
  color: var(--color-primary-light);
  text-decoration: underline;
}

/* ==========================================================================
   MAPA INTERATIVO (Página Suporte)
   ========================================================================== */
.suporte-map-wrapper {
  margin-top: 3rem;
  background-color: var(--color-white);
  border-radius: var(--radius-sm);
  border: 1px solid #DCE5E9;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.map-responsive-container {
  position: relative;
  width: 100%;
  height: 420px;
  background-color: #ECEFEF;
}

.map-responsive-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 768px) {
  .map-responsive-container {
    height: 320px;
  }
}

/* Âncoras e Scroll Offset */
#recursos,
#competencias,
#sobre,
#lorawan {
  scroll-margin-top: 90px;
}

/* ==========================================================================
   POLÍTICA DE PRIVACIDADE
   ========================================================================== */
.privacy-wrapper {
  max-width: 880px;
  margin: 0 auto;
  background: var(--color-white);
  padding: 3rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  border: 1px solid #E5E9EB;
}

.privacy-wrapper h2 {
  font-size: 1.5rem;
  margin-top: 2.2rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #E5E9EB;
  color: #14323A;
}

.privacy-wrapper h3 {
  font-size: 1.2rem;
  margin-top: 1.6rem;
  margin-bottom: 0.6rem;
  color: #14323A;
}

.privacy-wrapper h4 {
  font-size: 1.05rem;
  margin-top: 1.25rem;
  margin-bottom: 0.45rem;
  color: #14323A;
}

.privacy-wrapper p, .privacy-wrapper li {
  color: #333333;
  line-height: 1.7;
}

.privacy-wrapper ul, .privacy-wrapper ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}

.privacy-wrapper ul { list-style: disc; }
.privacy-wrapper ol { list-style: decimal; }

.privacy-wrapper li {
  margin-bottom: 0.4rem;
}

/* ==========================================================================
   FOOTER (Fiel ao Print: #14323A com tipografia sóbria)
   ========================================================================== */
.main-footer {
  background-color: #14323A;
  color: #C8D9DF;
  padding-top: 4.5rem;
  font-size: 0.92rem;
  border-top: 1px solid #10262C;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand img {
  max-height: 105px;
  width: auto;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: #A9C2CB;
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-links a {
  color: #C8D9DF;
}

.footer-links a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #C8D9DF;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  fill: #8CAAB5;
  flex-shrink: 0;
}

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #8CAAB5;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.social-link {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-2px);
}

.social-link svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* ==========================================================================
   RESPONSIVIDADE (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 991px) {
  :root {
    --header-height: 70px;
  }
  
  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: #14323A;
    flex-direction: column;
    align-items: flex-start;
    padding: 4.5rem 2rem 2rem 2rem;
    gap: 1.25rem;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease;
    z-index: 1001;
  }
  
  .nav-menu.open {
    right: 0;
  }
  
  .nav-link {
    color: var(--color-white);
    font-size: 1.1rem;
    width: 100%;
  }
  
  .nav-link.active {
    color: #A4C2CC;
  }
  
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1060;
  }
  
  .nav-overlay.open {
    display: block;
  }
  
  .close-menu-btn {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.8rem;
    cursor: pointer;
  }
  
  .competencias-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .intro-two-cols,
  .infra-duo-grid,
  .certificacao-box,
  .lorawan-grid,
  .suporte-grid,
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .certificacao-box {
    flex-direction: column;
    text-align: center;
    padding: 2.25rem 1.5rem;
    gap: 1.75rem;
  }
  .cert-meta-badges {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .top-bar-left {
    display: none;
  }

  .top-bar .container {
    justify-content: flex-end;
  }
  
  .section {
    padding: 3.5rem 0;
  }
  
  .competencias-grid {
    grid-template-columns: 1fr;
  }
  
  .metrics-divider-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .metrics-divider-wrapper::after {
    display: none;
  }
  
  .privacy-wrapper {
    padding: 2rem 1.25rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   PÁGINA 404
   ========================================================================== */
.error-section {
  flex-grow: 1;
  display: flex;
  align-items: center;
  padding: 4.5rem 0;
  background-color: var(--color-bg-light);
}

.error-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;
  max-width: 900px;
}

.error-image-wrapper {
  flex: 0 0 320px;
  max-width: 320px;
}

.error-image {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 35px rgba(20, 50, 58, 0.12);
  border: 1px solid #DCE5E9;
  display: block;
}

.error-content-wrapper {
  flex: 1;
  text-align: left;
}

.error-code {
  font-size: clamp(4rem, 8vw, 6.5rem);
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 1.25rem;
  letter-spacing: -1px;
}

.error-content-wrapper .lead {
  font-size: 1.15rem;
  color: var(--color-text);
  margin-bottom: 2rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .error-section {
    padding: 3rem 0;
  }
  .error-container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  .error-image-wrapper {
    flex: none;
    max-width: 260px;
    margin: 0 auto;
  }
  .error-content-wrapper {
    text-align: center;
  }
}

/* ==========================================================================
   THEME TOGGLE BUTTON & DARK MODE (TEMA ESCURO INDUSTRIAL / CORPORATIVO)
   ========================================================================== */

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* 1. Botão de Troca de Tema (Desktop: 24x24px compacto; Mobile: 44x44px ergonômico) */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: #D3E0E4;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
  box-sizing: border-box;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.1);
  /*transform: translateY(-1px);*/
}

.theme-toggle-btn svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle-btn:hover svg {
  /*transform: rotate(15deg);*/
}

/* Ergonomia de Toque Mobile (44x44px apenas em telas <= 991px) */
@media (max-width: 991px) {
  .theme-toggle-btn {
    width: 44px;
    height: 44px;
  }

  .theme-toggle-btn svg {
    width: 18px;
    height: 18px;
  }

  .lang-selector-btn {
    min-width: 44px;
    height: 44px;
    padding: 0 0.7rem;
    gap: 0.45rem;
  }

  .lang-current-flag {
    width: 24px;
    height: 16px;
  }

  .lang-arrow {
    width: 10px;
    height: 10px;
  }

  .lang-option {
    min-height: 44px;
    padding: 0.6rem 0.95rem;
  }
}

/* Visibilidade dos ícones de tema */
.theme-icon-sun {
  display: none;
}
.theme-icon-moon {
  display: block;
}

html[data-theme="dark"] .theme-icon-sun {
  display: block;
}
html[data-theme="dark"] .theme-icon-moon {
  display: none;
}

/* 2. Texto animado do header da Home (Sempre branco puro em ambos os temas) */
.headline-word,
html[data-theme="dark"] .headline-word {
  color: #FFFFFF !important;
}

.headline-fixed-text,
html[data-theme="dark"] .headline-fixed-text {
  color: rgba(255, 255, 255, 0.95) !important;
}

.hero-banner,
html[data-theme="dark"] .hero-banner {
  color: #FFFFFF !important;
}

.page-hero h1,
html[data-theme="dark"] .page-hero h1 {
  color: #FFFFFF !important;
}

/* 4. Ícone do LinkedIn no rodapé (Permanece branco puro em ambos os temas) */
.social-link,
html[data-theme="dark"] .social-link {
  color: #FFFFFF !important;
  background-color: rgba(255, 255, 255, 0.12);
}

.social-link svg,
html[data-theme="dark"] .social-link svg {
  fill: #FFFFFF !important;
}

.social-link:hover,
html[data-theme="dark"] .social-link:hover {
  background-color: #0A66C2 !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
}

.social-link:hover svg,
html[data-theme="dark"] .social-link:hover svg {
  fill: #FFFFFF !important;
}

/* ==========================================================================
   REGRAS DE ESTILO - TEMA ESCURO (DATA-THEME="DARK")
   ========================================================================== */

html[data-theme="dark"] {
  --color-primary: #2A6675;
  --color-primary-dark: #071519;
  --color-primary-light: #38BDF8;
  --color-accent: #38BDF8;
  --color-text: #E6EDF0;
  --color-text-muted: #94A3B8;
  --color-bg-light: #071519;
  --color-bg-alt: #0A1C22;
  /* ATENÇÃO: NÃO redefinir --color-white aqui para preservar textos e ícones brancos */
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-light: rgba(255, 255, 255, 0.05);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.6);
}

html[data-theme="dark"] body {
  background-color: #071418;
  color: #E2E8F0;
}

/* Header & Navegação */
html[data-theme="dark"] .main-header {
  background-color: #0A1B20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .header-logo img {
  filter: brightness(0) invert(1);
}

html[data-theme="dark"] .nav-link {
  color: #CBD5E1;
}

html[data-theme="dark"] .nav-link:hover,
html[data-theme="dark"] .nav-link.active {
  color: #38BDF8;
}

html[data-theme="dark"] .mobile-toggle {
  color: #F8FAFC;
}

html[data-theme="dark"] .mobile-toggle:hover {
  color: #38BDF8;
}

/* Dropdown de Idiomas */
html[data-theme="dark"] .lang-dropdown-menu {
  background-color: #0B1D22;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .lang-option {
  color: #CBD5E1;
}

html[data-theme="dark"] .lang-option:hover,
html[data-theme="dark"] .lang-option.active {
  background-color: #123038;
  color: #38BDF8;
}

/* Tipografia Geral (Títulos e Parágrafos de Seções) */
html[data-theme="dark"] .section-header h2,
html[data-theme="dark"] .section-header h3,
html[data-theme="dark"] .home-intro-section h2,
html[data-theme="dark"] .competencias-section h2,
html[data-theme="dark"] .infra-card h3,
html[data-theme="dark"] .certificacao-text h2,
html[data-theme="dark"] .home-produto-body h3,
html[data-theme="dark"] .suporte-box h2,
html[data-theme="dark"] .suporte-contact-item h4,
html[data-theme="dark"] .privacy-wrapper h2,
html[data-theme="dark"] .privacy-wrapper h3,
html[data-theme="dark"] .privacy-wrapper h4,
html[data-theme="dark"] .error-content-wrapper h1 {
  color: #F8FAFC;
}

html[data-theme="dark"] p {
  color: #94A3B8;
}

html[data-theme="dark"] p.lead {
  color: #CBD5E1;
}

html[data-theme="dark"] .section-header p {
  color: #94A3B8;
}

/* Seções de Fundo */
html[data-theme="dark"] .section-bg-light {
  background-color: #071519;
}

html[data-theme="dark"] .section-bg-alt {
  background-color: #0A1C22;
}

/* Introdução & Métricas */
html[data-theme="dark"] .home-intro-section {
  background-color: #071418;
}

html[data-theme="dark"] .intro-lead {
  color: #F1F5F9;
}

html[data-theme="dark"] .intro-detail {
  color: #94A3B8;
}

html[data-theme="dark"] .metric-col {
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .metric-number {
  color: #38BDF8;
}

html[data-theme="dark"] .metric-sublabel,
html[data-theme="dark"] .metric-label {
  color: #94A3B8;
}

html[data-theme="dark"] .metric-divider {
  background-color: rgba(255, 255, 255, 0.08);
}

/* Seção & Cards de Competências */
html[data-theme="dark"] .competencias-section {
  background-color: #071418;
}

html[data-theme="dark"] .competencia-card {
  background-color: #0C1E24;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .competencia-card:hover {
  border-color: #38BDF8;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.15);
  transform: translateY(-3px);
}

html[data-theme="dark"] .competencia-img-wrapper {
  background-color: #071519;
}

html[data-theme="dark"] .card-icon-wrapper {
  background-color: #123038;
}

html[data-theme="dark"] .card-icon-wrapper svg {
  fill: #38BDF8;
}

html[data-theme="dark"] .competencia-card h3 {
  color: #F8FAFC;
}

html[data-theme="dark"] .competencia-card p {
  color: #94A3B8;
}

/* Cards de Infraestrutura */
html[data-theme="dark"] .infra-card {
  background-color: #0C1E24;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .infra-card h3 {
  color: #F8FAFC;
}

html[data-theme="dark"] .infra-card p {
  color: #94A3B8;
}

html[data-theme="dark"] .infra-list li {
  color: #CBD5E1;
}

html[data-theme="dark"] .infra-list li::before {
  color: #38BDF8;
}

html[data-theme="dark"] .infra-logos-row {
  border-top-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
}

/* 3. Logotipos das marcas de software invertidos para branco puro no tema escuro */
html[data-theme="dark"] .infra-logos-row img {
  filter: brightness(0) invert(1) !important;
  opacity: 0.9;
  transition: var(--transition);
}

html[data-theme="dark"] .infra-logos-row img:hover {
  filter: brightness(0) invert(1) !important;
  opacity: 1;
}

/* Seção Certificação Inmetro */
html[data-theme="dark"] .certificacao-section {
  background: linear-gradient(180deg, #071519 0%, #0A1E24 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .certificacao-box {
  background-color: #0C1E24;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 6px solid #38BDF8;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .certificacao-img-wrapper {
  background-color: #FFFFFF;
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

html[data-theme="dark"] .certificacao-text h2 {
  color: #F8FAFC;
}

html[data-theme="dark"] .certificacao-text h2 .cert-subheading {
  color: #38BDF8;
}

html[data-theme="dark"] .certificacao-text p {
  color: #94A3B8;
}

/* Produtos Destaque (Home) */
html[data-theme="dark"] .home-produtos-section {
  background-color: #071519;
}

html[data-theme="dark"] .home-produto-card {
  background-color: #0C1E24;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .home-produto-card:hover {
  border-color: #38BDF8;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.15);
}

html[data-theme="dark"] .home-produto-media {
  background-color: #071519;
}

html[data-theme="dark"] .home-produto-tag {
  color: #38BDF8;
}

html[data-theme="dark"] .home-produto-body h3 {
  color: #F8FAFC;
}

html[data-theme="dark"] .home-produto-body p {
  color: #94A3B8;
}

/* Portfólio (LoRaWAN & Vídeos) */
html[data-theme="dark"] .lorawan-header h2 {
  color: #F8FAFC;
}

html[data-theme="dark"] .lorawan-card {
  background-color: #0C1E24;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .lorawan-card-header {
  background: #08161B;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .lorawan-card-header h3 {
  color: #F8FAFC;
}

html[data-theme="dark"] .lorawan-card-header span {
  color: #94A3B8;
}

html[data-theme="dark"] .lorawan-gallery {
  background-color: #071519;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .lorawan-specs li {
  color: #CBD5E1;
}

html[data-theme="dark"] .lorawan-specs li svg {
  fill: #38BDF8;
}

html[data-theme="dark"] .project-video-card {
  background-color: #0C1E24;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .project-video-card:hover {
  border-color: #38BDF8;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.15);
}

html[data-theme="dark"] .project-video-card h3 {
  color: #F8FAFC;
}

/* Suporte & Contato */
html[data-theme="dark"] .suporte-box {
  background-color: #0C1E24;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .suporte-box h2 {
  color: #F8FAFC;
}

html[data-theme="dark"] .suporte-box p {
  color: #94A3B8;
}

html[data-theme="dark"] .suporte-icon {
  background-color: #123038;
  color: #38BDF8;
}

html[data-theme="dark"] .suporte-contact-item {
  color: #E2E8F0;
}

html[data-theme="dark"] .suporte-contact-item h4 {
  color: #F8FAFC !important;
}

html[data-theme="dark"] .suporte-contact-item strong {
  color: #F8FAFC;
}

html[data-theme="dark"] .suporte-contact-item svg {
  fill: #38BDF8;
}

html[data-theme="dark"] .suporte-contact-item a {
  color: #38BDF8 !important;
}

html[data-theme="dark"] .suporte-contact-item a:hover {
  color: #7DD3FC !important;
}

html[data-theme="dark"] .suporte-map-wrapper {
  background-color: #0C1E24;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Política de Privacidade */
html[data-theme="dark"] .privacy-wrapper {
  background-color: #0C1E24;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .privacy-wrapper h2 {
  color: #F8FAFC;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .privacy-wrapper h3,
html[data-theme="dark"] .privacy-wrapper h4 {
  color: #F8FAFC;
}

html[data-theme="dark"] .privacy-wrapper p,
html[data-theme="dark"] .privacy-wrapper li {
  color: #94A3B8;
}

html[data-theme="dark"] .privacy-wrapper strong {
  color: #F8FAFC;
}

/* Página 404 */
html[data-theme="dark"] .error-section {
  background-color: #071418;
}

html[data-theme="dark"] .error-code {
  color: #38BDF8;
}

html[data-theme="dark"] .error-content-wrapper .lead {
  color: #94A3B8;
}

html[data-theme="dark"] .error-image {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
}

/* Rodapé (Footer) */
html[data-theme="dark"] .main-footer {
  background-color: #051013;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .footer-title {
  color: #94A3B8;
}

html[data-theme="dark"] .footer-links a,
html[data-theme="dark"] .footer-contact-item {
  color: #CBD5E1;
}

html[data-theme="dark"] .footer-links a:hover {
  color: #38BDF8;
}

html[data-theme="dark"] .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.06);
  color: #94A3B8;
}

/* Botões */
html[data-theme="dark"] .btn-primary {
  background-color: #245A68;
  border-color: #245A68;
  color: #FFFFFF;
}

html[data-theme="dark"] .btn-primary:hover {
  background-color: #2C6E7F;
  border-color: #2C6E7F;
}

html[data-theme="dark"] .btn-outline {
  border-color: #38BDF8;
  color: #38BDF8;
}

html[data-theme="dark"] .btn-outline:hover {
  background-color: #38BDF8;
  color: #071519;
}


/* ==========================================================================
   ACESSIBILIDADE (WCAG 2.1 AA), FOCO VISÍVEL E REMOÇÃO DE ESTILOS INLINE
   ========================================================================== */

.sr-only {
  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 {
  position: fixed;
  top: -120px;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background-color: #14323A;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid #38BDF8;
  outline-offset: 2px;
}

main:focus {
  outline: none;
}

/* Indicadores de foco visíveis via teclado (:focus-visible) */
:focus-visible {
  outline: 2px solid #1E4B57;
  outline-offset: 2px;
}

.top-bar :focus-visible,
.main-footer :focus-visible,
.hero-banner :focus-visible,
.page-hero :focus-visible,
.lang-dropdown-menu :focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 2px;
}

html[data-theme="dark"] :focus-visible {
  outline: 2px solid #38BDF8;
  outline-offset: 2px;
}

.lang-option:focus-visible {
  background-color: rgba(255, 255, 255, 0.16);
  color: var(--color-white);
  outline: 2px solid #38BDF8;
  outline-offset: -2px;
}

.project-video-wrapper {
  cursor: pointer;
}

.project-video-wrapper:focus-visible {
  outline: 3px solid #1E4B57;
  outline-offset: 2px;
}

html[data-theme="dark"] .project-video-wrapper:focus-visible {
  outline: 3px solid #38BDF8;
}

/* Estados e dimensões substituindo estilos inline (compatível com CSP restritiva) */
.projects-video-grid--home {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 1050px;
  margin: 0 auto 3rem auto;
}

.play-badge-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  margin-left: 3px;
}

.project-video-wrapper.is-playing .play-badge {
  opacity: 0;
}

.btn-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.home-cta-wrap {
  text-align: center;
}

.btn-portfolio-lg {
  padding: 0.9rem 2.4rem;
  font-size: 1rem;
}

.lorawan-subtitle {
  font-size: 1.35rem;
  color: var(--color-primary-light);
}

.page-hero--suporte {
  background-image: url('../img/Osciloscopio_01.webp');
}

.suporte-desc {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.suporte-cta-wrap {
  margin-top: auto;
}

.btn-full {
  width: 100%;
}

.map-iframe {
  border: 0;
}

.page-404-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Política de Privacidade & Correção de Contraste no Tema Escuro */
.privacy-updated {
  font-size: 1.05rem;
  color: #4B6B75;
  margin-bottom: 2rem;
}

html[data-theme="dark"] .privacy-updated {
  color: #94A3B8;
}

.privacy-dpo-box {
  background-color: var(--color-white);
  border-top: 1px solid #E5E9EB;
  border-right: 1px solid #E5E9EB;
  border-bottom: 1px solid #E5E9EB;
  border-left: 4px solid var(--color-primary);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.privacy-dpo-title {
  margin-bottom: 0.5rem;
}

.privacy-dpo-line {
  margin-bottom: 0.35rem;
}

.privacy-dpo-line--last {
  margin-bottom: 0;
}

.privacy-dpo-email {
  color: var(--color-primary);
  font-weight: 600;
}

.privacy-dpo-note {
  color: #555555;
}

html[data-theme="dark"] .privacy-dpo-box {
  background-color: #0F272E;
  border-top-color: rgba(255, 255, 255, 0.1);
  border-right-color: rgba(255, 255, 255, 0.1);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  border-left-color: #38BDF8;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .privacy-dpo-email {
  color: #38BDF8;
}

html[data-theme="dark"] .privacy-dpo-note {
  color: #94A3B8;
}

/* Respeito a Preferência de Movimento Reduzido */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .competencia-card:hover,
  .project-video-card:hover,
  .social-link:hover {
    transform: none !important;
  }
}
