/* ==========================================================
   KL Moda — seções c: como comprar, loja, contato, rodapé, WhatsApp flutuante
   ========================================================== */

/* ---------- como comprar ---------- */
.steps {
  background: var(--bg);
}
.steps__track {
  position: relative;
}
.steps__list {
  display: grid;
  gap: 48px;
  padding-left: 44px;
}
.steps__line {
  position: absolute;
  left: 6px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--rule);
}
.steps__line i {
  display: block;
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--gold-hi), var(--gold) 60%, var(--gold-lo));
  transform-origin: top;
  transform: scaleY(var(--p, 0));
  box-shadow: 0 0 12px rgba(217, 180, 90, .55);
}
html:not(.js) .steps__track { --p: 1; }

.step {
  position: relative;
}
.step::before {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--bg);
  left: -44px;
  top: 14px;
}
.step.is-in::before {
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--bg), 0 0 20px rgba(217, 180, 90, .65);
  transition: background .6s var(--ease-out), box-shadow .6s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 110ms + .3s);
}
html:not(.js) .step::before {
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--bg), 0 0 20px rgba(217, 180, 90, .65);
}
.step__num {
  display: block;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(4.2rem, 10vw, 6.8rem);
  line-height: .85;
  letter-spacing: -.03em;
  color: transparent;
  -webkit-text-stroke: 1px var(--stroke-gold);
}
.step__title {
  margin-top: 16px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.4vw, 2.05rem);
  line-height: 1.1;
}
.step__text {
  margin-top: 10px;
  max-width: 32ch;
  color: var(--fg-dim);
  font-weight: 300;
}
.steps__cta {
  margin-top: clamp(56px, 8vw, 96px);
  display: flex;
}
.steps__cta .btn {
  width: 100%;
}

@media (min-width: 720px) {
  .steps__cta .btn { width: auto; }
}

@media (min-width: 1024px) {
  .steps__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 56px;
    padding-left: 0;
    padding-top: 64px;
  }
  .steps__line {
    left: 0;
    right: 0;
    top: 6px;
    bottom: auto;
    width: auto;
    height: 1px;
  }
  .steps__line i {
    background: linear-gradient(to right, var(--gold-hi), var(--gold) 60%, var(--gold-lo));
    transform-origin: left;
    transform: scaleX(var(--p, 0));
  }
  .step::before {
    left: 0;
    top: -64px;
  }
}

/* ---------- loja ---------- */
.store {
  background: var(--surface-2); /* bege claro */
  border-top: 1px solid var(--rule);
}
.store__grid {
  display: grid;
  gap: 52px;
}
.store .section-head {
  margin-bottom: 40px;
}
.store__list {
  display: grid;
  border-top: 1px solid var(--rule);
}
.store__item {
  display: grid;
  gap: 8px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.store__item dt {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .24em;
  color: var(--accent);
}
.store__item dt svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.store__item dd {
  color: var(--fg);
  font-size: 1.02rem;
  line-height: 1.55;
}
/* texto corrido não pode quebrar em blocos: só o link vira bloco */
.store__item dd .link-arrow {
  display: flex;
  width: fit-content;
  margin-top: 12px;
}
.store__map {
  position: relative;
  aspect-ratio: 1;
  padding: 10px;
  background: var(--bg);
  border: 1px solid var(--rule-gold);
}
.store__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) sepia(.12) contrast(.95);
}
.store__corner {
  position: absolute;
  width: 28px;
  height: 28px;
  pointer-events: none;
}
.store__corner--tl {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
}
.store__corner--br {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
}

@media (min-width: 720px) {
  .store__item {
    grid-template-columns: 168px 1fr;
    gap: 24px;
    align-items: baseline;
  }
  .store__map { aspect-ratio: 16 / 11; }
}

@media (min-width: 1024px) {
  .store__grid {
    grid-template-columns: 1fr 1.08fr;
    gap: clamp(48px, 6vw, 96px);
    align-items: center;
  }
  .store__map {
    aspect-ratio: 4 / 5;
    max-height: 660px;
  }
}

/* ---------- contato: instagram + chamada final ---------- */
.finale {
  background: var(--bg);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.finale__glow {
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -35%;
  width: 170vw;
  max-width: 1500px;
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(217, 180, 90, .2), rgba(217, 180, 90, .05) 50%, transparent 72%);
  pointer-events: none;
}
.finale__inner {
  display: grid;
  justify-items: center;
  gap: clamp(88px, 12vw, 150px);
}

