/* ================================================================
   ULTRAFARMA EDU CHAVES — styles.css
   Paleta: #f3c60a (amarelo) · #0f0f0f (preto) · #ffffff (branco)
   ================================================================ */

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

:root {
  --yellow:       #f3c60a;
  --yellow-dark:  #d4a900;
  --black:        #0f0f0f;
  --white:        #ffffff;
  --gray-100:     #f7f7f5;
  --gray-200:     #ebebeb;
  --gray-400:     #aaaaaa;
  --gray-600:     #555555;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --radius:       1rem;
  --radius-sm:    0.5rem;
  --shadow-card:  0 4px 24px -4px rgba(0,0,0,0.08);
  --shadow-cta:   0 12px 40px -8px rgba(243,198,10,0.35);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }


/* ================================================================
   UTILITIES
   ================================================================ */

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

.section           { padding: 5rem 0; }
.section--dark     { background: var(--black); color: var(--white); }
.section--gray     { background: var(--gray-100); }
.section--yellow   { background: var(--yellow);  color: var(--black); }

/* Labels (pill badges) */
.label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: 999px; padding: 0.4rem 1rem;
}
.label--light { background: rgba(243,198,10,0.15); color: var(--black); }
.label--dark  {
  background: rgba(243,198,10,0.15); color: var(--yellow);
  border: 1px solid rgba(243,198,10,0.35);
}
.label__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--yellow); flex-shrink: 0;
}

/* Headings */
.heading {
  font-family: var(--font-display);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.02em;
}
.heading--xl { font-size: 55px; }
.heading--lg { font-size: clamp(2rem,  4.5vw, 3.5rem); }
.heading--md { font-size: clamp(1.6rem, 3vw, 2.6rem); }
.heading--sm { font-size: clamp(1.2rem, 2vw, 1.6rem); }

.text-yellow { color: var(--yellow); }
.text-muted  { color: var(--gray-600); }


/* ================================================================
   BUTTONS
   ================================================================ */

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 600;
  border-radius: 999px; cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none; border: none;
}
.btn--lg { padding: 1rem 2rem; font-size: 1rem; }
.btn--md { padding: 0.7rem 1.5rem; font-size: 0.875rem; }

.btn--yellow {
  background: var(--yellow); color: var(--black);
  box-shadow: var(--shadow-cta);
}
.btn--yellow:hover { background: var(--yellow-dark); transform: scale(1.02); }

.btn--black { background: var(--black); color: var(--white); }
.btn--black:hover { opacity: 0.88; transform: scale(1.02); }

.btn--outline {
  background: transparent; color: var(--black);
  border: 1.5px solid var(--gray-200);
}
.btn--outline:hover { background: var(--gray-100); }

.btn--outline-white {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn--outline-white:hover { background: rgba(255,255,255,0.08); }


/* ================================================================
   NAV
   ================================================================ */

.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow 0.2s;
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 1.5rem; max-width: 1200px; margin: 0 auto;
}
.nav__logo { display: flex; align-items: center; gap: 0.5rem; }
.nav__logo-img {
  height: 26px; width: 161px; flex: 0 0 auto;
  object-fit: contain; display: block;
}
.nav__sub {
  font-size: 0.75rem; color: var(--gray-400);
  font-weight: 500;
}
.nav__cta { display: none; }
@media (min-width: 640px) { .nav__cta { display: inline-flex; } }

/* Botão WhatsApp no header — só mobile */
.nav__wa { display: none; }
@media (max-width: 639px) {
  .nav__wa {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: #25D366; color: #fff; flex: 0 0 auto;
    box-shadow: 0 4px 14px -2px rgba(37,211,102,0.5);
    transition: transform 0.18s;
  }
  .nav__wa:active { transform: scale(0.92); }
}


/* ================================================================
   HERO
   ================================================================ */

