/* ============================================
   Performance Clínica de Estética
   Design tokens extraídos do Figma
   ============================================ */
:root {
  --color-dark: #2e2822;
  --color-dark-2: #3b332c;
  --color-dark-3: #1c150e;
  --color-dark-4: #4a4038;
  --color-brown: #7f6f60;
  --color-brown-light: #9c8c7b;
  --color-gold: #dccdae;
  --color-text-muted: #6b5f54;
  --color-border: #e4ded7;
  --color-bg-soft: #f7f4f1;
  --color-white: #ffffff;
  --color-star: #f5b400;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;

  --container-max: 1200px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-dark);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 6px 6px 6px 24px;
  height: 48px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.btn:hover { transform: translateY(-1px); opacity: 0.92; }
.btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  overflow: hidden;
}
.btn__icon img {
  transition: transform 0.3s ease;
}
.btn:hover .btn__icon img {
  transform: rotate(45deg);
}
.btn--gold { background: var(--color-gold); color: var(--color-dark-3); }
.btn--brown { background: var(--color-brown); color: #fff; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-brown);
  margin-bottom: 16px;
}
.eyebrow--light { color: var(--color-brown-light); }
.eyebrow--center { text-align: center; }

.section__title {
  font-size: clamp(26px, 3.6vw, 32px);
  line-height: 1.3;
  font-weight: 600;
  color: var(--color-dark);
  max-width: 640px;
}
.section__title--light { color: #fff; }
.section__title--center { max-width: 100%; text-align: center; margin: 0 auto; }

.section__text {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 480px;
}
.section__text--light { color: rgba(255, 255, 255, 0.72); max-width: 560px; }
.section__text--center { max-width: 480px; margin-left: auto; margin-right: auto; text-align: center; }

.section { padding: 96px 0; }
.section__cta { display: flex; justify-content: center; margin-top: 48px; }

/* ============================================
   HEADER
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgb(46, 40, 34) 0%, rgba(46, 40, 34, 0.96) 100%);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 0 rgba(46, 40, 34, 0.05);
}
.header__inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__logo img { height: 56px; width: auto; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav__list a {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.nav__list a:hover { opacity: 1; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 152px 0 0;
  min-height: 668px;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg-base {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgb(46, 40, 34) 0%, rgb(59, 51, 44) 55%, rgb(74, 64, 56) 100%);
}
.hero__bg-image { position: absolute; inset: 0; overflow: hidden; }
.hero__bg-img {
  position: absolute;
  left: 19.42%;
  top: -175.13%;
  width: 82.35%;
  height: 473.2%;
  max-width: none;
}
.hero__bg-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(102deg, rgb(28, 21, 14) 32.68%, rgba(234, 216, 171, 0) 116.75%);
}

/* Foto encostada no rodapé da seção, sem card/sombra — o próprio
   degradê da imagem se funde com o fundo do hero. */
.hero__figure {
  position: absolute;
  z-index: 1;
  right: max(40px, calc((100% - var(--container-max)) / 2 + 24px));
  bottom: 0;
  width: 30%;
  min-width: 300px;
  max-width: 560px;
  aspect-ratio: 534.64 / 668.3;
  pointer-events: none;
}
.hero__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: 96px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 12px;
  margin-bottom: 24px;
}

.hero__title {
  font-weight: 300;
  font-size: clamp(30px, 4.2vw, 40px);
  line-height: 1.4;
  color: #fff;
  max-width: 560px;
}
.hero__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.25em;
  color: var(--color-gold);
}

.hero__text {
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  max-width: 460px;
}

.hero__content .btn { margin-top: 32px; }

/* ============================================
   CARDS (Serviços / Depoimentos)
   ============================================ */
