/* =========================================================
   VITÓRIA SOUZA — ENFERMEIRA ESTOMATERAPEUTA
   Sistema visual: branco + azul profundo + dourado, tipografia
   consistente (Playfair Display + Inter), espaçamento regular
   entre seções. Visual limpo e profissional.
   =========================================================
   COMO EDITAR CORES: altere os valores dentro de :root abaixo.
   Todo o site usa essas variáveis, então uma alteração aqui
   muda o site inteiro automaticamente.
========================================================= */

:root {
  /* Fundo */
  --branco: #FFFFFF;
  --fundo-alt: #F2F6F7;          /* branco levemente azulado, usado para alternar seções */

  /* Azul (cor principal da marca) */
  --azul: #637375;               /* títulos e links sobre fundo claro */
  --azul-medio: #4C595B;         /* textos e detalhes escuros intermediários */
  --azul-profundo: #1D3234;      /* azul profundo: menu, rodapé, faixas de destaque */
  --azul-profundo-clara: #30484B;/* variação um pouco mais clara, para gradientes/hover */

  /* Terracota / dourado (cor de destaque da marca) */
  --terracota: #B59374;
  --terracota-claro: #D8C0A2;
  --terracota-escuro: #8C6F53;

  /* Texto */
  --texto-corpo: #3D3833;        /* cinza-marrom escuro: alto contraste para leitura */
  --texto-claro: #6B6459;

  /* Tipografia */
  --fonte-titulo: 'Playfair Display', Georgia, serif;
  --fonte-corpo: 'Inter', 'Segoe UI', sans-serif;

  /* Espaçamentos e formas */
  --raio: 18px;
  --raio-botao: 50px;
  --sombra: 0 10px 30px rgba(29, 50, 52, 0.10);
  --sombra-hover: 0 18px 44px rgba(29, 50, 52, 0.16);
  --transicao: 0.25s ease;
}

/* =========================================================
   RESET BÁSICO
========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: 112.5%; /* ~18px base — fonte generosa, público inclui idosos */
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--fonte-corpo);
  color: var(--texto-corpo);
  background: var(--branco);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 {
  font-family: var(--fonte-titulo);
  font-weight: 700;
  color: var(--azul-profundo);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}
p { margin: 0 0 1em; }
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Foco visível para acessibilidade (navegação por teclado) */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--terracota-escuro);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--azul-profundo);
  color: #fff;
  padding: 0.8rem 1.2rem;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* =========================================================
   ELEMENTOS REUTILIZÁVEIS
========================================================= */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--terracota-escuro);
  margin-bottom: 0.8rem;
}

.btn {
  display: inline-block;
  padding: 0.95rem 2.1rem;
  border-radius: var(--raio-botao);
  font-family: var(--fonte-corpo);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  transition: transform var(--transicao), box-shadow var(--transicao), background var(--transicao), color var(--transicao);
  border: 2px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--terracota) 0%, var(--terracota-escuro) 100%);
  color: #fff;
  box-shadow: var(--sombra);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--terracota-escuro) 0%, var(--azul-profundo) 100%);
  transform: translateY(-2px);
  box-shadow: var(--sombra-hover);
}
.btn-outline {
  background: transparent;
  color: var(--azul-profundo);
  border-color: var(--azul-profundo);
}
.btn-outline:hover {
  background: var(--azul-profundo);
  color: #fff;
  transform: translateY(-2px);
}

.card {
  background: var(--branco);
  border: 1px solid rgba(29, 50, 52, 0.08);
  border-radius: var(--raio);
  box-shadow: var(--sombra);
  padding: 2rem 1.6rem;
  transition: transform var(--transicao), box-shadow var(--transicao);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sombra-hover); }

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--azul-profundo);
  color: #fff;
  margin-bottom: 1.1rem;
}
.icon-circle svg { width: 28px; height: 28px; }

.section-heading { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-sub { color: var(--texto-claro); font-size: 1.05rem; margin: 0; }

/* Título de seção com mais presença: maior, mais forte, com um pequeno traço de destaque embaixo */
.section-heading h2,
.sobre-inner h2,
.cta-final h2,
.profissionais h2 {
  font-size: clamp(2.1rem, 4.5vw, 2.75rem);
  position: relative;
  padding-bottom: 0.85rem;
}
.section-heading h2::after,
.sobre-inner h2::after,
.cta-final h2::after,
.profissionais h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: var(--terracota);
}