.hero {
  position: relative; overflow: hidden;
  background: var(--black); color: var(--white);
}
.hero::before {
  content: '';
  position: absolute; top: -60px; right: -80px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(243,198,10,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero__glow { display: none; }

/* Banner INTEIRO — imagem real, nunca corta em nenhuma resolução */
.hero__picture { display: block; width: 100%; }
.hero__img {
  display: block; width: 100%; height: auto;   /* banner INTEIRO, proporcional, nunca corta */
  position: relative; z-index: 1;
}
/* Texto empilhado abaixo do banner (padrão / mobile) — sem risco de corte */
.hero > .container {
  position: relative; z-index: 2;
  padding-top: 2.5rem; padding-bottom: 3rem;
}
/* Desktop: banner de fundo, texto sobreposto à ESQUERDA (área escura) */
@media (min-width: 992px) {
  .hero > .container {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    justify-content: center;      /* centro vertical */
    align-items: flex-start;      /* texto colado à esquerda */
    text-align: left;
    padding-top: 0; padding-bottom: 0;
  }
  .hero__title, .hero__sub { max-width: 46%; }  /* mantém texto na metade escura, longe da imagem */
  .hero::before { display: none; }
}

.hero__badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(243,198,10,0.12);
  border: 1px solid rgba(243,198,10,0.3);
  color: var(--yellow); border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero__badge svg { width: 14px; height: 14px; flex-shrink: 0; }

.hero__title { max-width: 800px; margin-bottom: 1.25rem; }

.hero__sub {
  font-size: 1.1rem; color: rgba(255,255,255,0.72);
  max-width: 560px; margin-bottom: 2.5rem; line-height: 1.65;
}

.hero__actions {
  display: flex; flex-wrap: wrap;
  align-items: center; gap: 1rem;
}

.hero__clock {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem; color: rgba(255,255,255,0.6);
}
.hero__clock svg { width: 16px; height: 16px; color: var(--yellow); }

/* Identificação da empresa operadora — transparência do anunciante */
.hero__operator {
  margin-top: 1.75rem;
  font-size: 0.78rem; line-height: 1.6;
  color: rgba(255,255,255,0.42);
}
.hero__operator strong { color: rgba(255,255,255,0.6); font-weight: 600; }
/* Desktop: o .container do hero é absolute/inset:0 com altura travada pelo banner,
   e .hero tem overflow:hidden. Se esta linha ficasse no fluxo centralizado, a pilha
   estouraria e seria CORTADA entre 992px e ~1150px. Fixamos no rodapé do hero. */
@media (min-width: 992px) {
  .hero__operator {
    position: absolute; left: 1.5rem; bottom: 1.1rem;
    margin-top: 0; max-width: 60%;
    font-size: 0.72rem;
    z-index: 3;
  }
}

.hero__stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2rem; margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  max-width: 560px;
}
.stat__val {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 700; color: var(--yellow);
}
.stat__lbl {
  font-size: 0.65rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: rgba(255,255,255,0.5); margin-top: 0.2rem;
}


/* ================================================================
   CARDS GRID
   ================================================================ */

.cards { display: grid; gap: 1rem; }
@media (min-width: 640px) { .cards--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .cards--3 { grid-template-columns: repeat(3,1fr); } }

.card {
  position: relative; overflow: hidden;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius);
  padding: 2rem; background: var(--white);
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s, background 0.4s;
}
.card:hover {
  border-color: var(--yellow);
  background: var(--yellow);
  box-shadow: 0 12px 36px -10px rgba(243,198,10,0.5);
  transform: translateY(-4px);
}
/* Círculo translúcido que orbita ao passar o mouse */
.card::after {
  content: ''; position: absolute; z-index: 0;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 70%);
  top: -70px; left: -70px;
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.card:hover::after { opacity: 1; animation: cardOrbit 7s linear infinite; }
@keyframes cardOrbit {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(230px, 30px) scale(1.2); }
  50%  { transform: translate(250px, 190px) scale(1); }
  75%  { transform: translate(10px, 200px) scale(1.2); }
  100% { transform: translate(0, 0) scale(1); }
}
/* Conteúdo acima do círculo */
.card__icon, .card__title, .card__text { position: relative; z-index: 1; }
.card__icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(243,198,10,0.12);
  color: var(--black);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; transition: background 0.3s, color 0.3s;
}
.card:hover .card__icon { background: rgba(255,255,255,0.25); color: #fff; }
.card__icon svg { width: 22px; height: 22px; }
.card__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.05rem; margin-bottom: 0.5rem; letter-spacing: -0.01em;
  transition: color 0.3s;
}
.card__text { font-size: 0.875rem; color: var(--gray-600); line-height: 1.6; transition: color 0.3s; }
.card:hover .card__title { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.22); }
.card:hover .card__text  { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.22); }

