/* =============================================
   GLOBAL.CSS — Reset + Base + Tipografia
   ============================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: var(--text-base);
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: var(--line-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* =============================================
   CONTAINER
   ============================================= */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

/* =============================================
   TIPOGRAFIA
   ============================================= */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 700; }
h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; }
h3 { font-size: clamp(20px, 2.5vw, 28px); font-weight: 600; }
h4 { font-size: clamp(18px, 2vw, 22px); font-weight: 600; }

p {
  line-height: var(--line-height);
  color: var(--color-text);
}

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

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

/* =============================================
   SECTION BASE
   ============================================= */

.section {
  padding: var(--section-padding) 0;
}

.section--surface {
  background-color: var(--color-surface);
}

.section--primary {
  background-color: var(--color-primary);
}

.section--primary h2,
.section--primary h3,
.section--primary p {
  color: var(--color-white);
}

@media (max-width: 768px) {
  .section {
    padding: var(--section-padding-sm) 0;
  }
}

/* =============================================
   SECTION HEADER
   ============================================= */

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header__label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 12px;
}

.section-header__title {
  margin-bottom: 16px;
}

.section-header__subtitle {
  max-width: 600px;
  margin: 0 auto;
  color: var(--color-text-muted);
  font-size: 17px;
}

/* =============================================
   ÍCONES (Lucide)
   ============================================= */

[data-lucide] {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.icon-xs  [data-lucide], [data-lucide].icon-xs  { width: 14px; height: 14px; }
.icon-sm  [data-lucide], [data-lucide].icon-sm  { width: 16px; height: 16px; }
.icon-md  [data-lucide], [data-lucide].icon-md  { width: 20px; height: 20px; }
.icon-lg  [data-lucide], [data-lucide].icon-lg  { width: 24px; height: 24px; }
.icon-xl  [data-lucide], [data-lucide].icon-xl  { width: 32px; height: 32px; }
.icon-2xl [data-lucide], [data-lucide].icon-2xl { width: 40px; height: 40px; }
.icon-3xl [data-lucide], [data-lucide].icon-3xl { width: 48px; height: 48px; }

/* Ícone dentro de .service-card__icon */
.service-card__icon [data-lucide],
.diferencial-card__icon [data-lucide],
.service-detail__icon [data-lucide] {
  width: 28px;
  height: 28px;
  color: var(--color-primary);
}

/* Ícone dentro de contact-info */
.contact-info__icon [data-lucide],
.footer-contact-item__icon [data-lucide] {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
}

/* =============================================
   FADE-IN ANIMATION (via JS IntersectionObserver)
   ============================================= */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   PAGE HERO (páginas internas)
   ============================================= */

.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #2a5290 100%);
  padding: 80px 0 64px;
  text-align: center;
}

.page-hero h1 {
  color: var(--color-white);
  margin-bottom: 12px;
}

.page-hero__subtitle {
  color: rgba(255,255,255,0.8);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 16px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-top: 16px;
}

.breadcrumb a {
  color: rgba(255,255,255,0.7);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--color-white);
}

.breadcrumb__sep {
  opacity: 0.5;
}

/* =============================================
   UTILITIES
   ============================================= */

.text-center { text-align: center; }
.text-left   { text-align: left; }

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

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

/* =============================================
   GRID HELPERS
   ============================================= */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
}