section { padding: 5rem 0; }

/* =========================================================
   FAIXA COM TEXTO ROLANDO (TICKER)
========================================================= */
.ticker {
  overflow: hidden;
  background: linear-gradient(90deg, var(--terracota) 0%, var(--terracota-escuro) 45%, var(--azul-profundo) 100%);
  padding: 0.9rem 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 26s linear infinite;
}
.ticker-track span {
  white-space: nowrap;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  text-transform: uppercase;
  padding-right: 2.5rem;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* =========================================================
   ANIMAÇÕES SUAVES AO ROLAR A PÁGINA
   Usa recurso nativo de CSS (animation-timeline: view()), só
   na opacidade. Em navegadores sem suporte ainda, o conteúdo
   simplesmente aparece normalmente, sem quebrar o layout.
========================================================= */
@keyframes fade-in-up {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      opacity: 0;
      animation: fade-in-up 0.9s ease both;
      animation-timeline: view();
      animation-range: entry 0% cover 35%;
    }
  }
}

/* Entrada suave do topo (hero) ao carregar a página */
@keyframes fade-in-load {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-text { animation: fade-in-load 0.9s ease both; }
  .hero-photo { animation: fade-in-load 0.9s ease 0.15s both; }
}

/* =========================================================
   CABEÇALHO
========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--azul-profundo);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  position: relative;
}
.logo-link { display: inline-flex; align-items: center; gap: 0.6rem; }
.logo-icone { height: 34px; width: auto; }
.logo-texto {
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
  white-space: nowrap;
}

.header-actions { display: flex; align-items: center; gap: 0.9rem; }

.menu-toggle { display: none; }
.menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 20;
}
.menu-btn span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transicao), opacity var(--transicao);
}

.main-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--azul-profundo);
  box-shadow: var(--sombra);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.main-nav ul { display: flex; flex-direction: column; padding: 0.5rem 1.25rem 1.5rem; }
.main-nav li { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.main-nav a {
  display: block;
  padding: 0.9rem 0.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}
.main-nav a:hover { color: var(--terracota); }
.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  font-size: 0.8rem;
}
.btn-nav svg { width: 16px; height: 16px; flex-shrink: 0; }

.menu-toggle:checked ~ .main-nav { max-height: 500px; }
.menu-toggle:checked ~ .header-actions .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle:checked ~ .header-actions .menu-btn span:nth-child(2) { opacity: 0; }
.menu-toggle:checked ~ .header-actions .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
========================================================= */
.hero { padding-top: 3.5rem; padding-bottom: 4rem; overflow: hidden; }
.hero-local { font-size: 0.95rem; color: var(--texto-claro); text-align: center; margin: 1.5rem 0 0; }
.hero-inner {
  display: flex;
  flex-direction: column-reverse;
  gap: 3rem;
  align-items: center;
}
.hero-text { text-align: center; }

.hero h1 {
  font-weight: 700;
  font-size: clamp(2.6rem, 7.5vw, 4rem);
  color: var(--azul-profundo);
  margin-bottom: 0.2em;
}

.hero-subtitle {
  display: block;
  font-size: 1.2rem;
  color: var(--terracota-escuro);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 1.3rem;
}
.hero-coren {
  font-size: 0.75em;
  font-weight: 600;
  color: var(--azul-medio);
  letter-spacing: 0.01em;
}
.hero-impacto {
  font-family: var(--fonte-titulo);
  font-style: normal;
  font-weight: 600;
  font-size: clamp(1.4rem, 3.2vw, 1.8rem);
  line-height: 1.45;
  color: var(--azul-profundo);
  max-width: 34ch;
  margin: 0 auto 1rem;
}
.hero-descricao {
  font-size: 1.05rem;
  color: var(--texto-corpo);
  max-width: 50ch;
  margin: 0 auto 2rem;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}
.hero-actions .btn { width: 100%; }

.hero-photo { position: relative; width: 100%; max-width: 300px; margin: 0 auto; }
.photo-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--fundo-alt);
  border: 3px dashed var(--terracota);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: var(--terracota-escuro);
}
.photo-placeholder svg { width: 30%; height: 30%; }
.photo-placeholder span { font-size: 0.95rem; font-weight: 600; }
.photo-real {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 50%;
  box-shadow: var(--sombra-hover);
}

