/* ============================================
   Design tokens — link-in-bio layout
   ============================================ */
:root {
  /* Paleta de marca — Derma Rio Vale */
  --brand-brown:      #6E2E1E;   /* marrom-vinho da logo */
  --brand-brown-dark: #4E1F14;
  --brand-copper:     #B87554;   /* cobre / rose-brown */
  --brand-copper-soft:#E7CFBF;
  --brand-gold:       #D6B57A;   /* dourado champagne */
  --brand-gold-soft:  #F0DEBB;
  --brand-cream:      #FBF6EF;
  --brand-blush:      #F6EAE1;   /* dialoga com o fundo da foto */

  --color-page:        #EFE7DF;
  --color-app:         #FFFCF7;
  --color-surface:     #FFFFFF;
  --color-muted:       #F7EFE6;
  --color-border:      #E9DDD0;
  --color-border-soft: #F1E6D9;

  --color-text:      #2A1A12;
  --color-text-soft: #5C463A;
  --color-text-mute: #8E7768;

  --color-accent:      var(--brand-copper);
  --color-accent-dark: var(--brand-brown);
  --color-accent-soft: var(--brand-copper-soft);

  --color-wa:      #25D366;
  --color-wa-dark: #1DA851;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(78, 31, 20, .06);
  --shadow-md: 0 8px 24px rgba(78, 31, 20, .10);
  --shadow-lg: 0 20px 50px rgba(78, 31, 20, .14);

  --app-width: 480px;
}

/* ============================================
   Reset
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 10%,  #F9CDBB 0%, transparent 45%),
    radial-gradient(circle at 90% 20%,  #F0DEBB 0%, transparent 50%),
    radial-gradient(circle at 80% 90%,  #E7B398 0%, transparent 45%),
    radial-gradient(circle at 10% 85%,  #F5D5C0 0%, transparent 45%),
    linear-gradient(135deg, #FDEEE1 0%, #FBE7DA 50%, #F5D0BB 100%);
  background-attachment: fixed;
}

/* Blobs decorativos animados */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  pointer-events: none;
  animation: float 18s ease-in-out infinite;
}
body::before {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, var(--brand-copper) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}
body::after {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--brand-gold) 0%, transparent 70%);
  bottom: -120px;
  right: -120px;
  animation-delay: -9s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(30px, -20px) scale(1.05); }
  66%      { transform: translate(-20px, 30px) scale(.95); }
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { padding: 0; margin: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.25; }

/* ============================================
   App (container "mobile" centralizado)
   ============================================ */
.app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--app-width);
  margin: 0 auto;
  min-height: 100vh;
  padding: 1.75rem 1.25rem 5rem;
  background: rgba(255, 252, 247, .68);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-left: 1px solid rgba(255, 255, 255, .5);
  border-right: 1px solid rgba(255, 255, 255, .5);
}

@media (min-width: 640px) {
  body { padding: 2.5rem 1rem; }
  .app {
    min-height: auto;
    border-radius: 28px;
    padding: 2.25rem 1.75rem 3rem;
    border: 1px solid rgba(255, 255, 255, .6);
    box-shadow:
      0 30px 60px -20px rgba(78, 31, 20, .18),
      0 12px 24px -8px rgba(184, 117, 84, .12),
      inset 0 1px 0 rgba(255, 255, 255, .8);
  }
}

/* ============================================
   Marca (logo topo)
   ============================================ */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  margin: 0 auto 1.75rem;
  position: relative;
}
.brand__plate {
  position: relative;
  padding: 1.1rem 2rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .95) 0%, rgba(255, 250, 243, .85) 100%);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow:
    0 12px 30px -8px rgba(110, 46, 30, .22),
    0 4px 12px -4px rgba(184, 117, 84, .18),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -12px 30px rgba(240, 222, 187, .35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.brand__plate::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(214, 181, 122, .8), transparent 40%, transparent 60%, rgba(184, 117, 84, .5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.brand__plate::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 181, 122, .45) 0%, transparent 60%);
  filter: blur(30px);
  z-index: -1;
  pointer-events: none;
  animation: brand-glow 5s ease-in-out infinite alternate;
}
.brand img {
  display: block;
  width: 150px;
  height: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 6px rgba(110, 46, 30, .12));
}
.brand__caption {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--brand-copper);
  opacity: .85;
}
@keyframes brand-glow {
  0%   { opacity: .6; transform: translate(-50%, -50%) scale(.95); }
  100% { opacity: 1;  transform: translate(-50%, -50%) scale(1.1); }
}

/* ============================================
   Perfil
   ============================================ */
