/* ============================================================
   PASTOR FABIANO GONÇALVES — Design System Global
   Paleta: Azul #1e3a5f | Dourado #c8a96e | Branco | Cinza
   ============================================================ */

:root {
  --blue:       #1e3a5f;
  --blue-light: #2a4f7f;
  --blue-dark:  #142840;
  --gold:       #c8a96e;
  --gold-light: #d4bc8a;
  --gold-dark:  #a88850;
  --white:      #ffffff;
  --gray-50:    #f8f9fa;
  --gray-100:   #f0f2f5;
  --gray-200:   #e0e4ea;
  --gray-400:   #9aa3b0;
  --gray-600:   #5a6476;
  --gray-800:   #2d3442;
  --text:       #1a2030;

  --radius:     0px;
  --radius-lg:  0px;
  --shadow:     0 2px 12px rgba(30,58,95,0.10);
  --shadow-lg:  0 8px 32px rgba(30,58,95,0.18);
  --transition: 0.22s ease;

  --font-main:  'Montserrat', 'Segoe UI', Arial, sans-serif;
  --max-w:      1200px;
  --header-h:   72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Tipografia ─────────────────────────────────────────── */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
p  { font-size: 1rem; color: var(--gray-600); }

/* ── Container ──────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Botões ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 0;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover { background: var(--blue-light); border-color: var(--blue-light); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover { background: var(--blue); color: var(--white); transform: translateY(-2px); }
.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-2px); }

/* ── Header ─────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--white);
  box-shadow: 0 2px 16px rgba(30,58,95,0.08);
  z-index: 1000;
  transition: box-shadow var(--transition);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.header__logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.header__logo img { height: 44px; width: auto; }
.header__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.header__nav a {
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-600);
  border-radius: 0;
  transition: color var(--transition);
  position: relative;
}
.header__nav a:hover,
.header__nav a.active { color: var(--blue); }
.header__nav a.active::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 14px; right: 14px;
  height: 2px;
  background: var(--gold);
  border-radius: 0;
}
.header__nav .btn { padding: 8px 18px; font-size: 0.78rem; }
.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.header__hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--blue);
  border-radius: 0;
  transition: var(--transition);
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  background: #fff;
  overflow: hidden;
}

/* Forma azul diagonal — cobre o lado esquerdo do topo até o rodapé */
.hero__blue-shape {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 52%;
  background: var(--blue);
  clip-path: polygon(0 0, 100% 0, 76% 100%, 0 100%);
  z-index: 0;
}

/* Grid hero: foto | conteúdo */
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  min-height: 100vh;
  align-items: stretch;
  position: relative;
  z-index: 1;
  gap: 0;
  padding: 0;
}

/* Coluna da foto — alinha ao rodapé, foto sobe desde o topo */
.hero__image {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--header-h) 0 0 32px;
}

.hero__photo {
  width: 100%;
  max-width: 520px;
  height: calc(100vh - var(--header-h));
  object-fit: contain;
  object-position: center bottom;
  display: block;
}

/* Coluna do conteúdo — centralizado verticalmente */
.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 32px) 56px 64px 48px;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.6rem, 4.5vw, 4.2rem);
  line-height: 1.0;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.hero__title-blue {
  color: var(--blue);
  display: block;
  text-transform: uppercase;
}
.hero__title-gold {
  color: var(--gold);
  display: block;
  text-transform: uppercase;
}

.hero__verse {
  margin: 24px 0 0;
  font-size: 0.93rem;
  color: var(--gray-600);
  line-height: 1.75;
  font-style: italic;
  border-left: 3px solid var(--blue);
  padding-left: 16px;
}
.hero__verse strong {
  display: block;
  font-style: normal;
  font-weight: 700;
  color: var(--blue);
  margin-top: 8px;
  font-size: 0.9rem;
}

