/* Layout v3 (mesmo visual da home) para páginas de conteúdo/artigo.
   Usado por: /o-que-e-autismo/, /en/what-is-autism/, /es/que-es-el-autismo/, /fr/quest-ce-que-lautisme/, /it/cose-lautismo/ */

:root {
  --brand: #FF7FA3;
  --brand-text: #9C1744;
  --ink: #1F2937;
  --muted: #6B7280;
  --bg: #FFFDFB;
  --card: #FFFFFF;
  --accent: #FFA726;
  --border: #E5E7EB;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --radius: 16px;
  --radius-sm: 10px;
}

/* Base */
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif;
  color: var(--ink); background: var(--bg);
  font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }
@media (min-width: 1200px) { .container { padding: 0 40px; } }

/* Topo e menu */
header {
  position: sticky; top: 0; background: #fff;
  border-bottom: 1px solid var(--border); z-index: 100; box-shadow: var(--shadow-sm);
}
nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; min-height: 60px; }
.nav-logo img { height: 32px; width: auto; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: 15px; transition: color 0.2s; }
.nav-links a:not(.btn):hover { color: var(--accent); }
.menu-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 8px;
  color: var(--ink); background: transparent; border: 0; border-radius: 8px; cursor: pointer;
}
.menu-button-lines { display: block; width: 28px; height: 22px; position: relative; }
.menu-button-lines > span {
  background: currentColor; display: block; height: 3px; border-radius: 3px; margin-bottom: 5px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-links {
  display: none; flex-direction: column; background: #fff;
  position: absolute; top: 60px; right: 20px; padding: 16px; gap: 12px;
  border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
  width: min(88vw, 260px); text-align: right; z-index: 999;
}
.nav-links.is-open { display: flex; }
.menu-button[aria-expanded="true"] .menu-button-lines > span:nth-child(1) { transform: rotate(45deg) translateY(8px); }
.menu-button[aria-expanded="true"] .menu-button-lines > span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] .menu-button-lines > span:nth-child(3) { transform: rotate(-45deg) translateY(-8px); }
@media (min-width: 768px) {
  .nav-logo img { height: 36px; }
  .menu-button { display: none; }
  .nav-links {
    display: flex !important; position: static; flex-direction: row;
    background: none; box-shadow: none; width: auto; padding: 0; gap: 20px; align-items: center;
  }
}

/* Tipografia */
h1 { font-size: 32px; line-height: 1.15; font-weight: 700; margin: 0 0 16px; letter-spacing: -0.02em; }
h2 { font-size: 26px; line-height: 1.2; font-weight: 700; margin: 0 0 12px; letter-spacing: -0.01em; }
h2 span { color: var(--brand-text); }
h3 { font-size: 20px; line-height: 1.3; font-weight: 600; margin: 0 0 8px; }
p { margin: 0 0 14px; }
.lead, h2.lead { font-size: 17px; line-height: 1.6; font-weight: 400; letter-spacing: 0; color: var(--muted); margin: 0 0 18px; }
.muted { color: var(--muted); font-size: 14px; }
@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 32px; }
  .lead, h2.lead { font-size: 18px; }
}
@media (min-width: 1024px) { h1 { font-size: 48px; } h2 { font-size: 36px; } }

/* Botões */
.btn {
  display: inline-block; background: var(--accent); color: #fff;
  border-radius: var(--radius-sm); padding: 14px 20px;
  font-weight: 700; font-size: 15px; text-align: center; cursor: pointer;
  border: none; transition: all 0.2s ease; box-shadow: var(--shadow-sm);
}
.btn:hover { background: #FF9100; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.outline { background: #fff; color: var(--ink); border: 2px solid var(--accent); }
.btn.outline:hover { background: var(--accent); color: #fff; }
.cta { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
@media (min-width: 640px) { .cta { flex-direction: row; flex-wrap: wrap; } }

/* Grade e seções */
.grid { display: grid; gap: 24px; }
.hero { padding: 32px 0 24px; }
@media (min-width: 768px) { .hero { padding: 60px 0 40px; } }
.hero-grid { grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px; } }
.hero-img { border-radius: var(--radius); box-shadow: var(--shadow-md); }

.section { padding: 40px 0; }
@media (min-width: 768px) { .section { padding: 60px 0; } }
@media (min-width: 1024px) { .section { padding: 80px 0; } }
.section-soft { background: #fff5f7; border-top: 1px solid #ffe3ea; border-bottom: 1px solid #ffe3ea; }

.texto-imagem { grid-template-columns: 1fr; }
.texto-imagem p { color: #374151; }
.texto-imagem img { margin: 0 auto; max-width: 360px; width: 100%; }
@media (min-width: 900px) {
  .texto-imagem { grid-template-columns: 1.3fr 0.7fr; align-items: center; gap: 56px; }
  .texto-imagem.invertido { grid-template-columns: 0.7fr 1.3fr; }
  .texto-imagem.invertido > :first-child { order: 2; }
}
@media (max-width: 899px) { .texto-imagem.invertido > :first-child { order: 0; } }

/* Download */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) { .card { padding: 32px; } }
.download-card { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .download-card { grid-template-columns: 1.2fr 0.8fr; align-items: center; } }
.download-card img.app { max-width: 300px; margin: 0 auto; }
.download-badges { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.download-badges img { height: 64px; width: auto; }
@media (min-width: 640px) { .download-badges { flex-direction: row; } }

/* Rodapé */
footer { border-top: 1px solid var(--border); padding: 32px 0; color: var(--muted); background: #fff; }
footer p { font-size: 14px; margin: 8px 0; }
footer a { color: #333333; text-decoration: underline; }
@media (min-width: 768px) { footer { padding: 40px 0; } }

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
