/* ============================================================
   A&F Festas e Eventos — styles.css
   Reset · Base · Componentes · Layout · Seções · Responsivo
   Tokens em tokens.css (§13 do design system)
   ============================================================ */

/* ===== 1. Reset / Base ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-600);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  padding-top: var(--header-h);
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue-600); text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
input, textarea, select, button { font-family: inherit; }
strong, b { font-weight: 700; }

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

/* ===== 2. Tipografia ===== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--teal-700);
  line-height: 1.15;
  font-weight: 600;
}
h1 { font-weight: 700; }
h1 strong, h2 strong, h3 strong { color: var(--blue-500); font-weight: 700; }

.h2 { font-size: clamp(28px, 4vw, 36px); }
.h3 { font-size: clamp(22px, 3vw, 24px); }

/* ===== 3. Layout: container, seções, divisores ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  position: relative;
  padding-block: var(--sp-16);
}
@media (min-width: 1024px) {
  .section { padding-block: var(--sp-24); }
}
.section--white { background: var(--surface); }
.section--blue {
  background: var(--blue-500);
  color: #fff;
}
.section--blue h1, .section--blue h2, .section--blue h3, .section--blue h4 { color: #fff; }
.section--blue h2 strong { color: var(--yellow-400); }

/* Cabeçalho de seção (eyebrow + título + intro) */
.section__head { max-width: 720px; margin-bottom: var(--sp-12); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__intro { margin-top: var(--sp-4); font-size: 18px; }
.section--blue .section__intro { color: rgba(255,255,255,.9); }

/* Divisores curvos (ondas) entre seções */
.section > .wave { position: absolute; left: 0; width: 100%; height: 44px; line-height: 0; pointer-events: none; z-index: 1; }
.section > .wave svg { display: block; width: 100%; height: 100%; }
.wave--top { top: -1px; }
.wave--bottom { bottom: -1px; transform: scaleY(-1); }
@media (min-width: 768px) { .section > .wave { height: 64px; } }

/* ===== 4. Utilitários ===== */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-500);
  margin-bottom: var(--sp-3);
  display: inline-block;
}
.eyebrow--lime { color: var(--lime-400); }
.eyebrow--yellow { color: var(--yellow-400); }

.skip-link {
  position: absolute; left: 8px; top: -60px;
  background: #fff; color: var(--blue-700);
  padding: 10px 16px; border-radius: var(--r-md);
  font-weight: 700; z-index: var(--z-overlay);
  transition: top var(--t-base);
}
.skip-link:focus { top: 8px; }

.icon {
  width: 1.25em; height: 1.25em;
  display: inline-block; vertical-align: middle;
  flex: none;
}

/* ===== 5. Badges / pills ===== */.badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: var(--surface);
  color: var(--teal-800);
  font-family: var(--font-display);
  font-weight: 600; font-size: 14px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-sm);
}
/* ===== 6. Botões ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  line-height: 1; text-align: center; white-space: nowrap;
  padding: 13px 26px;
  border-radius: var(--r-pill);
  transition: transform var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
  user-select: none;
}
.btn .icon { width: 1.15em; height: 1.15em; }
.btn--lg { padding: 16px 34px; font-size: 17px; }
.btn--sm { padding: 9px 18px; font-size: 15px; }

.btn--cta { background: var(--orange-500); color: #fff; box-shadow: var(--sh-cta); }
.btn--cta:hover { background: var(--orange-600); transform: translateY(-2px); }
.btn--cta:active { background: var(--orange-700); transform: translateY(0); }

.btn--wa { background: var(--wa-500); color: #fff; }
.btn--wa:hover { background: var(--wa-600); transform: translateY(-2px); }

.btn--secondary { background: var(--blue-500); color: #fff; }
.btn--secondary:hover { background: var(--blue-600); transform: translateY(-2px); }

.btn--ghost { background: transparent; color: var(--blue-600); box-shadow: inset 0 0 0 2px var(--blue-100); }
.btn--ghost:hover { background: var(--blue-50); transform: translateY(-2px); }

/* ===== 7. Logo ===== */
.logo { 
  height: 100px; 
  width: auto; 
}

.logo img {
  height: 100%;
  width: auto;
  display: block;
}