.hero__buttons {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* ── Curva decorativa ───────────────────────────────────── */
.wave-divider { display: block; width: 100%; line-height: 0; }
.wave-divider--bottom { margin-top: -2px; }

/* ── Seções genéricas ───────────────────────────────────── */
.section { padding: 80px 0; }
.section--gray { background: var(--gray-50); }
.section--blue { background: var(--blue); color: var(--white); }
.section--blue p { color: rgba(255,255,255,0.75); }
.section__header { text-align: center; margin-bottom: 48px; }
.section__header h2 { color: var(--blue); }
.section__header .gold-bar {
  display: inline-block;
  width: 60px; height: 3px;
  background: var(--gold);
  border-radius: 0;
  margin: 12px auto 0;
}
.section--blue .section__header h2 { color: var(--white); }

/* ── Grid de cards ──────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__thumb {
  position: relative;
  padding-top: 56.25%;
  background: var(--gray-200);
  overflow: hidden;
}
.card__thumb img,
.card__thumb iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.card__thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,58,95,0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.card__thumb-label {
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--gold);
  padding: 3px 10px;
  border-radius: 0;
}
.card__body { padding: 20px; }
.card__body h3 { color: var(--blue); margin-bottom: 8px; font-size: 1rem; }
.card__body p { font-size: 0.88rem; }
.card__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.9);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), background var(--transition);
}
.card__play:hover { transform: translate(-50%, -50%) scale(1.1); background: var(--gold); }
.card__play svg { fill: var(--blue); width: 20px; height: 20px; margin-left: 3px; }
.card__play:hover svg { fill: var(--white); }

/* ── Pensamento do Dia ──────────────────────────────────── */
.pensamento-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
  position: relative;
}
.pensamento-card__icon {
  font-size: 3rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.3;
  position: absolute;
  top: 16px; left: 20px;
}
.pensamento-card__texto {
  font-size: 1.05rem;
  color: var(--gray-800);
  line-height: 1.8;
  font-style: italic;
  padding-top: 16px;
}
.pensamento-card__ref {
  display: inline-block;
  margin-top: 16px;
  font-weight: 700;
  color: var(--blue);
  font-size: 0.9rem;
}
.pensamento-card .btn { margin-top: 20px; }

/* ── Lead Form ──────────────────────────────────────────── */
.lead-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  max-width: 560px;
}
.lead-form h3 { color: var(--blue); margin-bottom: 8px; }
.lead-form p { margin-bottom: 24px; font-size: 0.9rem; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30,58,95,0.1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-msg {
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  display: none;
}
.form-msg.success { background: #e6f9f0; color: #1a7a45; display: block; }
.form-msg.error   { background: #fde8e8; color: #c0392b; display: block; }

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--blue-dark);
  color: var(--white);
  padding: 60px 0 0;
}
.footer .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 48px;
}
.footer__brand { display: flex; flex-direction: column; gap: 16px; }
.footer__brand h3 { font-size: 1rem; letter-spacing: 0.05em; text-transform: uppercase; }
.footer__brand p { font-size: 0.85rem; color: rgba(255,255,255,0.6); line-height: 1.7; }
.footer__center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.footer__logo-img { height: 80px; width: auto; filter: brightness(0) invert(1); opacity: 0.85; }
.footer__qr { width: 130px; height: 130px; background: var(--white); border-radius: 0; padding: 0; overflow: hidden; }
.footer__qr img { width: 100%; height: 100%; object-fit: cover; display: block; }
img[src*="qr-contato"], img[src*="qr_code"] { background: #fff; border-radius: 0; }
.footer__social {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  justify-content: flex-end;
}
.footer__social a {
  width: 38px; height: 38px;
  border-radius: 0;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}
.footer__social a:hover { background: var(--gold); transform: translateY(-2px); }
.footer__social svg { width: 18px; height: 18px; fill: var(--white); }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--gold); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
}
.footer__bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.4); }
.footer__dev { font-size: 0.75rem; color: rgba(255,255,255,0.35); margin-top: 6px; }
.footer__dev a { color: var(--gold); text-decoration: none; transition: opacity 0.2s; }
.footer__dev a:hover { opacity: 0.8; text-decoration: underline; }

