/* ==========================================================
   Página "Nosso espaço"
   (o banner do topo reaproveita .page-hero de treatments-page.css)
   ========================================================== */

.space-page section[id] {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.space-page .page-hero__media img {
  object-position: 50% 60%;
}

/* ---------- A profissional ---------- */

.pro {
  background: var(--color-bg);
}

.pro .about__figure img {
  object-position: 50% 15%;
}

.pro__id {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: var(--fs-sm);
  color: var(--color-muted);
}

.pro__id strong {
  color: var(--color-ink);
}

.pro__places {
  display: grid;
  gap: var(--space-3);
}

.pro__place {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-size: var(--fs-sm);
  color: var(--color-muted);
  line-height: 1.5;
}

.pro__place strong {
  display: block;
  font-size: var(--fs-md);
  color: var(--color-ink);
}

.pro__place .icon {
  flex-shrink: 0;
  width: 40px !important;
  height: 40px !important;
  padding: 10px;
  border-radius: 50%;
  background: var(--color-brand-50);
  color: var(--color-brand-700);
}

.pro__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pro__tags li {
  padding: 7px 14px;
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-gold-deep);
}

@media (min-width: 640px) {
  .pro__places {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .pro .about__grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

/* ---------- Galeria do espaço ---------- */

.room {
  background: var(--color-surface);
}

.room__header {
  display: grid;
  gap: var(--space-5);
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

.room__intro {
  max-width: 480px;
  color: var(--color-muted);
  font-size: var(--fs-md);
}

/* Recepção em destaque + três vistas da sala */
.room__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.room__photo--main,
.room__photo--wide {
  grid-column: 1 / -1;
}

.room__photo--main {
  aspect-ratio: 4 / 5;
}

.room__photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-cream);
  aspect-ratio: 4 / 3;
}

.room__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.room__photo:hover img {
  transform: scale(1.04);
}

.room__photo figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(58, 13, 25, 0.78);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.room__features {
  display: grid;
  gap: var(--space-4);
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.room__features li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: var(--fs-sm);
  color: var(--color-muted);
  line-height: 1.55;
}

.room__features strong {
  display: block;
  margin-bottom: 2px;
  font-size: var(--fs-md);
  color: var(--color-ink);
}

.room__features .icon {
  flex-shrink: 0;
  width: 44px !important;
  height: 44px !important;
  padding: 11px;
  border-radius: 50%;
  background: var(--color-brand-50);
  color: var(--color-brand-700);
}

@media (min-width: 640px) {
  .room__features {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .room__gallery {
    grid-template-columns: 1.15fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    height: clamp(520px, 52vw, 640px);
  }

  .room__photo {
    aspect-ratio: auto;
  }

  .room__photo--main {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .room__photo--wide {
    grid-column: 2 / 4;
  }
}

@media (min-width: 1024px) {
  .room__header {
    grid-template-columns: 1.3fr 1fr;
    align-items: end;
  }

  .room__intro {
    justify-self: end;
  }

  .room__features {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Cantinho do café ---------- */

.coffee {
  background: var(--color-brand-950);
  color: rgba(255, 255, 255, 0.82);
  overflow: hidden;
}

.coffee__grid {
  display: grid;
  gap: clamp(2.5rem, 2rem + 4vw, 5.5rem);
  align-items: center;
}

.coffee__media {
  position: relative;
  max-width: 460px;
  width: 100%;
  margin-inline: auto;
}

.coffee__figure {
  position: relative;
  z-index: 1;
  margin: 0;
  aspect-ratio: 2 / 3;
  border-radius: 220px 220px var(--radius-lg) var(--radius-lg);
  overflow: hidden;
}

.coffee__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.coffee__media::before {
  content: "";
  position: absolute;
  inset: -16px 16px 16px -16px;
  border: 1px solid var(--color-gold);
  border-radius: 220px 220px var(--radius-lg) var(--radius-lg);
  opacity: 0.6;
}

.coffee__badge {
  position: absolute;
  z-index: 2;
  right: -8px;
  bottom: 36px;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: var(--color-gold);
  color: var(--color-brand-950);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
}

.coffee__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  max-width: 560px;
}

.coffee__lead {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 1.2rem + 0.9vw, 1.9rem);
  line-height: 1.3;
  color: #fff;
}

.coffee__text {
  font-size: var(--fs-md);
}

.coffee__list {
  display: grid;
  gap: var(--space-3);
}

.coffee__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid rgba(242, 207, 207, 0.3);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #fff;
}

.coffee__list .icon {
  width: 22px !important;
  height: 22px !important;
  color: var(--color-gold-light);
}

@media (min-width: 640px) {
  .coffee__list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .coffee__grid {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

/* ---------- Diferenciais da clínica ---------- */

.why {
  background: var(--color-bg);
}

.why__header {
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

.why__grid {
  display: grid;
  gap: clamp(1rem, 0.8rem + 1vw, 1.5rem);
}

.why .mvv-card {
  background: var(--color-surface);
}

.why .mvv-card__title {
  font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.85rem);
}

@media (min-width: 640px) {
  .why__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .why__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- A profissional: foto grande + foto menor sobreposta ---------- */

.pro .about__media {
  padding-bottom: clamp(40px, 8vw, 70px);
}

.pro .about__figure:not(.about__figure--small) {
  width: 84%;
  aspect-ratio: 1 / 1;
}

.pro .about__figure:not(.about__figure--small) img {
  object-position: 55% 20%;
}

.pro .about__figure--small {
  width: 46%;
  aspect-ratio: 4 / 5;
}

/* Enquadra a Débora (ela está à direita da foto) */
.pro .about__figure--small img {
  object-position: 78% 30%;
}

.pro .about__ornament {
  right: 18%;
  bottom: clamp(56px, 8vw, 86px);
}

@media (min-width: 1024px) {
  .pro .about__media {
    display: block;
    align-self: center;
  }

  .pro .about__figure:not(.about__figure--small) {
    flex: none;
    min-height: 0;
  }
}

.pro .about__figure--small {
  flex: none;
  min-height: 0;
}

/* Ajuste de enquadramento: foto grande em retrato, Débora mais centralizada
   e com mais corpo visível; foto menor um pouco menor e mais para fora */
.pro .about__figure:not(.about__figure--small) {
  aspect-ratio: 4 / 5;
}

.pro .about__figure:not(.about__figure--small) img {
  object-position: 92% 10%;
}

.pro .about__figure--small {
  width: 40%;
  right: -4%;
}

/* Home: foto do jaleco com a cadeira ao fundo, Débora centralizada */
.pro--home .about__figure:not(.about__figure--small) img {
  object-position: 55% 30%;
}

/* Desktop: as fotos acompanham a altura do texto ao lado */
@media (min-width: 1024px) {
  .pro .about__grid {
    grid-template-columns: 1fr 1.05fr;
    align-items: stretch;
  }

  .pro .about__media {
    position: relative;
    align-self: stretch;
    max-width: none;
    margin: 0;
    padding-bottom: 0;
  }

  .pro .about__figure:not(.about__figure--small) {
    width: 84%;
    height: calc(100% - 64px);
    min-height: 460px;
    aspect-ratio: auto;
  }

  .pro .about__figure--small {
    width: 44%;
    bottom: 0;
  }

  .pro .about__ornament {
    bottom: 82px;
  }

  .pro .about__content {
    justify-content: center;
  }
}

/* Celular: as 4 tags numa única linha */
@media (max-width: 639px) {
  .pro__tags {
    flex-wrap: nowrap;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .pro__tags::-webkit-scrollbar {
    display: none;
  }

  .pro__tags li {
    flex-shrink: 0;
    padding: 5px 9px;
    font-size: 0.72rem;
    white-space: nowrap;
  }
}

/* Celular: foto menor sem ultrapassar a borda da tela */
@media (max-width: 639px) {
  .pro .about__figure--small {
    right: 0;
  }
}

/* Evita que a linha de tags estique a coluna em telas bem estreitas */
.about__grid > * {
  min-width: 0;
}
