/*
Theme Name: O Evangelho Salva
Theme URI: https://evangelhosalva.com.br
Author: CEAD - Cristãos Eleitos Acampamento de Deus
Description: Tema WordPress responsivo para a igreja CEAD - O Evangelho Salva. Compatível com Gutenberg e Elementor, 100% editável pelo painel.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: evangelho-salva
Tags: church, one-column, custom-logo, custom-menu, editor-style, block-styles, wide-blocks, responsive
*/

:root {
  --navy: #0b2545;
  --blue: #17557f;
  --gold: #c9a227;
  --sand: #f7f5f0;
  --ink: #26303a;
  --muted: #5d6b78;
  --line: #e4ddd0;
  --card: #ffffff;
  --radius: 10px;
  --shadow: 0 4px 22px rgba(32, 32, 32, 0.09);
  --wrap: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--blue); }

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-top: 1.6em; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--navy);
  color: #fff; padding: 10px 16px; z-index: 999;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--navy);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
}
.site-nav {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: #fff; text-decoration: none;
  font-family: Georgia, serif; font-size: 1.05rem; letter-spacing: 0.04em;
}
.brand img { max-height: 54px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text small {
  font-family: inherit; font-size: 0.62rem; letter-spacing: 0.12em;
  color: var(--gold); font-weight: 400; text-transform: uppercase;
}
.nav-toggle {
  display: none; background: transparent; border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff; border-radius: 6px; padding: 8px 12px; font-size: 1rem; cursor: pointer;
}
.menu-principal { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.menu-principal a {
  display: block; color: #eef3f8; text-decoration: none;
  padding: 9px 12px; border-radius: 6px; font-size: 0.92rem;
  transition: background 0.2s, color 0.2s;
}
.menu-principal a:hover,
.menu-principal .current-menu-item > a,
.menu-principal .current_page_item > a { background: rgba(255, 255, 255, 0.12); color: #fff; }
.menu-principal .current-menu-item > a { box-shadow: inset 0 -2px 0 var(--gold); }
.menu-principal ul { list-style: none; margin: 0; padding: 0; }

/* ---------- Layout ---------- */
.site-main { min-height: 50vh; }
.section, .entry-content > *:not(.alignfull):not(.alignwide) { }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 48px 20px 64px; }
.entry-content > .alignwide { max-width: 1320px; margin-left: auto; margin-right: auto; }
.entry-content > .alignfull { max-width: none; width: auto; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(90deg, rgba(6, 27, 48, 0.93), rgba(12, 77, 124, 0.6)), var(--navy);
  color: #fff; text-align: center;
  padding: 74px 20px;
}
.hero h1, .hero h2 { color: #fff; }
.hero p { color: #dbe6f0; max-width: 640px; margin-left: auto; margin-right: auto; }
.hero .hero-logo { max-height: 120px; margin-bottom: 12px; }

.lead { font-size: 1.12rem; color: var(--muted); max-width: 780px; }

.button, .wp-block-button__link, button[type="submit"] {
  display: inline-block; background: var(--gold); color: #14202e;
  padding: 12px 26px; border: 0; border-radius: 6px; font-weight: 700;
  text-decoration: none; cursor: pointer; transition: filter 0.2s;
}
.button:hover, .wp-block-button__link:hover, button[type="submit"]:hover { filter: brightness(1.08); }

.eyebrow { letter-spacing: 0.18em; font-size: 0.75rem; text-transform: uppercase; color: var(--gold); font-weight: 700; }

/* ---------- Cards ---------- */
.cards, .wp-block-columns.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 28px 0; }
.card, .wp-block-group.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; border-top: 4px solid var(--gold);
}
.card h3 { margin-top: 0; }

.quote {
  border-left: 5px solid var(--gold); background: #fff;
  padding: 18px 22px; margin: 28px 0; font-family: Georgia, serif;
  font-size: 1.08rem; color: var(--navy); box-shadow: var(--shadow); border-radius: 0 var(--radius) var(--radius) 0;
}

.stats { display: flex; flex-wrap: wrap; gap: 15px; margin: 25px 0; }
.stats > div {
  background: #fff; border-left: 5px solid var(--gold); box-shadow: var(--shadow);
  padding: 14px 24px; min-width: 170px; border-radius: 0 var(--radius) var(--radius) 0;
}
.stats strong { font-size: 1.8rem; color: var(--navy); display: block; font-family: Georgia, serif; }

.instruction { background: #fff6dd; border: 1px dashed var(--gold); padding: 14px 18px; border-radius: var(--radius); }

/* ---------- Seminário / módulos ---------- */
.modules { display: grid; gap: 12px; margin: 28px 0; }
.module, .wp-block-details {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  border-left: 4px solid var(--blue); padding: 0;
}
.module > summary, .wp-block-details > summary {
  cursor: pointer; list-style: none; padding: 16px 20px;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px;
  font-family: Georgia, serif; color: var(--navy);
}
.module > summary::-webkit-details-marker { display: none; }
.module summary span { font-size: 0.72rem; letter-spacing: 0.14em; color: var(--gold); font-weight: 700; }
.module summary b { font-size: 1.05rem; }
.module summary em { margin-left: auto; font-style: normal; font-size: 0.8rem; color: var(--muted); }
.lessons { display: grid; gap: 8px; padding: 0 20px 20px; }
.lesson {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between;
  background: #f6f8fb; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px;
}
.lesson small { display: block; color: var(--muted); font-size: 0.78rem; }
.lesson a {
  background: var(--blue); color: #fff; text-decoration: none;
  padding: 8px 16px; border-radius: 6px; font-size: 0.85rem; font-weight: 600;
}
.lesson a:hover { background: var(--navy); }

/* ---------- Galeria / doações ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 25px 0; }
.gallery-grid img { width: 100%; height: 220px; object-fit: cover; border-radius: 6px; box-shadow: var(--shadow); }

.donation-box {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 30px; display: flex; flex-wrap: wrap; gap: 25px; align-items: center; margin-top: 20px;
}
.pix-key {
  background: #f1f6fb; border: 1px dashed var(--blue); border-radius: 6px;
  padding: 12px 16px; display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
}

/* ---------- Contato ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.contact form { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.contact label, .wpcf7 label { display: block; font-weight: 600; margin: 12px 0 6px; color: var(--navy); }
input[type="text"], input[type="email"], input[type="tel"], textarea, .contact input, .contact textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: 6px; font: inherit; background: #fbfaf7;
}
textarea { min-height: 140px; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }
.form-message { padding: 12px 16px; border-radius: 6px; margin-bottom: 14px; }
.form-message.ok { background: #e7f6ec; border: 1px solid #9ed3b0; }
.form-message.err { background: #fdecec; border: 1px solid #e2a3a3; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy); color: #cbd8e4; text-align: center;
  padding: 34px 20px; font-size: 0.9rem; margin-top: 40px;
}
.site-footer a { color: var(--gold); }
.footer-widgets {
  max-width: var(--wrap); margin: 0 auto 22px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; text-align: left;
}
.footer-widgets .widget-title { color: #fff; font-family: Georgia, serif; font-size: 1.05rem; }

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { flex-wrap: wrap; }
  .menu-principal {
    display: none; width: 100%; flex-direction: column; gap: 2px;
    padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 10px;
  }
  .menu-principal.is-open { display: flex; }
  .menu-principal a { padding: 12px 10px; }
  .hero { padding: 54px 18px; }
  .wrap { padding: 32px 18px 48px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .brand img { max-height: 42px; }
  .brand { font-size: 0.92rem; }
  .gallery-grid img { height: 180px; }
  .donation-box { padding: 20px; }
}
