/* ============================================================
   TH – Tecnologia Hospitalar Ltda  |  site.css
   Sem CDN. Sem fontes externas. Sem dependências.
   ============================================================ */

/* ---------- tokens ----------------------------------------- */
:root {
  --c-accent:       #00B4C5;
  --c-accent-hover: #0099AA;
  --c-accent-light: #7FD3CC;
  --c-deep:         #0E2A33;
  --c-ink:          #10262E;
  --c-muted:        #3B5560;
  --c-muted2:       #4A6670;
  --c-soft:         #F2F6F7;
  --c-line:         #E1E8EA;
  --c-line2:        #D3DEE1;
  --c-placeholder:  #DCE7EA;
  --c-on-deep:      #B9CDD2;
  --c-white:        #FFFFFF;

  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --container:  1200px;
  --gap:        24px;
}

/* ---------- reset mínimo ----------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
body  { margin: 0; font-family: system-ui, "Segoe UI", Arial, sans-serif;
        color: var(--c-ink); background: var(--c-white); line-height: 1.6; }
h1,h2,h3,h4 { margin: 0; font-weight: 800; line-height: 1.1;
               letter-spacing: -.04em; }
p  { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a  { color: var(--c-accent); }
a:hover { color: var(--c-accent-hover); }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; }

/* ---------- utilitários ------------------------------------ */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gap);
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.label-upper {
  font-size: 13px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-accent);
}

/* ---------- barra superior --------------------------------- */
.topbar {
  background: var(--c-deep);
  color: var(--c-on-deep);
  font-size: 13px;
}
.topbar .container {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  justify-content: space-between; align-items: center;
  padding-block: 10px;
}
.topbar a { color: var(--c-on-deep); text-decoration: none; }
.topbar a:hover { color: var(--c-white); }
.topbar-links { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }

/* ---------- seletor de idioma ------------------------------ */
.lang-switch { display: inline-flex; align-items: center; gap: 10px; }
.lang-switch a {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; letter-spacing: .06em;
  opacity: .62; transition: opacity .15s ease;
}
.lang-switch a:hover { opacity: 1; }
.lang-switch a[aria-current] { opacity: 1; cursor: default; }
.lang-switch .flag {
  width: 18px; height: 12.6px; display: block;
  border-radius: 2px; box-shadow: 0 0 0 1px rgb(255 255 255 / .28);
}
.lang-switch a:focus-visible { outline: 2px solid var(--c-white); outline-offset: 2px; border-radius: 3px; }
@media (max-width: 480px) { .lang-switch .lang-code { display: none; } }

/* ---------- header ----------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--c-line);
  background: var(--c-white);
  position: sticky; top: 0; z-index: 100;
}
.site-header .container {
  display: flex; flex-wrap: wrap; gap: 16px 32px;
  align-items: center; justify-content: space-between;
  padding-block: 16px;
}
.site-logo img { height: 44px; width: auto; }
.site-logo { text-decoration: none; display: flex; align-items: center; }

.main-nav {
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  font-size: 15px; font-weight: 500;
}
.main-nav a { color: var(--c-ink); text-decoration: none; }
.main-nav a:hover { color: var(--c-accent); }

/* menu mobile */
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  padding: 8px; color: var(--c-ink);
}
.nav-toggle svg { display: block; }

@media (max-width: 720px) {
  .nav-toggle { display: flex; align-items: center; }
  .main-nav {
    display: none; flex-direction: column; gap: 0;
    width: 100%; border-top: 1px solid var(--c-line);
    padding-top: 8px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 0; border-bottom: 1px solid var(--c-line); }
}

/* ---------- botão principal -------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; min-height: 48px;
  border-radius: var(--radius-sm); font-size: 15px; font-weight: 600;
  text-decoration: none; border: 0; cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}
.btn-primary   { background: var(--c-deep);   color: var(--c-white); }
.btn-primary:hover { background: #1a3d4d; color: var(--c-white); }
.btn-accent    { background: var(--c-accent);  color: var(--c-white); }
.btn-accent:hover  { background: var(--c-accent-hover); color: var(--c-white); }
.btn-outline   { border: 1.5px solid var(--c-ink); color: var(--c-ink); background: transparent; }
.btn-outline:hover { background: var(--c-ink); color: var(--c-white); }
.btn-light     { background: var(--c-white); color: var(--c-deep); }
.btn-light:hover   { background: var(--c-soft); color: var(--c-deep); }

/* ---------- hero ------------------------------------------- */
.hero { background: var(--c-soft); }
.hero .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 56px; align-items: center;
  padding-block: 88px 72px;
}
.hero-tag { font-size: 14px; font-weight: 600; letter-spacing: .12em;
            text-transform: uppercase; color: var(--c-accent); }
