/* Clínica Medic — estilo da página "Brevemente"
   Cores do logótipo e do Creative Briefing (set. 2025). Letra Jost alojada no site (sem pedidos ao Google). */

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("/fontes/jost-v20-latin-variable.woff2") format("woff2");
}

:root {
  --fundo: #F3EEE8;        /* bege do briefing */
  --fundo-claro: #FAF7F3;  /* caixa do formulário */
  --texto: #403E3E;        /* cinzento-escuro do briefing */
  --terracota: #8F432C;    /* cor do logótipo (texto e links: contraste 5,7:1) */
  --terracota-botao: #A35C40; /* fundo do Instagram/partilha; botões com texto claro */
  --linha: #D8CFC6;
  --suave: #6B6461;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: "Jost", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: var(--terracota); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--terracota); outline-offset: 3px; }

.contentor { width: 100%; max-width: 40rem; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Topo ---------- */
.topo { text-align: center; padding: 4.5rem 0 2.5rem; }
.topo img { width: 100%; max-width: min(30rem, 88%); height: auto; display: block; margin: 0 auto; }

h1 {
  font-weight: 300;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 3rem 0 0.75rem;
  color: var(--texto);
}

.lema {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--suave);
  margin: 0 auto;
  max-width: 28rem;
}

.risco { width: 4rem; height: 1px; background: var(--terracota); border: 0; margin: 2.5rem auto; }

.intro { text-align: center; margin: 0 auto; max-width: 34rem; }

/* ---------- Formulário ---------- */
.caixa {
  background: var(--fundo-claro);
  border: 1px solid var(--linha);
  border-radius: 4px;
  padding: 2rem 1.5rem;
  margin: 3rem 0;
}

h2 {
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  text-align: center;
}

.caixa > p { text-align: center; margin: 0 0 1.5rem; }

.campo { margin-bottom: 1.1rem; }

label { display: block; font-weight: 400; font-size: 0.95rem; margin-bottom: 0.3rem; }

input[type="text"], input[type="email"] {
  width: 100%;
  font: inherit;
  font-weight: 400;
  color: var(--texto);
  background: #fff;
  border: 1px solid #B9AEA4;
  border-radius: 3px;
  padding: 0.7rem 0.8rem;
}
input[type="text"]:focus, input[type="email"]:focus { border-color: var(--terracota); outline: 2px solid var(--terracota); outline-offset: 0; }

.consentimento { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.9rem; line-height: 1.5; margin: 1.4rem 0; }
.consentimento input { width: 1.2rem; height: 1.2rem; margin: 0.15rem 0 0; flex: none; accent-color: var(--terracota); }
.consentimento label { font-weight: 300; font-size: inherit; margin: 0; }

.escondido { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.botao {
  display: block;
  width: 100%;
  font: inherit;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: #fff;
  background: var(--terracota);
  border: 0;
  border-radius: 3px;
  padding: 0.95rem 1rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
.botao:hover { background: #7A3824; }

.nota { font-size: 0.82rem; color: var(--suave); text-align: center; margin: 1rem 0 0; }

/* ---------- Onde vamos estar ---------- */
.morada { text-align: center; margin-bottom: 4rem; }
.morada address { font-style: normal; }

/* ---------- Páginas de texto (privacidade, obrigado) ---------- */
.cabecalho { text-align: center; padding: 2rem 0 1rem; }
.cabecalho img { width: 11rem; height: auto; }
.texto { padding-bottom: 3rem; }
.texto h1 { text-transform: none; letter-spacing: 0.02em; font-size: clamp(1.6rem, 4.5vw, 2rem); margin-top: 1.5rem; }
.texto h2 { text-align: left; margin-top: 2rem; font-size: 0.95rem; }
.texto ul { padding-left: 1.2rem; }
.centrado { text-align: center; }
.sem-quebra { white-space: nowrap; }
.atualizado { color: var(--suave); font-size: 0.9rem; }

/* ---------- Rodapé ---------- */
.rodape {
  border-top: 1px solid var(--linha);
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--suave);
  text-align: center;
  padding: 1.75rem 0 2rem;
}
.rodape p { margin: 0.25rem 0; }
.rodape a { color: var(--suave); }
.rodape .ligacoes a { margin: 0 0.4rem; }

@media (max-width: 30rem) {
  .topo { padding-top: 3rem; }
  .caixa { padding: 1.5rem 1.1rem; }
}