.cards {
  display: grid;
  gap: 24px;
  margin-top: 48px;
}
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: 0 15px 9px rgba(46, 40, 34, 0.06);
}
.card__icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.card__title { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.card__text { font-size: 14px; line-height: 1.6; color: var(--color-text-muted); }

/* ============================================
   QUEM CUIDA DE VOCÊ
   ============================================ */
.quemcuida {
  background: linear-gradient(135deg, rgb(28, 21, 14) 0%, rgb(59, 51, 44) 100%);
}
.quemcuida__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.quemcuida__figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 383 / 612;
}
.quemcuida__figure img { width: 100%; height: 100%; object-fit: cover; }
.quemcuida__caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  background: rgba(41, 33, 26, 0.67);
  backdrop-filter: blur(7px);
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.quemcuida__caption-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.quemcuida__caption-icon img { width: 20px; height: 20px; }
.quemcuida__caption-text { display: flex; flex-direction: column; gap: 4px; }
.quemcuida__caption-text strong { color: #fff; font-size: 14px; font-weight: 600; }
.quemcuida__caption-text span { color: #eae1d8; font-size: 12px; }

.checklist { margin-top: 40px; display: flex; flex-direction: column; gap: 20px; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}
.checklist img { flex-shrink: 0; margin-top: 2px; }

/* ============================================
   DIFERENCIAIS
   ============================================ */
.tile {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 270 / 360;
  background: var(--color-dark);
}
.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tile__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(58, 50, 43, 0.62) 55%, #3a322b 100%);
}
.tile__overlay h3 { color: #fff; font-size: 18px; font-weight: 600; line-height: 1.4; }
.tile__overlay p { color: rgba(255, 255, 255, 0.8); font-size: 14px; line-height: 1.5; }

/* ============================================
   ANTES E DEPOIS
   ============================================ */
.carousel {
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.carousel__track {
  flex: 1;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.carousel__track::-webkit-scrollbar { display: none; }

.figure {
  position: relative;
  flex: 0 0 auto;
  width: 156px;
  aspect-ratio: 156 / 195;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #efeae4;
  box-shadow: 0 15px 18px rgba(46, 40, 34, 0.08);
  scroll-snap-align: start;
  margin: 0;
}
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}
.figure__tag--antes { background: #4a4038; }
.figure__tag--depois { background: var(--color-brown); }

.carousel__btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: #fff;
  box-shadow: 0 15px 9px rgba(46, 40, 34, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}
.carousel__btn:hover { background: var(--color-bg-soft); }

/* ============================================
   DEPOIMENTOS
   ============================================ */
.depoimentos { background: var(--color-bg-soft); }

.testimonial {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: 0 15px 9px rgba(46, 40, 34, 0.06);
}
.testimonial__head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-border);
  flex-shrink: 0;
  overflow: hidden;
}
.testimonial__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.testimonial__head strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.stars { color: var(--color-star); font-size: 12px; letter-spacing: 0.05em; }
.testimonial p { font-size: 14px; line-height: 1.7; color: var(--color-text-muted); }

/* ============================================
   CONTATO
   ============================================ */
.contato__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.contato__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-brown);
  font-size: 14px;
  font-weight: 600;
}

.map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1152 / 494;
  background: #e5e3df;
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.map__bar {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 32px;
  background: var(--color-dark);
  border-radius: var(--radius-pill);
  height: 80px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 40px;
}
.map__info {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
}
.map__cta { margin-left: auto; }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--color-dark); padding-top: 96px; color: #fff; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
}
.footer__logo img { height: 68px; width: auto; margin-bottom: 24px; }
.footer__about p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  max-width: 400px;
}
.footer__legal {
  margin-top: 16px;
  font-size: 12px !important;
  color: rgba(255, 255, 255, 0.5) !important;
}

.footer__col h3 { font-size: 14px; font-weight: 600; margin-bottom: 24px; }
.footer__col ul { display: flex; flex-direction: column; gap: 16px; }
.footer__col a { font-size: 14px; color: rgba(255, 255, 255, 0.75); transition: color 0.2s ease; }
.footer__col a:hover { color: #fff; }

.footer__contacts li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.footer__bottom {
  margin-top: 96px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer__bottom-inner {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   MODAL - AGENDAR AVALIAÇÃO
   ============================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 21, 14, 0.72);
  backdrop-filter: blur(4px);
}
.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 30px 60px rgba(28, 21, 14, 0.35);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}
.modal.is-open .modal__dialog { transform: translateY(0) scale(1); }

.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal__close span {
  position: absolute;
  width: 14px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
}
.modal__close span:first-child { transform: rotate(45deg); }
.modal__close span:last-child { transform: rotate(-45deg); }

