/* AltiusMD — site institucional (altiusmd.com.br). Brand book v1.0: navy estrutural, marfim, dourado só como acento,
   Bodoni Moda nos títulos (nunca abaixo de 20 px) e Montserrat no resto. Fontes servidas daqui (CSP font-src 'self'). */

@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/bodoni-moda-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/bodoni-moda-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 300; font-display: swap; src: url(/fonts/montserrat-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/montserrat-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/montserrat-latin-500-normal.woff2) format("woff2"); }

:root {
  --navy: #102a43;
  --navy-fundo: #0a1b2b;
  --marfim: #f5f1e9;
  --marfim-2: #d9d2c4;
  --marfim-3: #a9b3bf;
  --ouro: #b8904a;
  --ouro-claro: #c9a462;
  --ouro-tinta: #7f6128;
  --bronze: #241d17;
  --regua: #e0d7c8;
  --erro: #a0322a;
  --ok: #2c6a4d;
  --serifa: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --borda-x: max(1.5rem, env(safe-area-inset-left), env(safe-area-inset-right));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-weight: 400; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ouro-claro); outline-offset: 3px; }

/* ============================================================== página principal ("em breve") */

body.landing {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--navy-fundo);
  background-image: radial-gradient(120% 90% at 18% 38%, #12304d 0%, rgba(16, 42, 67, 0.55) 38%, rgba(10, 27, 43, 0) 72%);
  color: var(--marfim);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow-x: hidden;
  position: relative;
}
/* sem rolagem: tudo cabe na tela (conferido de 360×640 a 1920×1080); em telas mais baixas que isso, rola */
@media (min-height: 620px) {
  body.landing { height: 100vh; height: 100dvh; overflow: hidden; }
}

/* camada de fundo fixa e cortada: o monograma sai pela borda sem criar área de rolagem */
.fundo { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }

/* grão quase imperceptível: tira o "chapado" do navy sem virar textura */
.grao {
  position: absolute; inset: 0; opacity: 0.06; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%25' height='100%25' filter='url(%23g)'/></svg>");
}

/* o monograma da marca em linha dourada, traçado ao abrir, grande e cortado pela borda */
.monograma {
  position: absolute;
  right: -9vw; bottom: -11vh; height: 96vh; width: auto; max-width: none;
  overflow: visible;
}
.monograma path {
  fill: var(--ouro); fill-opacity: 0; stroke: var(--ouro); stroke-width: 0.55; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0.55;
  animation: tracar 2.6s cubic-bezier(.65, 0, .35, 1) forwards, preencher 2.4s ease 2.4s forwards;
}
.monograma path:nth-child(2) { animation-delay: .35s, 2.6s; }
.monograma path:nth-child(3) { animation-delay: .7s, 2.8s; }
@keyframes tracar { to { stroke-dashoffset: 0; } }
@keyframes preencher { to { fill-opacity: 0.035; } }

.topo {
  position: relative; z-index: 1;
  display: flex; justify-content: flex-end; align-items: center;
  padding: max(1.25rem, env(safe-area-inset-top)) var(--borda-x) 0;
}
.selo {
  margin: 0; font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--marfim-3);
  display: inline-flex; align-items: center; gap: 0.75rem;
}
.selo::before { content: ""; width: 1.75rem; height: 1px; background: var(--ouro); }

