/* Heitor Massagens — seções finais: cantinho, depoimentos, planos e agendamento */

/* ---------- 6. O cantinho: colagem em camadas, fotos que se sobrepõem ---------- */
.nook__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.875rem;
}

.nook__item {
  --clip-radius: var(--radius-md);
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  box-shadow: var(--shadow-md);
}

.nook__item .media-inner {
  height: 100%;
}

.nook__item--tall {
  aspect-ratio: 4 / 5;
}

.nook__item--square {
  aspect-ratio: 1 / 1;
}

.nook__item:first-child {
  grid-column: 1 / -1;
}

/* Mobile: óleo inteiro, linho e massageador lado a lado, caderno inteiro */
@media (max-width: 899px) {
  .nook__item:nth-child(2),
  .nook__item:nth-child(3) {
    aspect-ratio: 1 / 1;
  }

  .nook__item:nth-child(4) {
    grid-column: 1 / -1;
    aspect-ratio: 4 / 3;
  }
}

@media (min-width: 900px) {
  .nook__grid {
    grid-template-columns: 1.2fr 0.8fr 1fr;
    align-items: start;
    gap: 1.25rem;
    padding-bottom: 4rem;
  }

  .nook__item:first-child {
    grid-column: 1;
    grid-row: 1 / span 2;
    z-index: 1;
  }

  /* O linho invade a borda do óleo e flutua acima dele */
  .nook__item:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    z-index: 2;
    margin: 4rem 0 0 -5rem;
    box-shadow: var(--shadow-lg);
  }

  .nook__item:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
    z-index: 2;
    margin: 1.25rem 0 0 2rem;
    box-shadow: var(--shadow-lg);
  }

  .nook__item:nth-child(3) {
    grid-column: 3;
    grid-row: 1 / span 2;
    margin-top: 7rem;
  }
}

/* ---------- 7. Depoimentos: cartões elevados sobre o escuro ---------- */
.on-dark .section-head h2 em {
  color: var(--accent-soft);
}

.quotes__grid {
  display: grid;
  gap: 1.25rem;
}

.quote {
  position: relative;
  display: grid;
  align-content: start;
  gap: 1.25rem;
  margin: 0;
  padding: 2rem 1.75rem 1.75rem;
  border: 1px solid rgba(217, 196, 176, 0.12);
  border-radius: var(--radius-lg);
  background: var(--surface-deep);
  box-shadow: var(--shadow-dark);
  transition:
    transform 600ms var(--ease-out),
    border-color 600ms var(--ease-out);
}

@media (hover: hover) {
  .quote.is-visible:hover {
    transform: translateY(-4px);
    border-color: rgba(217, 196, 176, 0.28);
  }
}

.quote__rule {
  display: none;
}

.quote__mark {
  height: 2.5rem;
  font-family: var(--font-display);
  font-size: 5.5rem;
  line-height: 0.9;
  color: var(--accent);
}

.quote blockquote {
  margin: 0;
}

.quote blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.1vw, 1.75rem);
  line-height: 1.3;
  hanging-punctuation: first;
}

.quote figcaption {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(217, 196, 176, 0.14);
  font-size: var(--small);
  color: rgba(244, 239, 232, 0.82);
}

/* Inicial do nome em círculo: assinatura discreta, sem foto de ninguém */
.quote figcaption::before {
  content: attr(data-initial);
  display: grid;
  place-items: center;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(217, 196, 176, 0.14);
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--accent-soft);
}

@media (min-width: 900px) {
  .quotes__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .quote:nth-child(2) { margin-top: 3rem; }
  .quote:nth-child(3) { margin-top: 6rem; }
}

/* ---------- 8. Planos e presente: dois cartões que sobem no hover ---------- */
.plans__grid {
  display: grid;
  gap: 1rem;
}

.plans__divider {
  display: none;
}

.plan {
  position: relative;
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: 2rem 1.75rem;
  border: 1px solid rgba(217, 196, 176, 0.7);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition:
    transform 600ms var(--ease-out),
    box-shadow 600ms var(--ease-out);
}

@media (hover: hover) {
  .plan.is-visible:hover,
  .plan.is-visible:focus-within {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
  }
}

.plan h3 {
  font-size: var(--h3);
}

.plan__price {
  font-family: var(--font-display);
  font-size: var(--h2);
  line-height: 1.05;
  font-variant-numeric: lining-nums;
}

.plan p {
  max-width: 38ch;
  color: var(--ink-soft);
}

.plan .link {
  justify-self: start;
  margin-top: 0.5rem;
  color: var(--accent-strong);
}

@media (min-width: 900px) {
  .plans__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .plan {
    padding: 3rem clamp(2rem, 4vw, 3.5rem);
  }

  .plan:nth-of-type(2) {
    margin-top: 3rem; /* degrau: o presente desce meio passo */
  }
}

/* ---------- 9. Agendamento: painel terracota que se sobrepõe ao rodapé ---------- */
.booking {
  --overlap: clamp(4rem, 9vw, 7rem);
  position: relative;
  z-index: 2;
  margin-bottom: calc(var(--overlap) * -1);
  padding-top: var(--space-section);
}

.booking__panel {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: start;
  gap: 1.5rem;
  overflow: hidden;
  padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1.5rem, 6vw, 5.5rem);
  border-radius: var(--radius-xl);
  background: var(--accent-strong);
  color: var(--bg);
  box-shadow: var(--shadow-lg);
}

/* Anéis concêntricos de 1px: profundidade sem gradiente */
.booking__panel::before,
.booking__panel::after {
  content: '';
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(244, 239, 232, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.booking__panel::before {
  width: 34rem;
  height: 34rem;
  right: -12rem;
  top: -14rem;
}

.booking__panel::after {
  width: 22rem;
  height: 22rem;
  right: -6rem;
  top: -8rem;
}

.booking__panel .overline {
  color: var(--bg);
}

.booking h2 {
  max-width: 18ch;
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  line-height: 1.02;
}

.booking h2 em {
  color: var(--accent-soft);
}

.booking__where {
  max-width: 44ch;
  color: var(--bg);
}

.booking__panel .btn {
  margin-top: 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .nook__item:nth-child(n) {
    transform: none !important;
  }
}