/* ---- Carrossel ---- */
.carousel { position: relative; }
.carousel__track {
  display: flex; gap: 1rem;
  overflow-x: auto; overflow-y: visible;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0.75rem 0.25rem;
  scrollbar-width: none; -ms-overflow-style: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > .card {
  flex: 0 0 86%; scroll-snap-align: center;
}
@media (min-width: 640px) {
  .carousel__track > .card { flex-basis: calc((100% - 1rem) / 2); scroll-snap-align: start; }
}
@media (min-width: 900px) {
  .carousel__track > .card { flex-basis: calc((100% - 2rem) / 3); }
}
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--gray-200); background: var(--white);
  box-shadow: var(--shadow-card); color: var(--black);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2; transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}
.carousel__btn:hover { background: var(--yellow); border-color: var(--yellow); }
.carousel__btn:disabled { opacity: 0.3; cursor: default; }
.carousel__btn:disabled:hover { background: var(--white); border-color: var(--gray-200); }
.carousel__btn--prev { left: -10px; }
.carousel__btn--next { right: -10px; }
.carousel__dots { display: flex; gap: 0.4rem; justify-content: center; margin-top: 1.25rem; }
.carousel__dot {
  width: 8px; height: 8px; border-radius: 50%; padding: 0; border: none;
  background: var(--gray-200); cursor: pointer;
  transition: background 0.2s, width 0.2s;
}
.carousel__dot.is-active { background: var(--yellow); width: 22px; border-radius: 5px; }
@media (max-width: 639px) { .carousel__btn { display: none; } }


/* ================================================================
   PROBLEM / SOLUTION
   ================================================================ */

.ps { display: grid; gap: 2.5rem; align-items: stretch; }
@media (min-width: 860px) { .ps { grid-template-columns: 1fr 1fr; } }

.ps__problem h2 { margin: 1.25rem 0 2rem; }

.ps__list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.ps__item {
  display: flex; gap: 0.875rem; align-items: flex-start;
  font-size: 0.925rem; color: rgba(255,255,255,0.75);
}
.ps__check { flex-shrink: 0; margin-top: 0.1rem; }
.ps__check svg { width: 18px; height: 18px; color: var(--yellow); }

.ps__solution {
  background: var(--yellow); color: var(--black);
  border-radius: var(--radius); padding: 2.5rem;
  position: relative; overflow: hidden;
}
.ps__solution::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.ps__solution h3     { margin: 1rem 0 0.75rem; }
.ps__solution > p    { font-size: 0.9rem; color: rgba(0,0,0,0.7); margin-bottom: 1.5rem; line-height: 1.65; }

.steps { display: flex; flex-direction: column; gap: 0.625rem; margin-bottom: 2rem; }
.step {
  display: flex; align-items: center; gap: 0.75rem;
  background: rgba(0,0,0,0.08); border-radius: 0.75rem;
  padding: 0.75rem 1rem; font-size: 0.875rem; font-weight: 500;
  position: relative; z-index: 1;
}
.step__num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--black); color: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; flex-shrink: 0;
}


/* ================================================================
   TESTIMONIALS
   ================================================================ */

.testimonial {
  border: 1.5px solid var(--gray-200); border-radius: var(--radius);
  padding: 2rem; background: var(--white);
  display: flex; flex-direction: column;
}
.testimonial__quote {
  font-family: var(--font-display); font-size: 3rem; line-height: 1;
  color: var(--yellow); margin-bottom: 0.5rem;
}
.testimonial__text { font-size: 0.925rem; line-height: 1.7; flex: 1; color: var(--gray-600); }
.testimonial__author {
  margin-top: 1.5rem; padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
  font-size: 0.8rem; font-weight: 600; color: var(--gray-400);
}
.testimonial__note {
  font-size: 0.72rem; color: var(--yellow); margin-top: 0.75rem;
  background: rgba(243,198,10,0.1); border-radius: 0.5rem;
  padding: 0.5rem 0.75rem; display: inline-block;
}


/* ================================================================
   AVALIAÇÕES (Google)
   ================================================================ */

