/* Biolink CSS — Todo escopado sob .page-biolink e .bio-* */

.page-biolink {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: var(--u-soft, #f0f7f7);
  background-image: radial-gradient(circle at 50% 0%, rgb(var(--u-shade, 12 57 60) / 6%) 0%, transparent 60%);
  color: var(--ink, #103e42);
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

.page-biolink .visually-hidden,
.bio-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.page-biolink a:focus-visible,
.bio-shortcut:focus-visible,
.bio-service-item:focus-visible,
.bio-social-item:focus-visible,
.bio-cta:focus-visible,
.bio-detail-link:focus-visible {
  outline: 3px solid var(--u-ring, #3ab3b5);
  outline-offset: 2px;
}

.bio-card--identity a:focus-visible,
.bio-card--contact a:focus-visible {
  outline-color: #ffffff;
}

.bio-main {
  width: 100%;
  min-height: 100vh;
  padding: 24px 16px 48px;
  box-sizing: border-box;
}

.bio-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  box-sizing: border-box;
}

.bio-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 20px;
}

.bio-top-logo {
  display: block;
  width: 165px;
  max-width: 100%;
  height: auto;
}

@media (max-width: 600px) {
  .bio-header {
    margin: 0 0 18px;
  }

  .bio-top-logo {
    width: 140px;
  }
}

/* Estrutura Geral */
.bio-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

.bio-card {
  border-radius: 20px;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.bio-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.bio-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--u-mid, #0b6269);
  margin: 0 0 4px;
}

.bio-eyebrow--light {
  color: var(--u-glow, #b5f2ed);
}

.bio-section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--u-deep, #103e42);
  margin: 0;
  line-height: 1.25;
}

.bio-section-title--light {
  color: #ffffff;
}

/* 1. Card Identidade Institucional */
.bio-card--identity {
  position: relative;
  background-color: var(--u-deep, #103e42);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 480px;
  animation: bioFadeIn 320ms ease-out both;
}

.bio-identity-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.bio-identity-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.page-biolink[data-unit="cuiaba"] .bio-identity-img {
  object-position: center 28%;
}

.page-biolink[data-unit="sinop"] .bio-identity-img {
  object-position: left top;
}

.bio-identity-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgb(var(--u-shade, 12 57 60) / 10%) 0%, rgb(var(--u-shade, 12 57 60) / 25%) 22%, rgb(var(--u-shade, 12 57 60) / 82%) 45%, rgb(var(--u-shade, 12 57 60) / 95%) 75%, rgb(var(--u-shade, 12 57 60) / 98%) 100%);
}

.page-biolink[data-unit="sinop"] .bio-identity-overlay {
  background: linear-gradient(180deg, transparent 0%, rgb(var(--u-shade, 19 65 72) / 18%) 100%);
}

@media (max-width: 600px) {
  .bio-identity-overlay {
    background: linear-gradient(180deg, rgb(var(--u-shade, 12 57 60) / 44%) 0%, rgb(var(--u-shade, 12 57 60) / 70%) 12%, rgb(var(--u-shade, 12 57 60) / 90%) 28%, rgb(var(--u-shade, 12 57 60) / 97%) 100%);
  }

  .page-biolink[data-unit="sinop"] .bio-identity-overlay {
    background: linear-gradient(180deg, transparent 0%, rgb(var(--u-shade, 19 65 72) / 18%) 100%);
  }
}

.page-biolink[data-unit="sinop"] .bio-identity-content {
  background: linear-gradient(180deg, rgb(var(--u-shade, 19 65 72) / 92%) 0%, rgb(var(--u-shade, 19 65 72) / 94%) 100%);
}

.bio-identity-content {
  position: relative;
  z-index: 2;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.bio-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.bio-logo {
  height: 34px;
  width: auto;
}

.bio-unit-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgb(var(--u-shade, 12 57 60) / 62%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  letter-spacing: 0.02em;
}

.bio-title {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

.bio-lead {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
}

.bio-shortcuts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.bio-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-sizing: border-box;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.bio-shortcut:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.bio-shortcut--whatsapp {
  background: #176b4b;
  border-color: #176b4b;
}

.bio-shortcut--whatsapp:hover {
  background: #14593e;
  border-color: #14593e;
}

.bio-shortcut--phone .bio-icon,
.bio-shortcut--map .bio-icon {
  filter: brightness(0) invert(1);
}

/* 2. Card Serviços da Unidade (com capas reais completas) */
.bio-card--services {
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: none;
  box-shadow: none;
  overflow: visible;
  border-radius: 0;
  animation: bioFadeIn 360ms ease-out 60ms both;
}

.bio-section-header {
  margin-bottom: 2px;
}

.bio-services-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 601px) {
  .page-biolink .bio-services-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .page-biolink .bio-services-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
}

.bio-service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  box-sizing: border-box;
  background: var(--u-soft, #f0f7f7);
  border: 1px solid rgba(var(--u-shade, 12 57 60) / 14%);
  box-shadow: none;
  transition: transform 180ms ease, border-color 180ms ease;
}

.bio-service-img {
  width: 100%;
  height: auto;
  display: block;
  flex-shrink: 0;
}

.bio-service-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: var(--u-soft, #f0f7f7);
  box-sizing: border-box;
  flex: 1 1 auto;
}

.bio-service-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--u-deep, #103e42);
  line-height: 1.25;
  margin: 0;
}

.bio-service-arrow {
  color: var(--u-mid, #0b6269);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  transition: transform 180ms ease;
}

/* 3. Redes e Canais (Cards coloridos com cores oficiais escurecidas) */
.bio-social {
  width: 100%;
  box-sizing: border-box;
  animation: bioFadeIn 420ms ease-out 180ms both;
}

.bio-social-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.bio-social-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 18px;
  border-radius: 16px;
  color: #ffffff;
  text-decoration: none;
  box-sizing: border-box;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.bio-social-item--instagram {
  background: linear-gradient(135deg, #4f1d6b 0%, #8c1653 45%, #a63214 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.bio-social-item--facebook {
  background: #0b57be;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.bio-social-item--doctoralia {
  background: #066e66;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.bio-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.bio-social-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.bio-social-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.2;
}

.bio-social-arrow {
  color: #ffffff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  opacity: 0.9;
  transition: transform 220ms ease;
}

.bio-social-item:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.45);
}

/* 4. Card Contato e Informações Locais */
.bio-card--contact {
  background-color: var(--u-deep, #103e42);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.12);
  animation: bioFadeIn 400ms ease-out 120ms both;
}

.bio-contact-photo {
  width: 100%;
  height: 140px;
  overflow: hidden;
  background-color: rgb(var(--u-shade, 12 57 60) / 50%);
}

.bio-contact-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bio-contact-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
}

.bio-contact-lead {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.bio-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-sizing: border-box;
  transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.bio-cta--whatsapp {
  background-color: #176b4b;
  border: 1px solid #176b4b;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(23, 107, 75, 0.4);
}

.bio-cta--whatsapp:hover {
  background-color: #14593e;
  border-color: #14593e;
  transform: translateY(-1px);
}

.bio-contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 14px 0;
}

.bio-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.bio-icon--detail {
  margin-top: 2px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.bio-detail-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bio-detail-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--u-glow, #b5f2ed);
}

.bio-detail-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  line-height: 1.4;
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 180ms ease;
}