.profile {
  text-align: center;
  padding-bottom: 1.5rem;
  position: relative;
}
.profile::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 181, 122, .4) 0%, transparent 70%);
  filter: blur(30px);
  z-index: -1;
  pointer-events: none;
}
.profile__avatar {
  width: 134px;
  height: 134px;
  border-radius: 50%;
  margin: 0 auto 1.15rem;
  background: linear-gradient(135deg, var(--brand-copper-soft), var(--brand-gold-soft));
  overflow: hidden;
  position: relative;
  border: 4px solid rgba(255, 255, 255, .9);
  box-shadow:
    0 12px 30px rgba(110, 46, 30, .22),
    0 0 0 1px var(--brand-gold),
    inset 0 -8px 20px rgba(184, 117, 84, .15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile__avatar-fallback {
  display: none;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  letter-spacing: .05em;
}
.profile__avatar.is-placeholder .profile__avatar-fallback { display: block; }

.profile__name {
  font-size: 1.45rem;
  color: var(--brand-brown);
  margin-bottom: .2rem;
  letter-spacing: -.01em;
}
.profile__title {
  font-size: .95rem;
  color: var(--brand-copper);
  margin: 0 0 .3rem;
  font-weight: 500;
  letter-spacing: .02em;
}
.profile__crm {
  font-size: .75rem;
  color: var(--color-text-mute);
  letter-spacing: .08em;
  margin: 0 0 1.1rem;
  text-transform: uppercase;
}

.profile__quals {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1rem 1rem;
  background: rgba(255, 255, 255, .5);
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: var(--radius-md);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.profile__quals li {
  font-size: .82rem;
  color: var(--brand-brown-dark);
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  text-align: left;
}
.profile__quals li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-copper);
  margin-top: .5rem;
}

/* ============================================
   Botões de ação (WhatsApp / Site)
   ============================================ */
.actions {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin: 1.25rem 0 1.75rem;
}
.action {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .95rem 1rem;
  background: rgba(255, 255, 255, .75);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(110, 46, 30, .06);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  min-height: 68px;
}
.action:hover, .action:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 12px 28px rgba(110, 46, 30, .14);
}
.action:active { transform: translateY(0); }

.action__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.action__icon--wa {
  background: var(--color-wa);
  color: #FFF;
}
.action__icon--site {
  background: linear-gradient(135deg, var(--brand-copper), var(--brand-brown));
  color: #FFF;
}
.action__label {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.action__label strong {
  font-size: .95rem;
  font-weight: 600;
  color: var(--color-text);
}
.action__label small {
  font-size: .78rem;
  color: var(--color-text-mute);
}
.action__arrow {
  color: var(--color-text-mute);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  padding-right: .25rem;
}

/* ============================================
   Blocos (Serviços / Procedimentos)
   ============================================ */
.block {
  margin-bottom: 1.75rem;
}
.block__title {
  font-size: .78rem;
  font-weight: 700;
  color: var(--brand-brown);
  margin: 0 .25rem .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.block__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--brand-copper-soft), transparent);
}

.items {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  background: rgba(255, 255, 255, .6);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
  min-height: 58px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(110, 46, 30, .04);
}
.item:hover {
  background: rgba(255, 255, 255, .92);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(110, 46, 30, .12);
}
.item:hover .item__check {
  background: var(--brand-copper);
  color: #FFF;
}
.item:active { transform: translateY(0); }
.item__check {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand-gold-soft);
  color: var(--brand-brown);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.item:hover .item__check {
  transform: rotate(360deg) scale(1.1);
}
.item__name {
  flex: 1;
  font-size: .9rem;
  color: var(--color-text);
  font-weight: 500;
  line-height: 1.3;
}
.item__arrow {
  color: var(--color-text-mute);
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1;
  padding-right: .2rem;
}

/* ============================================
   Banner "Agende sua consulta"
   ============================================ */
.banner {
  display: block;
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-brown-dark) 0%, var(--brand-brown) 55%, var(--brand-copper) 100%);
  color: #FFF;
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
}
.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(400px 220px at 90% 20%, rgba(214, 181, 122, .45) 0%, transparent 60%),
    radial-gradient(300px 200px at 10% 100%, rgba(240, 222, 187, .28) 0%, transparent 60%);
  pointer-events: none;
}
.banner:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.banner__inner {
  position: relative;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .35rem;
  min-height: 150px;
}
.banner__label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: rgba(255,255,255,.7);
}
.banner__title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1;
}
.banner__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .85rem;
  font-weight: 600;
  color: #FFF;
  padding: .55rem .9rem;
  background: var(--color-wa);
  border-radius: 999px;
  align-self: flex-start;
}

/* ============================================
   Footer
   ============================================ */
.foot {
  text-align: center;
  padding: 1.5rem 0 .5rem;
  color: var(--color-text-mute);
  font-size: .78rem;
}
.foot p { margin: 0; }
.foot__small { margin-top: .15rem; font-size: .72rem; }

/* ============================================
   WhatsApp flutuante
   ============================================ */
.wa-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 30;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-wa);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(37,211,102,.4);
  transition: transform .2s ease, background .2s ease;
  animation: wa-pulse 2.4s ease-out infinite;
}
.wa-float:hover {
  background: var(--color-wa-dark);
  transform: scale(1.06);
}
@keyframes wa-pulse {
  0%   { box-shadow: 0 8px 20px rgba(37,211,102,.4), 0 0 0 0 rgba(37,211,102,.5); }
  70%  { box-shadow: 0 8px 20px rgba(37,211,102,.4), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 8px 20px rgba(37,211,102,.4), 0 0 0 0 rgba(37,211,102,0); }
}

@media (min-width: 640px) {
  .wa-float {
    right: calc(50% - var(--app-width) / 2 + 1rem);
    bottom: 1.75rem;
  }
}

/* ============================================
   Reveal on scroll
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Preferência de movimento reduzido
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
