/* ===== Letra Fraunces, alojada no próprio site (pasta /fontes/) ===== */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fontes/fraunces-v38-latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fontes/fraunces-v38-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fontes/fraunces-v38-latin-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("/fontes/fraunces-v38-latin-600italic.woff2") format("woff2");
}

/* ===== Identidade: cores e fontes ===== */
:root {
  /* Cores tiradas do logótipo */
  --cor-principal: #322323;        /* castanho-escuro do logótipo: textos, títulos, botões */
  --cor-principal-escura: #1F1515; /* botões ao passar o rato */
  --cor-secundaria: #DF6C96;       /* rosa do logótipo: fundos e detalhes */
  --cor-rosa-texto: #C2416F;       /* rosa mais escuro, para texto e links sobre branco (contraste suficiente) */
  --cor-tom: #FBEAF0;              /* rosa muito claro, para fundos de secção */
  --cor-texto: #322323;
  --cor-fundo: #FFFFFF;

  --fonte-titulos: "Fraunces", Georgia, "Times New Roman", serif;
  --fonte-texto: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --largura: 72rem;
  --margem: clamp(1.25rem, 5vw, 3rem);
}

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

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

body {
  margin: 0;
  font-family: var(--fonte-texto);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--cor-texto);
  background: var(--cor-fundo);
}

h1, h2, h3 {
  font-family: var(--fonte-titulos);
  font-weight: 400;
  color: var(--cor-principal);
  line-height: 1.15;
  margin: 0 0 0.6em;
}

h2 { font-size: clamp(2rem, 4vw, 2.75rem); }

a { color: var(--cor-rosa-texto); }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.contentor {
  max-width: var(--largura);
  margin: 0 auto;
  padding: 0 var(--margem);
}

.estreito { max-width: 48rem; }
.centrado { text-align: center; }

.secao { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.secao-tom { background: var(--cor-tom); }

/* ===== Barra de redes sociais ===== */
.barra-redes {
  background: var(--cor-principal);
  font-size: 0.875rem;
}

.barra-redes-interior {
  display: flex;
  justify-content: flex-end;
  gap: 1.25rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.barra-redes a { color: var(--cor-fundo); text-decoration: none; }
.barra-redes a:hover { text-decoration: underline; }

/* ===== Cabeçalho ===== */
.cabecalho { border-bottom: 1px solid var(--cor-tom); }

.cabecalho-interior {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.logotipo-link { display: block; line-height: 0; }
.logotipo-cabecalho { width: 160px; height: auto; }

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}

.menu a { color: var(--cor-texto); text-decoration: none; }
.menu a:hover { color: var(--cor-principal); }

/* Página atual no menu */
.menu a[aria-current="page"] {
  color: var(--cor-rosa-texto);
  text-decoration: underline;
  text-underline-offset: 0.4em;
  text-decoration-thickness: 1px;
}

/* ===== Título das páginas interiores ===== */
.titulo-pagina {
  background: var(--cor-tom);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  text-align: center;
}

.titulo-pagina h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  margin: 0;
}

/* ===== Menu do telemóvel (só aparece em ecrãs pequenos) ===== */
.cabecalho { position: relative; }
.menu-telemovel { display: none; }

.menu-telemovel summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0;
  color: var(--cor-principal);
}

.menu-telemovel summary::-webkit-details-marker { display: none; }

/* Ícone de três riscas, desenhado em CSS; vira um X quando o menu está aberto */
.menu-icone,
.menu-icone::before,
.menu-icone::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, background 0.2s ease;
}

.menu-icone { position: relative; }
.menu-icone::before,
.menu-icone::after { content: ""; position: absolute; left: 0; }
.menu-icone::before { top: -7px; }
.menu-icone::after { top: 7px; }

.menu-telemovel[open] .menu-icone { background: transparent; }
.menu-telemovel[open] .menu-icone::before { transform: translateY(7px) rotate(45deg); }
.menu-telemovel[open] .menu-icone::after { transform: translateY(-7px) rotate(-45deg); }

.menu-telemovel-lista {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 10;
  background: var(--cor-fundo);
  border-top: 1px solid var(--cor-tom);
  border-bottom: 3px solid var(--cor-secundaria);
  padding: 0.5rem var(--margem) 1rem;
  display: flex;
  flex-direction: column;
}

.menu-telemovel-lista a {
  color: var(--cor-texto);
  text-decoration: none;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--cor-tom);
  font-size: 1.1rem;
}

.menu-telemovel-lista a:last-child { border-bottom: none; }
.menu-telemovel-lista a[aria-current="page"] { color: var(--cor-rosa-texto); }

@media (prefers-reduced-motion: reduce) {
  .menu-icone, .menu-icone::before, .menu-icone::after { transition: none; }
}

/* ===== Topo com foto ===== */
/* A foto aparece sempre inteira (proporção 3:2, sem cortes).
   Computador e tablet: texto por cima da foto, sobre a parede, com um véu rosa à esquerda.
   Telemóvel (ver fim do ficheiro): foto em cima, texto por baixo. */
.topo {
  position: relative;
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--cor-tom);
}

.topo-foto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(251, 234, 240, 0.92) 0%, rgba(251, 234, 240, 0.7) 28%, rgba(251, 234, 240, 0) 52%);
}

.topo-conteudo {
  position: relative;
  z-index: 2;
  width: 100%;
  animation: entrada 0.9s ease-out both;
}

