/*
Theme Name: Ekklesiastes
Theme URI: https://ekklesiastes.com.br
Author: Wilson
Author URI: https://ekklesiastes.com.br
Description: Tema teológico para o blog Ekklesiastes — Leituras & Reflexões Teológicas. Paleta inspirada nas cores do Tabernáculo (Êxodo 26-28): azul, púrpura, escarlate e ouro.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ekklesiastes
Tags: blog, theology, custom-colors, custom-menu, featured-image
*/

/* ── VARIÁVEIS — PALETA DO TABERNÁCULO ── */
:root {
  --gold:           #8B6420;
  --gold-light:     #C9953C;
  --gold-bright:    #E8B040;
  --gold-bg:        #FDF6E8;
  --blue:           #1B3A6B;
  --blue-bg:        #EEF3FA;
  --purple:         #4B1A6B;
  --purple-bg:      #F3EEF8;
  --scarlet:        #8B1A1A;
  --scarlet-hover:  #6B1010;
  --scarlet-bg:     #FAF0EF;
  --linen:          #FAF6EE;
  --linen-dark:     #EFE8D5;
  --text-main:      #1A1208;
  --text-mid:       #5A4520;
  --text-muted:     #9A8060;
  --border:         #E4D8BE;
  --white:          #ffffff;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--scarlet); text-decoration: none; }
a:hover { color: var(--blue); }

/* ── BODY ── */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--linen);
  color: var(--text-main);
  line-height: 1.7;
  font-size: 16px;
}

/* ── FAIXA DO TABERNÁCULO ── */
.colors-strip { display: flex; height: 5px; width: 100%; }
.strip-blue   { flex: 1; background: var(--blue); }
.strip-purple { flex: 1; background: var(--purple); }
.strip-scarlet{ flex: 1; background: var(--scarlet); }
.strip-gold   { flex: 1; background: var(--gold-light); }
.strip-linen  { flex: 1; background: var(--linen-dark); }

/* ── NAVEGAÇÃO ── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.site-branding a { text-decoration: none; }
.site-title {
  font-family: Georgia, serif;
  font-size: 20px;
  color: var(--text-main);
  letter-spacing: 0.02em;
  display: block;
}
.site-description {
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 2px;
}
.main-navigation ul {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  list-style: none;
}
.main-navigation a {
  font-size: 13px;
  color: var(--text-mid);
}
.main-navigation a:hover { color: var(--scarlet); }
.nav-cta {
  background: var(--scarlet) !important;
  color: var(--white) !important;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 12px !important;
}
.nav-cta:hover { background: var(--scarlet-hover) !important; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: var(--text-main);
}

/* ── HERO ── */
.hero {
  padding: 5rem 2rem 4rem;
  text-align: center;
  background-color: var(--white);
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 28px, rgba(139,100,32,0.04) 28px, rgba(139,100,32,0.04) 29px),
    repeating-linear-gradient(90deg, transparent, transparent 48px, rgba(139,100,32,0.025) 48px, rgba(139,100,32,0.025) 49px);
  border-bottom: 1px solid var(--border);
}
.hero-badge {
  display: inline-block;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: Georgia, serif;
  font-size: 42px;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.hero h1 .scarlet { color: var(--scarlet); }
.hero h1 .gold    { color: var(--gold-light); }
.hero h1 .blue    { color: var(--blue); }
.hero-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}
.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.btn-scarlet {
  background: var(--scarlet);
  color: var(--white);
  padding: 11px 28px;
  border-radius: 8px;
  font-size: 14px;
  transition: background 0.2s;
}
.btn-scarlet:hover { background: var(--scarlet-hover); color: var(--white); }
.btn-outline {
  border: 1px solid var(--border);
  color: var(--text-mid);
  background: var(--white);
  padding: 11px 28px;
  border-radius: 8px;
  font-size: 14px;
}
.btn-outline:hover { border-color: var(--text-muted); color: var(--text-main); }
.hero-verse {
  font-family: Georgia, serif;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* ── CONTAINER ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

/* ── SEÇÕES ── */
.section { padding: 2.5rem 2rem; background: var(--linen); }
.section-white { padding: 2.5rem 2rem; background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.5rem; max-width: 1100px; margin-left: auto; margin-right: auto; }
.section-title { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-light); font-weight: 600; }
.section-link { font-size: 12px; color: var(--text-muted); }
.section-link:hover { color: var(--scarlet); }

/* ── CARD DESTAQUE ── */
.featured-card {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold-light);
  border-radius: 10px;
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto 1.5rem;
}
.featured-img {
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 50%, var(--scarlet) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 2rem;
}
.featured-img img {
  width: 110px;
  border-radius: 3px;
  box-shadow: 6px 6px 24px rgba(0,0,0,0.5);
}
.featured-body { padding: 2rem; }
.featured-tag { font-size: 11px; color: var(--scarlet); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.75rem; display: block; }
.featured-title { font-family: Georgia, serif; font-size: 22px; color: var(--text-main); line-height: 1.35; margin-bottom: 0.75rem; }
.featured-excerpt { font-size: 14px; color: var(--text-muted); line-height: 1.8; margin-bottom: 1.25rem; }
.featured-cta { font-size: 13px; color: var(--scarlet); font-weight: 500; }
.featured-cta:hover { color: var(--blue); }
.featured-meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }

