/* =========================================================
   Dra. Raísa Santos — Biomédica Esteta
   Link-in-bio mobile-first. Paleta oficial da marca.
   ========================================================= */

:root {
  /* Paleta oficial */
  --olive:      #656646;
  --brown:      #513B30;
  --terracotta: #70330E;
  --sand:       #D1C1A8;
  --cream:      #F4EFE7;

  /* Derivados sutis (sem neon, sem gradientes pesados) */
  --terracotta-hover: #5c2a0b;
  --shadow: 0 8px 24px rgba(81, 59, 48, 0.10);

  --maxw: 430px;
  --radius-btn: 14px;
  --space: 20px;

  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans:  "Poppins", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--brown);
  /* Fundo claro. O backdrop desfocado vem no ::before. */
  background-color: var(--cream);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Backdrop claro e desfocado (só o cartão central fica nítido) */
body::before {
  content: "";
  position: fixed;
  inset: -60px;
  z-index: -1;
  background-image:
    linear-gradient(rgba(244, 239, 231, 0.66), rgba(244, 239, 231, 0.66)),
    url("../assets/images/DraRaisaMarrom.webp");
  background-size: cover;
  background-position: center 28%;
  filter: blur(34px) saturate(1.05);
  transform: scale(1.12);
}

/* Container central — o "cartão".
   Sem cantos arredondados e sem margens: encosta no topo e no fim da página. */
.card {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  background-color: var(--cream);
  min-height: 100vh;
  box-shadow: 0 12px 50px rgba(40, 33, 22, 0.28);
  overflow: hidden;
}

/* ---------- 1. Barra superior (sobreposta na foto) ---------- */
.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  color: var(--cream);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 26px;
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-weight: 400;
  /* scrim suave só no topo, para o texto creme ler sobre a foto clara */
  background: linear-gradient(180deg, rgba(40, 33, 22, 0.55), rgba(40, 33, 22, 0));
  text-shadow: 0 1px 3px rgba(40, 33, 22, 0.45);
  pointer-events: none;
}
.topbar__left  { font-weight: 500; }
.topbar__right { color: var(--cream); }

/* ---------- 2. Hero ---------- */
.hero {
  background-color: var(--olive);
}
.hero__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--olive);
  overflow: hidden;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Sombra marrom subindo da base da foto, emendando no bloco do nome */
.hero__media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 32%;
  background: linear-gradient(to top, var(--brown) 0%, rgba(81, 59, 48, 0.55) 38%, rgba(81, 59, 48, 0) 100%);
  pointer-events: none;
  z-index: 1;
}
/* Placeholder do hero quando não há foto */
.hero__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--cream);
  text-align: center;
  padding: 24px;
  border: 2px solid rgba(209, 193, 168, 0.45);
  margin: 12px;
}
.hero__placeholder svg { width: 54px; height: 54px; opacity: 0.85; }
.hero__placeholder span {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sand);
}

/* ---------- 3. Bloco do nome ---------- */
.nome {
  background-color: var(--brown);
  color: var(--cream);
  text-align: center;
  padding: 26px 20px 30px;
}
.nome__titulo {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 40px;
  line-height: 1.05;
  margin: 0;
}
.nome__subtitulo {
  margin: 12px 0 0;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--sand);
  font-weight: 400;
}
/* Logo da marca no lugar do texto do nome — centralizada e contida */
.nome__logo {
  display: block;
  width: 62%;
  max-width: 230px;
  height: auto;
  margin: 0 auto;
}

/* ---------- 4. Pill central ---------- */
.pill-wrap {
  display: flex;
  justify-content: center;
  margin: -16px 0 4px;
  position: relative;
  z-index: 2;
}
.pill {
  background-color: var(--cream);
  border: 1.5px solid var(--terracotta);
  color: var(--terracotta);
  border-radius: 999px;
  padding: 9px 22px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.4px;
}

