/* RF Consultoria - folha de estilo compartilhada
   Tokens de marca/design-system.md (secoes E, F, G, H, I) */

:root {
  --bg: #F9FAFB;
  --surface: #FFFFFF;
  --elevated: #EEF1F6;
  --text: #0B1130;
  --text-secondary: #565B7A;
  --text-muted: #8B90AC;
  --accent: #E8433A;
  --accent-hover: #F15B52;
  --accent-active: #C6362E;
  --brand-blue: #363FC4;
  --brand-blue-light: #4A54E0;
  --navy: #0B1130;
  --hairline: rgba(226,232,240,0.7);
  --shadow-ambient: 0 1px 2px rgba(11,17,48,0.04), 0 4px 12px rgba(11,17,48,0.05);
  --shadow-raised: 0 4px 8px rgba(11,17,48,0.05), 0 16px 32px rgba(11,17,48,0.08);
  --shadow-floating: 0 24px 48px -18px rgba(11,17,48,0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--bg); scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 64px;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { display: block; }

/* ---------- header ---------- */

header.site {
  padding: 24px 0;
  border-bottom: 1px solid var(--hairline);
  background: rgba(249,250,251,0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

header.site .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

header.site .brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

header.site .brand img { height: 32px; width: auto; }

header.site .brand span {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 17px;
}

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

nav.main-nav a.nav-link {
  font-size: 15px;
  color: var(--text-secondary);
  transition: color 200ms ease;
}

nav.main-nav a.nav-link:hover { color: var(--text); }
nav.main-nav a.nav-link[aria-current="page"] { color: var(--text); font-weight: 500; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  margin: -8px;
  cursor: pointer;
  color: var(--text);
}
.nav-toggle svg { width: 24px; height: 24px; display: block; }

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--surface);
    border-bottom: 1px solid var(--hairline);
    box-shadow: var(--shadow-raised);
    padding: 12px 24px 20px;
  }
  nav.main-nav.is-open { display: flex; }
  nav.main-nav a.nav-link {
    display: block;
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--hairline);
  }
  nav.main-nav a.btn-primary { margin-top: 12px; width: 100%; justify-content: center; }
}

/* ---------- buttons ---------- */

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 15px;
  display: inline-block;
  white-space: nowrap;
  box-shadow: 0 6px 16px -6px rgba(232,67,58,0.5);
  transition: transform 200ms cubic-bezier(0.34,1.56,0.64,1), background 200ms ease;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px) scale(1.02);
}

.btn-primary:active { background: var(--accent-active); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  padding: 13px 24px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  font-weight: 500;
  font-size: 15px;
  display: inline-block;
  white-space: nowrap;
  transition: transform 200ms cubic-bezier(0.34,1.56,0.64,1), border-color 200ms ease;
}

.btn-ghost:hover {
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

.on-dark .btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}
.on-dark .btn-ghost:hover { border-color: rgba(255,255,255,0.6); }

/* ---------- hero (home) ---------- */

.hero {
  position: relative;
  padding: 80px 0 104px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(680px 460px at 12% 8%, rgba(54,63,196,0.12), transparent 70%),
    radial-gradient(620px 520px at 92% 100%, rgba(232,67,58,0.10), transparent 70%),
    radial-gradient(rgba(11,17,48,0.045) 1px, transparent 1px);
  background-size: auto, auto, 22px 22px;
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  font-size: 12px;
  font-family: ui-monospace, 'SF Mono', 'Segoe UI Mono', monospace;
  color: var(--brand-blue);
  background: rgba(54,63,196,0.08);
  border: 1px solid rgba(54,63,196,0.16);
  border-radius: 9999px;
  margin-bottom: 24px;
}

.hero-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}

.hero-text h1 {
  font-size: clamp(34px, 4.4vw, 58px);
  max-width: 16ch;
}

.hero-text p.lead {
  margin-top: 24px;
  max-width: 46ch;
  font-size: 18px;
  color: var(--text-secondary);
}

.hero-cta {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-floating);
}

.hero-visual svg { width: 100%; height: auto; }

/* ---------- page hero (paginas internas) ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 80px;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(720px 480px at 8% 0%, rgba(54,63,196,0.10), transparent 70%),
    radial-gradient(rgba(11,17,48,0.045) 1px, transparent 1px);
  background-size: auto, 22px 22px;
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  max-width: 20ch;
  margin-top: 24px;
}

.page-hero p.lead {
  margin-top: 24px;
  max-width: 60ch;
  font-size: 18px;
  color: var(--text-secondary);
}

.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb a { transition: color 200ms ease; }
.breadcrumb a:hover { color: var(--brand-blue); }
.breadcrumb .sep { opacity: 0.5; }

/* ---------- barra de atendimento (base x area atendida) ---------- */