.hero h1  { font-size: clamp(36px, 5vw, 54px); color: var(--c-deep);
            margin-block: 12px; }
.hero-lead { font-size: 18px; line-height: 1.65; color: var(--c-muted);
             max-width: 560px; margin-bottom: 24px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-img  {
  background: var(--c-placeholder);
  border-radius: var(--radius-lg);
  min-height: 420px;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-muted2); font-size: 14px; text-align: center;
  padding: 24px; overflow: hidden;
}
.hero-img img { width: 100%; height: 100%; object-fit: cover;
                border-radius: var(--radius-lg); }

/* ---------- faixa de números ------------------------------- */
.numeros {
  background: var(--c-deep); color: var(--c-white);
}
.numeros .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px; padding-block: 48px;
}
.numero-item { display: flex; flex-direction: column; gap: 6px; }
.numero-val  { font-size: 48px; font-weight: 800; line-height: 1; }
.numero-leg  { font-size: 14px; color: var(--c-on-deep); line-height: 1.4; }

/* ---------- seções genéricas ------------------------------- */
.secao        { padding-block: 96px; }
.secao-clara  { background: var(--c-white); }
.secao-soft   { background: var(--c-soft); }
.secao-escura { background: var(--c-deep); color: var(--c-white); }

.secao-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 56px; align-items: start;
}
.secao-grid.center { align-items: center; }

.secao-header { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.secao-header h2 { font-size: clamp(28px, 3.5vw, 38px); color: inherit; }
.secao-body  { font-size: 17px; line-height: 1.7; color: var(--c-muted); }
.secao-body p + p { margin-top: 18px; }
.secao-escura .secao-body { color: var(--c-on-deep); }

/* ---------- cards de atuação ------------------------------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.card {
  background: var(--c-white); border: 1px solid var(--c-line);
  border-radius: var(--radius-md); padding: 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.card h3 { font-size: 19px; color: var(--c-deep); }
.card p  { font-size: 15px; line-height: 1.6; color: var(--c-muted); }

/* ---------- serviços (lista com borda topo) ---------------- */
.servicos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px 40px;
}
.servico-item {
  display: flex; flex-direction: column; gap: 10px;
  border-top: 2px solid var(--c-deep); padding-top: 20px;
}
.servico-item h3 { font-size: 20px; color: var(--c-deep); }
.servico-item p  { font-size: 15px; line-height: 1.6; color: var(--c-muted); }

/* ---------- chips de modalidade de imagem ------------------ */
.chips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.chip {
  background: var(--c-white); border: 1px solid var(--c-line2);
  border-radius: 10px; padding: 14px 16px;
  font-weight: 600; font-size: 15px; color: var(--c-deep);
}

/* ---------- gráfico de barras (parque) --------------------- */
.barras { display: flex; flex-direction: column; gap: 22px; }
.barra-item { display: flex; flex-direction: column; gap: 8px; }
.barra-label {
  display: flex; justify-content: space-between; font-size: 15px;
}
.barra-label strong { font-weight: 600; }
.barra-label span   { color: var(--c-on-deep); }
.barra-track {
  height: 12px; background: #1F4350; border-radius: 6px;
}
.barra-fill  {
  height: 12px; background: var(--c-accent-light); border-radius: 6px;
}

/* ---------- EvoNexa ---------------------------------------- */
.evonexa-fluxo {
  background: var(--c-soft); border-radius: var(--radius-lg);
  padding: 32px; display: flex; flex-direction: column; gap: 16px;
}
.evonexa-fluxo-titulo { font-weight: 600; font-size: 15px; color: var(--c-deep); }
.fluxo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px; list-style: none; padding: 0; margin: 0;
}
.fluxo-item {
  background: var(--c-white); border-radius: 10px; padding: 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.fluxo-num  { font-weight: 800; font-size: 20px; color: var(--c-accent); }
.fluxo-nome { font-weight: 600; font-size: 14px; }
.fluxo-desc { font-size: 12px; line-height: 1.5; color: var(--c-muted2); }

.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px 40px;
}
.diferencial h3 { font-size: 18px; color: var(--c-deep); margin-bottom: 8px; }
.diferencial p  { font-size: 14px; line-height: 1.6; color: var(--c-muted); }