/* Logo menor no rodapé */
.logo--light { display: inline-block; height: 64px; }

/* ===== 8. Header / Navegação ===== */
.header {
  position: fixed; inset: 0 0 auto 0;
  height: var(--header-h);
  background: var(--blue-500);
  z-index: var(--z-header);
  transition: box-shadow var(--t-base), background var(--t-base);
}
.header.is-scrolled { box-shadow: var(--sh-md); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: var(--sp-4); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; color: #fff; border-radius: var(--r-md);
}
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

.nav { display: flex; align-items: center; }
.nav__list { display: flex; align-items: center; gap: var(--sp-6); }
.nav__list a {
  color: #fff; font-family: var(--font-body); font-weight: 700; font-size: 15px;
  padding: 6px 2px; position: relative;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px;
  background: var(--yellow-400); border-radius: 3px;
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-base);
}
.nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); }
.nav__cta { margin-left: var(--sp-6); }

/* Mobile nav (base = mobile) */
@media (max-width: 1023px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch;
    background: var(--blue-600);
    padding: var(--sp-6) var(--container-pad) var(--sp-8);
    gap: var(--sp-4);
    box-shadow: var(--sh-md);
    transform: translateY(-130%);
    transition: transform var(--t-base);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav__list a { display: block; padding: 14px 4px; font-size: 17px; }
  .nav__list a::after { display: none; }
  .nav__cta { margin-left: 0; margin-top: var(--sp-2); width: 100%; }
}
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
}

/* ===== 9. Hero ===== */
.hero { padding-block: 0; background: var(--surface); }

/* Carrossel de banners (full-bleed, largura total da tela) */
.carousel { position: relative; overflow: hidden; box-shadow: var(--sh-md); background: var(--blue-50); }
.carousel__viewport { overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.carousel__viewport.is-dragging { cursor: grabbing; }
.carousel__track { display: flex; transition: transform .6s cubic-bezier(.65,.05,.36,1); will-change: transform; }
.carousel__slide { flex: 0 0 100%; min-width: 100%; }.carousel__slide img { display: block; width: 100%; height: auto; -webkit-user-drag: none; user-drag: none; }

.carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: var(--r-pill);
  display: grid; place-items: center;
  background: rgba(255,255,255,.85); color: var(--blue-700);
  box-shadow: var(--sh-md); transition: background var(--t-fast), transform var(--t-fast);
}
.carousel__arrow:hover { background: #fff; }
.carousel__arrow .icon { width: 24px; height: 24px; }
.carousel__arrow--prev { left: 14px; }
.carousel__arrow--prev .icon { transform: rotate(180deg); }
.carousel__arrow--next { right: 14px; }
.carousel__arrow--prev:hover { transform: translateY(-50%) translateX(-2px); }
.carousel__arrow--next:hover { transform: translateY(-50%) translateX(2px); }

.carousel__dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: var(--sp-2); }
.carousel__dot { width: 11px; height: 11px; border-radius: var(--r-pill); background: rgba(255,255,255,.6); box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: background var(--t-fast), width var(--t-fast); }
.carousel__dot.is-active { background: #fff; width: 28px; }

@media (max-width: 560px) {
  .carousel__arrow { width: 38px; height: 38px; }
  .carousel__arrow .icon { width: 20px; height: 20px; }
}

/* Doodles (decorativos — usados em seções como Benefícios) */
.doodle { position: absolute; z-index: var(--z-doodle); pointer-events: none; user-select: none; }

/* ===== 10. Footer ===== */
.footer { background: var(--ink-800); color: var(--ink-200); }
.footer__grid {
  display: grid; grid-template-columns: 1fr; gap: var(--sp-8);
  padding-block: var(--sp-16) var(--sp-12);
}
.footer__brand p { margin-top: var(--sp-4); max-width: 38ch; }.footer__title { color: #fff; font-size: 18px; margin-bottom: var(--sp-4); }
.footer__list li { margin-bottom: var(--sp-3); }
.footer__list a, .footer__list span { display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--ink-200); transition: color var(--t-fast); }
.footer__list a:hover { color: #fff; }
.footer__social { display: flex; gap: var(--sp-3); }
.footer__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.1); color: #fff;
  transition: background var(--t-fast), transform var(--t-fast);
}
.footer__social a:hover { background: var(--blue-500); transform: translateY(-2px); }
.footer__social .icon { width: 20px; height: 20px; }

