/* ============================================================
 * OFICINA DO YURI — STYLESHEET COMPLETO
 * Identidade visual preservada. Performance e SEO otimizados.
 * ============================================================ */

/* Variáveis CSS (reforçadas aqui, também no critical CSS inline) */
:root {
  --c-bg: #f7f5f2;
  --c-dark: #1a1a1a;
  --c-accent: #E87A38;
  --c-accent-dark: #D35D12;
  --c-white: #fff;
  --c-border: #e8e4de;
  --c-text: #1a1a1a;
  --c-text-light: #666;
  --c-text-muted: #aaa;
}

/* ===========================
 * RESET & BASE
 * =========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
}

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

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

/* ===========================
 * CONTAINER
 * =========================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===========================
 * HEADER
 * =========================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-dark);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: box-shadow 0.25s ease;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--c-white);
  letter-spacing: -0.01em;
}

.logo img {
  border-radius: 100%;
  background-color: white;
}

.logo span {
  color: var(--c-accent);
  display: contents;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}

.nav a:hover,
.nav a.active {
  color: var(--c-accent);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--c-white);
  font-size: 22px;
  cursor: pointer;
}

.header--scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.35);
}

/* ===========================
 * HERO
 * =========================== */
.hero {
  background: var(--c-dark);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(232, 122, 56, 0.04) 0px,
                                        rgba(232, 122, 56, 0.04) 1px,
                                        transparent 1px,
                                        transparent 14px
  );
}

.hero__inner {
  position: relative;
  text-align: center;
}

.hero__badge {
  display: inline-block;
  background: var(--c-accent-dark);
  color: var(--c-white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.hero h1 span {
  color: var(--c-accent);
}

.hero p {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.hero__btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===========================
 * BUTTONS
 * =========================== */
.btn {
  display: inline-block;
  padding: 11px 26px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.15s;
  cursor: pointer;
}

.btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--c-accent-dark);
  color: var(--c-white);
  border: 2px solid var(--c-accent-dark);
}

.btn--outline {
  background: transparent;
  color: var(--c-white);
  border: 2px solid rgba(255,255,255,0.35);
}

/* ===========================
 * SECTIONS
 * =========================== */
.section {
  padding: 4rem 0;
}

.section--alt {
  background: var(--c-white);
}

.section--dark {
  background: var(--c-dark);
}

.section__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--c-accent-dark);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section__label--light {
  color: var(--c-accent);
}

.section__label--featured {
  text-align: center;
  font-size: clamp(14px, 2vw, 18px);
  margin-bottom: 0.5rem;
}

.section__subtitle {
  text-align: center;
  font-size: clamp(15px, 2.5vw, 22px);
  color: var(--c-text-light);
  font-weight: 400;
  max-width: 750px;
  margin: 0 auto 2.5rem;
  line-height: 1.4;
}

.section__subtitle--results {
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
}

.section__title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.section__title--light {
  color: var(--c-white);
}

/* ===========================
 * SOBRE
 * =========================== */
.sobre {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  padding: 2rem;
}

.sobre__avatar {
  width: 64px !important;
  height: 64px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50%;
  object-fit: cover;
  border: 2px dashed var(--c-accent);
  transform: scale(1.5);
  display: inline-block; /* Impede distorção por flexbox ou grid */
}

.sobre__texto h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 0.75rem;
}

.sobre__texto p {
  font-size: 14px;
  color: #555;
  margin-bottom: 0.75rem;
}

.sobre__texto p:last-child {
  margin-bottom: 0;
}

/* ===========================
 * CONTENT GRID (BANNERS VERTICAIS)
 * =========================== */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.content-card {
  background: #f7f5f2;
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 1.25rem;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  contain: layout style;
}

.content-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.content-card__link {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 1rem;
  background-color: var(--c-border);
  position: relative;
}

.content-card__banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.content-card__link:hover .content-card__banner {
  transform: scale(1.04);
}

.content-card__link::after {
  content: '▶';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  color: var(--c-white);
  font-size: 32px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.content-card__link:hover::after {
  opacity: 1;
}

.content-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 8px;
}

.content-card p {
  font-size: 13px;
  color: var(--c-text-light);
  line-height: 1.55;
}

