/* ==========================================================================
   AURA CASA — Dobra 4 (Círculo Aura Casa) + Rodapé
   Tokens de hero.css (:root). No desktop o rodapé fica "por baixo" da página
   e é revelado quando a última dobra sobe (efeito cortina).
   ========================================================================== */

/* ---------- Dobra 4 ---------- */
.circulo {
  position: relative; z-index: 4;
  overflow: hidden; overflow: clip;
  margin-top: -32px;
  padding: clamp(112px, 16vh, 176px) var(--gutter) clamp(104px, 15vh, 168px);
  border-radius: 32px;
  background:
    radial-gradient(70% 60% at 85% 40%, rgba(241, 213, 227, .9), transparent 70%),
    linear-gradient(180deg, var(--paper) 0%, #F8EBF0 100%);
  color: var(--wine);
  box-shadow: 0 50px 80px -30px rgba(20, 6, 12, .55);
}
.circulo__pattern {
  position: absolute; left: -16%; bottom: -24%;
  width: min(70vw, 980px); aspect-ratio: 1384 / 1042;
  background: var(--pattern-rose) center / contain no-repeat;
  opacity: .05; pointer-events: none;
  transform: rotate(-6deg);
}
.circulo__inner {
  position: relative;
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center; gap: clamp(48px, 7vw, 128px);
}

.circulo__title {
  margin: 1.6rem 0 1.8rem;
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(34px, 4.6vw, 76px); line-height: 1.02; letter-spacing: -.005em;
  text-transform: uppercase; color: var(--wine-deep);
}
.circulo__title .line { display: block; overflow: hidden; padding: .04em 0 .1em; margin-bottom: -.1em; }
.circulo__title .line > span { display: inline-block; transform-origin: 0 100%; will-change: transform; }
.circulo__title em {
  font-style: normal; color: transparent;
  background: linear-gradient(100deg, var(--rose-600) 0%, var(--rose) 55%, var(--rose-600) 100%) 0 0 / 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  animation: shimmer-text 7s ease-in-out infinite alternate;
}
.circulo__lead { max-width: 33rem; margin: 0; font-size: 17px; line-height: 1.75; color: var(--text-muted); text-wrap: pretty; }

/* ---------- Formulário ---------- */
.c-signup { position: relative; margin-top: 2.4rem; max-width: 34rem; }
.c-form__field {
  display: flex; align-items: center; gap: .5rem;
  padding: 6px 6px 6px 20px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--line-strong);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 20px 40px -28px rgba(78, 31, 47, .45);
  transition: border-color var(--dur-lg), box-shadow var(--dur-lg);
}
.c-form__field:focus-within {
  border-color: rgba(165, 83, 105, .55);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 20px 40px -28px rgba(78, 31, 47, .45), 0 0 0 5px rgba(199, 123, 133, .16);
}
.c-form.is-invalid .c-form__field { border-color: var(--rose-600); animation: c-shake .5s var(--ease-standard); }
@keyframes c-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.c-form__icon { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--rose); stroke-width: 1.5; stroke-linejoin: round; }
.c-form__input {
  flex: 1; min-width: 0; height: 48px; padding: 0 .25rem;
  border: 0; background: transparent; outline: none;
  font: 400 16px/1 var(--font-sans); color: var(--wine-deep);
}
.c-form__input::placeholder { color: var(--text-subtle); }
.c-form__submit { flex: none; --h: 52px; padding: 0 1.6rem; }
.c-form__spinner {
  display: none; width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  animation: c-spin .8s linear infinite;
}
@keyframes c-spin { to { transform: rotate(360deg); } }
.c-form.is-loading .c-form__spinner { display: inline-block; }
.c-form.is-loading .btn__ico { display: none; }
.c-form.is-loading .c-form__submit { pointer-events: none; }
.c-form__error {
  min-height: 1.4em; margin: .7rem 0 0 1.25rem;
  font-size: 13px; font-weight: 500; color: var(--rose-600);
}
.c-form__consent { margin: .2rem 0 0 1.25rem; font-size: 12.5px; color: var(--text-subtle); }

