/* =========================================================
   PlanetPay — Gestão de Recebíveis
   Stylesheet único para todo o site
   ========================================================= */

:root {
  --green-900: #0f3d1a;
  --green-700: #167a2d;
  --green-600: #1c9438;
  --green-500: #22a93f;
  --green-400: #43c45c;
  --green-50:  #eaf8ee;
  --ink:       #0f1a14;
  --muted:     #5b6b62;
  --bg:        #ffffff;
  --bg-soft:   #f6faf7;
  --line:      #e3ece6;
  --shadow:    0 10px 30px rgba(15, 61, 26, 0.08);
  --radius:    14px;
  --max:       1140px;
  --font:      'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ----- Justificação global do texto corrido ----- */
p,
li,
.lead,
.card p,
.service-body p,
.about-content p,
.timeline p,
.step-body p,
.content-narrow p,
.cta-band p,
.footer-tag {
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  -webkit-hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

/* Exceções: elementos onde justificar fica ruim (curtos, centrados, navegação) */
.nav-list li,
.site-footer li,
.hero-badges li,
.check-list li,
.bullet-list li,
.stat span,
.timeline .year,
.footer-bottom small,
.btn,
.eyebrow {
  text-align: left;
  hyphens: manual;
}

/* Em seções centralizadas, manter o conteúdo centrado mas com justificação interna */
.section-header p,
.page-hero p {
  text-align: center;
  hyphens: manual;
}

img { max-width: 100%; display: block; }

a { color: var(--green-700); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--green-500); }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 56px; width: auto; }

.main-nav .nav-list {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.main-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 0;
  position: relative;
}
.main-nav a.active,
.main-nav a:hover { color: var(--green-600); }
.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--green-500);
  border-radius: 2px;
}

.nav-cta {
  background: var(--green-600);
  color: #fff !important;
  padding: 10px 18px !important;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--green-500); color: #fff !important; }
.nav-cta::after { display: none !important; }

/* Botão "Recebeu uma Cobrança?" — destaque âmbar com pulso */
.nav-highlight {
  background: #fbbf24;
  color: #5c3d00 !important;
  padding: 10px 16px !important;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px !important;
  position: relative;
  box-shadow: 0 0 0 0 rgba(251, 191, 36, .55);
  animation: pulse-amber 2.2s ease-out infinite;
}
.nav-highlight:hover {
  background: #f59e0b;
  color: #3d2900 !important;
  transform: translateY(-1px);
}
.nav-highlight::after { display: none !important; }
.nav-highlight.active {
  background: #f59e0b;
  color: #3d2900 !important;
}

@keyframes pulse-amber {
  0%   { box-shadow: 0 0 0 0   rgba(251, 191, 36, .55); }
  70%  { box-shadow: 0 0 0 12px rgba(251, 191, 36, 0); }
  100% { box-shadow: 0 0 0 0   rgba(251, 191, 36, 0); }
}

/* Botão "Recebeu uma Cobrança?" — versão standalone para uso no hero */
.btn-alert {
  display: inline-block;
  background: #fbbf24;
  color: #5c3d00;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .3px;
  margin-top: 26px;
  text-decoration: none;
  box-shadow: 0 0 0 0 rgba(251, 191, 36, .55);
  animation: pulse-amber 2.2s ease-out infinite;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}
.btn-alert:hover {
  background: #f59e0b;
  color: #3d2900;
  transform: translateY(-2px);
}
@media (max-width: 720px) {
  .btn-alert { animation: none; }
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px; height: 40px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--ink);
  margin: 0 auto;
  transition: transform .2s, opacity .2s;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--green-600);
  color: #fff;
  box-shadow: 0 6px 18px rgba(28,148,56,.25);
}
.btn-primary:hover { background: var(--green-500); color: #fff; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--green-700);
  border-color: var(--green-600);
}
.btn-ghost:hover { background: var(--green-50); }
.btn-large { padding: 16px 32px; font-size: 16px; }

/* ---------- Common typography ---------- */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--green-600);
  background: var(--green-50);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

h1, h2, h3, h4 { color: var(--ink); margin: 0 0 14px; line-height: 1.2; }
h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
h4 { font-size: 16px; font-weight: 700; letter-spacing: .3px; }

.accent { color: var(--green-600); }
.lead { font-size: 18px; color: var(--muted); max-width: 640px; }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}
.section-header p { color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 24px 0 100px;
  background: linear-gradient(180deg, var(--green-50) 0%, #ffffff 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(34,169,63,.25), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
}
.hero-content .lead { margin-bottom: 30px; }
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.hero-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0; margin: 0;
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
}
.hero-badges li { display: flex; align-items: center; gap: 6px; }