.topo-conteudo > * { max-width: min(30rem, 38vw); }

/* O único movimento do site: o texto do topo aparece suavemente ao abrir a página */
@keyframes entrada {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .topo-conteudo { animation: none; }
}

.topo h1 {
  color: var(--cor-principal);
  text-transform: uppercase;
  font-size: clamp(2rem, 4.4vw, 4.75rem);
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}

.topo-especialidades {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  margin: 0 0 2rem;
}

.botao {
  display: inline-block;
  background: var(--cor-secundaria);
  color: var(--cor-principal);        /* castanho sobre rosa: contraste suficiente (o branco sobre este rosa não tem) */
  text-decoration: none;
  font-weight: 500;
  padding: 0.9rem 2rem;
  border-radius: 2rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.botao:hover { background: var(--cor-rosa-texto); color: var(--cor-fundo); }

/* Na faixa rosa, o botão fica escuro para se distinguir do fundo */
.faixa-marcar .botao { background: var(--cor-principal); color: var(--cor-fundo); }
.faixa-marcar .botao:hover { background: var(--cor-principal-escura); }


/* ===== Apresentação, missão e valores ===== */
.intro {
  font-family: var(--fonte-titulos);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.35;
  color: var(--cor-principal);
  margin: 0 0 3.5rem;
}

.missao-titulo {
  font-style: italic;
  font-size: 1.6rem;
  margin: 0 0 0.75rem;
}

.missao {
  font-style: italic;
  margin: 0 0 3rem;
}

.valores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* 3 + 2, com a última linha centrada */
  gap: 2.5rem 3rem;
}

.valor { flex: 0 1 18rem; }

.valor h3 {
  color: var(--cor-rosa-texto);
  font-style: italic;
  font-weight: 600;
  font-size: 1.35rem;
  margin-bottom: 0.4em;
}

.valor p { margin: 0; }

/* ===== Faixa de marcação ===== */
.faixa-marcar {
  padding: clamp(4rem, 10vw, 7rem) 0;
  background: var(--cor-secundaria);
  color: var(--cor-principal);
  text-align: center;
}

.faixa-marcar-conteudo { position: relative; }
.faixa-marcar h2 { color: var(--cor-principal); }
.faixa-marcar p { margin: 0 auto 2rem; max-width: 40ch; }

/* ===== Sobre mim ===== */
.sobre {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.sobre-foto {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  position: sticky;
  top: 2rem;
}

.sobre-texto { max-width: 65ch; }
.convite-instagram { margin-top: 2rem; }

/* ===== O que acompanho ===== */
.areas {
  list-style: none;
  padding: 0;
  margin: 2rem auto 0;
  max-width: 56rem;
  columns: 2 18rem;
  column-gap: 3rem;
}

.areas li {
  break-inside: avoid;
  padding: 0.7rem 0 0.7rem 1.1rem;
  border-bottom: 1px solid var(--cor-secundaria);
  position: relative;
}

.areas li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--cor-secundaria);
}

.nota-avaliacao {
  text-align: center;
  font-style: italic;
  margin: 2.5rem 0 0;
}

/* ===== Clínicas ===== */
.grupo-titulo {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 2rem;
}

.clinicas + .grupo-titulo { margin-top: 4.5rem; }


.subtitulo { margin: -0.25rem 0 3rem; }

.clinicas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 2.5rem;
}

.clinica {
  border-top: 3px solid var(--cor-secundaria);
  padding-top: 1.5rem;
}

.clinica h3 { font-size: 1.6rem; margin-bottom: 0.25em; }
.clinica p { margin: 0 0 0.75rem; }
.clinica-nome { font-weight: 600; }

.clinica-telefone {
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
}

/* ===== Páginas de texto (privacidade) ===== */
.texto-legal { max-width: 46rem; }
.texto-legal h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.texto-legal-data { font-style: italic; font-size: 0.9375rem; }

.pagina-erro-acoes { margin: 2rem 0; }

/* ===== Rodapé ===== */
.rodape-logotipo { width: 220px; height: auto; margin: 0 auto; display: block; }

.rodape {
  background: var(--cor-principal);
  color: var(--cor-fundo);
  padding: 3.5rem 0 2rem;
  text-align: center;
  font-size: 0.9375rem;
}

.rodape a { color: var(--cor-fundo); }

.rodape-redes {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.75rem;
}

.rodape-dados {
  margin: 1.5rem 0 0;
  font-size: 0.8125rem;
  opacity: 0.85;
}

.rodape-dados + .rodape-dados { margin-top: 0.4rem; }
.rodape-dados.rodape-credito { margin-top: 1.5rem; opacity: 0.6; }

/* ===== Telemóvel ===== */
@media (max-width: 760px) {
  .topo { display: block; aspect-ratio: auto; }
  .topo::before { display: none; }
  .topo-foto { position: static; height: auto; aspect-ratio: 3 / 2; }
  .topo-conteudo { padding-top: 2.5rem; padding-bottom: 3rem; }
  .topo-conteudo > * { max-width: none; }
  .barra-redes-interior { justify-content: center; }
  .cabecalho-interior { flex-wrap: nowrap; }
  .menu { display: none; }
  .menu-telemovel { display: block; }
  .logotipo-cabecalho { width: 130px; }
  .sobre { grid-template-columns: 1fr; }
  .sobre-foto { max-width: 22rem; width: 100%; margin: 0 auto; position: static; }
}