/* ---------- placeholder de imagem (blocos) ----------------- */
.img-placeholder {
  background: var(--c-placeholder); border-radius: var(--radius-lg);
  min-height: 360px; display: flex; align-items: center;
  justify-content: center; color: var(--c-muted2);
  font-size: 13px; text-align: center; padding: 24px;
  overflow: hidden;
}
.img-placeholder img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- CTA banner ------------------------------------- */
.cta-banner {
  background: var(--c-accent); color: var(--c-white);
}
.cta-banner .container {
  display: flex; flex-wrap: wrap; gap: 24px;
  align-items: center; justify-content: space-between;
  padding-block: 64px;
}
.cta-banner h2 { font-size: clamp(22px, 3vw, 32px); max-width: 680px; }
.cta-banner p  { font-size: 16px; line-height: 1.6;
                 color: rgba(255,255,255,.85); margin-top: 8px; }

/* ---------- contato ---------------------------------------- */
.contato-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 56px; align-items: start;
}
.contato-info { display: flex; flex-direction: column; gap: 20px; }
.contato-info h2 { font-size: clamp(28px, 3vw, 38px); color: var(--c-deep); }
.contato-info p  { font-size: 17px; line-height: 1.7; color: var(--c-muted); }
.contato-dados   { display: flex; flex-direction: column; gap: 14px;
                   font-size: 15px; color: var(--c-ink); }
.contato-dados strong { display: block; font-size: 13px; font-weight: 600;
                        text-transform: uppercase; letter-spacing: .08em;
                        color: var(--c-muted2); margin-bottom: 2px; }

.form-card {
  background: var(--c-white); border: 1px solid var(--c-line);
  border-radius: var(--radius-lg); padding: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}
.field {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--c-ink);
}
.field input, .field select, .field textarea {
  height: 46px; border: 1px solid #B7C6CB; border-radius: var(--radius-sm);
  padding: 0 12px; font-size: 15px; font-weight: 400;
  color: var(--c-ink); background: var(--c-white);
  transition: border-color .18s;
}
.field textarea { height: auto; padding: 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(0,180,197,.15);
}
.field-full { grid-column: 1 / -1; }
.form-submit {
  grid-column: 1 / -1;
  height: 50px; border: 0; border-radius: var(--radius-sm);
  background: var(--c-deep); color: var(--c-white);
  font-size: 16px; font-weight: 600; cursor: pointer;
  transition: background .18s;
}
.form-submit:hover { background: #1a3d4d; }

/* ---------- rodapé ----------------------------------------- */
.site-footer { background: var(--c-deep); color: var(--c-on-deep); }
.footer-inner {
  display: flex; flex-direction: column; gap: 40px;
  padding-block: 56px 32px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px; font-size: 14px;
}
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand img { height: 36px; width: auto; }
.footer-brand p { line-height: 1.6; }
.footer-col h4  { font-size: 13px; font-weight: 600; color: var(--c-white);
                  text-transform: uppercase; letter-spacing: .08em;
                  margin-bottom: 10px; }
.footer-col a   { display: block; color: var(--c-on-deep);
                  text-decoration: none; margin-bottom: 6px; }
.footer-col a:hover { color: var(--c-white); }
.footer-bottom  {
  border-top: 1px solid #23485A; padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between; font-size: 12px;
}
.footer-bottom a { color: var(--c-on-deep); text-decoration: none; }

/* ---------- página interna --------------------------------- */
.page-hero {
  background: var(--c-soft); padding-block: 64px 48px;
}
.page-hero .label-upper { margin-bottom: 12px; }
.page-hero h1 { font-size: clamp(30px, 4vw, 48px); color: var(--c-deep);
                margin-bottom: 16px; }
.page-hero p  { font-size: 18px; line-height: 1.65; color: var(--c-muted);
                max-width: 680px; }
.breadcrumb   { font-size: 13px; color: var(--c-muted2); margin-bottom: 20px; }
.breadcrumb a { color: var(--c-muted2); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-accent); }

/* ---------- focus visível ---------------------------------- */
:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 3px;
}