.reviews {
  margin-top: 2rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.reviews__score {
  font-family: var(--font-display); font-weight: 700;
  font-size: 3.5rem; line-height: 1;
}
.reviews__stars {
  color: var(--yellow); font-size: 1.7rem; letter-spacing: 0.15em;
}
/* 5ª estrela parcial — não afirmar visualmente nota 5,0 quando a nota é 4,7 */
.reviews__star--half {
  background: linear-gradient(90deg, var(--yellow) 70%, var(--gray-200) 70%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.reviews__count {
  color: var(--gray-600); font-size: 0.95rem; margin-bottom: 1rem;
}


/* ================================================================
   MID CTA
   ================================================================ */

.mid-cta { text-align: center; }
.mid-cta .label   { margin-bottom: 1rem; }
.mid-cta h2       { margin-bottom: 1rem; }
.mid-cta > .container > p {
  margin: 0 auto 2rem; font-size: 1.05rem;
  color: rgba(0,0,0,0.7); max-width: 520px;
}


/* ================================================================
   FAQ
   ================================================================ */

.faq-list {
  display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2.5rem;
}

details.faq-item {
  border: 1.5px solid var(--gray-200); border-radius: var(--radius);
  padding: 1.25rem 1.5rem; background: var(--white);
  transition: border-color 0.2s;
}
details.faq-item[open] { border-color: var(--yellow); }

details.faq-item summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: 0.975rem;
}
details.faq-item summary::-webkit-details-marker { display: none; }

.faq-item__icon { flex-shrink: 0; }
.faq-item__icon svg { width: 18px; height: 18px; color: var(--yellow); }

.faq-toggle {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; line-height: 1; flex-shrink: 0;
  color: var(--gray-400); transition: transform 0.25s, color 0.2s;
}
details[open] .faq-toggle { transform: rotate(45deg); color: var(--black); }

.faq-item__answer {
  margin-top: 0.875rem; padding-left: 1.625rem;
  font-size: 0.875rem; color: var(--gray-600); line-height: 1.7;
  animation: fadeIn 0.2s ease;
}


/* ================================================================
   GUARANTEE
   ================================================================ */

.guarantee { text-align: center; }
.guarantee__icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: var(--black); color: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
}
.guarantee__icon svg { width: 30px; height: 30px; }
.guarantee h2  { margin-bottom: 1rem; }
.guarantee p   { font-size: 1rem; color: var(--gray-600); max-width: 580px; margin: 0 auto; line-height: 1.7; }


/* ================================================================
   STORE INFO
   ================================================================ */

.store { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 860px) { .store { grid-template-columns: 1fr 1fr; } }

.info-rows { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2.5rem; }
.info-row { display: flex; gap: 1rem; align-items: flex-start; }
.info-row__icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(243,198,10,0.12); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.info-row__icon svg { width: 20px; height: 20px; }
.info-row__label {
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--gray-400); margin-bottom: 0.2rem;
}
.info-row__val { font-weight: 500; font-size: 0.925rem; line-height: 1.55; }

.store__actions { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 2rem; }

.store__map {
  aspect-ratio: 4/3; border-radius: var(--radius);
  background: var(--gray-100); overflow: hidden;
  position: relative; border: 1.5px solid var(--gray-200);
}
.store__map-open {
  position: absolute; right: 0.75rem; bottom: 0.75rem; z-index: 2;
  background: var(--black); color: var(--white);
  font-family: var(--font-display); font-weight: 600; font-size: 0.78rem;
  padding: 0.5rem 0.9rem; border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25); transition: background 0.18s;
}
.store__map-open:hover { background: var(--yellow); color: var(--black); }
.store__map-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.75rem;
}
.store__map-pin {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--black); color: var(--yellow);
  display: flex; align-items: center; justify-content: center;
}
.store__map-pin svg { width: 28px; height: 28px; }
.store__map-text { text-align: center; }
.store__map-text strong { font-family: var(--font-display); font-size: 1rem; }
.store__map-text span  { display: block; font-size: 0.8rem; color: var(--gray-400); margin-top: 0.2rem; }
.store__map-link {
  color: var(--yellow); font-size: 0.8rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.5rem;
}


/* ================================================================
   FINAL CTA
   ================================================================ */

