/* ==========================================================================
   Pastores Sem Fronteiras — Folha de estilos principal
   Estrutura: Variáveis > Reset > Layout base > Componentes > Utilitários >
              Acessibilidade > Animações > Responsividade
   ========================================================================== */

/* ---------- Variáveis ---------- */
:root {
  --navy: #112C42;
  --navy-light: #1c4761;
  --teal: #3A8D9C;
  --teal-dark: #2c6f7c;
  --bg-light: #F0F6F8;
  --gray: #5A6873;
  --white: #ffffff;
  --border: #d7e3e8;
  --radius: 10px;
  --maxw: 1140px;
  --footer-desc: #b9c9d1;
  --focus-ring: #ffb703;
}

/* ---------- Reset básico ---------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #26333d;
  background: var(--white);
  line-height: 1.6;
}

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

a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font-family: inherit; }

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

/* ---------- Acessibilidade: skip link e foco ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  z-index: 999;
  font-weight: 700;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header / Navegação ---------- */
header.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
}
.brand img { height: 38px; width: auto; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid #33526b;
  color: var(--white);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 1.1rem;
  cursor: pointer;
}

nav.main-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
}
nav.main-nav a {
  color: #dfe9ee;
  font-size: 0.92rem;
  font-weight: 500;
}
nav.main-nav a:hover,
nav.main-nav a.active,
nav.main-nav a[aria-current="page"] {
  color: var(--white);
  text-decoration: none;
  border-bottom: 2px solid var(--teal);
  padding-bottom: 2px;
}

.nav-cta {
  background: var(--teal);
  color: var(--white) !important;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.88rem;
}
.nav-cta:hover { background: var(--teal-dark); text-decoration: none; }

/* ---------- Hero (home) ---------- */
.hero {
  background: var(--bg-light);
  padding: 64px 24px;
  text-align: center;
}
.hero h1 {
  color: var(--navy);
  font-size: 2.2rem;
  margin: 0 0 16px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.hero p.lead {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto 28px;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--teal-dark); text-decoration: none; }
.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
}
.btn-outline:hover { background: var(--navy); color: var(--white); text-decoration: none; }
.btn-block { width: 100%; text-align: center; display: block; }
.hero-secondary-link {
  border-color: transparent;
  color: var(--gray);
  font-weight: 600;
}

/* ---------- Cabeçalho de página interna ---------- */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 48px 24px;
  text-align: center;
}
.page-hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.78rem;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 10px;
}
.page-hero h1 { margin: 0 0 12px; font-size: 2rem; }
.page-hero p { color: #cfdbe2; max-width: 700px; margin: 0 auto; }

/* ---------- Seções ---------- */
section { padding: 56px 24px; }
section.alt { background: var(--bg-light); }
h2.section-title {
  color: var(--navy);
  font-size: 1.6rem;
  margin: 0 0 10px;
  text-align: center;
}
p.section-sub {
  color: var(--gray);
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}

/* ---------- Cards de pilares ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover { box-shadow: 0 8px 24px rgba(17,44,66,0.10); transform: translateY(-2px); }
.card .icon {
  width: 46px; height: 46px;
  background: var(--teal);
  border-radius: 8px;
  margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.25rem; font-weight: 700;
}
.card h3 { color: var(--navy); margin: 0 0 8px; font-size: 1.08rem; }
.card p { color: var(--gray); font-size: 0.92rem; margin: 0 0 14px; }
.card a.card-link { font-size: 0.86rem; font-weight: 700; color: var(--teal-dark); }

/* ---------- Duas colunas de conteúdo ---------- */
.content-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
  padding: 14px 0 14px 34px;
  position: relative;
  border-bottom: 1px solid var(--border);
  color: #3b4750;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li i.fa-check {
  position: absolute;
  left: 0; top: 17px;
  color: var(--white);
  background: var(--teal);
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: 0.72rem;
  display: flex; align-items: center; justify-content: center;
}

.side-box {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 26px;
  border: 1px solid var(--border);
}
.side-box h4 { color: var(--navy); margin-top: 0; }
.side-box p { color: var(--gray); font-size: 0.92rem; }

