/* Global Base Styles, Typography Scale, Container & Overflow Prevention */



/* 1. Elemento raiz: controla rolagem e dimensões base */
html {
  width: 100%;
  scroll-behavior: smooth;
  font-family: var(--font-family-base);
  /* Jamais declare overflow-x aqui, pois isso desativa o smooth scroll nativo */
}

/* 2. Conteúdo e estilos visuais herdados */
body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden; /* O corte de overflow fica restrito ao body */
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-family: var(--font-family-base);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*,
*::before,
*::after,
button,
input,
select,
textarea,
code,
pre,
table,
th,
td {
  font-family: inherit;
}

.material-icons {
  font-family: 'Material Symbols Outlined' !important;
  font-weight: 700;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 700, 'GRAD' 0, 'opsz' 24;
  user-select: none;
}

/* Contextual Material Icons Sizing */
.nav-icon .material-icons,
.section-badge .material-icons,
.breadcrumb-back-btn .material-icons,
.sort-dropdown-toggle .material-icons,
.resp-marker.material-icons,
.btn-contact-primary .material-icons {
  font-size: 16px;
}

.breadcrumb-sep .material-icons {
  font-size: 14px;
}

.carousel-btn .material-icons,
.btn-case-nav .material-icons,
.lab-modal-brand .material-icons,
.lab-modal-close .material-icons {
  font-size: 18px;
}

.menu-toggle .material-icons,
.experience-toggle-icon.material-icons,
.video-play-overlay .material-icons {
  font-size: 24px;
}

section[id],
#main-content > section {
  scroll-margin-top: 50px; /* Use a mesma altura do seu header */
}

/* Container Wrapper */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

/* Section Vertical Spacing */
.section {
  padding-block: var(--space-section);
}

/* Typography Scale */
h1,
.h1 {
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-black);
  line-height: var(--line-height-h1);
}

h2,
.h2 {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-h2);
}

.h2-thin {
  font-size: var(--font-size-h2-thin);
  font-weight: var(--font-weight-thin);
  line-height: var(--line-height-h2);
}

h3,
.h3 {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-h3);
}

h5,
.h5 {
  font-size: var(--font-size-h5);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-h5);
}

.nav-link {
  font-size: var(--font-size-nav);
  font-weight: var(--font-weight-bold);
  line-height: normal;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-btn);
  font-weight: var(--font-weight-bold);
  line-height: normal;
  border-radius: var(--radius-sm);
}

.body-regular {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
}

.body-medium {
  font-size: var(--font-size-body-md);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-body);
}

.text-brand {
  color: var(--color-text-brand);
}

.text-secondary {
  color: var(--color-text-secondary);
}

.text-inverse {
  color: var(--color-text-inverse);
}

/* Base Responsive Media Query Landmarks (Mobile-First) */
@media (min-width: 768px) {
  /* Tablet layout rules */
}

@media (min-width: 1024px) {
  /* Desktop layout rules */
}