.atendimento-bar {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--surface);
}

.atendimento-bar .container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.atendimento-bar svg {
  flex: none;
  width: 17px; height: 17px;
  color: var(--brand-blue);
}

.atendimento-bar p {
  font-size: 15px;
  color: var(--text-secondary);
}

.atendimento-bar strong { color: var(--text); font-weight: 500; }

/* ---------- brand band ---------- */

.brand-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0B1130 0%, #2A31A8 55%, #363FC4 100%);
  color: #fff;
}

.brand-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px 380px at 88% 12%, rgba(232,67,58,0.28), transparent 68%),
    radial-gradient(460px 360px at 6% 96%, rgba(74,84,224,0.4), transparent 70%);
  pointer-events: none;
}

.brand-band .band-pixels {
  position: absolute;
  top: 0; right: 0;
  width: 240px; height: 100%;
  opacity: 0.5;
  pointer-events: none;
}

.quote-band { padding: 72px 0; }
.quote-band .container { max-width: 940px; }

.quote-band p {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: clamp(23px, 3.1vw, 34px);
  line-height: 1.28;
}

/* ---------- sections ---------- */

section.block { padding: 96px 0; }

.section-head { max-width: 660px; margin-bottom: 48px; }

.section-head h2 { font-size: clamp(28px, 3.5vw, 42px); }

.section-head p {
  margin-top: 16px;
  font-size: 18px;
  color: var(--text-secondary);
}

hr.divider {
  border: 0;
  height: 1px;
  background: var(--hairline);
  margin: 0;
}

/* ---------- prose (texto corrido, blocos citaveis por IA) ---------- */

.prose { max-width: 68ch; }
.prose p { font-size: 17px; color: var(--text-secondary); }
.prose p + p { margin-top: 20px; }
.prose h3 { font-size: 22px; margin-top: 40px; margin-bottom: 12px; }
.prose strong { color: var(--text); font-weight: 500; }

/* ---------- definicoes (SEO / GEO) ---------- */

.def-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .def-grid { grid-template-columns: 1fr; }
}

.def-grid article {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 32px;
  padding: 40px;
  box-shadow: var(--shadow-ambient);
}

.def-grid .def-tag {
  display: inline-flex;
  padding: 4px 10px;
  font-size: 12px;
  font-family: ui-monospace, 'SF Mono', 'Segoe UI Mono', monospace;
  color: var(--brand-blue);
  background: rgba(54,63,196,0.08);
  border: 1px solid rgba(54,63,196,0.16);
  border-radius: 9999px;
  margin-bottom: 16px;
}

.def-grid h3 { font-size: 24px; }
.def-grid p { margin-top: 14px; color: var(--text-secondary); }
.def-grid p + p { margin-top: 14px; }

/* ---------- problemas ---------- */

.problemas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 48px;
}

@media (max-width: 768px) {
  .problemas-grid { grid-template-columns: 1fr; }
}

.problemas-grid li {
  list-style: none;
  display: flex;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--text-secondary);
  font-size: 16px;
}

.problemas-grid li::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  margin-top: 9px;
  border-radius: 2px;
  background: var(--accent);
}

/* ---------- servicos ---------- */

.servicos { position: relative; overflow: hidden; }

.servicos::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(720px 420px at 100% 0%, rgba(54,63,196,0.06), transparent 70%);
  pointer-events: none;
}

.servicos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .servicos-grid { grid-template-columns: 1fr; }
}

.servicos-grid article {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-ambient);
  transition: border-color 250ms ease, box-shadow 250ms ease, transform 250ms ease;
}

.servicos-grid article::after {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(54,63,196,0.10), transparent 68%);
  pointer-events: none;
}

.servicos-grid article:hover {
  border-color: rgba(54,63,196,0.35);
  box-shadow: var(--shadow-raised);
  transform: translateY(-3px);
}

.svc-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-light));
  box-shadow: 0 8px 20px -8px rgba(54,63,196,0.7);
  margin-bottom: 24px;
}

.svc-icon svg { width: 28px; height: 28px; }

.servicos-grid h3 { font-size: 22px; }
.servicos-grid p { margin-top: 12px; color: var(--text-secondary); position: relative; }

