/* ==========================================================
   Clínica Fraternity – ajustes para celular e tablet
   (carregado por último para ter prioridade)
   ========================================================== */

html { -webkit-text-size-adjust: 100%; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

/* Em telas de toque não existe "passar o mouse": evita efeitos presos após o toque */
@media (hover: none) {
  .card:hover, .member:hover { --lift: 0px; }
  .card:hover::after, .member:hover::after { opacity: 0; }
  .card:hover .card-icon { background: var(--green-100); color: var(--green-600); animation: none; }
  .member:hover .avatar { transform: none; }
  .value:hover { transform: none; box-shadow: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 880px) {
  .section { padding: 4rem 0; }
  .section-head { margin-bottom: 2.25rem; }
  .hero { padding: 2rem 0 3.5rem; }
  .hero-inner { gap: 1.5rem; }
  .map iframe { height: 320px; }
  .about-tooth { display: none; }
}

/* ---------- Celular ---------- */
@media (max-width: 600px) {
  :root { --header-h: 64px; }
  body { font-size: 1rem; }
  .container { width: min(100% - 2rem, var(--container)); }

  /* Cabeçalho */
  .brand img { width: 44px; }
  .brand-text strong { font-size: 1.2rem; }
  .brand-text small { font-size: .7rem; }

  /* Seções */
  .section { padding: 3.25rem 0; }
  .section-head { margin-bottom: 1.75rem; }
  .section-head p:last-child { font-size: 1rem; }
  h2 { font-size: 1.65rem; }

  /* Topo */
  .hero { padding: 1.25rem 0 2.75rem; }
  .hero-art { max-width: 200px; }
  .hero .lead { font-size: 1.05rem; }
  .hero-actions { flex-direction: column; gap: .7rem; margin: 1.5rem 0 1.75rem; }
  .hero-actions .btn { width: 100%; }
  .hero-facts {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem;
  }
  .hero-facts li {
    padding: .7rem .55rem; border-left: 0; border-top: 3px solid var(--lime);
    background: rgba(255, 255, 255, .75); border-radius: 0 0 12px 12px; text-align: center;
  }
  .hero-facts strong { font-size: .98rem; line-height: 1.2; }
  .hero-facts span { font-size: .74rem; line-height: 1.3; margin-top: .2rem; }

  /* Faixa */
  .marquee { padding: .75rem 0; }
  .marquee-track { font-size: 1rem; gap: 1.2rem; }
  .marquee-track svg { width: 18px; height: 18px; }

  /* Serviços: card compacto, ícone ao lado do título */
  .cards { gap: .85rem; }
  .card {
    display: grid; grid-template-columns: 48px 1fr; column-gap: 1rem; align-items: start;
    padding: 1.15rem 1.15rem 1.25rem;
  }
  .card-icon { grid-row: span 2; width: 48px; height: 48px; border-radius: 14px; margin: 0; }
  .card-icon svg { width: 26px; height: 26px; }
  .card h3 { margin: .1rem 0 .3rem; font-size: 1.08rem; }
  .card p { font-size: .95rem; line-height: 1.55; }
  .card-cta { display: flex; padding: 1.4rem 1.25rem; }
  .card-cta .btn { width: 100%; }

  /* Equipe: dente com iniciais no canto, texto ocupa a largura toda */
  .team { gap: .9rem; }
  .member, .member-staff { display: block; padding: 0; margin-left: 0; margin-right: 0; max-width: none; }
  .member-staff { margin-top: .9rem; }
  .avatar, .member-staff .avatar {
    position: absolute; top: 1.1rem; right: 1.1rem; margin: 0;
    width: 52px; height: 58px; z-index: 2;
  }
  .avatar span { font-size: .95rem; margin-top: -9px; }
  .member-body, .member-staff .member-body { padding: 1.15rem 1.2rem 1.3rem; }
  .member .role { margin-right: 60px; white-space: normal; }
  .member h3 { padding-right: 60px; font-size: 1.05rem; }
  .member p { font-size: .95rem; line-height: 1.55; }

  /* Sobre */
  .about-copy p { font-size: 1.02rem; }
  .value { padding: 1.1rem; gap: .9rem; }
  .value svg { width: 38px; height: 38px; padding: 8px; }
  .value p { font-size: .95rem; }

  /* Contato */
  .contact { gap: 2rem; }
  .contact-list { margin-top: 1.5rem; gap: 1rem; }
  .contact-list svg { width: 42px; height: 42px; padding: 10px; }
  .contact-form { padding: 1.35rem; }
  .map { margin-top: 2.5rem; }
  .map iframe { height: 280px; }

  /* Rodapé */
  .site-footer { padding: 2.25rem 0 5.5rem; font-size: .9rem; }
  .footer-inner { gap: 1.25rem; }
  .footer-inner img { width: 92px; }

  /* WhatsApp flutuante respeita a barra do iPhone */
  .whatsapp-float {
    width: 54px; height: 54px;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
  }
  .whatsapp-float svg { width: 29px; height: 29px; }
}

/* ---------- Celulares bem estreitos ---------- */
@media (max-width: 370px) {
  h1 { font-size: 2rem; }
  .hero-facts strong { font-size: .9rem; }
  .hero-facts span { font-size: .7rem; }
}

/* ---------- Celular deitado ---------- */
@media (max-height: 500px) and (orientation: landscape) {
  .site-nav { max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .hero-art { max-width: 180px; }
}
