/* =========================================================
   Tokens de marca — trocar aqui após aprovação da identidade
   ========================================================= */
:root {
  --brand-primary: #1f3a93;      /* cor principal (placeholder) */
  --brand-primary-dark: #14265f;
  --brand-accent: #e63946;       /* cor de destaque (placeholder) */
  --brand-accent-dark: #c1121f;

  --bg: #ffffff;
  --bg-alt: #f4f6fa;
  --bg-dark: #0f1a3a;
  --text: #1a1a1a;
  --text-muted: #5c6370;
  --text-on-dark: #ffffff;
  --border: #e3e6ec;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 6px 24px rgba(15, 26, 58, 0.08);
  --shadow-hover: 0 12px 32px rgba(15, 26, 58, 0.14);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1160px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 700; }
p { margin: 0 0 0.75rem; }
.container { max-width: var(--container); margin: 0 auto; padding-inline: 20px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.7rem 1.4rem; border-radius: 999px; font-weight: 600;
  font-size: 0.95rem; border: 2px solid transparent; cursor: pointer;
  transition: background .2s, transform .15s; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand-accent); color: #fff; }
.btn-primary:hover { background: var(--brand-accent-dark); }

/* ---------- Faixa do parceiro ---------- */
.partner-bar {
  background: var(--brand-primary-dark); color: #fff;
  font-size: 0.85rem; text-align: center; padding: 0.45rem 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg); border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; gap: 2rem; min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 0.75rem; color: var(--brand-primary); }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--brand-primary); flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 1.05rem; color: var(--text); }
.brand-sub { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; letter-spacing: .02em; }

.main-nav { display: flex; gap: 1.6rem; margin-left: auto; }
.main-nav a { color: var(--text); font-weight: 500; font-size: 0.95rem; padding: 0.4rem 0; position: relative; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--brand-accent); transform: scaleX(0); transition: transform .2s;
}
.main-nav a:hover { text-decoration: none; }
.main-nav a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer;
  flex-direction: column; gap: 5px; margin-left: auto;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); display: block; border-radius: 2px; }
.mobile-nav { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { padding: 0.9rem 20px; color: var(--text); font-weight: 500; border-bottom: 1px solid var(--border); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
  color: var(--text-on-dark); padding: 4.5rem 0 3.5rem; text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.12), transparent 45%),
              radial-gradient(circle at 15% 90%, rgba(255,255,255,.08), transparent 40%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 0.6rem; }
.hero-sub { font-size: 1.05rem; opacity: .9; margin-bottom: 2rem; }

.search {
  position: relative; max-width: 720px; margin: 0 auto;
  background: #fff; border-radius: 999px; box-shadow: var(--shadow);
  display: flex; align-items: center; padding: 0 1.2rem;
}
.search-icon { color: var(--text-muted); flex-shrink: 0; }
.search input {
  flex: 1; border: 0; outline: 0; font: inherit; font-size: 1.05rem;
  padding: 1rem 0.9rem; background: transparent; color: var(--text); min-width: 0;
}
.search input::placeholder { color: #9aa1ad; }
.search-clear {
  background: none; border: 0; font-size: 1.5rem; color: var(--text-muted); cursor: pointer; padding: 0 0.2rem;
}

.search-results {
  list-style: none; margin: 0.6rem auto 0; padding: 0.4rem 0; max-width: 720px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); text-align: left;
}
.search-results li a {
  display: block; padding: 0.7rem 1.2rem; color: var(--text); font-weight: 500;
}
.search-results li a:hover { background: var(--bg-alt); text-decoration: none; }
.search-results li a small { display: block; color: var(--text-muted); font-weight: 400; }
.search-results .empty { padding: 0.8rem 1.2rem; color: var(--text-muted); }

.hero-chips {
  margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; align-items: center;
  font-size: 0.88rem;
}
.hero-chips span { opacity: .85; }
.hero-chips button {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); color: #fff;
  padding: 0.35rem 0.9rem; border-radius: 999px; cursor: pointer; font: inherit; font-size: 0.85rem;
  transition: background .2s;
}
.hero-chips button:hover { background: rgba(255,255,255,.26); }

/* ---------- Seções ---------- */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section-title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 1.6rem; }
.section-sub { color: var(--text-muted); margin-top: -1.1rem; margin-bottom: 1.8rem; }
.section-dark .section-sub { color: rgba(255,255,255,.75); }

/* ---------- Cards ---------- */
.cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem;
}
.card {
  display: flex; flex-direction: column; gap: 0.35rem;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow); color: var(--text);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--brand-primary); text-decoration: none; }