.svc-link {
  position: relative;
  margin-top: 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 200ms cubic-bezier(0.22,1,0.36,1);
}

.servicos-grid article:hover .svc-link { gap: 12px; }

/* ---------- bento (como funciona) ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  margin-top: 48px;
}

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
}

.bento article {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--shadow-ambient);
  transition: border-color 250ms ease, box-shadow 250ms ease, transform 250ms ease;
}

.bento article:hover {
  border-color: rgba(54,63,196,0.35);
  box-shadow: var(--shadow-raised);
  transform: translateY(-3px);
}

.bento .step-01 { grid-column: span 7; }
.bento .step-02 { grid-column: span 5; }
.bento .step-03 { grid-column: span 5; }
.bento .step-04 { grid-column: span 7; }

@media (max-width: 900px) {
  .bento article { grid-column: span 1 !important; }
}

.bento .step-num {
  font-family: ui-monospace, 'SF Mono', 'Segoe UI Mono', monospace;
  font-size: 13px;
  color: var(--brand-blue);
  display: inline-block;
  margin-bottom: 12px;
}

.bento h3 { font-size: 20px; }
.bento p { margin-top: 10px; color: var(--text-secondary); }

.comofunciona-closing {
  margin-top: 40px;
  max-width: 780px;
  color: var(--text-secondary);
  font-size: 17px;
}

/* ---------- entregaveis (lista com check) ---------- */

.entregaveis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 48px;
  max-width: 980px;
}

@media (max-width: 768px) {
  .entregaveis { grid-template-columns: 1fr; }
}

.entregaveis li {
  list-style: none;
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--text-secondary);
  font-size: 16px;
}

.entregaveis li svg {
  flex: none;
  width: 18px; height: 18px;
  margin-top: 4px;
  color: var(--brand-blue);
}

/* ---------- sobre ---------- */

.sobre .container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 900px) {
  .sobre .container { grid-template-columns: 1fr; }
}

.sobre h2 { font-size: clamp(28px, 3.5vw, 42px); margin-bottom: 24px; }
.sobre p { font-size: 18px; color: var(--text-secondary); }
.sobre p + p { margin-top: 20px; }

.sobre-badge {
  justify-self: center;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1 / 1;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-raised);
  border: 1px solid var(--hairline);
}

.sobre-badge img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- faq ---------- */

.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 820px; }

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 20px 24px;
  transition: border-color 200ms ease;
}

.faq-list details[open] { border-color: rgba(54,63,196,0.3); }

.faq-list summary {
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  flex: none;
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  color: var(--brand-blue);
  transition: transform 200ms ease;
}

.faq-list details[open] summary::after { transform: rotate(45deg); }

.faq-list p {
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 15px;
}

.faq-list p + p { margin-top: 12px; }

/* ---------- contato ---------- */

.contato { padding: 96px 0; }
.contato .container { max-width: 760px; }
.contato h2 { font-size: clamp(28px, 3.5vw, 42px); color: #fff; }
.contato p { margin-top: 20px; font-size: 18px; color: rgba(255,255,255,0.78); }
.contato .hero-cta { margin-top: 32px; }
.contato .email-note { margin-top: 18px; font-size: 14px; color: rgba(255,255,255,0.6); }
.contato .email-note a { color: #fff; text-decoration: underline; text-underline-offset: 3px; transition: color 200ms ease; }
.contato .email-note a:hover { color: var(--accent-hover); }

/* ---------- footer ---------- */

footer.site {
  padding: 48px 0;
  border-top: 1px solid var(--hairline);
}

footer.site .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 768px) {
  footer.site .container { grid-template-columns: 1fr; gap: 32px; }
}

footer.site .brand-footer { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
footer.site .brand-footer img { height: 24px; width: auto; opacity: 0.85; }

footer.site h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 14px;
}

footer.site ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
footer.site ul a { font-size: 14px; color: var(--text-secondary); transition: color 200ms ease; }
footer.site ul a:hover { color: var(--text); }

footer.site address {
  font-style: normal;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

footer.site .muted { font-size: 13px; color: var(--text-muted); }

footer.site .legal {
  border-top: 1px solid var(--hairline);
  margin-top: 40px;
  padding-top: 24px;
}

/* ---------- scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms cubic-bezier(0.22,1,0.36,1), transform 600ms cubic-bezier(0.22,1,0.36,1);
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn-primary, .btn-ghost, .servicos-grid article, .bento article { transition: none !important; }
  html { scroll-behavior: auto; }
}
