/* ============================================================
   BRUNA SILVEIRA BA. — Estilo base
   Design system minimalista: Apple / Stripe / Linear / Vercel
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
svg { display: block; }

/* ---------- Base ---------- */
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 32px;
}
.container-narrow { max-width: 780px; }

.section { padding-block: 120px; scroll-margin-top: 88px; }
#hero, #contato { scroll-margin-top: 76px; }

.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-head p {
  font-size: 17px;
  color: var(--text-secondary);
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg-inverse);
  color: var(--text-inverse);
  padding: 12px 20px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 100px;
  transition: transform 0.25s ease, background-color 0.25s ease, opacity 0.25s ease, box-shadow .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background-color: var(--accent);
  color: var(--accent-contrast);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { background-color: var(--surface-hover); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--header-bg);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--border-subtle);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.logo {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.main-nav ul { display: flex; gap: 32px; }
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  position: relative;
}
.main-nav a:hover { color: var(--text-primary); }

.header-actions { display: flex; align-items: center; gap: 12px; }

/* Language switch */
.lang-switch { position: relative; }
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 100px;
  border: 1px solid var(--border-default);
  color: var(--text-primary);
}
.lang-toggle:hover { background-color: var(--surface-hover); }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  background-color: var(--surface);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.lang-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu li {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}
.lang-menu li:hover { background-color: var(--surface-hover); }

/* Theme toggle */
.theme-toggle {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-default);
  color: var(--text-primary);
}
.theme-toggle:hover { background-color: var(--surface-hover); }
.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

/* Mobile menu button */
.menu-toggle {
  display: none;
  width: 38px; height: 38px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.menu-toggle span {
  width: 20px; height: 1.5px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero (banner full-bleed) ---------- */
.hero { padding-block: 0; }
.hero-grid {
  position: relative;
  min-height: 82vh;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 82% 30%; display: block; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.42) 38%, rgba(255, 255, 255, 0) 62%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 82vh;
  display: flex;
  align-items: center;
}
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 420px;
}
.hero-headline {
  font-size: clamp(20px, 1.7vw, 26px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin-bottom: 14px;
  color: #14141a;
}
.hero-subheadline {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(20, 20, 26, 0.68);
  max-width: 380px;
  margin-bottom: 28px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-start; margin-bottom: 28px; }
.hero .btn-primary { background-color: #14141a; color: #ffffff; padding: 12px 24px; font-size: 13.5px; }
.hero .btn-secondary {
  color: #14141a;
  border-color: rgba(20, 20, 26, 0.3);
  padding: 12px 24px;
  font-size: 13.5px;
}
.hero .btn-secondary:hover { background-color: rgba(20, 20, 26, 0.08); }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 6px 8px;
  justify-content: flex-start;
  font-size: 11px; letter-spacing: 0.01em; color: rgba(20, 20, 26, 0.55);
  padding-top: 20px;
  border-top: 1px solid rgba(20, 20, 26, 0.15);
}

/* ---------- Sobre ---------- */
.about { padding-block: 64px; }
.about-grid {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-media { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 2 / 3; }
.about-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-content p { color: var(--text-secondary); font-size: 16px; margin-bottom: 14px; max-width: 460px; }
.about-content p:last-of-type { margin-bottom: 0; }
.about-schools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}
.about-schools span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Cards grid ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cards-grid-5 { grid-template-columns: repeat(3, 1fr); }
.cards-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background-color: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-default); }
.card h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; }
.card p { font-size: 14.5px; color: var(--text-secondary); }
.card-edu { background-color: var(--bg-secondary); }

/* ---------- Timeline ---------- */
.timeline { display: flex; flex-direction: column; gap: 0; border-left: 1px solid var(--border-default); margin-left: 8px; }
.timeline-item { position: relative; padding: 0 0 48px 36px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
  position: absolute; left: -5px; top: 4px;
  width: 9px; height: 9px; border-radius: 50%;
  background-color: var(--bg-primary);
  border: 2px solid var(--text-primary);
}
.timeline-period {
  display: inline-block;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.timeline-item h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.timeline-item p { color: var(--text-secondary); font-size: 15px; max-width: 560px; }

/* ---------- Case Study ---------- */
.case-study {
  background-color: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 56px;
  margin-bottom: 40px;
}
.case-header { margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--border-subtle); }
.case-tag {
  display: inline-block;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.case-header h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; margin-bottom: 10px; }
.case-meta { color: var(--text-secondary); font-size: 14.5px; }
.case-block { margin-bottom: 32px; }
.case-block h4 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.case-block p { color: var(--text-secondary); font-size: 15px; max-width: 720px; }

