/* =========================================================
   Dra. Giovana Martins — link na bio
   Identidade: íris/periwinkle + magenta + coral + amarelo
   Responsivo: 1 coluna (celular) · 2 colunas (notebook/desktop)
   ========================================================= */

:root {
  --iris:        #645CE0;
  --iris-deep:   #4B43BE;
  --iris-light:  #8E88F2;
  --pink:        #E84A8C;
  --coral:       #F47C84;
  --yellow:      #F6C945;

  --cream:       #FBF4EC;
  --blush:       #FCEAE6;
  --ink:         #322C55;
  --ink-soft:    #6E6890;
  --white:       #ffffff;

  --glass:       rgba(255, 255, 255, 0.66);
  --glass-brd:   rgba(100, 92, 224, 0.14);

  --font-display: 'Fredoka', system-ui, sans-serif;
  --font-body:    'Poppins', system-ui, sans-serif;

  --shadow-soft: 0 14px 34px rgba(75, 67, 190, 0.10);
  --shadow-lift: 0 22px 46px rgba(75, 67, 190, 0.20);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --card-max: 980px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--blush);
  min-height: 100dvh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- Fundo: gradiente suave + glows + grão ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(65% 50% at 80% 8%,  rgba(244, 124, 132, 0.34), transparent 60%),
    radial-gradient(55% 48% at 10% 14%, rgba(142, 136, 242, 0.30), transparent 62%),
    radial-gradient(80% 60% at 50% 112%, rgba(232, 74, 140, 0.20), transparent 60%),
    linear-gradient(180deg, #FDF4ED 0%, #FCEAE6 52%, #F8E2DC 100%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
}
.blob--iris  { width: 42vmax; height: 42vmax; top: -14%; left: -12%;  background: radial-gradient(circle, rgba(142,136,242,.5), transparent 66%); }
.blob--coral { width: 40vmax; height: 40vmax; top: -8%;  right: -14%; background: radial-gradient(circle, rgba(244,124,132,.5), transparent 64%); }
.blob--pink  { width: 46vmax; height: 46vmax; bottom: -20%; left: 20%; background: radial-gradient(circle, rgba(232,74,140,.34), transparent 66%); }

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Página / cartão ---------- */
.page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vw, 48px);
}

.card {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 4vw, 26px);
}

/* ---------- Coluna visual: logo + foto ---------- */
.media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 4vw, 22px);
}

.logo {
  width: clamp(146px, 44%, 192px);
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(75, 67, 190, 0.16));
}

.portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 5.2;
  border-radius: 30px;
  overflow: hidden;
  background: var(--cream);
  box-shadow: var(--shadow-soft), 0 0 0 6px rgba(255, 255, 255, 0.55);
  isolation: isolate;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}
.portrait__dot {
  position: absolute;
  border-radius: 50%;
  z-index: 2;
  filter: drop-shadow(0 4px 10px rgba(75,67,190,.18));
}
.portrait__dot--coral  { width: 22px; height: 22px; background: var(--coral);  top: 16px;  right: 16px; }
.portrait__dot--yellow { width: 13px; height: 13px; background: var(--yellow); top: 40px;  right: 30px; }

/* ---------- Conteúdo: saudação + bio ---------- */
.content { display: flex; flex-direction: column; gap: clamp(16px, 3.5vw, 22px); }

.intro { text-align: center; }

.greeting {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.95rem, 1.4rem + 2.6vw, 2.85rem);
  line-height: 1;
  letter-spacing: -0.015em;
}
.sticker {
  color: var(--white);
  -webkit-text-stroke: 0.07em var(--iris);
  paint-order: stroke fill;
  text-shadow: 0 0.045em 0 var(--iris-deep), 0 0.12em 0.16em rgba(75, 67, 190, 0.3);
}
.tap {
  margin-top: 0.5em;
  font-weight: 500;
  font-size: clamp(0.76rem, 0.73rem + 0.22vw, 0.9rem);
  color: var(--iris);
}
.bio {
  margin: 0.8em auto 0;
  max-width: 35ch;
  font-size: clamp(0.82rem, 0.79rem + 0.2vw, 0.95rem);
  line-height: 1.5;
  color: var(--ink-soft);
}
.bio strong { color: var(--ink); font-weight: 600; }