/* =========================================================
   SOBRE MIM
========================================================= */
.sobre { background: var(--fundo-alt); }
.sobre-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.sobre-texto { text-align: left; margin-top: 1.75rem; }
.sobre-texto p { color: var(--texto-corpo); }

/* =========================================================
   MINHA HISTÓRIA COM O CUIDADO
========================================================= */
.historia-inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
}
.historia-frase {
  display: block;
  font-family: var(--fonte-titulo);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  color: var(--azul-profundo);
  margin-bottom: 1.5rem;
}
.historia-texto p { color: var(--texto-corpo); }
.historia-foto { width: 100%; max-width: 360px; text-align: center; margin: 0; }
.photo-placeholder-retrato { aspect-ratio: 5 / 4; border-radius: var(--raio); }
.historia-foto figcaption { margin-top: 0.9rem; }
.fc-nome {
  display: block;
  font-family: var(--fonte-titulo);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--azul-profundo);
}
.fc-desc {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracota-escuro);
  margin-top: 0.2rem;
}

/* =========================================================
   SERVIÇOS
========================================================= */
.servicos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.servico-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.servico-card p { color: var(--texto-corpo); font-size: 1rem; margin-bottom: 0; }
.servicos-cta { text-align: center; margin-top: 3rem; }

/* =========================================================
   COMO FUNCIONA — com linha de conexão animada e números
   interativos, para reforçar a ideia de sequência
========================================================= */
.como-funciona { background: var(--fundo-alt); }
.passos {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}
/* Linha pontilhada que conecta os passos — só faz sentido em fileira (desktop) */
.passos::before {
  content: "";
  display: none;
  position: absolute;
  top: 28px;
  left: 16%;
  right: 16%;
  height: 3px;
  background-image: repeating-linear-gradient(90deg, var(--terracota) 0 10px, transparent 10px 22px);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 0;
}
@keyframes linha-passos {
  to { transform: scaleX(1); }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .passos::before {
      animation: linha-passos 1.4s ease both;
      animation-timeline: view();
      animation-range: entry 20% cover 65%;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .passos::before { transform: scaleX(1); }
}

.passo { position: relative; z-index: 1; text-align: center; }
.passo-numero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--azul-profundo);
  color: #fff;
  font-family: var(--fonte-titulo);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  transition: transform var(--transicao), background var(--transicao);
}
.passo:hover .passo-numero,
.passo:focus-within .passo-numero {
  transform: scale(1.12);
  background: var(--terracota-escuro);
}
.passo h3 { font-size: 1.25rem; }
.passo p { color: var(--texto-corpo); max-width: 40ch; margin-left: auto; margin-right: auto; }

/* =========================================================
   ONDE ATENDO
========================================================= */
.unidades-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 860px;
  margin: 0 auto;
}
.unidade-card h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.unidade-card p { color: var(--texto-corpo); margin-bottom: 0; }

/* =========================================================
   PARA PROFISSIONAIS DE SAÚDE
========================================================= */
.profissionais { background: var(--branco); text-align: center; }
.profissionais-box {
  background: var(--fundo-alt);
  border: 1px solid rgba(29, 50, 52, 0.08);
  border-radius: var(--raio);
  padding: 3rem 1.75rem;
  max-width: 780px;
  margin: 0 auto;
}
.profissionais .eyebrow { color: var(--terracota-escuro); }
.profissionais h2 { max-width: 30ch; margin-left: auto; margin-right: auto; }
.profissionais-texto { color: var(--texto-corpo); max-width: 56ch; margin: 0 auto 2rem; font-size: 1.05rem; }

/* =========================================================
   AVALIAÇÕES — selo com a nota do Google
========================================================= */
.depoimentos {
  background-image: url("img/icone-marca-fundo.png");
  background-repeat: repeat;
  background-size: 64px 64px;
  background-color: var(--fundo-alt);
}
.google-selo {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
  background: var(--branco);
  border: 1px solid rgba(29, 50, 52, 0.08);
  border-radius: var(--raio);
  box-shadow: var(--sombra);
  padding: 2.75rem 2rem;
}
.google-estrelas {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  margin-bottom: 1.1rem;
}
.google-estrelas svg { width: 26px; height: 26px; fill: var(--terracota); }
.google-nota {
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 2.6rem;
  color: var(--azul-profundo);
  margin-bottom: 0.2rem;
}
.google-qtd { color: var(--texto-claro); font-size: 0.95rem; margin-bottom: 1.75rem; }