.case-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 40px 0;
}
.kpi {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
}
.kpi-value { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 6px; }
.kpi-label { font-size: 12.5px; color: var(--text-muted); }
.kpi-placeholder {
  background-color: var(--placeholder-bg);
  border-color: var(--placeholder-border);
}
.kpi-placeholder .kpi-value { color: var(--placeholder-text); font-size: 15px; }

.case-source-note { font-size: 12.5px; color: var(--text-muted); font-style: italic; margin-top: -8px; }

/* ---------- Methodology ---------- */
.method-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.method-step {
  padding: 32px 20px;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  text-align: left;
  position: relative;
}
.method-icon { color: var(--text-primary); margin-bottom: 20px; }
.method-number {
  position: absolute; top: 24px; right: 24px;
  font-size: 12px; font-weight: 700; color: var(--text-muted);
}
.method-step h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.method-step p { font-size: 13.5px; color: var(--text-secondary); }

/* ---------- Audience ---------- */
.audience-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.audience-list li {
  padding: 12px 22px;
  border: 1px solid var(--border-default);
  border-radius: 100px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background-color .2s ease, color .2s ease;
}
.audience-list li:hover { background-color: var(--surface-hover); color: var(--text-primary); }

/* ---------- Por que me contratar (banner full-bleed) ---------- */
.why-hire { position: relative; overflow: hidden; }
.why-hire-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.why-hire-media img { width: 100%; height: 100%; object-fit: cover; object-position: 65% 20%; display: block; }
.why-hire-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.5) 32%, rgba(255, 255, 255, 0.3) 62%, rgba(255, 255, 255, 0.42) 100%);
}
[data-theme="dark"] .why-hire-media::after {
  background: linear-gradient(180deg, rgba(10, 10, 11, 0.82) 0%, rgba(10, 10, 11, 0.5) 32%, rgba(10, 10, 11, 0.4) 62%, rgba(10, 10, 11, 0.55) 100%);
}
.why-hire-inner { position: relative; z-index: 1; }
.why-hire .section-head h2,
.why-hire .section-eyebrow { color: #14141a; }
[data-theme="dark"] .why-hire .section-head h2,
[data-theme="dark"] .why-hire .section-eyebrow { color: #f5f5f7; }

.cards-grid-glass .card {
  background-color: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-color: rgba(255, 255, 255, 0.5);
}
[data-theme="dark"] .cards-grid-glass .card {
  background-color: rgba(20, 20, 22, 0.55);
  border-color: rgba(255, 255, 255, 0.12);
}

/* ---------- FAQ / Accordion ---------- */
.accordion-item { border-bottom: 1px solid var(--border-subtle); }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 4px;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
}
.accordion-icon { font-size: 20px; font-weight: 300; color: var(--text-muted); transition: transform 0.25s ease; flex-shrink: 0; margin-left: 16px; }
.accordion-trigger[aria-expanded="true"] .accordion-icon { transform: rotate(45deg); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.accordion-panel p { padding-bottom: 22px; color: var(--text-secondary); font-size: 15px; max-width: 680px; }

/* ---------- CTA Final ---------- */
.cta-final { background-color: var(--bg-secondary); }
.cta-final-inner { text-align: center; max-width: 680px; margin-inline: auto; }
.cta-avatar {
  width: 96px; height: 96px;
  margin: 0 auto 24px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
}
.cta-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cta-final-inner h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 16px; }
.cta-final-inner p { color: var(--text-secondary); font-size: 17px; margin-bottom: 32px; }
.cta-final .hero-cta { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border-subtle); padding-block: 56px 32px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px; margin-bottom: 32px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 10px; max-width: 320px; }
.footer-links { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.footer-links a:hover { color: var(--text-primary); background-color: var(--surface-hover); border-color: var(--border-strong); }

.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;
}
.footer-lang { display: flex; gap: 8px; }
.footer-lang button {
  font-size: 12.5px; font-weight: 600;
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
}
.footer-lang button:hover { background-color: var(--surface-hover); color: var(--text-primary); }
.footer-bottom { border-top: 1px solid var(--border-subtle); padding-top: 24px; }
.footer-bottom p { font-size: 13px; color: var(--text-muted); }

/* ---------- Animations (base state, motion in animations.js) ---------- */
[data-animate] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(.22,.61,.36,1), transform 0.7s cubic-bezier(.22,.61,.36,1); }
[data-animate="fade-in"] { transform: none; }
[data-animate].is-visible { opacity: 1; transform: none; }

[data-stagger] > * { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-stagger].is-visible > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-animate], [data-stagger] > * { transition: none !important; opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}