/* ---------- 5. Botões principais ---------- */
.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px var(--space) 8px;
}
.btn {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 12px 18px;
  background-color: var(--terracotta);
  color: var(--cream);
  border-radius: var(--radius-btn);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.2;
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
/* Brilho de luz passando pelo botão, em loop */
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 55%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(244, 239, 231, 0.38) 50%, transparent 100%);
  transform: skewX(-22deg);
  pointer-events: none;
  animation: btnShine 4.2s ease-in-out infinite;
}
.btn:nth-child(1)::after { animation-delay: 0s; }
.btn:nth-child(2)::after { animation-delay: 0.8s; }
.btn:nth-child(3)::after { animation-delay: 1.6s; }
.btn:nth-child(4)::after { animation-delay: 2.4s; }
/* Ícone e texto sempre acima do brilho */
.btn__icon, .btn__label { position: relative; z-index: 1; }
.btn:hover,
.btn:focus-visible {
  background-color: var(--terracotta-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(112, 51, 14, 0.28);
  outline: none;
}
.btn:focus-visible { outline: 2px solid var(--brown); outline-offset: 2px; }
.btn__icon {
  flex: 0 0 auto;
  display: inline-flex;
}
.btn__icon svg { width: 22px; height: 22px; display: block; }
.btn__label { flex: 1 1 auto; }

/* ---------- Títulos de seção ---------- */
.secao-titulo {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--brown);
  font-size: 27px;
  text-align: center;
  margin: 0 0 16px;
}
.secao-titulo em { font-style: italic; font-weight: 500; }

/* ---------- 6. Sobre mim ---------- */
.sobre {
  padding: 30px var(--space) 12px;
}
.sobre__texto p {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.65;
  font-weight: 300;
  color: var(--brown);
}
.sobre__texto p:last-child { margin-bottom: 0; }

/* ---------- Imagem de depoimento (abaixo do Sobre) ---------- */
.depoimento {
  padding: 18px 0 4px;
}
.depoimento__img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- 8. Titulações ---------- */
.titulacoes { padding: 30px var(--space) 8px; }
.titulacoes__lista {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.titulacoes__lista li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.45;
  font-weight: 400;
  color: var(--brown);
}
.titulacoes__lista .selo {
  flex: 0 0 auto;
  color: var(--terracotta);
  margin-top: 1px;
}
.titulacoes__lista .selo svg { width: 22px; height: 22px; display: block; }

/* ---------- 9. Rodapé ---------- */
.rodape {
  margin-top: 30px;
  background-color: var(--olive);
  color: var(--cream);
  text-align: center;
  padding: 30px 20px 26px;
}
.rodape__monograma {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 38px;
  letter-spacing: 1px;
  color: var(--cream);
}
.rodape__logo {
  display: block;
  width: 168px;
  max-width: 62%;
  height: auto;
  margin: 0 auto;
}
.rodape__assinatura {
  margin: 14px 0 0;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--sand);
}

/* =========================================================
   Página Procedimentos (procedimentos.html)
   ========================================================= */

/* a. Barra superior sólida (voltar + nome) */
.topbar-proc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background-color: var(--olive);
  color: var(--cream);
}
.topbar-proc__back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 48px;
  padding: 6px 8px;
  margin: -6px -8px;
  color: var(--cream);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: 8px;
  transition: opacity 0.15s ease;
}
.topbar-proc__back:hover,
.topbar-proc__back:focus-visible { opacity: 0.82; outline: none; }
.topbar-proc__back:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }
.topbar-proc__back svg { width: 18px; height: 18px; display: block; }
.topbar-proc__name {
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--sand);
}

/* b. Intro */
.proc-intro {
  padding: 28px var(--space) 6px;
  text-align: center;
}
.proc-intro__titulo {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--brown);
  font-size: 34px;
  line-height: 1.1;
  margin: 0 0 12px;
}
.proc-intro__texto {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  font-weight: 300;
  color: var(--brown);
}

/* c. Grupo + rótulo de categoria */
.proc-grupo { padding: 20px var(--space) 4px; }
.proc-categoria {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 4px 0 14px;
}