/* ---------- Links ---------- */
.links { display: flex; flex-direction: column; gap: clamp(10px, 2vw, 13px); }

.link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px 12px 12px;
  background: var(--glass);
  border: 1.5px solid var(--glass-brd);
  border-radius: 18px;
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
              border-color 0.4s var(--ease), background 0.4s var(--ease);
  will-change: transform;
}
.link:hover, .link:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(100, 92, 224, 0.38);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-lift), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  outline: none;
}
.link:active { transform: translateY(-1px) scale(0.99); }

.link__icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--white);
  box-shadow: 0 6px 14px rgba(40, 30, 90, 0.2);
}
.link__icon svg { width: 23px; height: 23px; }
.link__icon--wa         { background: linear-gradient(140deg, #2ad15f, #128c45); }
.link__icon--ig         { background: linear-gradient(140deg, #f9a826, var(--pink) 55%, #8a3ab9); }
.link__icon--doctoralia { background: linear-gradient(140deg, #19c3c0, #0a7f8c); }
.link__icon--web        { background: linear-gradient(140deg, var(--iris-light), var(--iris)); }

.link__body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.link__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.15;
  color: var(--ink);
}
.link__sub { font-size: 0.76rem; color: var(--ink-soft); letter-spacing: 0.01em; }

.link__arrow {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 1.15rem;
  color: var(--iris);
  opacity: 0.45;
  transform: translateX(-2px);
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.link:hover .link__arrow, .link:focus-visible .link__arrow { transform: translateX(2px); opacity: 1; }

/* Botão de destaque (consulta online) */
.link--featured {
  background: linear-gradient(135deg, var(--iris-light) 0%, var(--iris) 48%, var(--iris-deep) 100%);
  border-color: transparent;
  box-shadow: 0 16px 30px rgba(75, 67, 190, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.link--featured .link__label,
.link--featured .link__arrow { color: var(--white); opacity: 1; }
.link--featured .link__sub { color: rgba(255, 255, 255, 0.82); }
.link--featured .link__icon {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}
.link--featured:hover, .link--featured:focus-visible {
  background: linear-gradient(135deg, var(--iris-light) 0%, var(--iris) 42%, var(--iris-deep) 100%);
  border-color: transparent;
  box-shadow: 0 22px 42px rgba(75, 67, 190, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* ---------- Rodapé ---------- */
.foot { text-align: center; padding-top: 6px; color: var(--ink-soft); }
.foot__reg { font-size: 0.74rem; letter-spacing: 0.04em; font-weight: 500; }
.foot__legal { font-size: 0.68rem; opacity: 0.72; margin-top: 6px; max-width: 36ch; margin-inline: auto; }

/* ---------- Estados de animação ---------- */
.js [data-anim] { opacity: 0; }

/* =========================================================
   NOTEBOOK / DESKTOP — duas colunas num cartão fosco
   ========================================================= */
@media (min-width: 860px) {
  .card {
    max-width: var(--card-max);
    flex-direction: row;
    align-items: stretch;
    gap: clamp(28px, 4vw, 48px);
    padding: clamp(26px, 3vw, 40px);
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 36px;
    box-shadow: 0 40px 90px rgba(75, 67, 190, 0.16);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
  }
  .media {
    flex: 0 0 42%;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 22px;
  }
  .logo { width: clamp(170px, 64%, 226px); }
  .portrait {
    flex: 1 1 0;
    width: 100%;
    aspect-ratio: auto;
    min-height: 0;
  }
  .content {
    flex: 1;
    justify-content: center;
    gap: clamp(18px, 2vw, 24px);
  }
  .intro { text-align: left; }
  .bio { margin-inline: 0; }
}

@media (min-width: 1180px) {
  .media { flex-basis: 40%; }
  .greeting { font-size: 3.1rem; }
}

/* ---------- Acessibilidade: menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  .js [data-anim] { opacity: 1 !important; transform: none !important; }
  .blob { animation: none !important; }
  * { transition-duration: 0.01ms !important; }
}