/* ===========================
 * STATS
 * =========================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.stat-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}

.stat-card__platform {
  font-size: 11px;
  color: #888;
  margin-bottom: 4px;
  font-weight: 600;
}

.stat-card__number {
  font-size: 26px;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.1;
}

.stat-card__label {
  font-size: 10px;
  color: var(--c-text-muted);
  margin-top: 3px;
}

.stat-total {
  background: var(--c-accent-dark);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
  margin-bottom: 2rem;
}

.stat-total__number {
  font-size: 36px;
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.1;
}

.stat-total__label {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}

/* ===========================
 * RESULTS GRID & SUMMARY
 * =========================== */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 15px;
}

.result-box {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
}

.result-box__big {
  font-size: 28px;
  font-weight: 700;
  color: var(--c-accent-dark);
  line-height: 1.1;
}

.result-box__desc {
  font-size: 11px;
  color: var(--c-text-light);
  margin-top: 6px;
  line-height: 1.45;
}

.results-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.result-box--dark {
  background: #2d2b28;
  border: 1px solid #3d3a35;
}

.result-box--dark .result-box__big {
  color: var(--c-accent);
  font-size: 32px;
}

.result-box--dark .result-box__desc {
  color: #b5b0a8;
  font-size: 12px;
}

/* ===========================
 * CARROSSEL DE PARCEIROS
 * =========================== */
.parceiros-carrossel {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px dashed var(--c-border);
}

.carrossel-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  gap: 10px;
}

.carrossel-container {
  overflow: hidden;
  width: 100%;
}

.carrossel-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --slide-index: 0;
  --visible-items: 3;
  transform: translateX(calc(-1 * var(--slide-index) * (100% / var(--visible-items))));
}

.carrossel-item {
  flex: 0 0 calc(33.333% - 1.34rem);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 0.5rem;
  height: 90px;
  will-change: transform;
}

.carrossel-item img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter 0.3s, opacity 0.3s;
}

.carrossel-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

.carrossel-btn {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  color: var(--c-accent-dark);
  font-size: 16px;
  font-weight: bold;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 10;
  user-select: none;
}

.carrossel-btn:hover {
  background: var(--c-accent-dark);
  color: var(--c-white);
  border-color: var(--c-accent-dark);
}

/* ===========================
 * CONTATO
 * =========================== */
.contato__inner {
  text-align: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.contato__sub {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  max-width: 480px;
  margin: 0 auto 2rem;
}

.social-links {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-block;
  padding: 9px 20px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  transition: background 0.2s, border-color 0.2s;
}

.social-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.45);
}

/* ===========================
 * FOOTER
 * =========================== */
.footer {
  background: #111;
  padding: 1.25rem 0;
  text-align: center;
}

.footer p {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* ===========================
 * PERFORMANCE: CONTENT-VISIBILITY
 * Renderização sob demanda para seções abaixo da dobra
 * =========================== */
#conteudo,
#numeros,
#contato {
content-visibility: auto;
}

#conteudo {
contain-intrinsic-size: 800px;
}

#numeros {
contain-intrinsic-size: 700px;
}

#contato {
contain-intrinsic-size: 400px;
}

/* ===========================
 * RESPONSIVO
 * =========================== */
@media (max-width: 768px) {
  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--c-dark);
    padding: 1rem 1.5rem;
    gap: 1rem;
    border-top: 1px solid rgba(255,255,255,0.07);
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .sobre {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero {
    padding: 3.5rem 0 3rem;
  }

  .carrossel-track {
    --visible-items: 2;
    transform: translateX(calc(-1 * var(--slide-index) * (100% / 2)));
  }

  .carrossel-item {
    flex: 0 0 calc(50% - 1rem);
  }
}

@media (max-width: 480px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .results-grid {
    grid-template-columns: 1fr 1fr;
  }

  .results-summary {
    grid-template-columns: 1fr;
  }

  .carrossel-track {
    --visible-items: 1;
    transform: translateX(calc(-1 * var(--slide-index) * 100%));
    gap: 0;
  }

  .carrossel-item {
    flex: 0 0 100%;
  }
}
