/* =============================================
   POWER MEI — global.css
   Design tokens, reset, base e utilitários globais
   Agência PHN · v1.0.0
============================================= */

/* =============================================
   DESIGN TOKENS
============================================= */
:root {
  --dark:        #0d152e;
  --dark-mid:    #162040;
  --dark-card:   #1a2847;
  --teal:        #63dce2;
  --teal-light:  #a8eef1;
  --teal-dark:   #3dbcc2;
  --blue:        #54abe1;
  --blue-light:  #93ccee;
  --gray-light:  #f0f2f4;
  --gray-mid:    #42667c;
  --gray-mid2:   #6b8899;
  --white:       #ffffff;
  --text-body:   #2a3d4f;
  --text-muted:  #5a7a8e;
  --border:      rgba(84,171,225,0.15);
  --border-teal: rgba(99,220,226,0.25);
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --radius-xl:   32px;
  --ff-display:  'Sora', sans-serif;
  --ff-body:     'DM Sans', sans-serif;
  --shadow-sm:   0 2px 12px rgba(13,21,46,0.08);
  --shadow-md:   0 8px 32px rgba(13,21,46,0.12);
  --shadow-lg:   0 20px 60px rgba(13,21,46,0.18);
  --transition:  0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   RESET + BASE
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-body);
  background: var(--gray-light);
  color: var(--text-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: var(--ff-body); cursor: pointer; border: none; background: none; }

/* =============================================
   ACESSIBILIDADE — skip link
============================================= */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--teal);
  color: var(--dark);
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-family: var(--ff-display);
  font-weight: 700;
  z-index: 1000;
  transition: top var(--transition);
}
.skip-link:focus { top: 0; }

/* Focus states */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* =============================================
   CONTAINER & SECTION BASE
============================================= */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 80px 0; }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-family: var(--ff-display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-top: 12px;
}
.section-header p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 14px auto 0;
  line-height: 1.65;
}

/* =============================================
   SECTION LABEL (tag acima do H2)
============================================= */
.section-label {
  font-family: var(--ff-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

/* =============================================
   BREADCRUMB
============================================= */
.breadcrumb {
  padding: 16px 0;
  background: var(--gray-light);
  border-bottom: 1px solid var(--border);
}
.breadcrumb ol {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb li + li::before {
  content: '›';
  color: var(--gray-mid2);
  margin: 0 2px;
}
.breadcrumb a {
  color: var(--teal-dark);
  transition: color var(--transition);
}
.breadcrumb a:hover { color: var(--dark); }
.breadcrumb [aria-current="page"],
.breadcrumb li:last-child span[itemprop="name"] {
  color: var(--gray-mid);
  font-weight: 500;
}

/* =============================================
   ANIMAÇÕES — fade-up (IntersectionObserver)
============================================= */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respeita prefer-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-up {
    opacity: 1;
    transform: none;
  }
}

/* =============================================
   UTILITÁRIOS
============================================= */
.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;
}

.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }

/* Highlight inline */
mark, .highlight {
  background: rgba(99,220,226,0.25);
  color: var(--dark);
  padding: 0 4px;
  border-radius: 4px;
}

/* Hidden em mobile/desktop */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
}
@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}