.bio-detail-link:hover {
  color: var(--u-glow, #b5f2ed);
}

.bio-detail-value {
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
}

.bio-insurers-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bio-insurers-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--u-glow, #b5f2ed);
}

.bio-insurers-list {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  line-height: 1.4;
}

.bio-insurers-private {
  font-size: 12px;
  color: var(--u-glow, #b5f2ed);
  margin: 0;
  line-height: 1.35;
}

.bio-insurers-notice {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  margin: 4px 0 0;
  line-height: 1.35;
}

/* Animações e Hover (apenas com suporte a hover) */
@keyframes bioFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (hover: hover) {
  .bio-service-card:hover {
    transform: translateY(-2px);
    border-color: var(--u-ring, #3ab3b5);
  }

  .bio-service-card:hover .bio-service-arrow {
    transform: translateX(3px);
  }

  .bio-social-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  }

  .bio-social-item:hover .bio-social-arrow {
    transform: translateX(3px) translateY(-1px);
  }
}

/* Tablet (~601px - 1100px) */
@media (min-width: 601px) and (max-width: 1100px) {
  .bio-main {
    padding: 28px 20px 48px;
  }

  .page-biolink .bio-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "identity contact"
      "services services"
      "social   social";
    gap: 20px;
  }

  .page-biolink .bio-identity {
    grid-area: identity;
    min-height: auto;
  }

  .page-biolink .bio-contact {
    grid-area: contact;
  }

  .page-biolink .bio-services {
    grid-area: services;
  }

  .page-biolink .bio-social {
    grid-area: social;
  }

  .page-biolink .bio-services-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .page-biolink .bio-social-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

/* Desktop (> 1100px) */
@media (min-width: 1101px) {
  /* Natural facade sizing moves the photographed sign above the headline. */
  .page-biolink[data-unit="sinop"] .bio-identity-img {
    height: auto;
    object-position: center top;
  }

  .bio-container {
    max-width: 1480px;
  }

  .bio-identity-content {
    padding: 20px;
    gap: 12px;
  }

  .bio-title {
    font-size: 26px;
  }

  .bio-lead {
    font-size: 14px;
    line-height: 1.4;
  }

  .bio-shortcuts {
    margin-top: 0;
    gap: 8px;
  }

  .bio-shortcut {
    padding: 8px 12px;
  }

  .bio-services > .bio-section-header {
    flex: 0 0 auto;
    margin: 0;
  }

  .bio-services .bio-section-title {
    font-size: 18px;
  }

  .bio-services-list {
    flex: 1 1 auto;
    grid-template-rows: auto auto;
  }

  .bio-service-bar {
    padding: 10px 12px;
  }

  .bio-contact-photo {
    height: 72px;
    flex: 0 0 auto;
  }

  .bio-contact-content {
    padding: 16px;
    gap: 10px;
  }

  .bio-contact .bio-section-title {
    font-size: 18px;
  }

  .bio-contact .bio-cta {
    font-size: 14px;
    padding: 10px 12px;
    min-height: 44px;
  }

  .bio-contact-details {
    gap: 8px;
    padding: 10px 0;
  }

  .bio-insurers-box {
    gap: 4px;
  }

  .bio-main {
    padding: 36px 24px 48px;
  }

  .bio-header {
    margin: 0 0 24px;
  }

  .bio-top-logo {
    width: 170px;
  }

  .page-biolink .bio-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 2.3fr) minmax(0, 1.05fr);
    grid-template-areas:
      "identity services contact"
      "social   social   social";
    gap: 24px;
    align-items: stretch;
  }

  .page-biolink .bio-identity {
    grid-area: identity;
    min-height: 0;
  }

  .page-biolink .bio-services {
    grid-area: services;
  }

  .page-biolink .bio-contact {
    grid-area: contact;
  }

  .page-biolink .bio-services-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .page-biolink .bio-social {
    grid-area: social;
  }

  .page-biolink .bio-social-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* Mobile Small (<= 360px) */
@media (max-width: 360px) {
  .bio-main {
    padding: 16px 12px 36px;
  }

  .bio-identity-content {
    padding: 20px 16px;
  }

  .bio-title {
    font-size: 22px;
  }

  .bio-contact-content {
    padding: 18px 14px;
  }

  .bio-service-bar {
    padding: 8px 12px;
  }
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .page-biolink *,
  .page-biolink *::before,
  .page-biolink *::after,
  .bio-card--identity,
  .bio-card--services,
  .bio-card--contact,
  .bio-social,
  .bio-service-card,
  .bio-service-img,
  .bio-service-arrow,
  .bio-social-item,
  .bio-social-arrow,
  .bio-shortcut,
  .bio-cta {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    transform: none !important;
  }
}
