*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: 'DM Sans', sans-serif;
  background: #faf9f5;
  color: #2c1810;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

section[id] {
  scroll-margin-top: 4.5rem;
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: #f0e6d8;
}

::-webkit-scrollbar-thumb {
  background: #c4a35b;
  border-radius: 3px;
}

:focus-visible {
  outline: 2px solid #8b6b29;
  outline-offset: 3px;
  border-radius: 4px;
}

@keyframes k-spin {
  to { transform: rotate(360deg); }
}

@keyframes k-pulse {
  0%, 100% { opacity: 1 }
  50% { opacity: .4 }
}

@keyframes k-ring {
  0% { box-shadow: 0 0 0 0 rgba(196, 163, 91, .5) }
  70% { box-shadow: 0 0 0 16px rgba(196, 163, 91, 0) }
  100% { box-shadow: 0 0 0 0 rgba(196, 163, 91, 0) }
}

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

@keyframes k-fadeIn {
  from { opacity: 0 }
  to { opacity: 1 }
}

@keyframes k-float {
  0%, 100% { transform: translateY(0) }
  50% { transform: translateY(-5px) }
}

.u-spin   { animation: k-spin   1.4s linear      infinite; }
.u-pulse  { animation: k-pulse  2s   ease-in-out  infinite; }
.u-ring   { animation: k-ring   2.6s              infinite; }
.u-fadeUp { animation: k-fadeUp .7s  ease both; }
.u-fadeIn { animation: k-fadeIn .4s  ease both; }
.u-float  { animation: k-float  3s   ease-in-out  infinite; }

#hdr {
  transition: box-shadow .3s, background .3s;
}

#hdr.scrolled {
  box-shadow: 0 2px 20px rgba(44, 24, 16, .07);
  background: rgba(250, 249, 245, .97);
}

.nav-ul a {
  position: relative;
}

.nav-ul a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: #8b6b29;
  transform: scaleX(0);
  transition: transform .25s ease;
  transform-origin: left;
}

.nav-ul a:hover::after {
  transform: scaleX(1);
}

.gold-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, #e0c085 40%, #e0c085 60%, transparent);
}

.photo-wrap {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
}

.photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(44, 24, 16, .6) 100%);
  border-radius: inherit;
  pointer-events: none;
}

.card-pillar {
  transition: transform .25s ease, box-shadow .25s ease;
}

.card-pillar:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 56px rgba(44, 24, 16, .09);
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(44, 24, 16, .62);
  backdrop-filter: blur(7px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.open {
  display: flex;
  animation: k-fadeIn .3s ease;
}

.modal-panel {
  background: #faf9f5;
  border-radius: 1.5rem;
  width: 100%;
  max-width: 640px;
  max-height: 92dvh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(44, 24, 16, .22);
}

#quiz-body {
  will-change: opacity, transform;
}

.opt-card {
  display: flex;
  align-items: center;
  gap: .875rem;
  width: 100%;
  text-align: left;
  padding: .875rem 1rem;
  border: 1.5px solid #f0e6d8;
  border-radius: .875rem;
  background: #fff;
  cursor: pointer;
  user-select: none;
  transition: border-color .2s, background .2s, transform .15s, box-shadow .2s;
  font-family: 'DM Sans', sans-serif;
}

.opt-card--col {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.75rem 1rem;
  gap: .625rem;
}

.opt-card:hover {
  border-color: #c4a35b;
  background: #fef9ed;
  transform: translateY(-1px);
}

.opt-card.chosen {
  border-color: #8b6b29;
  background: #fef2d6;
  box-shadow: 0 0 0 3px rgba(139, 107, 41, .12);
}

.opt-card .o-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.opt-card .o-main {
  font-size: .875rem;
  font-weight: 500;
  color: #2c1810;
}

.opt-card .o-sub {
  font-size: .75rem;
  font-weight: 300;
  color: #8b7355;
  margin-top: .1rem;
}

.prose-privacy h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #2c1810;
  margin: 1.5rem 0 .375rem;
}

.prose-privacy p,
.prose-privacy li {
  font-size: .875rem;
  font-weight: 300;
  color: #5d4037;
  line-height: 1.75;
}

.prose-privacy ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: .5rem 0 1rem;
}

.prose-privacy strong {
  font-weight: 500;
  color: #2c1810;
}

#wa-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 800;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 1.25rem;
  background: #25D366;
  color: #fff;
  border-radius: 9999px;
  font-family: 'DM Sans', sans-serif;
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 28px rgba(37, 211, 102, .38);
  transition: background .22s, box-shadow .22s, transform .22s;
}

#wa-btn:hover {
  background: #20ba5a;
  box-shadow: 0 10px 36px rgba(37, 211, 102, .48);
  transform: translateY(-2px);
}

#wa-btn:active {
  transform: translateY(0);
}

#wa-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

@media (max-width: 479px) {
  #wa-btn .wa-txt {
    display: none;
  }

  #wa-btn {
    padding: 1rem;
  }
}

/* Botões CTA com ícone + texto longo: em telas muito estreitas o texto
   completo pode quebrar em 2-3 linhas e amassar o botão (ícone flutuando
   no meio). Troca para um texto mais curto e, como rede de segurança,
   deixa a altura livre caso ainda quebre linha. */
.cta-compact {
  display: none;
}

@media (max-width: 400px) {
  .cta-wrap {
    height: auto;
    min-height: 3rem;
    padding-top: .7rem;
    padding-bottom: .7rem;
    white-space: normal;
    line-height: 1.3;
    text-align: center;
  }

  .cta-wrap .cta-full {
    display: none;
  }

  .cta-wrap .cta-compact {
    display: inline;
  }
}

.step-n {
  font-family: 'Playfair Display', serif;
  font-size: 3.25rem;
  font-weight: 400;
  line-height: 1;
  color: #e0c085;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .u-spin,
  .u-pulse,
  .u-ring,
  .u-fadeUp,
  .u-fadeIn,
  .u-float {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .modal-overlay.open {
    animation: none;
  }

  .card-pillar {
    transition: none;
  }

  .card-pillar:hover {
    transform: none;
  }

  .opt-card {
    transition: none;
  }

  .opt-card:hover {
    transform: none;
  }

  #hdr {
    transition: none;
  }

  .nav-ul a::after {
    transition: none;
  }

  #quiz-body {
    transition: none !important;
  }
}