.final-cta { text-align: center; position: relative; overflow: hidden; padding: 6rem 0 2rem; }
.final-cta::before {
  content: '';
  position: absolute; left: -120px; top: 50%; transform: translateY(-50%);
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(243,198,10,0.14) 0%, transparent 70%);
  pointer-events: none;
}
.final-cta::after {
  content: '';
  position: absolute; right: -120px; top: 50%; transform: translateY(-50%);
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(243,198,10,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.final-cta__inner { position: relative; z-index: 1; }
.cta-logo { width: 235px; max-width: 78%; height: auto; display: block; margin: 0 auto 1.5rem; }
.final-cta h2    { margin: 1.5rem 0 0.75rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.final-cta > .container > p {
  font-size: 1.05rem; color: rgba(255,255,255,0.65);
  max-width: 480px; margin: 0 auto;
}
.final-cta__sub {
  margin-top: 3.25rem; font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: rgba(255,255,255,0.35);
}

.finalctabtn {
  margin-bottom: 20px;
  margin-top: 20px;
}


/* ================================================================
   FOOTER
   ================================================================ */

.footer {
  background: rgba(10,10,10,0.98); color: rgba(255,255,255,0.45);
  padding: 3rem 1.5rem 2rem; font-size: 0.8rem;
}
.footer__inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 1.5rem;
}
.footer__brand {
  display: flex; align-items: center; gap: 0.75rem;
}
.footer__logo {
  height: 20px; width: 124px; flex: 0 0 auto;
  object-fit: contain; opacity: 0.8;
}
.footer__fantasy {
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  padding-left: 0.75rem; border-left: 1px solid rgba(255,255,255,0.15);
}

/* Bloco de identificação legal do anunciante (transparência / LGPD / Google Ads) */
.footer__legal p { margin: 0 0 0.75rem; line-height: 1.7; }
.footer__legal strong { color: rgba(255,255,255,0.7); }
.footer__legal a { color: rgba(255,255,255,0.6); text-decoration: underline; }
.footer__legal a:hover { color: var(--yellow); }
.footer__disclaimer {
  font-size: 0.75rem; color: rgba(255,255,255,0.3);
  max-width: 620px;
}

.footer__links {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.08);
}
.footer__links a { color: rgba(255,255,255,0.55); text-decoration: none; }
.footer__links a:hover { color: var(--yellow); text-decoration: underline; }

.footer__copy { font-size: 0.75rem; color: rgba(255,255,255,0.28); }

@media (min-width: 768px) {
  .footer__links { justify-content: flex-start; }
}


/* ================================================================
   PÁGINAS INSTITUCIONAIS (política de privacidade / termos)
   ================================================================ */

.legal { padding: 7rem 0 4rem; }
.legal__inner { max-width: 780px; margin: 0 auto; }
.legal__updated {
  margin-top: 1rem; font-size: 0.82rem; color: var(--gray-600);
}
.legal h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.35rem; letter-spacing: -0.01em;
  margin: 2.75rem 0 0.85rem; padding-top: 1.75rem;
  border-top: 1px solid var(--gray-200);
}
.legal h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.05rem; margin: 1.75rem 0 0.5rem;
}
.legal p, .legal li { color: #333; line-height: 1.75; }
.legal p  { margin-bottom: 1rem; }
.legal ul { margin: 0 0 1.25rem 1.25rem; }
.legal li { margin-bottom: 0.5rem; }
.legal a  { color: var(--yellow-dark); text-decoration: underline; }
.legal a:hover { color: var(--black); }
.legal__box {
  background: var(--gray-100); border-radius: var(--radius);
  padding: 1.5rem; margin: 1.5rem 0; font-size: 0.9rem; line-height: 1.8;
}
.legal__back { display: inline-flex; margin-top: 3rem; }


/* ================================================================
   AVISO DE COOKIES (LGPD)
   ================================================================ */

.cookie-notice {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 300;
  background: rgba(10,10,10,0.97);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 18px 48px -12px rgba(0,0,0,0.7);
  display: flex; flex-direction: column; gap: 1rem;
  color: rgba(255,255,255,0.7); font-size: 0.82rem; line-height: 1.6;
  animation: cookieUp 0.35s ease-out both;
}
.cookie-notice[hidden] { display: none; }
.cookie-notice__text { margin: 0; }
.cookie-notice__text a { color: var(--yellow); text-decoration: underline; }
.cookie-notice__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.cookie-notice__actions .btn { flex: 1 1 auto; justify-content: center; }

@keyframes cookieUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (min-width: 768px) {
  .cookie-notice {
    left: auto; right: 1.5rem; bottom: 1.5rem;
    max-width: 420px;
  }
  .cookie-notice__actions .btn { flex: 0 0 auto; }
}
/* Não deixar o FAB tapar o aviso no mobile */
@media (max-width: 767px) {
  .cookie-notice { bottom: 5.5rem; }
}


/* ================================================================
   FLOATING WHATSAPP BUTTON
   ================================================================ */

.fab {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 200;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px -4px rgba(37,211,102,0.5);
  transition: transform 0.18s;
}
.fab:hover { transform: scale(1.08); }
.fab svg { width: 28px; height: 28px; position: relative; z-index: 1; }
/* Anel pulsante do FAB */
.fab::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: #25D366; z-index: 0;
  animation: fabPulse 2.2s ease-out infinite;
}
@keyframes fabPulse {
  0%   { transform: scale(1);   opacity: 0.55; }
  70%  { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* Tooltip do FAB */
.fab__tooltip {
  position: absolute; right: calc(100% + 0.75rem); top: 50%; transform: translateY(-50%);
  background: var(--black); color: var(--white);
  font-size: 0.78rem; font-weight: 600; white-space: nowrap;
  padding: 0.4rem 0.75rem; border-radius: 0.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.fab:hover .fab__tooltip { opacity: 1; }


/* ================================================================
   ANIMATIONS
   ================================================================ */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

.animate-on-scroll {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.animate-on-scroll.visible {
  opacity: 1; transform: none;
}

/* Faixa deslizante (ticker) */
.ticker {
  background: var(--yellow); color: var(--black);
  overflow: hidden; padding: 0.8rem 0;
  border-top: 1px solid rgba(0,0,0,0.1);
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.ticker__track {
  display: inline-flex; white-space: nowrap; will-change: transform;
  animation: tickerScroll 32s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group { display: inline-flex; align-items: center; }
.ticker__item {
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0 1.25rem; display: inline-flex; align-items: center;
}
.ticker__sep { color: rgba(0,0,0,0.4); font-size: 0.7rem; }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Glows do hero em movimento (usados no mobile) */
@keyframes heroGlow1 {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(-110px, 90px) scale(1.55); }
  66%  { transform: translate(80px, 150px) scale(1.2); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes heroGlow2 {
  0%   { transform: translate(0, 0) scale(1); opacity: 1; }
  33%  { transform: translate(120px, -70px) scale(1.6); opacity: 0.5; }
  66%  { transform: translate(-70px, -120px) scale(1.3); opacity: 0.8; }
  100% { transform: translate(0, 0) scale(1); opacity: 1; }
}
@keyframes heroGlow3 {
  0%   { transform: translate(-50%, 0) scale(0.9); opacity: 0.7; }
  50%  { transform: translate(-50%, -80px) scale(1.4); opacity: 1; }
  100% { transform: translate(-50%, 0) scale(0.9); opacity: 0.7; }
}
@keyframes heroHue {
  0%, 100% { filter: hue-rotate(0deg); }
  50%      { filter: hue-rotate(-18deg); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  .fab::before { animation: none; opacity: 0; }
  .card:hover::after { animation: none; }
  .hero::before, .hero::after { animation: none; }
}


/* ================================================================
   RESPONSIVE TWEAKS
   ================================================================ */

@media (max-width: 639px) {
  .section { padding: 3.5rem 0; }
  .hero__stats { gap: 1rem; }
  .stat__val   { font-size: 1.5rem; }
  .ps__solution { padding: 2rem; }

  /* Hero: "Ultrafarma" grande, "Parque Edu Chaves" bem pequeno (deixa ver o banner) */
  .hero__title .text-yellow {
    display: inline-block;
    font-size: 0.85rem; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase;
    margin-top: 0.35rem;
  }

}

/* Sem banner abaixo do desktop (≤991px) — apenas a animação de glows */
@media (max-width: 991px) {
  .hero { padding: 3.5rem 0 3rem; }
  .hero__img { display: none; }
  .hero > .container { position: relative; z-index: 2; padding-top: 0; padding-bottom: 0; }

  .hero::before {
    top: -90px; right: -110px;
    width: 560px; height: 560px;
    background: radial-gradient(circle, rgba(243,198,10,0.34) 0%, rgba(243,198,10,0.08) 45%, transparent 72%);
    animation: heroGlow1 7s ease-in-out infinite, heroHue 10s ease-in-out infinite;
  }
  .hero::after {
    content: ''; position: absolute; bottom: -130px; left: -120px;
    width: 480px; height: 480px; border-radius: 50%;
    background: radial-gradient(circle, rgba(243,198,10,0.30) 0%, rgba(243,198,10,0.06) 45%, transparent 72%);
    pointer-events: none;
    animation: heroGlow2 8s ease-in-out infinite, heroHue 12s ease-in-out infinite;
  }
  .hero__glow {
    display: block; position: absolute; z-index: 0;
    top: 30%; left: 50%; width: 320px; height: 320px; border-radius: 50%;
    background: radial-gradient(circle, rgba(243,198,10,0.26) 0%, transparent 68%);
    pointer-events: none;
    animation: heroGlow3 6s ease-in-out infinite;
  }
}