.modal__progress {
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--color-border);
  overflow: hidden;
  margin-bottom: 32px;
}
.modal__progress-bar {
  display: block;
  height: 100%;
  width: 33.33%;
  background: var(--color-brown);
  border-radius: var(--radius-pill);
  transition: width 0.3s ease;
}

.modal__step { display: none; }
.modal__step.is-active { display: block; }

.modal__title {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.35;
  margin-top: 8px;
}
.modal__subtitle {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.field { margin-top: 20px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 8px;
}
.field input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-dark);
  background: var(--color-bg-soft);
  transition: border-color 0.2s ease;
}
.field input:focus {
  outline: none;
  border-color: var(--color-brown);
  background: #fff;
}
.field input:invalid.was-validated { border-color: #c0392b; }

.options {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-size: 14px;
  color: var(--color-dark);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.option:hover { background: var(--color-bg-soft); }
.option input { accent-color: var(--color-brown); width: 16px; height: 16px; flex-shrink: 0; }
.option:has(input:checked) {
  border-color: var(--color-brown);
  background: var(--color-bg-soft);
  font-weight: 600;
}

.modal__actions { margin-top: 32px; display: flex; justify-content: flex-end; }
.modal__actions--split { justify-content: space-between; align-items: center; }
.modal__actions .btn { justify-content: center; }

.btn-text {
  background: none;
  border: none;
  padding: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
}
.btn-text:hover { color: var(--color-dark); }

.modal__success { text-align: center; padding: 16px 0; }
.modal__success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--color-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal__success .modal__subtitle { max-width: 380px; margin-left: auto; margin-right: auto; }
.modal__success .btn { margin: 32px auto 0; }

body.modal-open { overflow: hidden; }

@media (max-width: 480px) {
  .modal__dialog { padding: 28px 20px; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
  .quemcuida__inner { grid-template-columns: 1fr; }
  .quemcuida__figure { max-width: 420px; }
}

@media (max-width: 860px) {
  .section { padding: 64px 0; }
  .hero { display: flex; flex-direction: column; padding-top: 112px; min-height: unset; }
  .hero__content { order: 1; padding-bottom: 40px; }
  .hero__figure {
    order: 2;
    position: relative;
    right: auto;
    align-self: center;
    width: 82%;
    min-width: 0;
    max-width: 380px;
  }
  .hero__title, .hero__text { max-width: 100%; }
  .hero__content .btn { margin-top: 28px; }

  .nav { position: fixed; inset: 80px 0 0 0; background: var(--color-dark); transform: translateX(100%); transition: transform 0.3s ease; z-index: 99; }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: flex-start; gap: 0; padding: 24px; }
  .nav__list li { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav__list a { display: block; padding: 16px 0; }
  .nav__toggle { display: flex; }

  .cards--3 { grid-template-columns: 1fr; }
  .cards--4 { grid-template-columns: 1fr; }

  .contato__head { align-items: flex-start; }
  .map__bar { position: static; margin-top: 16px; height: auto; flex-wrap: wrap; border-radius: var(--radius-md); padding: 24px; gap: 16px; }
  .map__cta { margin-left: 0; width: 100%; justify-content: center; }
  .map { aspect-ratio: auto; height: 360px; }

  .footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .header__inner { height: 64px; }
  .header__logo img { height: 32px; }
  .figure { width: 130px; }

  .hero { padding-top: 96px; }
  .hero__title { font-size: 28px; }
  .hero__text { font-size: 15px; }
  .hero__content .btn { width: 100%; justify-content: space-between; }
  .badge { font-size: 11px; }

  .section { padding: 56px 0; }
  .section__cta .btn { width: 100%; justify-content: space-between; }
  .card, .testimonial { padding: 24px; }
  .quemcuida__figure { max-width: 100%; }
  .quemcuida__caption { left: 16px; right: 16px; bottom: 16px; padding: 12px 16px; }
  .carousel { gap: 8px; }
  .carousel__btn { width: 40px; height: 40px; }
  .footer { padding-top: 64px; }
  .footer__bottom { margin-top: 48px; }

  .modal { padding: 0; align-items: flex-end; }
  .modal__dialog { max-width: 100%; max-height: 92vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .modal__actions .btn { flex: 1; }
}

.modal__error{color:#b3261e;font-size:14px;margin:12px 0 0}
.modal__error[hidden]{display:none}