.hero {
  position: relative; z-index: 1;
  align-self: center;
  --recuo: clamp(0rem, 7vw - 1rem, 7rem);
  width: 100%; max-width: calc(46rem + var(--recuo));
  padding: 0 var(--borda-x) 0 calc(var(--borda-x) + var(--recuo));
}
.assinatura { width: clamp(140px, 11vw, 168px); height: auto; margin-bottom: clamp(1.25rem, 4.2vh, 2.75rem); }
.eyebrow {
  margin: 0 0 clamp(0.75rem, 2.2vh, 1.25rem);
  font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ouro-claro);
  display: flex; align-items: center; gap: 0.9rem;
}
.eyebrow::before { content: ""; width: 2.5rem; height: 1px; background: var(--ouro); }
h1 {
  margin: 0;
  font-family: var(--serifa); font-weight: 400; color: var(--marfim);
  font-size: min(clamp(2.25rem, 1.15rem + 3.9vw, 4.75rem), 8.2vh);
  line-height: 1.04; letter-spacing: -0.012em;
  text-wrap: balance;
}
h1 em { font-style: italic; color: var(--ouro-claro); }
.pilares {
  margin: clamp(1rem, 3vh, 1.9rem) 0 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 0.35rem 1.4rem;
  font-size: clamp(0.75rem, 0.7rem + 0.2vw, 0.8125rem); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--marfim-2);
}
.pilares li { display: inline-flex; align-items: center; gap: 0.75rem; }
.pilares li::before { content: ""; flex: none; width: 4px; height: 4px; transform: rotate(45deg); background: var(--ouro); }
.sobre {
  margin: clamp(0.9rem, 2.4vh, 1.5rem) 0 0; max-width: 36rem;
  font-size: clamp(0.875rem, 0.82rem + 0.2vw, 1rem); font-weight: 300; line-height: 1.7; color: var(--marfim-2);
}
.acao { margin-top: clamp(1.4rem, 4.2vh, 2.75rem); display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.5rem; }
.cta {
  appearance: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.85rem;
  min-height: 3.25rem; padding: 0 1.75rem;
  background: var(--marfim); color: var(--navy);
  font: 500 0.8125rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
  border-radius: 2px;
  transition: background-color .25s ease, transform .25s ease;
}
.cta svg { width: 1.1rem; height: 1.1rem; transition: transform .3s ease; }
.cta:hover { background: #fffaf0; }
.cta:hover svg { transform: translateX(4px); }
.cta:active { transform: translateY(1px); }
.nota { margin: 0; font-size: 0.75rem; letter-spacing: 0.04em; color: var(--marfim-3); }

.rodape {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 1.5rem;
  margin: 0 var(--borda-x); padding: 1rem 0 max(1.1rem, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(184, 144, 74, 0.28);
  font-size: 0.75rem; color: var(--marfim-3);
}
.rodape p { margin: 0; }
.rodape nav { display: flex; gap: 1.5rem; }
.rodape a { text-decoration: none; padding: 0.35rem 0; border-bottom: 1px solid transparent; transition: border-color .2s ease, color .2s ease; }
.rodape a:hover { color: var(--marfim); border-bottom-color: var(--ouro); }

/* entrada em cascata */
.entra { opacity: 0; transform: translateY(14px); animation: entrar 1s cubic-bezier(.2, .7, .2, 1) forwards; }
.entra:nth-child(1) { animation-delay: .15s; }
.entra:nth-child(2) { animation-delay: .3s; }
.entra:nth-child(3) { animation-delay: .45s; }
.entra:nth-child(4) { animation-delay: .65s; }
.entra:nth-child(5) { animation-delay: .8s; }
.entra:nth-child(6) { animation-delay: .95s; }
@keyframes entrar { to { opacity: 1; transform: none; } }

@media (max-width: 720px) {
  .monograma { right: -34vw; bottom: -8vh; height: 58vh; }
  .monograma path { opacity: 0.26; }
  .pilares { flex-direction: column; }
  .hero { --recuo: 0rem; }
  .topo { justify-content: flex-start; }
  .cta { width: 100%; justify-content: center; }
  .acao { gap: 0.7rem; }
  .rodape { justify-content: center; text-align: center; }
}
/* celular baixo (até ~700 px de altura): sem o selo do topo, pilares numa linha que quebra, texto mais compacto */
@media (max-width: 400px) {
  .cta { letter-spacing: 0.1em; padding: 0 1.1rem; gap: 0.6rem; }
}
@media (max-height: 700px) and (max-width: 720px) {
  .topo { display: none; }
  .hero { padding-top: max(1.25rem, env(safe-area-inset-top)); }
  .assinatura { width: 140px; margin-bottom: 0.6rem; }
  .eyebrow { margin-bottom: 0.6rem; }
  .pilares { flex-direction: row; margin-top: 0.8rem; font-size: 0.6875rem; letter-spacing: 0.06em; gap: 0.3rem 0.9rem; }
  .pilares li { gap: 0.55rem; }
  .sobre { margin-top: 0.7rem; font-size: 0.8125rem; line-height: 1.5; }
  .acao { margin-top: 1.1rem; }
  .cta { min-height: 3rem; }
  .rodape { padding-top: 0.6rem; margin-top: 0.6rem; }
  .rodape p { display: none; }
}

/* ============================================================== fila de espera (diálogo) */

dialog.fila {
  width: min(32rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem);
  margin: auto; padding: 0; border: 0; border-radius: 4px;
  background: var(--marfim); color: var(--bronze);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.55);
  overflow: auto; overscroll-behavior: contain;
}
dialog.fila::backdrop { background: rgba(6, 17, 28, 0.72); backdrop-filter: blur(6px); }
dialog.fila[open] { animation: abrir .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes abrir { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.fila-corpo { position: relative; padding: clamp(1.5rem, 5vw, 2.5rem); }
.fechar {
  position: absolute; top: 0.6rem; right: 0.6rem;
  width: 2.75rem; height: 2.75rem; display: grid; place-items: center;
  appearance: none; border: 0; background: transparent; color: #62574b; cursor: pointer; border-radius: 2px;
}
.fechar:hover { color: var(--navy); background: rgba(16, 42, 67, 0.06); }
.fechar svg { width: 1.1rem; height: 1.1rem; }
.fila .eyebrow { color: var(--ouro-tinta); margin-bottom: 0.75rem; }
.fila h2 { margin: 0; font-family: var(--serifa); font-weight: 400; font-size: 2rem; line-height: 1.1; color: var(--navy); }
.fila .intro { margin: 0.75rem 0 1.5rem; font-size: 0.875rem; color: #62574b; }
.campo { margin-bottom: 1rem; }
.campo label { display: block; margin-bottom: 0.35rem; font-size: 0.8125rem; font-weight: 500; color: var(--navy); }
.campo .opcional { font-weight: 400; color: #62574b; }
.campo input {
  width: 100%; min-height: 2.875rem; padding: 0.6rem 0.8rem;
  font: 400 1rem/1.3 var(--sans); color: var(--bronze);
  background: #fff; border: 1px solid #958570; border-radius: 2px;
}
.campo input:focus { outline: 2px solid #8a6a2c; outline-offset: 1px; border-color: #8a6a2c; }
.campo input[aria-invalid="true"] { border-color: var(--erro); }
.duas { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 480px) { .duas { grid-template-columns: 1fr; } }
.aceite { display: flex; gap: 0.7rem; align-items: flex-start; margin: 0.5rem 0 1rem; font-size: 0.8125rem; line-height: 1.5; color: #4a4037; }
.aceite input { width: 1.15rem; height: 1.15rem; margin: 0.15rem 0 0; accent-color: var(--navy); flex: none; }
.aceite a { color: var(--navy); text-decoration-color: var(--ouro); text-underline-offset: 3px; }
.turnstile { min-height: 0; margin-bottom: 1rem; }
.erro { margin: 0 0 1rem; font-size: 0.8125rem; color: var(--erro); }
.enviar {
  appearance: none; border: 0; cursor: pointer; width: 100%;
  min-height: 3.25rem; padding: 0 1.5rem;
  background: var(--navy); color: var(--marfim);
  font: 500 0.8125rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; border-radius: 2px;
}
.enviar:hover { background: #163a5c; }
.enviar[disabled] { opacity: 0.6; cursor: progress; }
.sucesso { text-align: left; }
.sucesso .marca-ok { width: 2.75rem; height: 2.75rem; color: var(--ouro); margin-bottom: 1.25rem; }
.sucesso p { font-size: 0.9375rem; color: #4a4037; }
.sucesso .enviar { margin-top: 0.5rem; }

/* ============================================================== documentos (privacidade e termos) */

body.documento { background: var(--marfim); color: var(--bronze); }
.doc-topo { background: var(--navy); }
.doc-topo div { max-width: 46rem; margin: 0 auto; padding: 1.25rem var(--borda-x); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.doc-topo img { width: 140px; height: auto; }
.doc-topo a.voltar { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--marfim-2); text-decoration: none; padding: 0.6rem 0; }
.doc-topo a.voltar:hover { color: var(--marfim); }
.doc { max-width: 46rem; margin: 0 auto; padding: 3rem var(--borda-x) 4rem; font-size: 0.9375rem; line-height: 1.75; }
.doc .eyebrow { color: var(--ouro-tinta); }
.doc h1 { color: var(--navy); font-size: clamp(2.25rem, 1.5rem + 2.5vw, 3.25rem); }
.doc .versao { margin: 1rem 0 0; font-size: 0.8125rem; color: #62574b; }
.doc .regua { width: 3rem; height: 1px; background: var(--ouro); margin: 1.5rem 0 2.5rem; border: 0; }
.doc h2 { font-family: var(--serifa); font-weight: 400; font-size: 1.5rem; line-height: 1.25; color: var(--navy); margin: 2.5rem 0 0.75rem; }
.doc h2 .n { color: var(--ouro-tinta); margin-right: 0.5rem; }
.doc p, .doc li { color: #3a312a; }
.doc ul { padding-left: 1.25rem; }
.doc li { margin: 0.35rem 0; }
.doc li::marker { color: var(--ouro); }
.doc strong { font-weight: 500; color: var(--navy); }
.doc a { color: var(--navy); text-decoration-color: var(--ouro); text-underline-offset: 3px; }
.doc-rodape { border-top: 1px solid var(--regua); }
.doc-rodape div { max-width: 46rem; margin: 0 auto; padding: 1.5rem var(--borda-x) max(1.5rem, env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; font-size: 0.75rem; color: #62574b; }
.doc-rodape nav { display: flex; gap: 1.5rem; }
.doc-rodape a { text-decoration: none; }
.doc-rodape a:hover { color: var(--navy); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
  .monograma path { stroke-dashoffset: 0; fill-opacity: 0.035; }
  .entra { opacity: 1; transform: none; }
}