.insta {
  display: grid;
  justify-items: center;
  gap: 22px;
}
.insta__handle {
  display: inline-flex;
  align-items: center;
  gap: .25em;
  max-width: 100%;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.5rem, 11vw, 7rem);
  line-height: 1.05;
  letter-spacing: -.03em;
}
/* folga para o recorte do gradiente não cortar @ e _ */
.insta__handle .gold-shine {
  padding-block: .16em;
  margin-block: -.16em;
}
.insta__handle svg {
  width: .5em;
  height: .5em;
  flex: none;
  color: var(--accent);
  transition: transform .5s var(--ease-out);
}
@media (hover: hover) {
  .insta__handle:hover svg { transform: rotate(-8deg) scale(1.08); }
}
.insta__lead {
  max-width: 40ch;
  color: var(--fg-dim);
  font-weight: 300;
}

.final {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 26px;
  width: 100%;
  max-width: 920px;
  padding-top: clamp(64px, 9vw, 104px);
}
.final::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 120px;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.final__crown {
  width: 76px;
  height: 41px;
  animation: crown-float 4.5s var(--ease-io) infinite alternate;
  filter: drop-shadow(0 8px 24px rgba(217, 180, 90, .35));
}
.final__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 7.6vw, 6.2rem);
  line-height: 1.02;
  letter-spacing: -.025em;
  max-width: 14ch;
  text-wrap: balance;
}
.final .btn {
  width: 100%;
  max-width: 420px;
}
.final__phone {
  font-size: .8rem;
  letter-spacing: .26em;
  color: var(--fg-dim);
}

@media (min-width: 720px) {
  .final .btn { width: auto; }
}

@keyframes crown-float {
  from { transform: translateY(0); }
  to   { transform: translateY(-7px); }
}

/* ---------- rodapé ---------- */
.footer {
  background: #080706;
  border-top: 1px solid var(--rule);
  padding: 72px 0 calc(28px + env(safe-area-inset-bottom));
}
.footer__grid {
  display: grid;
  gap: 40px;
}
.footer__tagline {
  margin-top: 16px;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--fg-dim);
}
.footer__title {
  margin-bottom: 16px;
  font-family: var(--f-text);
  font-size: .7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .26em;
  color: var(--accent);
}
.footer__col li + li,
.footer__col p + p {
  margin-top: 10px;
}
.footer__col p,
.footer__col a {
  color: var(--fg-dim);
  font-size: .95rem;
  line-height: 1.6;
}
.footer__col a {
  display: inline-block;
  padding-block: 10px;
  transition: color .3s;
}
/* linhas de link mais juntas, com área de toque de 44px */
.footer__col li + li { margin-top: 0; }
@media (hover: hover) {
  .footer__col a:hover { color: var(--fg); }
}
.footer__bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: .78rem;
  color: rgba(169, 160, 145, .75);
}
.footer__credit a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}
.footer__credit img { width: 28px; height: 28px; flex: none; }
.footer__credit strong { color: var(--accent); font-weight: 500; letter-spacing: .02em; }
@media (hover: hover) {
  .footer__credit a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
}

@media (min-width: 720px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
  }
  .footer__col li + li { margin-top: 10px; }
  .footer__col a { padding-block: 0; }
}

@media (max-width: 1023.98px) {
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 85;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 58px;
  min-width: 58px;
  padding: 0 17px;
  border-radius: 999px;
  color: var(--on-gold);
  background-image: var(--grad-gold);
  background-size: 200% 100%;
  background-position: 0% 50%;
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, .85), inset 0 0 0 1px rgba(247, 231, 180, .4);
  transition: background-position .9s var(--ease-out);
}
.wa-float svg {
  width: 25px;
  height: 25px;
  flex: none;
}
.wa-float span {
  display: none;
}
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--gold);
  animation: wa-pulse 2.8s var(--ease-out) infinite;
  pointer-events: none;
}
@media (hover: hover) {
  .wa-float:hover { background-position: 100% 50%; }
}

.js .wa-float {
  opacity: 0;
  transform: translateY(24px) scale(.9);
  pointer-events: none;
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out), background-position .9s var(--ease-out);
}
.js .wa-float.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

