/* TQS Design System v2 · institucional · Inter + preto + laranja
   Aplicar a todas as páginas do mockup.
   Ref: REGRAS_DESIGN_v2.md */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Paleta TQS (laranja + preto + branco) */
  --orange: #ED8B00;
  --orange-dark: #C77500;
  --orange-soft: #FFF4E3;
  --orange-tint: #FEF9F0;

  /* Neutros frios */
  --ink: #1A1A1A;
  --ink-2: #2D2D2D;
  --ink-muted: #606060;
  --ink-soft: #8A8A8A;
  --line: #E5E5E5;
  --line-soft: #F0F0F0;
  --white: #FFFFFF;
  --surface: #F7F7F7;

  /* Sistema */
  --radius: 4px;
  --radius-sm: 2px;
  --content: 1240px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--content); margin: 0 auto; padding: 0 28px; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }

/* ============ TOPBAR ============ */
.topbar { background: var(--ink); color: var(--white); font-size: 13px; padding: 9px 0; }
.topbar-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.topbar-left { display: flex; gap: 22px; }
.topbar-left a { display: inline-flex; gap: 7px; align-items: center; opacity: 0.85; }
.topbar-left a:hover { opacity: 1; color: var(--orange); }
.tb-ico { width: 13px; height: 13px; display: inline-block; }
.topbar-right { display: flex; gap: 16px; align-items: center; }
.topbar-right a { opacity: 0.8; font-weight: 500; }
.topbar-right a:hover { opacity: 1; }
.topbar-right a.active { color: var(--orange); opacity: 1; }
.lang-sep { opacity: 0.3; }

/* ============ HEADER ============ */
.header { background: var(--white); border-bottom: 1px solid var(--line); padding: 18px 0; position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.logo { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand-logo { height: 42px; width: auto; display: block; }
.brand-logo-footer { height: 40px; }
/* Legacy placeholder (fallback) */
.logo-mark { width: 46px; height: 46px; background: var(--orange); display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 800; font-size: 17px; letter-spacing: -0.02em; border-radius: 3px; flex-shrink: 0; }
.logo-text-main { font-weight: 800; font-size: 18px; color: var(--ink); letter-spacing: -0.015em; line-height: 1.1; white-space: nowrap; }
.logo-text-sub { display: block; font-size: 10px; font-weight: 600; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.15em; margin-top: 3px; white-space: nowrap; }
.nav { display: flex; gap: 24px; font-size: 14px; font-weight: 600; flex-wrap: nowrap; }
.nav a { color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; transition: all 0.15s; white-space: nowrap; }
.nav a:hover, .nav a.active { color: var(--orange); border-bottom-color: var(--orange); }
.header-cta { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

/* ============ BUTTONS ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: var(--radius); font-weight: 600; font-size: 14px; cursor: pointer; border: 1.5px solid transparent; transition: all 0.15s; font-family: inherit; white-space: nowrap; }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { padding: 16px 28px; font-size: 15px; }
.btn-block { width: 100%; }

/* ============ SECTIONS ============ */
.section { padding: 90px 0; }
.section-tight { padding: 60px 0; }
.section-gray { background: var(--surface); }
.section-dark { background: var(--ink); color: var(--white); }

/* Section header: 2 colunas (título / apoio) */
.section-header { margin-bottom: 48px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: end; }
.section-header-left { }
.section-header h2 { font-size: 40px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; color: var(--ink); }
.section-header-right { color: var(--ink-muted); font-size: 15px; line-height: 1.6; padding-bottom: 8px; }
.section-dark .section-header h2 { color: var(--white); }
.section-dark .section-header-right { color: rgba(255,255,255,0.7); }

/* Eyebrow: traço laranja + uppercase (substitui os 01/02 em Lora itálico) */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--orange);
  margin-bottom: 16px;
}
.section-eyebrow::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--orange);
}

/* ============ PAGE HEADER (hero pequeno para archives/singles) ============ */
.page-header { background: var(--ink); color: var(--white); padding: 80px 0 72px; position: relative; overflow: hidden; }
.page-header-bg { position: absolute; inset: 0; z-index: 1; opacity: 0.35; }
.page-header-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-header::after { content: ''; position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, rgba(26,26,26,0.92) 0%, rgba(26,26,26,0.7) 60%, rgba(26,26,26,0.45) 100%); }
.page-header-inner { position: relative; z-index: 3; }
.page-header h1 { font-size: 48px; font-weight: 800; letter-spacing: -0.025em; color: var(--white); margin-bottom: 14px; line-height: 1.1; }
.page-header .lede { font-size: 17px; opacity: 0.85; max-width: 680px; line-height: 1.6; }
.page-header .section-eyebrow { color: var(--orange); }
.breadcrumbs { font-size: 12px; margin-bottom: 20px; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }
.breadcrumbs a:hover { color: var(--orange); opacity: 1; }
.breadcrumbs .sep { margin: 0 10px; opacity: 0.5; }

