/* ========================================
   Instituto de Ginecologia e Mastologia de Palmas
   Bio Page - Identidade Visual Dra. Rafaela Resende
   Paleta: Cinza Elegante + Dourado Champagne
   ======================================== */

/* Importação de Fontes Google */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Lato:wght@300;400;600;700&display=swap');

/* Reset e Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Lato', 'Source Sans Pro', sans-serif;
  background: linear-gradient(to bottom, #f5f4f2 0%, #ebe9e6 100%);
  background-attachment: fixed;
  min-height: 100vh;
  color: #1a1a1a;
  line-height: 1.6;
}

/* Textura sutil opcional no fundo */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.015) 2px,
      rgba(0, 0, 0, 0.015) 4px
    );
  pointer-events: none;
  z-index: 0;
}

/* Container Principal */
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

/* ========================================
   HEADER
   ======================================== */
header {
  text-align: center;
  margin-bottom: 0;
}

.avatar {
  margin-bottom: 20px;
}

.avatar-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  margin: 0 auto;
  display: block;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  border: 4px solid #ffffff;
}

h1 {
  font-family: 'Lato', sans-serif;
  font-size: 1.85rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
  text-shadow: none;
  letter-spacing: 0.5px;
}

.subtitle {
  font-size: 1rem;
  color: #5a5a5a;
  font-weight: 400;
  letter-spacing: 0.2px;
}

.subtitle-desc {
  font-size: 0.95rem;
  color: #6a6a6a;
  font-weight: 400;
  margin-top: 4px;
}

/* ========================================
   SEÇÕES (Profissionais e Local)
   ======================================== */
section {
  background: #ffffff;
  border-radius: 6px;
  padding: 28px 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-top: 2px solid #c4a77d;
}

section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #d4b896;
  text-align: center;
  letter-spacing: 0.5px;
}

/* Cards dos Médicos */
.doctor-card {
  background: #ffffff;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 16px;
  border-left: 3px solid #c4a77d;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s ease;
}

.doctor-card:hover {
  box-shadow: 0 2px 6px rgba(196, 167, 125, 0.2);
}

.doctor-card:last-child {
  margin-bottom: 0;
}

.doctor-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.doctor-card .specialty {
  font-weight: 600;
  color: #5a5a5a;
  margin-bottom: 6px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.doctor-card .description {
  color: #4a4a4a;
  font-size: 0.95rem;
  margin-bottom: 6px;
  line-height: 1.5;
}

.doctor-card .crm {
  font-size: 0.85rem;
  color: #757575;
  font-family: 'Lato', sans-serif;
  font-weight: 300;
}

/* Seção de Localização */
.location {
  text-align: center;
}

.location .company-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #1a1a1a;
  letter-spacing: 0.3px;
}

.location address {
  font-style: normal;
  color: #4a4a4a;
  margin-bottom: 16px;
  line-height: 1.8;
}

.location address p {
  margin-bottom: 2px;
}

.location .phone {
  font-size: 1.1rem;
  font-weight: 600;
}

.location .phone a {
  color: #5a5a5a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.location .phone a:hover {
  color: #c4a77d;
}

/* ========================================
   BOTÃO WHATSAPP HERO (no topo)
   ======================================== */
a.button.button-hero {
  display: flex;
  max-width: 320px;
  margin-top: 20px;
  margin-bottom: 48px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   BOTÕES DE LINKS
   ======================================== */
.links {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px 24px;
  margin-bottom: 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Lato', sans-serif;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.button:last-child {
  margin-bottom: 0;
}

.button svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.button:active {
  transform: translateY(0);
}

/* WhatsApp - mantém verde característico */
.button-whatsapp {
  background: #25D366;
  color: white;
}

.button-whatsapp:hover {
  background: #20bd5a;
}

/* Telefone - usa dourado da marca */
.button-phone {
  background: #c4a77d;
  color: #1a1a1a;
}

.button-phone:hover {
  background: #d4b896;
}

/* Instagram - mantém gradiente característico */
.button-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
}

.button-instagram:hover {
  opacity: 0.9;
}

/* ========================================
   ESPAÇO FINAL
   ======================================== */
.container {
  padding-bottom: 40px;
}

/* ========================================
   RESPONSIVIDADE - Mobile First
   ======================================== */
@media (max-width: 480px) {
  .container {
    padding: 24px 16px 32px 16px;
  }

  h1 {
    font-size: 1.5rem;
  }

  .subtitle {
    font-size: 0.95rem;
  }

  a.button.button-hero {
    max-width: 100%;
    margin-top: 16px;
    margin-bottom: 40px;
    margin-left: 0;
    margin-right: 0;
  }

  section {
    padding: 24px 18px;
  }

  section h2 {
    font-size: 1.2rem;
  }

  .doctor-card {
    padding: 16px;
  }

  .doctor-card h3 {
    font-size: 1.05rem;
  }

  .button {
    padding: 14px 20px;
    font-size: 0.95rem;
  }

  .avatar-img {
    width: 96px;
    height: 96px;
  }
}

/* Tablets */
@media (min-width: 481px) and (max-width: 768px) {
  .container {
    padding: 36px 24px;
  }
}

/* ========================================
   ACESSIBILIDADE
   ======================================== */

/* Focus states para navegação por teclado */
.button:focus-visible,
.location .phone a:focus-visible {
  outline: 2px solid #c4a77d;
  outline-offset: 2px;
}

/* Reduzir movimento para usuários sensíveis */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================
   MODO ESCURO - Adaptado à identidade
   ======================================== */
@media (prefers-color-scheme: dark) {
  body {
    background: linear-gradient(to bottom, #2a2a2a 0%, #1a1a1a 100%);
  }

  section {
    background: #2a2a2a;
    color: #f5f4f2;
    border-top-color: #c4a77d;
  }

  section h2 {
    color: #f5f4f2;
    border-bottom-color: #c4a77d;
  }

  .doctor-card {
    background: #1f1f1f;
    border-left-color: #c4a77d;
  }

  .doctor-card h3 {
    color: #f5f4f2;
  }

  .doctor-card .specialty {
    color: #d4b896;
  }

  .doctor-card .description {
    color: #d0d0d0;
  }

  .doctor-card .crm {
    color: #a0a0a0;
  }

  .location .company-name {
    color: #f5f4f2;
  }

  .location address {
    color: #d0d0d0;
  }

  .location .phone a {
    color: #d4b896;
  }

  .location .phone a:hover {
    color: #c4a77d;
  }

  .button-phone {
    background: #d4b896;
    color: #1a1a1a;
  }

  .button-phone:hover {
    background: #c4a77d;
  }
}

/* ========================================
   ANIMAÇÕES SUTIS - Apenas essenciais
   ======================================== */

/* Animação suave de entrada - reduzida */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

header, section, .button-hero {
  animation: fadeInUp 0.4s ease-out forwards;
  opacity: 0;
}

/* Delays progressivos sutis */
header { animation-delay: 0s; }
.button-hero { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.15s; }
section:nth-child(4) { animation-delay: 0.2s; }