.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: var(--sp-6); }
.footer__bottom .container { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-6); justify-content: space-between; align-items: center; }
.footer__bottom p { font-size: 14px; color: var(--ink-400); }
.footer__bottom strong { color: var(--blue-300); }

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 2fr 1.2fr 1fr 1fr; gap: var(--sp-12); }
}

/* ===== 11. WhatsApp flutuante ===== */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: var(--z-float);
  width: 60px; height: 60px; border-radius: var(--r-pill);
  background: var(--wa-500); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-lg);
  transition: background var(--t-fast), transform var(--t-fast);
}
.wa-float:hover { background: var(--wa-600); transform: scale(1.06); }
.wa-float .icon { width: 32px; height: 32px; }

/* ===== 12. Movimento reduzido ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ============================================================
   ESTILOS DAS SEÇÕES DE CONTEÚDO
   ============================================================ */

.center { text-align: center; margin-top: var(--sp-12); }

/* ===== Diferenciais (barra) ===== */
.diferenciais { padding-block: var(--sp-12); }
.dif-grid {
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
  display: grid; grid-template-columns: 1fr; gap: var(--sp-2);
  padding: var(--sp-4);
}
.dif { display: flex; gap: var(--sp-3); align-items: center; padding: var(--sp-4); }
.dif__ico { width: 48px; height: 48px; border-radius: var(--r-md); display: grid; place-items: center; flex: none; }
.dif__ico .icon { width: 26px; height: 26px; }
.dif__ico--blue   { background: var(--blue-50);   color: var(--blue-600); }
.dif__ico--green  { background: var(--success-bg);color: var(--green-600); }
.dif__ico--red    { background: var(--error-bg);  color: var(--red-600); }
.dif__ico--orange { background: var(--orange-50); color: var(--orange-600); }
.dif__title { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--teal-800); margin-bottom: 2px; }
.dif p { font-size: 14px; color: var(--ink-600); }

@media (min-width: 540px) { .dif-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) {
  .dif-grid { grid-template-columns: repeat(4, 1fr); padding: var(--sp-6); }
}

/* ===== Sobre / Quem somos ===== */
.sobre__inner { display: grid; grid-template-columns: 1fr; gap: var(--sp-12); align-items: center; }
.photo-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.photo-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
.photo-grid__logo {
  position: absolute; inset: 0; margin: auto;
  width: 88px; height: 160px; border-radius: var(--r-pill);
  background: #fff; color: var(--teal-700);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 30px;
  box-shadow: var(--sh-md);
}
.photo-grid__logo .logo__amp { color: var(--orange-500); }
.stats { display: flex; flex-wrap: wrap; gap: var(--sp-8); margin: var(--sp-6) 0 var(--sp-8); }
.stats li { display: flex; flex-direction: column; }
.stats strong { font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--blue-500); line-height: 1; }
.stats span { font-size: 14px; color: var(--ink-400); margin-top: 2px; }
@media (min-width: 900px) { .sobre__inner { grid-template-columns: 1fr 1.1fr; gap: var(--sp-16); } }

/* ===== Cards de brinquedos ===== */
.cards { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); }
.card {
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-md);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: var(--sp-4) var(--sp-4) var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.card__title { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--teal-700); }
.card__specs { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.spec { background: var(--blue-50); color: var(--blue-700); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill); }
.card__desc { font-size: 14px; color: var(--ink-600); flex: 1; }@media (min-width: 560px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .cards { grid-template-columns: repeat(4, 1fr); } }