/* ============ CARDS PARTILHADOS ============ */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: all 0.2s; }
.card:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }

/* Unit card (hospitais + polos) */
.unit-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: all 0.2s; display: flex; flex-direction: column; }
.unit-card:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.unit-media { aspect-ratio: 3/2; background: var(--line-soft); overflow: hidden; position: relative; }
.unit-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.unit-card:hover .unit-media img { transform: scale(1.04); }
.unit-badge { position: absolute; top: 16px; left: 16px; background: var(--white); color: var(--ink); padding: 5px 12px; border-radius: 2px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.unit-badge.hospital { background: var(--orange); color: var(--white); }
.unit-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.unit-city { font-size: 12px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 8px; font-weight: 600; }
.unit-name { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 12px; line-height: 1.2; }
.unit-desc { font-size: 14px; color: var(--ink-muted); line-height: 1.55; margin-bottom: 20px; flex: 1; }
.unit-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: 0.08em; }
.unit-link:hover { gap: 10px; color: var(--orange-dark); }

/* Doctor card */
.doc-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: all 0.2s; }
.doc-card:hover { border-color: var(--ink); }
.doc-photo { aspect-ratio: 1; background: var(--surface); overflow: hidden; }
.doc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.doc-body { padding: 18px 20px 22px; }
.doc-spec { font-size: 11px; color: var(--orange); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; }
.doc-name { font-size: 17px; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 8px; }
.doc-meta { font-size: 13px; color: var(--ink-muted); margin-bottom: 14px; }
.doc-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: 0.08em; border-top: 1px solid var(--line); padding-top: 12px; width: 100%; }
.doc-cta:hover { color: var(--orange); }

/* News cards */
.news-card { cursor: pointer; }
.news-card .news-img { aspect-ratio: 16/10; overflow: hidden; border-radius: var(--radius); background: var(--line-soft); margin-bottom: 16px; }
.news-card .news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.news-card:hover .news-img img { transform: scale(1.03); }
.news-cat { display: inline-block; font-size: 11px; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 10px; }
.news-title { font-size: 18px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; margin-bottom: 8px; }
.news-card:hover .news-title { color: var(--orange); }
.news-date { font-size: 13px; color: var(--ink-muted); }

/* Specialty chip */
.spec-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 2px; font-size: 13px; font-weight: 600; color: var(--ink); transition: all 0.15s; }
.spec-chip:hover { border-color: var(--ink); }
.spec-chip.active { background: var(--orange); color: var(--white); border-color: var(--orange); }

/* ============ CTA BAND (laranja) ============ */
.cta-band { background: var(--orange); color: var(--white); padding: 64px 0; }
.cta-band-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center; }
.cta-band h2 { font-size: 38px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; color: var(--white); }
.cta-band p { font-size: 16px; opacity: 0.95; margin-top: 12px; }
.cta-band-right { text-align: right; display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.cta-band-right .btn { background: var(--white); color: var(--orange); border-color: var(--white); padding: 16px 30px; font-size: 15px; }
.cta-band-right .btn:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-outline-light { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.5); padding: 16px 30px; font-size: 15px; border-radius: var(--radius); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.15s; font-family: inherit; }
.btn-outline-light:hover { background: var(--white); color: var(--orange); border-color: var(--white); }

/* ============ FOOTER ============ */
.footer { background: var(--ink); color: var(--white); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer-logo .logo-mark { width: 42px; height: 42px; }
.footer-logo-text { font-weight: 800; font-size: 17px; }
.footer-about { font-size: 14px; opacity: 0.65; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; background: rgba(255,255,255,0.08); border-radius: 3px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; transition: all 0.15s; }
.footer-social a:hover { background: var(--orange); }
.footer-col h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; color: var(--orange); margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; font-size: 13px; opacity: 0.85; }
.footer-col a:hover { color: var(--orange); opacity: 1; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; font-size: 12px; opacity: 0.5; flex-wrap: wrap; gap: 16px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .section-header, .cta-band-inner { grid-template-columns: 1fr; gap: 32px; }
  .section-header h2, .cta-band h2 { font-size: 32px; }
  .page-header h1 { font-size: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta-band-right { text-align: left; justify-content: flex-start; }
}
@media (max-width: 768px) {
  .topbar-left { display: none; }
  .nav { display: none; }
  .container { padding: 0 20px; }
  .section { padding: 60px 0; }
  .page-header { padding: 50px 0; }
  .page-header h1 { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
}
