/* ==========================================================================
   BIO — Dra. Nathalia Franco | Fisioterapia Neurofuncional
   Fidelidade visual ao Layout - Template (bio/layout-template.png):
   fundo indigo/violeta escuro, foto de topo com overlay, avatar circular,
   botões em pílula com ícone circular, bloco de autoridade e grid 2x2,
   ícones sociais e botão flutuante de WhatsApp.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg-deep: #100c22;
  --bg-deep-2: #1a1440;
  --card: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.09);
  --card-hover: rgba(255, 255, 255, 0.1);

  --purple-500: #6a5cd6;
  --purple-600: #4b3f94;
  --purple-700: #3a3175;
  --purple-light: #a89cf0;

  --whatsapp: #25d366;
  --whatsapp-dark: #1ebd5a;

  --ink-white: #ffffff;
  --ink-soft: rgba(255, 255, 255, 0.72);
  --ink-muted: rgba(255, 255, 255, 0.52);

  --radius-pill: 20px;
  --radius-lg: 22px;
  --radius-full: 999px;

  --font-heading: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg-deep);
  color: var(--ink-white);
  font-family: var(--font-body);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ============================= LAYOUT BASE ============================= */

.bio {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg-deep);
  position: relative;
  padding-bottom: 96px;
}

@media (min-width: 560px) {
  body {
    background: linear-gradient(180deg, #17102f 0%, #0b0818 100%);
  }

  .bio {
    margin: 0 auto;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
    min-height: 100vh;
  }
}

/* ============================= HEADER ============================= */

.bio-header {
  position: relative;
  padding: 0 24px 4px;
  text-align: center;
}

.bio-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 300px;
  overflow: hidden;
  z-index: 0;
}

.bio-header-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 38%, rgba(16, 12, 34, 0.6) 72%, var(--bg-deep) 96%);
}

.bio-header-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.bio-avatar {
  position: relative;
  z-index: 1;
  width: 148px;
  height: 148px;
  margin: 68px auto 20px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(160deg, var(--purple-light), var(--purple-600));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.bio-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 18%;
  border: 3px solid var(--bg-deep);
}

.bio-name {
  position: relative;
  z-index: 1;
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-white);
}

.bio-role {
  position: relative;
  z-index: 1;
  margin: 0 0 4px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--purple-light);
}

.bio-crefito {
  position: relative;
  z-index: 1;
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
}

.bio-tagline {
  position: relative;
  z-index: 1;
  margin: 0 0 26px;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ============================= BOTÕES PRINCIPAIS ============================= */

.bio-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 20px;
}

.bio-link {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-pill);
  background: var(--card);
  border: 1px solid var(--card-border);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.bio-link:active {
  transform: scale(0.98);
}

@media (hover: hover) {
  .bio-link:hover {
    background: var(--card-hover);
  }
}

.bio-link-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink-white);
}

.bio-link-icon svg {
  width: 21px;
  height: 21px;
}

.bio-link-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bio-link-text strong {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-white);
}

.bio-link-text small {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-muted);
}

.bio-link-arrow {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--ink-muted);
}

.bio-link-arrow svg {
  width: 100%;
  height: 100%;
}

.bio-link-primary {
  background: linear-gradient(135deg, var(--purple-500) 0%, var(--purple-600) 100%);
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(75, 63, 148, 0.35);
}

.bio-link-primary .bio-link-icon {
  background: rgba(255, 255, 255, 0.16);
}

.bio-link-primary .bio-link-text small {
  color: rgba(255, 255, 255, 0.78);
}

.bio-link-primary .bio-link-arrow {
  color: rgba(255, 255, 255, 0.85);
}

.bio-link-whatsapp {
  background: linear-gradient(135deg, var(--whatsapp) 0%, var(--whatsapp-dark) 100%);
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.3);
}

.bio-link-whatsapp .bio-link-icon {
  background: rgba(255, 255, 255, 0.18);
}

.bio-link-whatsapp .bio-link-text small {
  color: rgba(255, 255, 255, 0.85);
}

.bio-link-whatsapp .bio-link-arrow {
  color: rgba(255, 255, 255, 0.9);
}

/* ============================= AUTORIDADE ============================= */

.bio-authority {
  padding: 28px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bio-authority-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--purple-700) 0%, #2a2456 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bio-authority-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
}

.bio-authority-icon svg {
  width: 21px;
  height: 21px;
}

.bio-authority-banner p {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-white);
}

.bio-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--card-border);
  overflow: hidden;
}

.bio-stat {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 18px 16px;
  border-right: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.bio-stat:nth-child(2n) {
  border-right: none;
}

.bio-stat:nth-last-child(-n + 2) {
  border-bottom: none;
}

.bio-stat-icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: var(--purple-light);
}

.bio-stat-icon svg {
  width: 17px;
  height: 17px;
}

.bio-stat p {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.bio-stat p strong {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-white);
}

.bio-stat p span {
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--ink-muted);
}

/* ============================= RODAPÉ ============================= */

.bio-footer {
  padding: 26px 20px 4px;
  text-align: center;
}

.bio-copyright {
  margin: 0;
  font-size: clamp(10.5px, 3.1vw, 13px);
  white-space: nowrap;
  color: var(--ink-muted);
}

/* ============================= WHATSAPP FLUTUANTE ============================= */

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--whatsapp) 0%, var(--whatsapp-dark) 100%);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  -webkit-tap-highlight-color: transparent;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

.whatsapp-float:active {
  transform: scale(0.94);
}

@media (min-width: 560px) {
  .whatsapp-float {
    right: calc(50% - 240px + 20px);
  }
}

/* ============================= MODAL DE AGENDAMENTO ============================= */

.bio-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 6, 20, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.bio-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.bio-modal {
  width: 100%;
  max-width: 400px;
  background: linear-gradient(165deg, #241d4a 0%, #140f2b 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 30px 26px 26px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: translateY(16px);
  transition: transform 0.2s ease;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.bio-modal-overlay.is-open .bio-modal {
  transform: translateY(0);
}

.bio-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.bio-modal-close svg {
  width: 18px;
  height: 18px;
}

.bio-modal h3 {
  margin: 0;
  padding-right: 30px;
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 700;
  color: var(--ink-white);
}

.bio-modal-sub {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.bio-form {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bio-form-field label {
  display: block;
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.bio-form-field input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-white);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.bio-form-field input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.bio-form-field input:focus {
  outline: none;
  border-color: var(--purple-light);
  background: rgba(255, 255, 255, 0.08);
}

.bio-field-error {
  display: none;
  margin-top: 6px;
  font-size: 12px;
  color: #ff8a8a;
}

.bio-form-field.has-error .bio-field-error {
  display: block;
}

.bio-form-field.has-error input {
  border-color: #ff6b6b;
}

.bio-form-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 18px;
  border: none;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--purple-500) 0%, var(--purple-600) 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(75, 63, 148, 0.35);
  -webkit-tap-highlight-color: transparent;
}

.bio-form-submit:disabled {
  opacity: 0.7;
  cursor: default;
}

.bio-form-submit svg {
  width: 20px;
  height: 20px;
}

.bio-form-status {
  font-size: 13px;
  text-align: center;
  min-height: 18px;
  color: var(--ink-soft);
}

.bio-form-status.is-error {
  color: #ff8a8a;
}

.bio-form-privacy {
  margin: 0;
  font-size: 11.5px;
  text-align: center;
  color: var(--ink-muted);
}