.card-icon { margin-bottom: 0.6rem; display: inline-flex; }
.card-icon svg { width: 30px; height: 30px; color: var(--brand-primary); }
.card-title { font-weight: 700; font-size: 1.1rem; }
.card-desc { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Status ---------- */
.status-box {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center;
}
.status-box .section-title { margin-bottom: 0.5rem; }
.status-box p { color: var(--text-muted); }
.status-form { display: flex; gap: 0.6rem; }
.status-form input {
  flex: 1; font: inherit; font-size: 1rem; padding: 0.75rem 1rem;
  border: 1px solid var(--border); border-radius: 999px; outline: 0; min-width: 0;
}
.status-form input:focus { border-color: var(--brand-primary); }
.status-result {
  grid-column: 1 / -1; margin: 0; padding: 0.9rem 1.2rem; border-radius: var(--radius-sm);
  background: #e6f6ec; color: #14532d; font-weight: 500;
}

/* ---------- FAQ ---------- */
.faq-group { margin-bottom: 2.4rem; scroll-margin-top: 90px; }
.faq-group h3 { font-size: 1.15rem; margin-bottom: 0.8rem; color: var(--brand-primary); }
.faq-group details {
  border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 0.6rem;
  background: #fff; overflow: hidden;
}
.faq-group summary {
  cursor: pointer; padding: 1rem 3rem 1rem 1.2rem; font-weight: 600; list-style: none; position: relative;
}
.faq-group summary::-webkit-details-marker { display: none; }
.faq-group summary::after {
  content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--brand-primary); font-weight: 400; line-height: 1;
}
.faq-group details[open] summary::after { content: "−"; }
.faq-group details[open] summary { border-bottom: 1px solid var(--border); }
.faq-body { padding: 1rem 1.2rem; color: #333; }
.faq-body ol, .faq-body ul { padding-left: 1.3rem; margin: 0; }
.faq-body li { margin-bottom: 0.35rem; }
.faq-body code { background: var(--bg-alt); padding: 0.1em 0.4em; border-radius: 4px; font-size: 0.92em; }

.table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.table th, .table td { text-align: left; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--border); }
.table th { color: var(--text-muted); font-weight: 600; }

/* ---------- Canais ---------- */
.channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.channel {
  display: flex; flex-direction: column; gap: 0.25rem;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius); padding: 1.5rem; color: #fff;
  transition: background .2s, transform .2s;
}
a.channel:hover { background: rgba(255,255,255,.12); transform: translateY(-3px); text-decoration: none; }
.channel-icon { margin-bottom: 0.6rem; display: inline-flex; }
.channel-icon svg { width: 30px; height: 30px; color: #fff; }
.channel-title { font-weight: 700; font-size: 1.05rem; }
.channel-desc { font-size: 1.15rem; font-weight: 600; }
.channel-meta { font-size: 0.85rem; opacity: .75; }
.channels-note { margin-top: 1.6rem; font-size: 0.9rem; opacity: .8; }

/* ---------- Footer ---------- */
.site-footer { background: #0a1230; color: rgba(255,255,255,.8); padding: 3rem 0 1.5rem; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.7rem; }
.footer-col a { display: block; color: rgba(255,255,255,.8); margin-bottom: 0.45rem; }
.footer-col a:hover { color: #fff; }
.footer-brand { color: #fff; font-weight: 800; font-size: 1.05rem; margin-bottom: 0.4rem; }
.footer-hours { margin-top: 0.4rem; opacity: .7; }
.footer-legal {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12);
  font-size: 0.82rem; color: rgba(255,255,255,.6);
}
.footer-legal p { margin-bottom: 0.35rem; }
.footer-legal strong { color: rgba(255,255,255,.85); }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .status-box { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .brand-name { font-size: 0.95rem; }
  .hero { padding: 3rem 0 2.5rem; }
  .section { padding: 2.8rem 0; }
  .search input { font-size: 1rem; padding: 0.85rem 0.7rem; }
  .status-form { flex-direction: column; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-chips span { width: 100%; }
}

/* ---------- Logo oficial no header ---------- */
.brand-mark img { width: 46px; height: 46px; display: block; }

/* ---------- Bloco App Meu TIM (QR code) ---------- */
.app-box {
  display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap;
  margin-top: 2rem; padding: 1.5rem;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
}
.app-qr {
  width: 150px; height: 150px; border-radius: var(--radius-sm);
  background: #fff; padding: 8px; flex-shrink: 0;
}
.app-text h3 { color: #fff; font-size: 1.2rem; margin-bottom: 0.35rem; }
.app-text p { color: rgba(255,255,255,.9); font-size: 1.05rem; margin-bottom: 0.4rem; max-width: 42ch; }
.app-hint { color: rgba(255,255,255,.65); font-size: 0.85rem; }
@media (max-width: 480px) {
  .app-box { flex-direction: column; align-items: flex-start; text-align: left; }
}
