/* =====================================================
   01. VARIÁVEIS GLOBAIS / TEMA DO SITE
===================================================== */

:root {
  --bg: #020617;
  --surface: rgba(255,255,255,.07);
  --surface-strong: rgba(255,255,255,.12);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --gold: #d4af37;
  --gold-light: #f1c40f;
  --border: rgba(255,255,255,.14);
  --shadow: 0 20px 45px rgba(0,0,0,.35);
  --radius: 24px;
  --header-height: 72px;
}


/* =====================================================
   02. RESET GLOBAL / BASE DO PROJETO
===================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top, #11204a 0, var(--bg) 42%, #010409 100%);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
}

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


/* =====================================================
   03. CONTAINERS / ESTRUTURA GERAL
===================================================== */

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.section {
  padding: 72px 0;
}

.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}


/* =====================================================
   04. HEADER / NAVBAR / MENU
===================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2,6,23,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  min-height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(1200px, calc(100% - 32px));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--gold);
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(212,175,55,.45);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links a {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: .25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--surface-strong);
  color: var(--gold-light);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: #fff;
  border-radius: 12px;
  font-size: 1.4rem;
  padding: 6px 12px;
  cursor: pointer;
}


/* =====================================================
   05. HERO / BANNER PRINCIPAL
===================================================== */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: grid;
  place-items: center;
  padding: 80px 0;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(2,6,23,.24), #020617),
    url("Imagens/fundo.avif") center/cover no-repeat;
  z-index: -1;
  opacity: .7;
}

.hero-card {
  text-align: center;
  padding: clamp(32px, 6vw, 64px);
}


/* =====================================================
   06. TIPOGRAFIA / TEXTOS
===================================================== */

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 800;
  font-size: .82rem;
  margin-bottom: 10px;
}

h1 {
  font-size: clamp(2.3rem, 6vw, 5rem);
  line-height: 1.05;
  margin-bottom: 20px;
}

h2 {
  color: var(--gold);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 12px;
}

h3 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.verse {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  color: #fff;
  max-width: 760px;
  margin: 0 auto 8px;
}

.reference,
.footer-note,
.section-header p,
small {
  color: var(--muted);
}


/* =====================================================
   07. BOTÕES / AÇÕES
===================================================== */

.actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  transition: .25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #111827;
  box-shadow: 0 12px 30px rgba(212,175,55,.28);
}

.secondary {
  border-color: rgba(212,175,55,.65);
  color: var(--gold-light);
  background: rgba(212,175,55,.08);
}

.youtube {
  background: #ff0000;
  color: #fff;
}


/* =====================================================
   08. PLANO DE ORAÇÃO
===================================================== */

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 32px;
}

.oracao-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 16px;
}

.day-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 14px;
  text-align: center;
  transition: .25s ease;
}

.day-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  background: var(--surface-strong);
}

.day-card strong {
  display: block;
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.day-card span {
  color: #fff;
  font-size: .95rem;
}

.highlight {
  background: rgba(212,175,55,.11);
}

.footer-note {
  text-align: center;
  margin-top: 24px;
  font-weight: 700;
}


/* =====================================================
   09. PLANO DE LEITURA ANUAL
===================================================== */

.reading-card {
  padding: 32px;
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
}

.chapter-box {
  background: rgba(0,0,0,.24);
  border-radius: 18px;
  padding: 24px;
  margin: 20px 0;
}

.chapter-box h3 {
  margin-bottom: 18px;
  color: #fff;
}

.progress {
  height: 9px;
  background: rgba(255,255,255,.11);
  border-radius: 999px;
  overflow: hidden;
  margin: 18px auto 8px;
  max-width: 520px;
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width .8s ease;
}


/* =====================================================
   10. ÁREA YOUTUBE / BLOCO DIVIDIDO
===================================================== */

.split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}


/* =====================================================
   11. CARDS / PÁGINAS INTERNAS
===================================================== */

.form-card,
.page-card {
  padding: clamp(24px, 5vw, 44px);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  min-height: 100%;
}

.card h3 {
  color: var(--gold);
  margin-bottom: 10px;
}

.card .btn {
  margin-top: 18px;
}


/* =====================================================
   12. FORMULÁRIOS / LOGIN / CONTACTO
===================================================== */

.form-grid {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.input-group {
  display: grid;
  gap: 8px;
  text-align: left;
}

.input-group label {
  color: var(--gold);
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.22);
  color: #fff;
  font: inherit;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212,175,55,.12);
}

textarea {
  min-height: 150px;
  resize: vertical;
}


/* =====================================================
   13. REDES SOCIAIS / CONTACTOS
===================================================== */

.social-list {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.social-list a {
  display: inline-flex;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
}

.social-list a:hover {
  background: var(--gold);
  color: #111827;
}

.contato-direto {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(1,4,9,.76);
  backdrop-filter: blur(8px);
}

.modal.active {
  display: flex;
}

.modal-content {
  width: min(840px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #07111f;
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.modal-close {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 16px;
  background: var(--surface);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.modal-body {
  max-height: calc(100vh - 180px);
  overflow: auto;
  padding: 24px;
}

.modal-body pre {
  white-space: pre-wrap;
  font: inherit;
  color: var(--text);
}

.modal-body p,
.modal-body blockquote {
  margin-bottom: 14px;
}

.modal-body blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 16px;
  color: #fff;
}

.verse-reference {
  color: var(--gold);
  font-weight: 800;
}


/* =====================================================
   14. FOOTER / RODAPÉ
===================================================== */

.footer {
  text-align: center;
  padding: 28px 16px;
  background: #010409;
  border-top: 1px solid var(--border);
  color: var(--muted);
}


/* =====================================================
   15. RESPONSIVO / TABLET
===================================================== */

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    padding: 20px;
    background: rgba(2,6,23,.96);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    justify-content: center;
  }

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

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


/* =====================================================
   16. RESPONSIVO / MOBILE
===================================================== */

@media (max-width: 520px) {
  .container {
    width: min(100% - 20px, 1120px);
  }

  .hero {
    padding: 48px 0;
  }

  .hero-card,
  .reading-card,
  .form-card,
  .page-card {
    padding: 24px 18px;
  }

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

  .brand span {
    display: none;
  }

  .modal {
    padding: 10px;
  }

  .modal-header {
    padding: 16px;
  }

  .modal-body {
    padding: 18px;
  }
}


/* =========================
   PAINEL ADMIN
========================= */

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0;
  justify-content: center;
}

.admin-tab {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 700;
  transition: .25s ease;
}

.admin-tab:hover,
.admin-tab.active {
  background: var(--gold);
  color: #111827;
}

.admin-section {
  display: none;
  margin-top: 24px;
}

.admin-section.active {
  display: block;
}
