/* ==========================================================================
   Homepage — estilos compartilhados entre index.php e mcp.php
   ========================================================================== */

:root {
  --brand-blue: #175ae2;
  --brand-purple: #6a0bc8;
  --ink: #0b0e2d;
  --ink-soft: #545a7a;
  --line: #e7e9f5;
  --bg-soft: #f7f8fd;
}

* { box-sizing: border-box; }

html, body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-blue); }

h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; margin: 0; }

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Topbar ── */
.topbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 999 !important;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 24px;
}

.topbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
}

.topbar-logo img { height: 26px; width: auto; }

.topbar-nav { display: flex; align-items: center; gap: 28px; }

.topbar-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.topbar-nav a:hover { color: var(--ink); }

.topbar-actions { display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-purple) 100%);
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(23,90,226,.28);
  transition: transform .15s, box-shadow .15s;
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(23,90,226,.38); }

.btn-ghost {
  background: transparent;
  color: var(--ink) !important;
  border: 1px solid var(--line);
}

.btn-ghost:hover { border-color: #c7cdec; }

@media (max-width: 860px) {
  .topbar-nav { display: none; }
  .topbar-inner {
    flex-direction: column;
    gap: 14px;
    padding: 14px 20px;
  }
  .topbar-logo {
    margin: 0 auto;
  }
  .topbar-logo img {
    height: 36px;
  }
  .topbar-actions {
    width: 100%;
    justify-content: center;
  }
  .topbar-actions .btn {
    padding: 6px 10px;
    font-size: 11.5px;
  }
}

/* ── Sections shared ── */
.section-eyebrow {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--brand-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.section-head p {
  color: var(--ink-soft);
  margin-top: 12px;
  font-size: 15.5px;
}

.bg-soft { background: var(--bg-soft); }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-item:last-child { border-bottom: none; }

.faq-q {
  font-family: 'Montserrat', sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-q::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--brand-blue);
  flex-shrink: 0;
  transition: transform .2s;
}

.faq-item.open .faq-q::after { transform: rotate(45deg); }

.faq-a { display: none; font-size: 14.5px; color: var(--ink-soft); margin-top: 10px; }
.faq-a code { background: var(--bg-soft); padding: 2px 6px; border-radius: 4px; font-size: 12.5px; color: var(--brand-blue); }
.faq-item.open .faq-a { display: block; }

/* ── Final CTA ── */
.final-cta {
  background: linear-gradient(135deg, #0b0e2d 0%, #1a1060 45%, #2c0b6e 100%);
  color: #fff;
  text-align: center;
  border-radius: 20px;
  padding: 56px 32px;
}

.final-cta h2 { font-weight: 800; margin-bottom: 14px; }
.final-cta p { color: rgba(255,255,255,.7); max-width: 520px; margin: 0 auto 26px; font-size: 15px; }
/* font-size do h2 e padding do .final-cta variam por página — ver homepage-index.css / homepage-mcp.css */

/* ── Footer ── */
footer.simple-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 13px;
}

footer.simple-footer a { color: var(--ink-soft); text-decoration: none; margin: 0 10px; }
footer.simple-footer a:hover { color: var(--brand-blue); }