.note {
  background: #FFF6E5;
  border: 1px solid #F0D999;
  border-radius: 8px;
  padding: 18px 20px;
  color: #6b5117;
  font-size: 0.92rem;
  margin-top: 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.note i { color: #a8791a; font-size: 1.1rem; margin-top: 2px; }
.note strong { color: #4a3710; }

/* ---------- Tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.tag {
  background: var(--bg-light);
  border: 1px solid var(--border);
  color: var(--navy);
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 20px;
}

/* ---------- Planos/Preços ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.price-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  background: var(--white);
}
.price-card.featured {
  border: 2px solid var(--teal);
  position: relative;
}
.price-card.featured::before {
  content: "Mais popular";
  position: absolute;
  top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--teal);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
}
.price-card h3 { color: var(--navy); margin-bottom: 4px; }
.price-card .price { font-size: 2rem; font-weight: 800; color: var(--navy); margin: 10px 0; }
.price-card .price span { font-size: 0.9rem; font-weight: 500; color: var(--gray); }
.price-card ul { list-style: none; padding: 0; margin: 20px 0; text-align: left; }
.price-card ul li { padding: 6px 0; color: #46525b; font-size: 0.9rem; }
.price-card ul li i { color: var(--teal); font-size: 0.6rem; margin-right: 8px; }

/* ---------- Diretório ---------- */
.directory-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 20px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 12px;
  flex-wrap: wrap; gap: 10px;
}
.directory-item .name { font-weight: 700; color: var(--navy); }
.directory-item .name i { color: var(--teal); margin-right: 8px; }
.directory-item .meta { color: var(--gray); font-size: 0.87rem; }

.search-input {
  width: 100%;
  max-width: 560px;
  padding: 14px 18px 14px 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
}
.search-wrap { position: relative; display: inline-block; width: 100%; max-width: 560px; }
.search-wrap i {
  position: absolute;
  left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--gray);
}
.filter-input {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 100%;
}
.map-placeholder {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 10px;
  height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  gap: 10px;
  text-align: center;
}
.map-placeholder i { font-size: 2rem; color: var(--teal); }

/* ---------- Formulário ---------- */
.form-box {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid var(--border);
}
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; color: var(--navy); font-size: 0.88rem; margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 0.92rem; font-family: inherit;
}
.form-row .hint { color: var(--gray); font-size: 0.78rem; margin-top: 4px; }

/* ---------- Rodapé ---------- */
footer.site-footer {
  background: var(--navy);
  color: #cfdbe2;
  padding: 40px 24px 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.footer-grid h5 { color: white; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid a { color: #b9c9d1; font-size: 0.88rem; }
.footer-grid a:hover { color: white; }
.footer-bottom {
  text-align: center;
  border-top: 1px solid #24445c;
  margin-top: 30px;
  padding-top: 18px;
  font-size: 0.8rem;
  color: #8fa3ae;
}
.footer-desc { font-size: 0.85rem; color: var(--footer-desc); max-width: 280px; }
.footer-brand { margin-bottom: 10px; }

/* ---------- Selos (badges) ---------- */
.badge-free { background: #e5f3ee; color: #1f6b4f; font-size: 0.72rem; font-weight: 700; padding: 3px 9px; border-radius: 10px; }
.badge-pro { background: #fdeee0; color: #a85a15; font-size: 0.72rem; font-weight: 700; padding: 3px 9px; border-radius: 10px; }

/* ---------- Utilitários ---------- */
.text-left   { text-align: left; }
.text-center { text-align: center; }
.text-gray   { color: var(--gray); }
.w-full      { width: 100%; }
.justify-center { justify-content: center; }

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

.u-mt-sm  { margin-top: 10px; }
.u-mt-md  { margin-top: 12px; }
.u-mt-lg  { margin-top: 14px; }
.u-mb-0   { margin-bottom: 0; }
.u-mb-sm  { margin-bottom: 8px; }
.u-mb-md  { margin-bottom: 10px; }
.u-mb-lg  { margin-bottom: 20px; }
.u-mb-xl  { margin-bottom: 30px; }
.u-mb-xxl { margin-bottom: 36px; }

/* ==========================================================================
   Animações de rolagem (scroll reveal)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.is-visible > * { animation: none; }

/* Respeita usuários que preferem menos movimento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Responsividade
   ========================================================================== */
@media (max-width: 980px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .content-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
}

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

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

  nav.main-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
    background: var(--navy-light);
    padding: 14px 18px;
    border-radius: 8px;
    margin-top: 8px;
  }
  nav.main-nav.nav-open { display: flex; }
  nav.main-nav a { width: 100%; padding: 10px 0; }
  nav.main-nav a:hover,
  nav.main-nav a.active,
  nav.main-nav a[aria-current="page"] { border-bottom: none; background: rgba(255,255,255,0.06); padding-left: 8px; border-radius: 4px; }

  .nav-cta { order: 3; }
  .nav-wrap { justify-content: space-between; }
}

@media (max-width: 600px) {
  .pillars { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.7rem; }
  .page-hero h1 { font-size: 1.6rem; }
}