/* Sucesso */
.c-success {
  display: flex; align-items: flex-start; gap: 1.1rem;
  padding: 1.5rem 1.6rem;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 30px 60px -36px rgba(78, 31, 47, .5);
  outline: none;
}
.c-success[hidden] { display: none; }
.c-success__icon {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--grad-rose); color: var(--blush); box-shadow: var(--shadow-rose);
}
.c-success__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 0; }
.c-success.is-new .c-success__icon svg { animation: c-check .7s var(--ease-atelier) .25s both; }
@keyframes c-check { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
.c-success__title {
  margin: .2rem 0 .4rem;
  font-family: var(--font-label); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--wine-deep);
}
.c-success__text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-muted); }
.c-coupon {
  display: inline-flex; align-items: center; gap: 1rem; margin-top: 1rem;
  padding: .55rem .6rem .55rem 1.1rem;
  border-radius: var(--r-pill);
  border: 1px dashed rgba(165, 83, 105, .55);
  background: var(--blush);
  transition: transform var(--dur-lg) var(--ease-spring), background var(--dur-md);
}
.c-coupon:hover { transform: translateY(-2px); background: #F6DCE8; }
.c-coupon__code { font-family: var(--font-label); font-weight: 500; font-size: 14px; letter-spacing: .14em; color: var(--rose-600); }
.c-coupon__action {
  padding: .5rem .85rem; border-radius: var(--r-pill);
  font-family: var(--font-label); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--paper); background: var(--wine-deep);
}

.c-perks { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.c-perks li {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: 13.5px; font-weight: 500; color: var(--text-muted);
}
.c-perks li::before {
  content: ""; width: 14px; height: 14px; flex: none;
  background: url("../assets/brand/symbol-rose.svg") center / contain no-repeat;
}

/* ---------- Visual: arco + selo + nota ---------- */
.circulo__visual { position: relative; justify-self: center; width: min(100%, 460px); }
.c-orbit { /* anel fino atrás do arco */
  position: absolute; left: 50%; top: 44%; width: 128%; aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  border: 1px solid rgba(165, 83, 105, .16);
  pointer-events: none;
}
.c-orbit::after { /* pequena "lua" que percorre o anel */
  content: ""; position: absolute; left: 50%; top: -5px; width: 9px; height: 9px; margin-left: -4.5px;
  border-radius: 50%; background: var(--rose);
  box-shadow: 0 0 0 5px rgba(199, 123, 133, .16);
}
.c-arch {
  position: relative; margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px var(--r-lg) var(--r-lg);
  overflow: hidden; isolation: isolate;
  background: var(--wine-night);
  box-shadow: 0 50px 90px -40px rgba(78, 31, 47, .6);
}
.c-arch__media { position: absolute; inset: 0; transform: scale(1.12); will-change: transform; }
.c-arch__media picture, .c-arch__media img { display: block; width: 100%; height: 100%; }
.c-arch__media img { object-fit: cover; object-position: 50% 40%; }
.c-arch::after { /* brilho morno no topo do arco */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(80% 50% at 50% 0%, rgba(255, 236, 226, .28), transparent 70%);
  mix-blend-mode: soft-light;
}

.c-seal {
  position: absolute; z-index: 2; left: -12%; top: 4%;
  width: clamp(110px, 10vw, 140px); aspect-ratio: 1079 / 1153;
  padding: 14px;
  border-radius: 50%;
  color: var(--rose-600);
  background: rgba(251, 247, 246, .86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 24px 48px -24px rgba(78, 31, 47, .5);
}
.c-seal__svg { width: 100%; height: 100%; overflow: visible; }

.c-note {
  position: absolute; z-index: 2; right: -10%; bottom: 10%;
  display: flex; flex-direction: column; gap: .45rem;
  margin: 0; padding: 1.1rem 1.4rem;
  border-radius: var(--r-md);
  background: rgba(78, 31, 47, .78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(241, 213, 227, .18);
  box-shadow: 0 24px 48px -20px rgba(38, 16, 26, .6);
  font-family: var(--font-display); font-weight: 300; font-size: 15px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--on-media);
}
.c-note__kicker { font-family: var(--font-label); font-weight: 400; font-size: 9px; letter-spacing: .2em; color: var(--petal); }

/* ==========================================================================
   Rodapé
   ========================================================================== */
.footer {
  position: relative; z-index: 0;
  overflow: hidden; overflow: clip;
  margin-top: -32px; /* fica por baixo dos cantos arredondados da dobra 4 */
  padding: calc(clamp(72px, 10vh, 112px) + 32px) var(--gutter) 28px;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(165, 83, 105, .35), transparent 70%),
    var(--wine-night);
  color: var(--on-media);
}
/* Quando o rodapé cabe na tela (o JS mede e liga .has-footer-reveal no <html>),
   ele fica preso por baixo e é revelado quando a última dobra sobe (cortina) */
@media (min-width: 961px) {
  .has-footer-reveal main { position: relative; z-index: 1; }
  .has-footer-reveal .footer { position: sticky; bottom: 0; }
}
.footer__inner { max-width: 1440px; margin: 0 auto; }

.footer__top {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(40px, 6vw, 120px);
}
.footer__logo-link { display: inline-block; color: var(--blush); transition: opacity var(--dur-md); }
.footer__logo-link:hover { opacity: .85; }
.footer__logo { width: clamp(170px, 15vw, 220px); height: auto; }
.footer__about { max-width: 26rem; margin: 1.6rem 0 0; font-size: 15px; line-height: 1.7; color: var(--on-media-subtle); }
.footer__social { display: flex; gap: .6rem; margin: 1.8rem 0 0; padding: 0; list-style: none; }
.footer__social a {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(241, 213, 227, .22);
  color: var(--blush);
  transition: background var(--dur-lg), color var(--dur-lg), border-color var(--dur-lg), transform var(--dur-lg) var(--ease-spring);
}
.footer__social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.footer__social a:hover { background: var(--blush); color: var(--rose-600); border-color: var(--blush); transform: translateY(-3px); }

.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.footer__heading {
  margin: 0 0 1.3rem;
  font-family: var(--font-label); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--petal);
}
.footer__col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .85rem; }
.footer__col a {
  position: relative; display: inline-block;
  font-size: 15px; color: var(--on-media-muted);
  transition: color var(--dur-md), transform var(--dur-lg) var(--ease-glide);
}
.footer__col a::before { /* ponto que aparece no hover */
  content: ""; position: absolute; left: -14px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px;
  border-radius: 50%; background: var(--petal);
  opacity: 0; transform: scale(0); transition: opacity var(--dur-md), transform var(--dur-lg) var(--ease-spring);
}
.footer__col a:hover { color: var(--on-media); transform: translateX(6px); }
.footer__col a:hover::before { opacity: 1; transform: scale(1); }