/* ── Toast / Loading ────────────────────────────────────── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--gray-400);
  padding: calc(var(--header-h) + 20px) 0 0;
}
.breadcrumb a { color: var(--blue); }
.breadcrumb span { color: var(--gray-400); }

/* ── Page Hero (páginas internas) ───────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  padding: calc(var(--header-h) + 60px) 0 60px;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero h1 { color: var(--white); position: relative; z-index: 1; }
.page-hero p { color: rgba(255,255,255,0.75); position: relative; z-index: 1; margin-top: 12px; font-size: 1.05rem; }
.page-hero__gold { color: var(--gold); }

/* ── Responsivo ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero__grid { grid-template-columns: 1fr; min-height: auto; }
  .hero__blue-shape { width: 100%; height: 55%; clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%); bottom: auto; }
  .hero__image { order: -1; padding: var(--header-h) 0 0; justify-content: center; height: 55vw; min-height: 240px; max-height: 380px; }
  .hero__photo { width: auto; max-width: 70vw; height: 100%; object-position: bottom center; }
  .hero__content { padding: 24px 24px 60px; justify-content: flex-start; text-align: center; }
  .hero__verse { text-align: left; }
  .hero__buttons { justify-content: center; }

  .header__nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--white); flex-direction: column; padding: 16px; box-shadow: var(--shadow-lg); gap: 4px; }
  .header__nav.open { display: flex; }
  .header__hamburger { display: flex; }

  .footer .container { grid-template-columns: 1fr; text-align: center; }
  .footer__social { justify-content: center; }
  .footer__links { align-items: center; }

  .form-row { grid-template-columns: 1fr; }
  .lead-form { padding: 24px; }
}

@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
  .hero__buttons { flex-direction: column; align-items: center; }
}

/* ── Home: Mensagens + Pensamento do Dia ───────────────── */
.home-msg-section { background: #fff; padding: 72px 0; }

.home-msg-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}

.home-msg-col {}

.home-col-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 900;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--gold);
  display: inline-block;
}

/* Cards de mensagem */
.home-msg-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.msg-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  background: #fff;
  text-decoration: none;
  display: block;
}
.msg-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.msg-card__thumb {
  position: relative;
  padding-top: 62%;
  overflow: hidden;
  background: var(--gray-200);
}
.msg-card__thumb img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Banner diagonal sobre a thumbnail */
.msg-card__banner {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(30,58,95,0.95) 60%, transparent);
  padding: 32px 12px 10px;
}
.msg-card__series {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.msg-card__title {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  text-transform: uppercase;
  margin-top: 2px;
}

.msg-card__desc {
  font-size: 0.82rem;
  color: var(--gray-600);
  padding: 10px 12px 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.msg-card--skeleton .msg-card__thumb { min-height: 140px; }

/* Pensamento do Dia v2 */
.pensamento-v2 {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pensamento-v2__quote {
  font-size: 4.5rem;
  line-height: 0.6;
  color: var(--gold);
  font-family: Georgia, serif;
  font-weight: 700;
  margin-bottom: 16px;
  display: block;
}

.pensamento-v2__texto {
  font-size: 0.97rem;
  color: var(--gray-800);
  line-height: 1.8;
  font-style: italic;
  min-height: 80px;
}

.pensamento-v2__ref {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue);
  margin-top: 14px;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}

.pensamento-v2__btn {
  margin-top: 24px;
  align-self: flex-start;
  font-size: 0.78rem;
  padding: 10px 24px;
}

/* Responsivo */
@media (max-width: 768px) {
  .home-msg-grid { grid-template-columns: 1fr; gap: 40px; }
  .home-msg-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .home-msg-cards { grid-template-columns: 1fr; }
}

/* ── Lista de artigos (home) ────────────────────────────── */
.home-artigos-list { display: flex; flex-direction: column; gap: 0; }
.artigo-item {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-200);
  text-decoration: none;
  transition: background var(--transition);
}
.artigo-item:first-child { border-top: 1px solid var(--gray-200); }
.artigo-item:hover { background: var(--gray-50); padding-left: 8px; }
.artigo-item__date {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.artigo-item__titulo {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.35;
}
.artigo-item__desc {
  font-size: 0.82rem;
  color: var(--gray-600);
  margin-top: 4px;
  line-height: 1.5;
}

/* ── Utilitários ────────────────────────────────────────── */
.text-blue  { color: var(--blue); }
.text-gold  { color: var(--gold); }
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-24 { margin-bottom: 24px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