/* ===== Passo a passo ===== */
.steps { display: grid; grid-template-columns: 1fr; gap: var(--sp-8); }
.step { background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-md); padding: var(--sp-8) var(--sp-6) var(--sp-6); text-align: center; }
.step__num {
  position: relative; display: inline-grid; place-items: center;
  width: 74px; height: 74px; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 700; font-size: 30px; color: #fff;
  margin-bottom: var(--sp-4); padding-top: 10px;
}
.step__num--blue   { background: var(--blue-500); }
.step__num--green  { background: var(--green-500); }
.step__num--orange { background: var(--orange-500); }
.step__num--red    { background: var(--red-500); }
.step__eyes { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; }
.eye { width: 14px; height: 14px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.eye__pupil { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-800); transform: translate(0, 0); transition: transform .12s ease-out; will-change: transform; }
.step__title { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--teal-700); margin-bottom: var(--sp-2); }
.step p { font-size: 15px; color: var(--ink-600); }
@media (min-width: 560px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* ===== Benefícios (azul) ===== */
.beneficios { position: relative; overflow: hidden; }
.beneficios__cloud { top: 10%; right: 5%; width: 90px; opacity: .45; }
.beneficios__star  { bottom: 14%; left: 6%; width: 30px; opacity: .6; }
.benefit-cards { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); }
.benefit { border-radius: var(--r-lg); padding: var(--sp-8) var(--sp-6); color: #fff; box-shadow: var(--sh-md); }
.benefit--green  { background: var(--green-500); }
.benefit--red    { background: var(--red-500); }
.benefit--orange { background: var(--orange-500); }
.benefit__ico { width: 54px; height: 54px; border-radius: var(--r-md); background: rgba(255,255,255,.18); display: grid; place-items: center; margin-bottom: var(--sp-4); }
.benefit__ico .icon { width: 30px; height: 30px; color: #fff; }
.benefit__title { color: #fff; font-size: 20px; margin-bottom: var(--sp-2); }
.benefit p { color: rgba(255,255,255,.92); font-size: 15px; }
@media (min-width: 820px) { .benefit-cards { grid-template-columns: repeat(3, 1fr); } }

/* ===== Depoimentos ===== */
.reviews-wrap { position: relative; }
.reviews {
  display: flex; gap: var(--sp-6);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: var(--sp-2) 2px var(--sp-4);
  scrollbar-width: none; -ms-overflow-style: none;
}
.reviews::-webkit-scrollbar { display: none; }
.reviews-wrap .review { scroll-snap-align: start; flex: 0 0 auto; width: 85%; }
.reviews__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: var(--r-pill);
  display: none; place-items: center;
  background: #fff; color: var(--blue-700); box-shadow: var(--sh-md);
  transition: background var(--t-fast), transform var(--t-fast);
}
.reviews__arrow:hover { background: var(--blue-50); }
.reviews__arrow .icon { width: 24px; height: 24px; }
.reviews__arrow--prev { left: -8px; }
.reviews__arrow--next { right: -8px; }
.reviews__arrow--prev .icon { transform: rotate(90deg); }
.reviews__arrow--next .icon { transform: rotate(-90deg); }
.review { background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-md); padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-4); }
.review__head { display: flex; align-items: center; justify-content: space-between; }
.review__stars { display: inline-flex; gap: 2px; color: var(--yellow-500); }
.review__stars .icon { width: 20px; height: 20px; }
.review__g { width: 24px; height: 24px; }
.review__text { color: var(--ink-600); font-size: 15px; flex: 1; }
.review__author { display: flex; align-items: center; gap: var(--sp-3); }
.review__avatar { width: 44px; height: 44px; border-radius: var(--r-pill); background: var(--blue-100); color: var(--blue-700); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 18px; flex: none; }
.review__author strong { display: block; color: var(--ink-800); font-size: 15px; }
.review__author span { font-size: 13px; color: var(--ink-400); }
@media (min-width: 640px) { .reviews-wrap .review { width: 46%; } }
@media (min-width: 1000px) {
  .reviews-wrap .review { width: calc((100% - 2 * var(--sp-6)) / 3); }
  .reviews__arrow { display: grid; }
}

/* ===== Mapa / Área de atendimento (azul) ===== */
.mapa__inner { display: grid; grid-template-columns: 1fr; gap: var(--sp-12); align-items: center; }
.cities { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2) var(--sp-4); margin: var(--sp-6) 0 var(--sp-8); }
.cities li { display: flex; align-items: center; gap: var(--sp-2); color: var(--ink-800); font-weight: 600; font-size: 15px; }
.cities .icon { color: var(--green-500); width: 20px; height: 20px; }
.mapa__embed { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-lg); border: 1px solid var(--border); background: var(--blue-50); }
.mapa__embed iframe { width: 100%; height: 340px; border: 0; display: block; }
@media (min-width: 900px) {
  .mapa__inner { grid-template-columns: 1fr 1.05fr; gap: var(--sp-16); }
  .mapa__embed iframe { height: 430px; }
}