/* d. Card do procedimento */
.proc-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background-color: var(--cream);
  border: 1px solid var(--sand);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
}
.proc-card:last-child { margin-bottom: 0; }
.proc-card__icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--terracotta);
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.proc-card__icon svg { width: 24px; height: 24px; display: block; }
.proc-card__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.proc-card__nome {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.2;
  color: var(--brown);
  margin: 0;
}
.proc-card__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 300;
  color: var(--brown);
}

/* CTA de WhatsApp dentro do card */
.cta-wpp {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  margin-top: 2px;
  padding: 10px 18px;
  background-color: var(--terracotta);
  color: var(--cream);
  border-radius: var(--radius-btn);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.cta-wpp:hover,
.cta-wpp:focus-visible {
  background-color: var(--terracotta-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(112, 51, 14, 0.28);
  outline: none;
}
.cta-wpp:focus-visible { outline: 2px solid var(--brown); outline-offset: 2px; }
.cta-wpp svg { width: 18px; height: 18px; display: block; flex: 0 0 auto; }

/* e. CTA final grande */
.cta-final-wrap { padding: 26px var(--space) 10px; }
.cta-final {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 16px 20px;
  background-color: var(--terracotta);
  color: var(--cream);
  border-radius: 16px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15.5px;
  line-height: 1.3;
  text-align: center;
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.cta-final:hover,
.cta-final:focus-visible {
  background-color: var(--terracotta-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(112, 51, 14, 0.30);
  outline: none;
}
.cta-final:focus-visible { outline: 2px solid var(--brown); outline-offset: 2px; }
.cta-final svg { width: 24px; height: 24px; display: block; flex: 0 0 auto; }

/* =========================================================
   Animações
   ========================================================= */

/* Entrada: fade + leve subida. Usa a propriedade `translate` (separada de
   `transform`) para não conflitar com o translate do hover dos botões. */
@keyframes fadeUp {
  from { opacity: 0; translate: 0 16px; }
  to   { opacity: 1; translate: 0 0; }
}

/* Brilho varrendo o botão */
@keyframes btnShine {
  0%        { left: -75%; }
  55%, 100% { left: 130%; }
}

/* Aplica a entrada de cima para baixo, escalonada */
.topbar,
.hero,
.nome,
.pill-wrap,
.links .btn,
.sobre,
.depoimento,
.titulacoes,
.rodape {
  animation: fadeUp 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.hero        { animation-delay: 0.05s; }
.topbar      { animation-delay: 0.45s; }
.nome        { animation-delay: 0.20s; }
.pill-wrap   { animation-delay: 0.32s; }
.links .btn:nth-child(1) { animation-delay: 0.42s; }
.links .btn:nth-child(2) { animation-delay: 0.50s; }
.links .btn:nth-child(3) { animation-delay: 0.58s; }
.links .btn:nth-child(4) { animation-delay: 0.66s; }
.sobre       { animation-delay: 0.30s; }
.depoimento  { animation-delay: 0.30s; }
.titulacoes  { animation-delay: 0.30s; }
.rodape      { animation-delay: 0.30s; }

/* Entrada suave da página de procedimentos */
.proc-intro,
.proc-grupo,
.cta-final-wrap {
  animation: fadeUp 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.proc-intro { animation-delay: 0.05s; }
.proc-grupo:nth-of-type(1) { animation-delay: 0.14s; }
.proc-grupo:nth-of-type(2) { animation-delay: 0.22s; }
.proc-grupo:nth-of-type(3) { animation-delay: 0.30s; }
.cta-final-wrap { animation-delay: 0.34s; }

/* Respeitar quem prefere menos movimento: sem entradas, sem brilho, sem lift */
@media (prefers-reduced-motion: reduce) {
  .topbar, .hero, .nome, .pill-wrap, .links .btn,
  .sobre, .depoimento, .titulacoes, .rodape,
  .proc-intro, .proc-grupo, .cta-final-wrap {
    animation: none;
  }
  .cta-wpp, .cta-final { transition: none; }
  .cta-wpp:hover, .cta-final:hover { transform: none; }
  .btn::after { animation: none; display: none; }
  .btn { transition: none; }
  .btn:hover, .btn:focus-visible { transform: none; }
}