@media (min-width: 1024px) {
  .wa-float {
    padding: 0 22px 0 18px;
  }
  .wa-float span {
    display: inline;
    font-size: .74rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .16em;
  }
}

@keyframes wa-pulse {
  from { transform: scale(1); opacity: .75; }
  to   { transform: scale(1.4); opacity: 0; }
}

/* ---------- movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  .final__crown,
  .wa-float::before {
    animation: none;
  }
}

/* "@" e "_" em Jost: a Bodoni itálica não tem o "_" */
.insta__sym {
  font-family: var(--f-text);
  font-style: normal;
  font-weight: 300;
  font-size: .7em;
}

/* nome do Instagram em marfim, símbolos em dourado */
.insta__name { color: var(--fg); }
.insta__sym { color: var(--accent); }

/* telefone grande e clicável na chamada final */
.final__phone {
  font-family: var(--f-text);
  font-weight: 300;
  font-size: clamp(1.4rem, 3.4vw, 1.9rem);
  letter-spacing: .08em;
  color: var(--fg);
  transition: color .3s;
}
@media (hover: hover) { .final__phone:hover { color: var(--accent); } }

/* foto no lugar do mapa (não há loja física) */
/* ---------- conversa ilustrativa (Retire ou receba) ---------- */
.store__chat { aspect-ratio: auto !important; max-height: none !important; margin: 0; padding: 12px; }
.chat {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 4px;
  background: #efe7da;
  font-family: var(--f-text);
}
.chat__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #15130f;
  color: #f1ebe0;
}
.chat__avatar {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #f2ebdf;
}
.chat__avatar svg { width: 22px; height: 16px; color: var(--gold-lo); fill: currentColor; }
.chat__who { flex: 1; font-size: .95rem; font-weight: 500; line-height: 1.2; }
.chat__who small { display: block; font-size: .72rem; font-weight: 400; color: rgba(241, 235, 224, .6); }
.chat__wa { width: 20px; height: 20px; color: var(--gold); fill: currentColor; }
.chat__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px clamp(14px, 3vw, 22px) 20px;
  /* textura leve, como o fundo do WhatsApp */
  background-image: radial-gradient(rgba(138, 106, 44, .09) 1px, transparent 1.2px);
  background-size: 14px 14px;
}
.chat__day {
  align-self: center;
  margin-bottom: 4px;
  padding: 4px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .7);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.msg {
  position: relative;
  max-width: 82%;
  margin: 0;
  padding: 8px 12px 8px;
  border-radius: 10px;
  font-size: .93rem;
  line-height: 1.42;
  color: #1b1814;
  box-shadow: 0 1px 1px rgba(27, 24, 20, .08);
}
.msg--in  { align-self: flex-start; background: #fff; border-top-left-radius: 2px; }
.msg--out { align-self: flex-end; background: #ead9b4; border-top-right-radius: 2px; }
.msg + .msg--in, .msg--out + .msg--out { margin-top: -3px; }
.msg__meta {
  float: right;
  margin: 6px 0 -4px 10px;
  font-size: .66rem;
  line-height: 1;
  color: rgba(27, 24, 20, .5);
  white-space: nowrap;
}
.msg__ok { font-style: normal; letter-spacing: -.25em; margin-left: 2px; color: #3f97d3; }
.msg--photo { padding: 4px 4px 24px; width: 46%; min-width: 150px; max-width: 230px; }
.msg--photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 10px;
  border-radius: 7px;
  background: #f7f2ea;
}
.msg--photo .msg__meta { position: absolute; right: 10px; bottom: 7px; margin: 0; float: none; }
.chat__input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 12px;
  background: #e6dccb;
}
.chat__input span {
  flex: 1;
  padding: 9px 16px;
  border-radius: 20px;
  background: #fff;
  font-size: .85rem;
  color: rgba(27, 24, 20, .4);
}
.chat__input i { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--grad-gold); }
.chat__input svg { width: 15px; height: 15px; color: var(--on-gold); }
.store__caption {
  margin-top: 12px;
  text-align: center;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
@media (min-width: 1024px) {
  .store__chat { padding: 16px; }
  .chat__body { padding: 22px 26px 26px; gap: 10px; }
}