/* ===== FAQ ===== */
.accordion { max-width: 820px; margin-inline: auto; }
.accordion__item { border-bottom: 1px solid var(--border); }
.accordion__trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  text-align: left; padding: var(--sp-6) var(--sp-2);
  font-family: var(--font-display); font-weight: 500; font-size: 18px; color: var(--teal-800);
  transition: color var(--t-fast);
}
.accordion__trigger:hover { color: var(--blue-600); }
.accordion__icon { width: 24px; height: 24px; color: var(--blue-500); transition: transform var(--t-base); flex: none; }
.accordion__item.is-open .accordion__icon { transform: rotate(180deg); }
.accordion__panel { max-height: 0; overflow: hidden; transition: max-height var(--t-base); }
.accordion__content { padding: 0 var(--sp-2) var(--sp-6); color: var(--ink-600); }
.faq-foot { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; justify-content: center; text-align: center; margin-top: var(--sp-12); font-weight: 600; color: var(--ink-600); }

/* ===== CTA final (glass sobre foto com efeito revelação) ===== */
.cta-final { 
  position: relative; 
  isolation: isolate; 
  padding-block: var(--sp-24); 
  display: grid; 
  place-items: center; 
  
  /* CRUCIAL: Cria a "janela" que recorta a imagem fixa, impedindo que ela vaze para outras seções */
  clip-path: inset(0); 
}

.cta-final__bg { 
  /* Altera para fixed para a foto ficar travada na tela enquanto o site rola */
  position: fixed; 
  inset: 0; 
  width: 100%; 
  /* Opcional: usar 100vh garante que ela cubra a tela toda durante a rolagem fixed */
  height: 100vh; 
  object-fit: cover; 
  z-index: -2; 
}

.cta-final__inner { 
  width: 100%; 
  display: flex; 
  justify-content: center; 
}

.glass {
  max-width: 760px; 
  text-align: center;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(10px); 
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--r-xl);
  padding: var(--sp-12) var(--sp-8);
  color: #fff; 
  box-shadow: var(--sh-lg);
}