/* =========================================================
   CHAMADA FINAL (CTA)
========================================================= */
.cta-final {
  background: var(--azul-profundo);
  color: #fff;
  text-align: center;
}
.cta-final h2 { color: #fff; max-width: 26ch; margin-left: auto; margin-right: auto; }
.cta-final-texto { color: rgba(255,255,255,0.85); max-width: 60ch; margin: 0 auto 1rem; }
.cta-final .btn-primary { margin-top: 1rem; }

/* =========================================================
   RODAPÉ
========================================================= */
.site-footer {
  background: var(--azul-profundo);
  color: #E9E3DA;
  text-align: center;
  padding: 3.5rem 0 2rem;
}
.footer-mark { width: 44px; margin: 0 auto 1rem; opacity: 0.9; }
.footer-nome { font-family: var(--fonte-titulo); font-size: 1.4rem; margin-bottom: 0.1rem; }
.footer-titulo { color: var(--terracota); font-weight: 600; margin-bottom: 0.3rem; }
.footer-coren { font-size: 0.9rem; color: rgba(255,255,255,0.6); margin-bottom: 0.4rem; }
.footer-local { font-size: 0.9rem; color: rgba(255,255,255,0.6); margin-bottom: 1.6rem; }
.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin: 0 auto 2rem;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  padding: 0.65rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--raio-botao);
  transition: background var(--transicao), border-color var(--transicao), transform var(--transicao);
}
.footer-links a svg { width: 19px; height: 19px; flex-shrink: 0; }
.footer-links a:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--terracota);
  transform: translateY(-2px);
}
.footer-copy { font-size: 0.85rem; color: rgba(255,255,255,0.4); margin: 0; max-width: 60ch; margin-left: auto; margin-right: auto; }

/* =========================================================
   BALÃO FLUTUANTE DO WHATSAPP
========================================================= */
.whatsapp-float {
  position: fixed;
  bottom: 1.4rem;
  right: 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  background: #25D366;
  color: #fff;
  border-radius: 14px;
  padding: 0.8rem 1.2rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  z-index: 900;
  transition: transform var(--transicao);
}
.whatsapp-float-titulo { font-weight: 700; font-size: 0.95rem; line-height: 1.3; }
.whatsapp-float-sub { font-weight: 500; font-size: 0.8rem; opacity: 0.92; line-height: 1.3; }
.whatsapp-float:hover { transform: scale(1.04); }

/* =========================================================
   RESPONSIVO — TABLET (600px+)
========================================================= */
@media (min-width: 600px) {
  .hero-actions { flex-direction: row; justify-content: center; }
  .hero-actions .btn { width: auto; }
  .servicos-grid { grid-template-columns: 1fr 1fr; }
  .unidades-grid { grid-template-columns: 1fr 1fr; }
  .footer-links { flex-direction: row; }
}

/* =========================================================
   RESPONSIVO — DESKTOP (900px+)
========================================================= */
@media (min-width: 900px) {
  .header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
  }
  .menu-btn { display: none; }
  .main-nav {
    position: static;
    max-height: none;
    overflow: visible;
    background: transparent;
    box-shadow: none;
  }
  .main-nav ul { flex-direction: row; align-items: center; justify-content: center; gap: 1.4rem; padding: 0; }
  .main-nav li { border-bottom: none; }
  .main-nav a { padding: 0.4rem 0; font-size: 0.85rem; }

  .hero { padding-top: 5rem; padding-bottom: 5rem; }
  .hero-inner { flex-direction: row; text-align: left; gap: 4.5rem; }
  .hero-text { text-align: left; }
  .hero-impacto, .hero-descricao { margin-left: 0; margin-right: 0; }
  .hero-local { text-align: left; margin-left: 0; }
  .hero-actions { justify-content: flex-start; }
  .hero-photo { max-width: 360px; }

  .logo-icone { height: 40px; }

  .historia-inner { flex-direction: row; align-items: flex-start; gap: 4rem; }
  .historia-foto { flex-shrink: 0; }

  .servicos-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
  .passos { grid-template-columns: repeat(3, 1fr); }
  .passos::before { display: block; }
  .unidades-grid { grid-template-columns: repeat(3, 1fr); max-width: 1080px; }

  section { padding: 7rem 0; }
}

@media (min-width: 1200px) {
  .container { padding: 0 2rem; }
}