/* Letreiro gigante */
.footer__giant {
  margin: clamp(56px, 9vh, 104px) 0 clamp(20px, 3vh, 32px);
  color: var(--blush);
  overflow: hidden;
}
.footer__giant-svg { display: block; width: 100%; height: auto; overflow: visible; }
.footer__giant-svg path { fill: rgba(241, 213, 227, .1); stroke: rgba(241, 213, 227, .38); stroke-width: 2; vector-effect: non-scaling-stroke; }

.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  padding-top: 24px;
  border-top: 1px solid rgba(241, 213, 227, .14);
  font-size: 13px; color: var(--on-media-subtle);
}
.footer__copy { margin: 0; }
.footer__pay { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 auto 0 0; padding: 0; list-style: none; }
.footer__pay li {
  padding: .45rem .8rem; border-radius: var(--r-pill);
  border: 1px solid rgba(241, 213, 227, .18);
  font-family: var(--font-label); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-media-muted);
}

.to-top { position: relative; display: grid; place-items: center; width: 52px; height: 52px; color: var(--blush); }
.to-top svg { position: absolute; }
.to-top__ring { inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke: rgba(241, 213, 227, .18); stroke-width: 1.5; }
.to-top__ring .to-top__progress { stroke: var(--blush); stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 0)); stroke-linecap: round; }
.to-top__arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur-lg) var(--ease-spring); }
.to-top:hover .to-top__arrow { transform: translateY(-4px); }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 960px) {
  .circulo { margin-top: -24px; border-radius: 24px; padding-top: 88px; }
  .circulo__inner { grid-template-columns: 1fr; gap: 72px; }
  .circulo__title { font-size: clamp(32px, 9vw, 52px); }
  .circulo__visual { width: min(78%, 420px); }
  .footer__top { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .c-form__field { flex-wrap: wrap; padding: 6px; border-radius: var(--r-lg); }
  .c-form__icon { margin-left: 14px; }
  .c-form__input { flex: 1 1 60%; }
  .c-form__submit { flex: 1 1 100%; }
  .c-seal { left: -16%; width: 104px; padding: 10px; }
  .c-note { right: -14%; font-size: 13px; padding: .9rem 1.1rem; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__col:last-child { grid-column: 1 / -1; }
  .footer__pay { margin: 0; }
  .footer__bottom { position: relative; flex-direction: column; align-items: flex-start; padding-right: 64px; }
  .to-top { position: absolute; right: 0; top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .circulo__title em, .c-form.is-invalid .c-form__field, .c-success.is-new .c-success__icon svg { animation: none; }
}