.glass .eyebrow { color: var(--yellow-400); }
.glass h2 { color: #fff; }
.glass h2 strong { color: var(--yellow-400); }
.glass p { color: rgba(255,255,255,.92); margin: var(--sp-4) 0 var(--sp-8); font-size: 18px; }

/* ============================================================
   Acessibilidade: conteúdo só para leitores de tela
   ============================================================ */
.sr-only {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   Alternância azul/branco — ajustes de texto por contexto
   ============================================================ */
/* Cards brancos dentro de seções azuis mantêm o título em teal */
.section--blue .step__title { color: var(--teal-700); }

/* Sobre (fundo azul) */
.sobre.section--blue .sobre__content p { color: rgba(255,255,255,.92); }
.sobre.section--blue .sobre__content p strong { color: #fff; }
.section--blue .stats strong { color: var(--yellow-400); }
.section--blue .stats span { color: rgba(255,255,255,.78); }

/* FAQ (fundo azul) */
.faq.section--blue .accordion__item { border-color: rgba(255,255,255,.18); }
.faq.section--blue .accordion__trigger { color: #fff; }
.faq.section--blue .accordion__trigger:hover { color: var(--lime-400); }
.faq.section--blue .accordion__icon { color: var(--lime-400); }
.faq.section--blue .accordion__content { color: rgba(255,255,255,.85); }
.faq.section--blue .faq-foot { color: rgba(255,255,255,.9); }

/* ============================================================
   Lista de desejos (carrinho)
   ============================================================ */
/* Botão no card */
.card__wish { width: 100%; justify-content: center; }
.card__wish .wish-add, .card__wish .wish-on { display: inline-flex; align-items: center; gap: 6px; }
.card__wish .wish-on { display: none; }
.card__wish.is-added .wish-add { display: none; }
.card__wish.is-added .wish-on { display: inline-flex; }
.card__wish.is-added { background: var(--green-500); }
.card__wish.is-added:hover { background: var(--green-600); }

/* Botão flutuante (carrinho) */
.wish-fab {
  position: fixed; right: 20px; bottom: 92px; z-index: var(--z-float);
  width: 60px; height: 60px; border-radius: var(--r-pill);
  background: var(--blue-500); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-lg);
  transition: background var(--t-fast), transform var(--t-fast);
}
.wish-fab:hover { background: var(--blue-600); transform: scale(1.06); }
.wish-fab .icon { width: 30px; height: 30px; }
.wish-fab__count {
  position: absolute; top: -4px; right: -4px;
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: var(--r-pill); background: var(--orange-500); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}

/* Overlay + gaveta */
.wish-overlay { position: fixed; inset: 0; z-index: 1300; background: rgba(40,58,68,.5); opacity: 0; transition: opacity .3s ease; }
.wish-overlay.is-open { opacity: 1; }
.wish-drawer {
  position: fixed; top: 0; right: 0; z-index: 1310;
  width: min(380px, 90vw); height: 100dvh;
  background: #fff; box-shadow: var(--sh-lg);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s ease;
}
.wish-drawer.is-open { transform: translateX(0); }
.wish-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-6); border-bottom: 1px solid var(--border); }
.wish-drawer__title { display: flex; align-items: center; gap: var(--sp-2); font-size: 22px; color: var(--teal-700); }
.wish-drawer__title .icon { width: 24px; height: 24px; color: var(--blue-500); }
.wish-drawer__close { width: 40px; height: 40px; border-radius: var(--r-pill); display: grid; place-items: center; color: var(--ink-600); }
.wish-drawer__close:hover { background: var(--blue-50); color: var(--blue-700); }
.wish-drawer__body { flex: 1; overflow-y: auto; padding: var(--sp-4) var(--sp-6); }
.wish-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.wish-item { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); background: var(--blue-50); border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4); }
.wish-item__name { font-weight: 700; color: var(--ink-800); }
.wish-item__remove { width: 34px; height: 34px; border-radius: var(--r-sm); display: grid; place-items: center; color: var(--ink-400); flex: none; }
.wish-item__remove:hover { background: var(--error-bg); color: var(--error); }
.wish-empty { text-align: center; color: var(--ink-400); padding: var(--sp-12) var(--sp-4); line-height: 1.6; }
.wish-drawer__foot { padding: var(--sp-6); border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: var(--sp-3); }
.wish-send { width: 100%; }
.wish-send.is-disabled { background: var(--border); color: var(--ink-200); box-shadow: none; pointer-events: none; }
.wish-clear { color: var(--ink-400); font-weight: 600; font-size: 14px; align-self: center; }
.wish-clear:hover { color: var(--error); }
body.wish-lock { overflow: hidden; }

/* ============================================================
   Catálogo (filtro) + Página do brinquedo
   ============================================================ */
.cat-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); margin-bottom: var(--sp-12); }
.cat-chip { font-family: var(--font-display); font-weight: 600; font-size: 14px; padding: 8px 16px; border-radius: var(--r-pill); background: var(--blue-50); color: var(--blue-700); transition: background var(--t-fast), color var(--t-fast); }
.cat-chip:hover { background: var(--blue-100); }
.cat-chip.is-active { background: var(--blue-500); color: #fff; }

.brinquedo__inner { display: grid; grid-template-columns: 1fr; gap: var(--sp-8); align-items: start; }
.brinquedo__main { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-md); background: var(--blue-50); aspect-ratio: 4 / 3; }
.brinquedo__main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brinquedo__thumbs { display: flex; gap: var(--sp-2); margin-top: var(--sp-3); flex-wrap: wrap; }
.brinquedo__thumb { width: 76px; height: 64px; border-radius: var(--r-md); overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--blue-50); cursor: pointer; }
.brinquedo__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brinquedo__thumb.is-active { border-color: var(--blue-500); }
.brinquedo__specs { margin: var(--sp-4) 0; }
.brinquedo__desc { color: var(--ink-600); margin-bottom: var(--sp-6); }
.brinquedo__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
@media (min-width: 900px) {
  .brinquedo__inner { grid-template-columns: 1fr 1fr; gap: var(--sp-12); }
}
