/*
Theme Name: Escrito Na Biblia
Theme URI: https://EscritoNaBiblia.com
Author: Codex
Description: Tema WordPress moderno para estudos biblicos, devocionais e conteudo teologico.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: escrito-na-biblia
*/

:root {
  --ink: #17201d;
  --ink-soft: #4e5b55;
  --paper: #fbf7ef;
  --gold: #c9963d;
  --gold-deep: #8d672d;
  --green: #1f5a4c;
  --green-deep: #12372f;
  --white: #fffdf8;
  --line: rgba(23, 32, 29, 0.13);
  --shadow: 0 20px 55px rgba(23, 32, 29, 0.13);
  --radius: 8px;
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(23, 32, 29, 0.035) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(180deg, var(--paper), #fffaf0 48%, #f6eddf);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}

a { color: var(--green); text-decoration: none; }
a:hover, a:focus { color: var(--gold-deep); }
img { height: auto; max-width: 100%; }

.site-header {
  background: rgba(255, 253, 248, 0.91);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
}

.header-inner, .section-inner, .footer-inner, .content-wrap {
  margin: 0 auto;
  max-width: var(--content);
  padding: 0 24px;
}

.header-inner {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  gap: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  border-radius: 7px;
  box-shadow: inset 0 0 0 2px rgba(201, 150, 61, 0.24);
  color: var(--white);
  display: inline-flex;
  font-family: Georgia, "Times New Roman", serif;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.main-nav ul {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  border-radius: 999px;
  color: var(--ink-soft);
  display: inline-flex;
  font-size: 0.94rem;
  font-weight: 700;
  padding: 9px 13px;
}

.main-nav a:hover, .main-nav .current-menu-item > a {
  background: rgba(31, 90, 76, 0.09);
  color: var(--green-deep);
}

.hero {
  background:
    linear-gradient(90deg, rgba(251, 247, 239, 0.98) 0%, rgba(251, 247, 239, 0.88) 38%, rgba(251, 247, 239, 0.15) 68%),
    url("assets/images/biblia-moderna-hero.png") center right / cover no-repeat;
  min-height: clamp(620px, 85vh, 760px);
  position: relative;
}

.hero::after {
  background: linear-gradient(180deg, transparent, rgba(251, 247, 239, 0.92));
  bottom: 0;
  content: "";
  height: 130px;
  left: 0;
  position: absolute;
  right: 0;
}

.hero-inner {
  align-items: center;
  display: grid;
  min-height: clamp(620px, 85vh, 760px);
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 650px;
  padding: 76px 0 118px;
}

.eyebrow {
  align-items: center;
  color: var(--gold-deep);
  display: inline-flex;
  font-size: 0.79rem;
  font-weight: 800;
  gap: 9px;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.eyebrow::before {
  background: var(--gold);
  content: "";
  height: 2px;
  width: 38px;
}

.hero h1, .page-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 6vw, 5.75rem);
  line-height: 0.98;
  margin: 0 0 24px;
}

.hero p {
  color: var(--ink-soft);
  font-size: clamp(1.07rem, 2vw, 1.32rem);
  max-width: 560px;
}

.hero-actions, .button-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button, .wp-block-button__link, button.verse-button {
  background: var(--green);
  border: 0;
  border-radius: 6px;
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
}

.button:hover, .wp-block-button__link:hover, button.verse-button:hover {
  background: var(--green-deep);
  color: var(--white);
}

.button.secondary {
  background: transparent;
  border: 1px solid rgba(31, 90, 76, 0.28);
  color: var(--green-deep);
}

.button.secondary:hover {
  background: rgba(31, 90, 76, 0.08);
  color: var(--green-deep);
}

.section { padding: 86px 0; }
.section.alt {
  background: rgba(255, 253, 248, 0.62);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 34px;
  max-width: 790px;
}

.section-heading h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  margin: 0;
}

.section-heading p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin: 0;
}

.verse-grid, .study-grid, .post-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.verse-card, .study-card, .post-card, .devotional-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 35px rgba(23, 32, 29, 0.07);
}

.verse-card {
  display: grid;
  gap: 14px;
  padding: 26px;
}

.verse-ref {
  color: var(--gold-deep);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.verse-card blockquote {
  border-left: 3px solid var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.34;
  margin: 0;
  padding-left: 16px;
}

.verse-card p, .study-card p, .post-card p {
  color: var(--ink-soft);
  margin: 0;
}

.devotional {
  background:
    radial-gradient(circle at 14% 12%, rgba(201, 150, 61, 0.18), transparent 26%),
    linear-gradient(135deg, #17352e, #102821 58%, #0d201b);
  color: var(--white);
}

.devotional .section-heading p, .devotional .eyebrow {
  color: rgba(255, 253, 248, 0.78);
}

.devotional .eyebrow::before { background: rgba(255, 253, 248, 0.72); }

.devotional-layout {
  align-items: stretch;
  display: grid;
  gap: 28px;
  grid-template-columns: 0.85fr 1.15fr;
}

.devotional-panel {
  background: rgba(255, 253, 248, 0.95);
  color: var(--ink);
  display: grid;
  gap: 16px;
  padding: 30px;
}

.devotional-verse {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.25;
  margin: 0;
}

.devotional-message {
  color: var(--ink-soft);
  font-size: 1.06rem;
  margin: 0;
}

.study-card {
  border-top: 4px solid var(--gold);
  display: grid;
  gap: 14px;
  padding: 24px;
}

.study-card h3, .post-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.18;
  margin: 0;
}

.study-meta {
  color: var(--gold-deep);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.post-card {
  display: grid;
  gap: 13px;
  overflow: hidden;
}

.post-card .post-media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--green), var(--gold));
  overflow: hidden;
}

.post-card .post-media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.post-card .post-content {
  display: grid;
  gap: 12px;
  padding: 0 22px 24px;
}

.content-wrap {
  padding-bottom: 80px;
  padding-top: 58px;
}

.entry-content {
  background: rgba(255, 253, 248, 0.75);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 1.08rem;
  margin-top: 28px;
  padding: clamp(24px, 5vw, 48px);
}

.entry-content h2, .entry-content h3, .entry-content h4 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.16;
}

.entry-content blockquote {
  background: #f7eddb;
  border-left: 4px solid var(--gold);
  margin: 28px 0;
  padding: 18px 22px;
}

.post-meta { color: var(--ink-soft); font-size: 0.94rem; }

.site-footer {
  background: var(--ink);
  color: rgba(255, 253, 248, 0.76);
  padding: 44px 0;
}

.footer-inner {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.site-footer a, .site-footer .brand { color: var(--white); }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }

@media (max-width: 860px) {
  .header-inner, .footer-inner {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    padding-bottom: 16px;
    padding-top: 16px;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(251, 247, 239, 0.96) 0%, rgba(251, 247, 239, 0.88) 52%, rgba(251, 247, 239, 0.52)),
      url("assets/images/biblia-moderna-hero.png") center bottom / cover no-repeat;
  }

  .hero-copy { padding-bottom: 190px; }
  .verse-grid, .study-grid, .post-grid, .devotional-layout { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .header-inner, .section-inner, .footer-inner, .content-wrap {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero h1, .page-title { font-size: 2.65rem; }
  .section { padding: 64px 0; }
}
