/* ==========================================================================
   As Meninas dos Olhos - Audiodescrição
   Tema visual acessível: alto contraste, tipografia clara, foco visível.
   ========================================================================== */

:root {
  --amo-purple: #4b1d78;
  --amo-purple-dark: #331353;
  --amo-gold: #f2a900;
  --amo-gold-dark: #c98600;
  --amo-ink: #201331;
  --amo-bg: #fbf8ff;
  --amo-white: #ffffff;
  --amo-focus: #ff5f1f;
  --amo-radius: 0.9rem;
  --amo-font-scale: 1;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--amo-bg);
  color: var(--amo-ink);
  font-family: "Segoe UI", "Atkinson Hyperlegible", Verdana, Arial, sans-serif;
  font-size: calc(1.05rem * var(--amo-font-scale));
  line-height: 1.65;
}

h1, h2, h3, h4, h5 {
  font-weight: 700;
  color: var(--amo-purple-dark);
}

a {
  color: var(--amo-purple-dark);
  text-decoration-thickness: 2px;
}

a:hover, a:focus {
  color: var(--amo-gold-dark);
}

/* Foco visível para navegação por teclado (WCAG 2.4.7) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--amo-focus);
  outline-offset: 3px;
}

/* Link "pular para o conteúdo" */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--amo-gold);
  color: var(--amo-ink);
  padding: 0.6rem 1rem;
  z-index: 2000;
  font-weight: 700;
  border-radius: 0 0 0.5rem 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------------- Cabeçalho / navegação ---------------- */
.amo-header {
  background: linear-gradient(135deg, var(--amo-purple) 0%, var(--amo-purple-dark) 100%);
  color: var(--amo-white);
}

.amo-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--amo-white) !important;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
}

.amo-brand small {
  display: block;
  font-weight: 400;
  font-size: 0.7rem;
  opacity: 0.85;
}

.amo-navbar .nav-link {
  color: var(--amo-white) !important;
  font-weight: 600;
  border-radius: 0.5rem;
  margin: 0 0.15rem;
}

.amo-navbar .nav-link:hover,
.amo-navbar .nav-link.active {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--amo-gold) !important;
}

/* ---------------- Barra de acessibilidade ---------------- */
.amo-a11y-bar {
  background: var(--amo-ink);
  color: var(--amo-white);
  font-size: 0.85rem;
}

.amo-a11y-bar button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--amo-white);
  border-radius: 0.4rem;
  padding: 0.2rem 0.55rem;
  margin: 0.15rem;
}

.amo-a11y-bar button:hover {
  background: var(--amo-gold);
  color: var(--amo-ink);
  border-color: var(--amo-gold);
}

/* Modo alto contraste opcional (preto/amarelo) */
body.amo-high-contrast {
  background: #000 !important;
  color: #fff9dc !important;
}

body.amo-high-contrast, body.amo-high-contrast * {
  background-color: #000 !important;
  color: #fff9dc !important;
  border-color: #fff9dc !important;
}

body.amo-high-contrast a { color: #ffd400 !important; }
body.amo-high-contrast .amo-hero,
body.amo-high-contrast .btn-amo-primary { background: #000 !important; border: 2px solid #ffd400 !important; }

body.amo-underline-links a {
  text-decoration: underline !important;
}

/* ---------------- Hero / seções ---------------- */
.amo-hero {
  background: radial-gradient(circle at top right, rgba(242, 169, 0, 0.25), transparent 55%),
    linear-gradient(135deg, var(--amo-purple) 0%, var(--amo-purple-dark) 100%);
  color: var(--amo-white);
  border-radius: 0 0 3rem 3rem;
  padding: 3.5rem 0;
}

.amo-hero p.lead {
  color: #ece3fb;
}

.btn-amo-primary {
  background-color: var(--amo-gold);
  border-color: var(--amo-gold);
  color: var(--amo-ink);
  font-weight: 700;
  border-radius: 2rem;
  padding: 0.6rem 1.6rem;
}

.btn-amo-primary:hover {
  background-color: var(--amo-gold-dark);
  border-color: var(--amo-gold-dark);
  color: #fff;
}

.btn-amo-outline {
  border: 2px solid var(--amo-white);
  color: var(--amo-white);
  border-radius: 2rem;
  padding: 0.55rem 1.5rem;
  font-weight: 700;
}

.btn-amo-outline:hover {
  background: var(--amo-white);
  color: var(--amo-purple-dark);
}

.amo-section {
  padding: 3.5rem 0;
}

.amo-section-title {
  position: relative;
  margin-bottom: 2rem;
}

.amo-section-title::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 0.35rem;
  background: var(--amo-gold);
  border-radius: 1rem;
  margin-top: 0.6rem;
}

.amo-card {
  background: var(--amo-white);
  border: 1px solid rgba(75, 29, 120, 0.12);
  border-radius: var(--amo-radius);
  box-shadow: 0 10px 25px rgba(75, 29, 120, 0.08);
  height: 100%;
}

.amo-card .amo-card-body {
  padding: 1.5rem;
}

.amo-icon-badge {
  width: 3.2rem;
  height: 3.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(242, 169, 0, 0.15);
  color: var(--amo-purple-dark);
  margin-bottom: 0.75rem;
}

/* Portfólio */
.amo-portfolio-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--amo-radius) var(--amo-radius) 0 0;
  background: #ece3fb;
}

/* Parceiros */
.amo-partner-logo {
  height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

.amo-partner-logo img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(15%);
}

/* Rodapé */
.amo-footer {
  background: var(--amo-purple-dark);
  color: #e6d9ff;
  padding: 3rem 0 1.5rem;
}

.amo-footer a { color: #ffd97a; }

.amo-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffd97a !important;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.amo-social-link:hover,
.amo-social-link:focus-visible {
  background: var(--amo-gold);
  color: var(--amo-purple-dark) !important;
  transform: translateY(-2px);
}

.amo-contact-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.amo-contact-channels a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid rgba(75, 29, 120, 0.15);
  border-radius: 2rem;
  padding: 0.45rem 1rem;
  color: var(--amo-purple-dark);
  font-weight: 600;
}

.amo-contact-channels a:hover {
  background: rgba(242, 169, 0, 0.15);
}

/* Botão flutuante VLibras / leitura */
.amo-float-tools {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1500;
}

@media (max-width: 767px) {
  .amo-hero { border-radius: 0 0 1.5rem 1.5rem; padding: 2.25rem 0; }
}
