/* ═══════════════════════════════════════════════════
   AYO THEME — Base Global Styles
   Reset · Acessibilidade · Tipografia · Ambient
═══════════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--surface-base);
  color: var(--black-800);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-height: 1.5;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(228, 177, 1, 0.25);
  border-radius: var(--r-pill);
}

/* ── Acessibilidade ── */

/* Foco visível — WCAG 2.4.7 */
:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link */
.ayo-skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  background: var(--gold-500);
  color: var(--gold-dark);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  padding: var(--sp-3) var(--sp-6);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  z-index: 9999;
  transition: top var(--t-fast);
}
.ayo-skip-link:focus {
  top: 0;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Ambient FX ── */

.ayo-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ayo-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}

.ayo-orb--1 {
  width: 640px; height: 640px;
  background: rgba(228, 177, 1, 0.09);
  top: -180px; right: -120px;
  animation: ayo-drift 10s ease-in-out infinite alternate;
}

.ayo-orb--2 {
  width: 480px; height: 480px;
  background: rgba(202, 154, 0, 0.07);
  bottom: -160px; left: -80px;
  animation: ayo-drift 13s ease-in-out infinite alternate-reverse;
}

.ayo-orb--3 {
  width: 280px; height: 280px;
  background: rgba(247, 201, 72, 0.06);
  top: 45%; left: 42%;
  animation: ayo-drift 16s ease-in-out infinite alternate;
}

/* Dark orb variant (entregador section) */
.ayo-orb--dark {
  background: rgba(228, 177, 1, 0.07);
  width: 500px; height: 500px;
  bottom: -150px; left: -80px;
}

@keyframes ayo-drift {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(24px, 36px); }
}

.ayo-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='.04'/%3E%3C/svg%3E");
  background-size: 180px;
}

.ayo-grain--dark {
  opacity: 0.5;
}

/* ── Section layout base ── */
.ayo-section {
  padding: var(--sp-24) var(--sp-6);
  position: relative;
  z-index: 1;
}

.ayo-section__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.bg--base   { background: var(--surface-base); }
.bg--low    { background: var(--surface-low); }
.bg--dark   { background: var(--black-900); }
.bg--darkm  { background: var(--black-800); }
.bg--gold   { background: var(--gold-500); }

/* ── Fade-up animation ── */
.ayo-fu {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity  0.58s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.58s cubic-bezier(0.4, 0, 0.2, 1);
}
.ayo-fu.ayo-fu--d1 { transition-delay: 0.07s; }
.ayo-fu.ayo-fu--d2 { transition-delay: 0.14s; }
.ayo-fu.ayo-fu--d3 { transition-delay: 0.21s; }
.ayo-fu.ayo-fu--d4 { transition-delay: 0.28s; }
.ayo-fu.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Float animation (hero cards) ── */
@keyframes ayo-float {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}