/* ── GRID DE POSTS ── */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 1100px; margin: 0 auto; }
.post-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; }
.post-card:hover { box-shadow: 0 6px 20px rgba(139,100,32,0.12); transform: translateY(-2px); }
.card-bar { height: 4px; }
.card-bar.blue   { background: var(--blue); }
.card-bar.purple { background: var(--purple); }
.card-bar.scarlet{ background: var(--scarlet); }
.card-body { padding: 1.25rem; }
.post-tag { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; display: block; font-weight: 600; }
.post-tag.blue   { color: var(--blue); }
.post-tag.purple { color: var(--purple); }
.post-tag.scarlet{ color: var(--scarlet); }
.post-title { font-family: Georgia, serif; font-size: 16px; color: var(--text-main); line-height: 1.4; margin-bottom: 0.6rem; }
.post-title a { color: var(--text-main); }
.post-title a:hover { color: var(--scarlet); }
.post-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.65; margin-bottom: 0.75rem; }
.post-meta { font-size: 11px; color: #c0a878; display: flex; gap: 0.75rem; }

/* ── POSTS INDIVIDUAIS ── */
.single-post .entry-header { max-width: 740px; margin: 3rem auto 2rem; padding: 0 2rem; }
.single-post .entry-title { font-family: Georgia, serif; font-size: 34px; color: var(--text-main); line-height: 1.25; margin-bottom: 1rem; }
.single-post .entry-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.single-post .entry-content { max-width: 740px; margin: 0 auto; padding: 0 2rem 3rem; }
.single-post .entry-content p { font-size: 17px; line-height: 1.85; margin-bottom: 1.5rem; color: var(--text-main); }
.single-post .entry-content h2 { font-family: Georgia, serif; font-size: 24px; color: var(--text-main); margin: 2.5rem 0 1rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.single-post .entry-content h3 { font-family: Georgia, serif; font-size: 20px; color: var(--text-main); margin: 2rem 0 0.75rem; }
.single-post .entry-content blockquote { border-left: 4px solid var(--gold-light); padding: 1rem 1.5rem; margin: 2rem 0; font-family: Georgia, serif; font-style: italic; color: var(--text-mid); background: var(--gold-bg); border-radius: 0 8px 8px 0; }
.single-post .entry-content ul, .single-post .entry-content ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.single-post .entry-content li { font-size: 17px; line-height: 1.85; margin-bottom: 0.5rem; }

/* ── SOBRE ── */
.about-inner { display: flex; gap: 2rem; align-items: flex-start; max-width: 700px; }
.about-avatar { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--purple)); display: flex; align-items: center; justify-content: center; font-family: Georgia, serif; font-size: 28px; color: var(--white); flex-shrink: 0; }
.about-name { font-family: Georgia, serif; font-size: 22px; color: var(--text-main); margin-bottom: 0.25rem; }
.about-role { font-size: 11px; color: var(--gold-light); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.75rem; }
.about-bio { font-size: 14px; color: var(--text-muted); line-height: 1.85; }

/* ── NEWSLETTER ── */
.newsletter { background: var(--blue); padding: 3rem 2rem; text-align: center; }
.newsletter h2 { font-family: Georgia, serif; font-size: 24px; color: var(--white); margin-bottom: 0.5rem; }
.newsletter p { font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: 1.5rem; }
.newsletter-form { display: flex; gap: 0.5rem; justify-content: center; max-width: 440px; margin: 0 auto; flex-wrap: wrap; }
.newsletter-form input[type="email"] { flex: 1; min-width: 200px; padding: 11px 16px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25); border-radius: 8px; color: var(--white); font-size: 14px; }
.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form button { background: var(--gold-light); color: var(--white); border: none; padding: 11px 20px; border-radius: 8px; font-size: 14px; cursor: pointer; font-weight: 500; }
.newsletter-form button:hover { background: var(--gold-bright); }

/* ── FOOTER ── */
.site-footer { background: var(--text-main); padding: 1.75rem 2rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; max-width: 1100px; margin: 0 auto; flex-wrap: wrap; gap: 1rem; }
.footer-logo { font-family: Georgia, serif; font-size: 16px; color: var(--gold-bright); letter-spacing: 0.03em; }
.footer-verse { font-family: Georgia, serif; font-size: 12px; color: #7A6040; font-style: italic; }
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { font-size: 12px; color: #7A6040; }
.footer-links a:hover { color: var(--gold-bright); }

/* ── RESPONSIVO ── */
@media (max-width: 900px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-card { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 28px; }
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .main-navigation ul { display: none; flex-direction: column; position: absolute; top: 65px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 1rem 2rem; gap: 1rem; z-index: 99; }
  .main-navigation ul.open { display: flex; }
  .nav-toggle { display: block; }
  .posts-grid { grid-template-columns: 1fr; }
  .about-inner { flex-direction: column; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .section, .section-white { padding: 2rem 1.25rem; }
}