/* Hero visual — animated planet */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.orbit {
  position: relative;
  width: 380px; height: 380px;
}
.orbit.small { width: 280px; height: 280px; }
.planet {
  position: absolute;
  top: 50%; left: 50%;
  width: 150px; height: 150px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--green-400), var(--green-700));
  box-shadow: 0 20px 50px rgba(28,148,56,.35), inset -20px -20px 50px rgba(0,0,0,.25);
}
.orbit.small .planet { width: 110px; height: 110px; }
.ring {
  position: absolute;
  top: 50%; left: 50%;
  border: 1.5px dashed rgba(28,148,56,.35);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.ring-1 { width: 260px; height: 260px; animation: spin 30s linear infinite; }
.ring-2 { width: 360px; height: 360px; animation: spin 60s linear infinite reverse; }
.orbit.small .ring-1 { width: 190px; height: 190px; }
.orbit.small .ring-2 { width: 260px; height: 260px; }

.dot {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 14px var(--green-400);
}
.dot-1 { top: 8%;  left: 50%; transform: translateX(-50%); animation: spin 14s linear infinite; transform-origin: 50% 180px; }
.dot-2 { top: 50%; left: 10%; transform: translateY(-50%); animation: spin 22s linear infinite reverse; transform-origin: 180px 50%; }
.dot-3 { bottom: 8%; right: 20%; animation: spin 18s linear infinite; transform-origin: -120px -120px; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Stats band ---------- */
.stats { background: var(--ink); color: #fff; padding: 50px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.stat strong {
  display: block;
  font-size: 34px;
  font-weight: 800;
  color: var(--green-400);
  margin-bottom: 4px;
}
.stat span { color: #c7d4cb; font-size: 14px; }

/* ---------- Cards grid ---------- */
.highlights, .values { padding: 90px 0; }
.values { background: var(--bg-soft); padding-top: 45px; }

/* "Por que PlanetPay" — subir e alargar para o texto caber em uma linha */
.highlights { padding-top: 40px; padding-bottom: 70px; }
.highlights .section-header {
  max-width: 1100px;
  margin-bottom: 32px;
}
/* Em telas grandes, força título e subtítulo em uma linha só.
   No mobile (< 900px), permite quebra natural para evitar overflow. */
@media (min-width: 900px) {
  .highlights .section-header h2,
  .highlights .section-header p {
    white-space: nowrap;
  }
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.card-icon {
  font-size: 32px;
  margin-bottom: 14px;
}
.card p { color: var(--muted); margin: 0; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  padding: 70px 0 20px;
  background: linear-gradient(180deg, var(--green-50) 0%, #ffffff 100%);
  text-align: center;
}
.page-hero .lead { margin: 0 auto; }

/* Variante compacta — usado quando não há eyebrow, para o título ficar mais perto do menu */
.page-hero-tight { padding-top: 24px; }

/* Lead mais largo (cabe em 2 linhas em vez de 3) */
.page-hero-tight .lead { max-width: 980px; }

/* ---------- Hero da página Serviços (estilo moderno com destaque) ---------- */
.hero-services {
  position: relative;
  overflow: hidden;
}
/* Blob verde suave de fundo */
.hero-services::before {
  content: '';
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 520px;
  background: radial-gradient(ellipse, rgba(34,169,63,.22) 0%, rgba(34,169,63,.06) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-services .container { position: relative; z-index: 1; }

.hero-services-title {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin: 0 0 22px;
}
.hero-services { padding-top: 16px; }

.hero-subtitle {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  color: var(--green-700);
  margin: 0 auto 10px;
  max-width: 900px;
  text-align: center;
}
.hero-services .lead {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
@media (min-width: 900px) {
  .hero-services .lead { white-space: nowrap; }
}

/* Frase destacada — gradiente verde animado, suave e elegante */
.hero-grad {
  display: inline-block;
  background: linear-gradient(120deg,
              var(--green-700) 0%,
              var(--green-500) 35%,
              var(--green-400) 50%,
              var(--green-600) 70%,
              var(--green-700) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: hero-grad-shift 9s ease-in-out infinite;
}

@keyframes hero-grad-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ---------- Services — cards verdes em grade 2×3 ---------- */
.services { padding: 40px 0 80px; }

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

.service-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f7fcf9 100%);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green-500);
  border-radius: 16px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  min-height: 210px;
  transition: transform .3s cubic-bezier(.4,0,.2,1),
              box-shadow .3s cubic-bezier(.4,0,.2,1),
              border-color .3s ease;
}

/* Halo verde no canto superior direito */
.service-card::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(34,169,63,.15) 0%, transparent 65%);
  pointer-events: none;
  transition: transform .4s ease;
  z-index: 0;
}

/* Pequeno indicador verde acima do título */
.service-card::after {
  content: '';
  position: absolute;
  top: 30px;
  left: 28px;
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green-600), var(--green-400));
  transition: width .35s ease;
  z-index: 1;
}

.service-card > * { position: relative; z-index: 1; }

.service-card:hover {
  transform: translateY(-6px);
  border-left-color: var(--green-700);
  box-shadow: 0 20px 40px -8px rgba(28,148,56,.22);
}
.service-card:hover::before { transform: scale(1.25); }
.service-card:hover::after { width: 64px; }

.service-card h2 {
  color: var(--green-700);
  font-size: 24px;
  font-weight: 800;
  margin: 22px 0 14px;
  letter-spacing: -.5px;
}

.service-card p {
  color: #2b3a30;
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

/* Cards apenas com título — centralizados, com decoração mais forte */
.service-card-compact {
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 200px;
  background: linear-gradient(180deg, #ffffff 0%, #eef9f1 100%);
}
.service-card-compact::before {
  top: -100px;
  right: -100px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(34,169,63,.22) 0%, transparent 60%);
}
.service-card-compact::after {
  position: absolute;
  top: auto;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 40px;
}
.service-card-compact:hover::after { width: 80px; }
.service-card-compact h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.5px;
}

/* ---------- About ---------- */
.about-story { padding: 0 0 30px; }
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
}
.about-content p { color: var(--muted); margin-bottom: 14px; }
.about-visual { display: flex; justify-content: center; }

/* ---------- Timeline ---------- */
.timeline-section { padding: 80px 0; background: var(--bg-soft); }
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  display: grid;
  gap: 28px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 70px; top: 0; bottom: 0;
  width: 2px;
  background: var(--line);
}
.timeline li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  position: relative;
}
.timeline .year {
  background: var(--green-600);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 0;
  text-align: center;
  height: fit-content;
  position: relative;
  z-index: 1;
}
.timeline h3 { margin-bottom: 4px; }
.timeline p { color: var(--muted); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  color: #fff;
  padding: 70px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; opacity: .92; }
