
/* ==========================================
   GALENA MEDICINA INTEGRADA
   ESTILO OFICIAL — VERSÃO CORRIGIDA
   ========================================== */

:root {
  --navy: #101f3a;
  --navy-deep: #0b172c;
  --navy-soft: #1b304f;
  --blue: #7895b1;
  --ice: #f4f7fa;
  --white: #ffffff;
  --text: #26354b;
  --muted: #657185;
  --border: #dfe6ee;
  --green: #25d366;
  --green-hover: #1fb957;
  --shadow: 0 18px 48px rgba(13,31,57,.11);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 105px;
}

body {
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: var(--ice);
  line-height: 1.7;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: "Poppins", Arial, sans-serif;
  line-height: 1.2;
  letter-spacing: -.035em;
}

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

button {
  font: inherit;
}

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

.container {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

/* ==========================================
   ÍCONES — TAMANHOS CONTROLADOS
   ========================================== */

/* SVGs decorativos do HTML */
svg.icone {
  display: inline-block;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  max-width: 18px;
  max-height: 18px;
  flex: 0 0 18px;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

/* WhatsApp usa preenchimento, não contorno */
svg.icone-whatsapp {
  display: inline-block;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  max-width: 20px;
  max-height: 20px;
  flex: 0 0 20px;
  fill: currentColor;
  stroke: none;
  vertical-align: middle;
}

/* Os ícones dentro dos botões nunca crescem */
.botao svg.icone,
.botao svg.icone-whatsapp {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  max-width: 18px;
  max-height: 18px;
  flex: 0 0 18px;
}

/* Ícones das informações de contato */
.contato-info strong svg {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  max-width: 18px;
  max-height: 18px;
  flex: 0 0 18px;
}

.contato-info p a svg,
.mapa > a svg {
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  max-width: 14px;
  max-height: 14px;
  flex: 0 0 14px;
}

/* ==========================================
   CABEÇALHO
   ========================================== */

.cabecalho {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(16,31,58,.98);
  border-bottom: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.barra {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.marca {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.marca img {
  width: auto;
  height: 77px;
  max-width: 220px;
  object-fit: contain;
}

.navegacao {
  display: flex;
  align-items: center;
  gap: 23px;
}

.navegacao a {
  color: white;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: color .2s;
}

.navegacao a:hover {
  color: #c2d9eb;
}

.menu-botao {
  display: none;
}

/* ==========================================
   HERO — FACHADA
   ========================================== */

.hero {
  min-height: 690px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 175px 0 105px;
  background: var(--navy);
  isolation: isolate;
}

.hero-foto,
.hero-sombra {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-foto {
  background-image: url("imagens/fachada-editada.png");
  background-size: cover;
  background-position: center 45%;
  background-repeat: no-repeat;
}

.hero-sombra {
  background: linear-gradient(
    90deg,
    rgba(9,22,43,.96) 0%,
    rgba(9,22,43,.87) 36%,
    rgba(9,22,43,.48) 73%,
    rgba(9,22,43,.24) 100%
  );
}

.hero-conteudo {
  position: relative;
  color: white;
}

.sobretitulo,
.etiqueta {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.sobretitulo {
  color: #d2e4f5;
  margin-bottom: 25px;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(38px, 5vw, 65px);
  font-weight: 800;
  margin-bottom: 25px;
}

.hero h1 em {
  font-style: normal;
  color: #c5dcf0;
}

.hero p {
  max-width: 570px;
  font-size: 16px;
  color: #e4eaf2;
  line-height: 1.85;
}

.acoes {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 35px;
}

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

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 53px;
  padding: 15px 25px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  transition:
    transform .25s,
    background .25s,
    box-shadow .25s;
}

.botao:hover {
  transform: translateY(-3px);
}

.botao-verde {
  background: var(--green);
  color: #082a18;
  box-shadow: 0 10px 24px rgba(37,211,102,.16);
}

.botao-verde:hover {
  background: var(--green-hover);
}

.botao-contorno {
  color: white;
  border: 1px solid rgba(255,255,255,.6);
  background: rgba(255,255,255,.06);
}

.botao-contorno:hover {
  background: rgba(255,255,255,.15);
}

/* ==========================================
   DIFERENCIAIS
   ========================================== */

.faixa-destaques {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.destaques {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-block: 27px;
  gap: 20px;
}

.destaques > div {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: #e8f0f8;
  font-size: 13px;
  font-weight: 600;
}

.destaques > div + div {
  border-left: 1px solid rgba(255,255,255,.16);
}

.destaques svg.icone {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  max-width: 22px;
  max-height: 22px;
  flex: 0 0 22px;
  color: #b8d2e8;
}

/* ==========================================
   SEÇÕES GERAIS
   ========================================== */

.secao {
  padding: 110px 0;
}

.secao-clara {
  background: var(--ice);
}

.etiqueta {
  color: #607f9f;
  margin-bottom: 17px;
}

.secao h2 {
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 23px;
}

.secao h2 span {
  color: var(--blue);
}

.secao p {
  font-size: 15px;
  line-height: 1.9;
}

.titulo-central {
  max-width: 720px;
  margin: 0 auto 55px;
  text-align: center;
}

.titulo-central p {
  color: var(--muted);
}

/* ==========================================
   SOBRE A GALENA
   ========================================== */

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 85px;
}

.sobre-imagem {
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.sobre-imagem img {
  width: 100%;
  height: 475px;
  object-fit: cover;
  object-position: center;
}

.texto-secao p {
  margin-bottom: 17px;
  color: #59677b;
}

.link-seta {
  display: inline-flex;
  gap: 13px;
  align-items: center;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
  margin-top: 17px;
  padding-bottom: 6px;
  border-bottom: 1px solid #a2b5c8;
}

.link-seta:hover {
  color: #577a9c;
}

/* ==========================================
   ULTRASSONOGRAFIA
   ========================================== */

.secao-azul {
  background: var(--navy);
  color: white;
}

.secao-azul .etiqueta {
  color: #b6cde2;
}

.secao-azul h2 {
  color: white;
}

.secao-azul h2 span {
  color: #bdd7ec;
}

.secao-azul .titulo-central p {
  color: #c8d5e3;
}

.servico-unico {
  max-width: 780px;
  margin: 0 auto;
  padding: 55px 45px;
  text-align: center;
  background: var(--navy-soft);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  box-shadow: 0 20px 45px rgba(0,0,0,.12);
}

.servico-simbolo {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  border-radius: 20px;
  background: rgba(255,255,255,.09);
  color: #c6def2;
}

.servico-simbolo svg.icone {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  max-width: 36px;
  max-height: 36px;
  flex: 0 0 36px;
  stroke-width: 1.5;
}

.servico-unico h3 {
  font-size: 25px;
  margin-bottom: 14px;
}

.servico-unico p {
  max-width: 520px;
  margin: 0 auto 27px;
  color: #cdd9e5;
}

/* ==========================================
   PROFISSIONAIS
   ========================================== */

.equipe-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 70px;
  max-width: 800px;
  margin: 0 auto;
}

.medico {
  text-align: center;
}

.medico-foto {
  width: 255px;
  height: 255px;
  max-width: 100%;
  margin: 0 auto 27px;
  padding: 8px;
  border: 1px solid #cbd8e4;
  border-radius: 50%;
  background: #e3eaf1;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(16,31,58,.09);
}

.medico-foto img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 25%;
}

.medico h3 {
  font-size: 23px;
  color: var(--navy);
  margin-bottom: 7px;
}

.medico p {
  color: #75859a;
  font-size: 13px;
  font-weight: 600;
}

/* ==========================================
   GALERIA
   ========================================== */

.secao-estrutura {
  background: #e8eff5;
}

.galeria {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.galeria img {
  width: 100%;
  height: 310px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(16,31,58,.08);
  transition: transform .3s;
}

.galeria img:hover {
  transform: translateY(-5px);
}

/* ==========================================
   CONTATO
   ========================================== */

.secao-contato {
  background: white;
}

.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.secao-contato h2 {
  max-width: 480px;
}

.contato-grid > div > p {
  color: var(--muted);
  margin-bottom: 35px;
}

.contato-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 20px;
  margin-bottom: 35px;
}

.contato-info > div {
  min-width: 0;
}

.contato-info strong {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--navy);
  font-size: 13px;
}

.contato-info strong svg.icone {
  color: #577b9c;
}

.contato-info strong svg.icone-whatsapp {
  color: #18ad59;
}

.contato-info p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.contato-info p a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.contato-info a:hover {
  color: #376b9b;
  text-decoration: underline;
}

/* MAPA */

.mapa {
  min-width: 0;
  overflow: hidden;
  background: var(--ice);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.mapa iframe {
  display: block;
  width: 100%;
  height: 390px;
  border: 0;
}

.mapa > a {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 20px;
  text-align: center;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

.mapa > a:hover {
  text-decoration: underline;
}

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

.rodape {
  background: var(--navy-deep);
  color: #bdcbd9;
  padding: 34px 0;
}

.rodape-conteudo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.rodape img {
  width: auto;
  height: 85px;
  max-width: 190px;
  object-fit: contain;
}

.rodape p {
  font-size: 12px;
}

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

.whatsapp-flutuante {
  position: fixed;
  right: 26px;
  bottom: 25px;
  z-index: 999;
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: var(--green);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 8px 30px rgba(0,0,0,.22);
  transition: transform .25s, background .25s;
}

.whatsapp-flutuante svg.icone-whatsapp {
  display: block;
  width: 31px;
  height: 31px;
  min-width: 31px;
  min-height: 31px;
  max-width: 31px;
  max-height: 31px;
  flex: 0 0 31px;
  fill: currentColor;
  stroke: none;
}

.whatsapp-flutuante:hover {
  transform: scale(1.08);
  background: var(--green-hover);
}

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

:focus-visible {
  outline: 3px solid #78b5f0;
  outline-offset: 4px;
}

/* ==========================================
   TABLETS
   ========================================== */

@media (max-width: 1050px) {
  .navegacao {
    gap: 14px;
  }

  .navegacao a {
    font-size: 11px;
  }

  .marca img {
    height: 68px;
  }

  .sobre-grid,
  .contato-grid {
    gap: 40px;
  }
}

/* ==========================================
   CELULARES
   ========================================== */

@media (max-width: 800px) {
  .container {
    width: calc(100% - 36px);
  }

  .barra {
    min-height: 82px;
  }

  .marca img {
    height: 66px;
    max-width: 180px;
  }

  .menu-botao {
    display: flex;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 9px;
    background: transparent;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
  }

  .menu-botao span {
    display: block;
    width: 21px;
    height: 2px;
    background: white;
    border-radius: 2px;
  }

  .navegacao {
    display: none;
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    padding: 18px 24px 25px;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 15px 25px rgba(0,0,0,.15);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .navegacao.ativo {
    display: flex;
  }

  .navegacao a {
    padding: 13px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,.09);
  }

  .hero {
    min-height: 630px;
    padding: 145px 0 85px;
  }

  .hero-foto {
    background-position: center;
  }

  .hero-sombra {
    background: linear-gradient(
      90deg,
      rgba(9,22,43,.94),
      rgba(9,22,43,.66)
    );
  }

  .hero h1 {
    font-size: clamp(36px, 7vw, 52px);
  }

  .secao {
    padding: 80px 0;
  }

  .sobre-grid,
  .contato-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .sobre-imagem img {
    height: 400px;
  }

  .galeria {
    grid-template-columns: 1fr 1fr;
  }

  .galeria img {
    height: 260px;
  }

  .galeria img:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 650px;
  }

  .hero h1 {
    font-size: clamp(31px, 9vw, 37px);
  }

  .hero p {
    font-size: 14px;
  }

  .acoes {
    flex-direction: column;
    align-items: stretch;
  }

  .acoes .botao {
    width: 100%;
  }

  .destaques {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-block: 23px;
  }

  .destaques > div {
    justify-content: flex-start;
  }

  .destaques > div + div {
    border-left: 0;
  }

  .secao {
    padding: 70px 0;
  }

  .secao h2 {
    font-size: 31px;
  }

  .sobre-imagem img {
    height: 300px;
  }

  .titulo-central {
    margin-bottom: 38px;
  }

  .servico-unico {
    padding: 40px 23px;
  }

  .servico-unico h3 {
    font-size: 22px;
  }

  .equipe-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .medico-foto {
    width: 240px;
    height: 240px;
  }

  .galeria {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .galeria img {
    height: 260px;
  }

  .galeria img:last-child {
    grid-column: auto;
  }

  .contato-info {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .mapa iframe {
    height: 320px;
  }

  .rodape-conteudo {
    flex-direction: column;
    text-align: center;
  }

  .whatsapp-flutuante {
    width: 56px;
    height: 56px;
    right: 17px;
    bottom: 17px;
  }

  .whatsapp-flutuante svg.icone-whatsapp {
    width: 29px;
    height: 29px;
    min-width: 29px;
    min-height: 29px;
    max-width: 29px;
    max-height: 29px;
    flex-basis: 29px;
  }
}

/* ==========================================
   MOVIMENTO REDUZIDO
   ========================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
