@import "tokens.css";
/* =====================================================================
   Theme medix — style.css   ·   MedixMentor · Paleta A "Clínica Confiável"
   Forma herdada do golden `hosted/cms/themes/neutro/` (mesmo vocabulário de
   classes do contrato: .container/.hero/.section/.page-hero/.post-body/
   .site-header/.site-footer). Tudo consome os tokens via var(--…) (tokens.css).
   Tipografia: Plus Jakarta Sans (display) + Inter (corpo) — carregadas no
   <head> dos templates (Google Fonts).
   ===================================================================== */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 48px; }
.container.narrow, .narrow { max-width: 760px; }

/* ---------- botões ---------- */
.btn, .btn-accent, .btn-outline {
  display: inline-block; padding: 14px 30px; border-radius: 999px;
  font-family: var(--serif); font-weight: 700; font-size: 16px;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn { background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent); }
.btn:hover { background: #0d4bb0; text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(11,61,145,.22); }
.btn-accent { background: var(--accent-2-strong); color: var(--on-accent); border: 1px solid var(--accent-2-strong); }
.btn-accent:hover { background: #0a6747; text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(12,122,84,.22); }
.btn-outline { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--on-accent); text-decoration: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header.scrolled { box-shadow: 0 4px 18px rgba(11,61,145,.07); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { font-family: var(--serif); font-size: 22px; font-weight: 800; color: var(--accent); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: 15px; font-weight: 500; color: var(--muted); }
.nav a:hover { color: var(--accent); text-decoration: none; }
.nav .btn { padding: 10px 22px; font-size: 15px; color: var(--on-accent); }
.nav .btn:hover { color: var(--on-accent); }

/* ---------- hero ---------- */
.hero { position: relative; background: linear-gradient(135deg, #0b3d91 0%, #0f2942 100%); }
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .22; mix-blend-mode: luminosity;
}
.hero-content {
  position: relative; padding: 104px 0 96px; color: #fff;
  display: flex; flex-direction: column; align-items: flex-start;
}
.hero-eyebrow {
  font-family: var(--serif); font-size: 13px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: #bcd6ff; margin: 0 0 18px;
}
.hero h1 { font-family: var(--serif); font-size: clamp(38px, 6vw, 64px); font-weight: 800; line-height: 1.08; margin: 0 0 18px; max-width: 16ch; letter-spacing: -.02em; }
.hero-lede { font-size: clamp(17px, 2.2vw, 21px); color: #dce6f5; max-width: 60ch; margin: 0 0 16px; }
.hero-tagline { font-family: var(--serif); font-size: 15px; font-weight: 600; color: #8fb6f0; margin: 0 0 32px; letter-spacing: .02em; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-cta .btn-outline { color: #fff; border-color: rgba(255,255,255,.55); }
.hero-cta .btn-outline:hover { background: #fff; color: var(--accent); }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-label { font-family: var(--serif); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.section-label::before { content: ""; display: inline-block; width: 22px; height: 2px; background: var(--accent-2); vertical-align: middle; margin-right: 10px; transform: translateY(-3px); }
.section-title { font-family: var(--serif); font-size: clamp(28px, 4vw, 42px); font-weight: 800; line-height: 1.15; margin: 0 0 18px; letter-spacing: -.01em; }
.section-text { font-size: 18px; color: var(--muted); margin: 0 0 16px; }
.section-text:last-child { margin-bottom: 0; }

/* ---------- página interna (hero plano) ---------- */
.page-hero { position: relative; }
.page-hero--plain { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.page-hero--plain .content { padding: 72px 0 36px; color: var(--ink); }
.page-hero h1 { font-family: var(--serif); font-size: clamp(32px, 5vw, 50px); font-weight: 800; margin: 0; letter-spacing: -.01em; }
.page-hero .hero-lede { color: var(--muted); margin-top: 14px; }

/* ---------- corpo (programa single) ---------- */
.post-meta { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 28px 0 16px; }
.post-lede { font-family: var(--serif); font-size: 22px; line-height: 1.5; color: var(--ink); margin: 0 0 32px; font-weight: 600; }
.post-body { font-size: 18px; color: var(--ink); }
.post-body p { margin: 0 0 22px; }
.post-body h2 { font-family: var(--serif); font-size: 28px; font-weight: 800; margin: 36px 0 14px; }
.post-body h3 { font-family: var(--serif); font-size: 22px; font-weight: 700; margin: 28px 0 12px; }
.post-body ul, .post-body ol { margin: 0 0 22px 22px; }
.post-body li { margin-bottom: 8px; }
.post-body img { border-radius: var(--radius); margin: 24px 0; }

/* ---------- programas (grid de cards) ---------- */
.prog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.prog-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  padding: 30px 28px 32px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.prog-card:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(11,61,145,.10); text-decoration: none; }
.prog-card-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(31,181,127,.14); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.prog-card-icon span { width: 16px; height: 16px; border-radius: 5px; background: var(--accent-2); display: block; }
.prog-card-tag { font-family: var(--serif); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: 8px; }
.prog-card-title { font-family: var(--serif); font-size: 21px; font-weight: 800; line-height: 1.25; color: var(--ink); margin: 0 0 10px; }
.prog-card-excerpt { font-size: 15px; color: var(--muted); margin: 0 0 16px; }
.prog-card-more { font-size: 14px; font-weight: 600; color: var(--accent); margin-top: auto; }

/* ---------- programas na home (fragmento) ---------- */
.prog-home-head { margin-bottom: 40px; max-width: 60ch; }
.prog-home-cta { margin-top: 40px; }

/* ---------- público (chips) ---------- */
.aud-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.aud-chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 12px 22px; font-family: var(--serif); font-weight: 700; color: var(--ink); font-size: 16px;
}
.aud-chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-2); }

/* ---------- faixa de CTA ---------- */
.cta-band { background: linear-gradient(135deg, #0b3d91 0%, #0f2942 100%); color: #fff; border-radius: var(--radius); padding: 64px 56px; text-align: center; }
.cta-band .section-title { color: #fff; }
.cta-band .section-text { color: #dce6f5; max-width: 56ch; margin-left: auto; margin-right: auto; }
.cta-band .btn-accent { margin-top: 28px; }

/* ---------- footer ---------- */
.site-footer { background: #0f2942; color: #c7d3e6; padding: 56px 0 40px; margin-top: 0; }
.footer-inner { display: flex; flex-direction: column; gap: 8px; }
.footer-brand { font-family: var(--serif); font-size: 22px; font-weight: 800; color: #fff; margin: 0 0 6px; }
.footer-note { font-size: 14px; color: #9fb1cc; margin: 0 0 18px; max-width: 560px; line-height: 1.6; }
.footer-nav a { color: #c7d3e6; margin-right: 20px; font-size: 14px; }
.footer-nav a:hover { color: #fff; }
.footer-legal { font-size: 12px; color: #6f83a3; margin: 22px 0 0; }

/* ---------- formulário de contato ---------- */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.cf-field { display: flex; flex-direction: column; gap: 6px; }
.cf-label { font-size: 14px; font-weight: 600; color: var(--ink); }
.cf-input {
  width: 100%; padding: 13px 15px;
  border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--surface); outline: none; transition: border-color .15s;
}
.cf-input:focus { border-color: var(--accent); }
.cf-textarea { resize: vertical; min-height: 150px; }
.cf-submit { margin-top: 4px; }
.cf-status { padding: 14px 18px; border-radius: 10px; font-size: 15px; }
.cf-ok    { background: #eaf6f0; color: #0c7a54; border: 1px solid #b6e0cd; }
.cf-error { background: #fdecea; color: #8b1a1a; border: 1px solid #f5c6c6; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .prog-grid { grid-template-columns: repeat(2, 1fr); }
  .container { padding: 0 28px; }
  .nav { gap: 16px; }
}
@media (max-width: 640px) {
  .prog-grid { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
  .nav a:not(.btn) { display: none; }
  .section { padding: 60px 0; }
  .hero-content { padding: 72px 0 64px; }
  .cta-band { padding: 48px 24px; }
}