.cta-band .btn-primary {
  background: #fff;
  color: var(--green-700);
}
.cta-band .btn-primary:hover { background: var(--green-50); color: var(--green-700); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c7d4cb; padding-top: 60px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-logo {
  height: 83px;
  filter: brightness(0) invert(1);
  display: block;
  margin: 0 0 14px 0;
}
.footer-tag {
  font-size: 14px;
  max-width: 320px;
  margin: 0;
  text-align: left;
}
.site-footer h4 { color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #c7d4cb; }
.site-footer a:hover { color: var(--green-400); }
.footer-bottom {
  border-top: 1px solid #1c2a23;
  padding: 18px 0;
  font-size: 13px;
}

/* ---------- Página "Recebeu uma Cobrança?" ---------- */
.alert-hero {
  background: linear-gradient(180deg, #fff7e0 0%, #ffffff 100%);
  padding-bottom: 5px;
}
.eyebrow-alert {
  color: #92590a;
  background: #fff1c2;
}

.cobranca-content { padding: 15px 0 90px; }
.content-narrow { max-width: 820px; }
.content-narrow p { color: #2b3a30; margin: 0 0 18px; }
.content-narrow h2 {
  margin-top: 36px;
  margin-bottom: 14px;
  font-size: 24px;
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 24px 0 30px;
  display: grid;
  gap: 18px;
}
.steps > li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green-500);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.steps > li:hover {
  box-shadow: var(--shadow);
  border-left-color: var(--green-600);
}
.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-700);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 18px;
}
.step-body p { margin: 0 0 10px; }
.step-body p:last-child { margin-bottom: 0; }

.bullet-list {
  margin: 10px 0 14px;
  padding-left: 0;
  list-style: none;
}
.bullet-list li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 6px;
  color: #2b3a30;
}
.bullet-list li::before {
  content: '•';
  position: absolute;
  left: 8px;
  color: var(--green-600);
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
}

.note-box {
  margin-top: 30px;
  background: var(--green-50);
  border-radius: var(--radius);
  padding: 20px 24px;
  border-left: 4px solid var(--green-600);
}
.note-box p {
  margin: 0;
  color: var(--green-900);
  font-weight: 500;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-content .lead { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-badges { justify-content: center; }
  .hero-visual { order: -1; }
  .orbit { width: 300px; height: 300px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .about-grid { grid-template-columns: 1fr; text-align: center; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav .nav-list {
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px 24px;
    gap: 14px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .main-nav.open .nav-list {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav a.active::after { display: none; }
  .nav-highlight { animation: none; text-align: center; }

  .steps > li { grid-template-columns: 1fr; gap: 12px; text-align: left; }
  .step-num { margin: 0; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }

  .timeline::before { left: 30px; }
  .timeline li { grid-template-columns: 70px 1fr; gap: 18px; }

  .cta-inner { flex-direction: column; text-align: center; }

  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-logo { margin-left: auto; margin-right: auto; }
  .footer-tag { margin-left: auto; margin-right: auto; }
}
