/*
Theme Name: S.E.J.A — Se Encontrando na Jornada
Theme URI: https://seencontrandonajornada.com.br
Author: Se Encontrando na Jornada
Description: Tema editorial exclusivo para o portal S.E.J.A — Se Encontrando na Jornada. Paleta linho, terracota, bordô e dourado, foco visual em imagens na trilha inicial e páginas individuais prontas para edição.
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: seja-jornada
*/

:root {
  --bg-linen: #FAF7F2;
  --bg-sand: #F3ECE3;
  --bg-card: #FFFFFF;
  --rose: #BA7C72;
  --rose-dark: #9E6157;
  --bordeaux: #4A2227;
  --bordeaux-deep: #36171B;
  --gold: #C59B5F;
  --gold-soft: rgba(197, 155, 95, 0.25);
  --text-main: #2D181B;
  --text-muted: #6B4F53;
  --border-soft: rgba(74, 34, 39, 0.12);
  --shadow-soft: 0 12px 32px rgba(74, 34, 39, 0.06);
  --shadow-hover: 0 18px 42px rgba(74, 34, 39, 0.11);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-linen);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

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

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.site-brand img,
.custom-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--bordeaux);
}

.brand-subtitle {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-main);
  padding: 6px 2px;
  position: relative;
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--rose);
  transition: width 0.25s ease;
}

.nav-menu li a:hover::after,
.nav-menu li.current-menu-item a::after,
.nav-menu li.current_page_item a::after {
  width: 100%;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a,
.nav-menu li.current_page_item a {
  color: var(--bordeaux);
}

.btn-highlight-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background-color: var(--bordeaux);
  color: var(--bg-linen) !important;
  border: 1px solid var(--bordeaux);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.btn-highlight-nav:hover {
  background-color: var(--rose-dark);
  border-color: var(--rose-dark);
  transform: translateY(-1px);
}

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

/* =========================================
   BUTTONS & LABELS
   ========================================= */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-dark);
  margin-bottom: 14px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background-color: var(--bordeaux);
  color: var(--bg-linen);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
}

.btn-primary:hover {
  background-color: var(--rose-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  background-color: transparent;
  color: var(--bordeaux);
  border: 1px solid rgba(74, 34, 39, 0.28);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
}

.btn-secondary:hover {
  background-color: var(--bg-sand);
  border-color: var(--bordeaux);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
  padding: 72px 0 84px;
  background: radial-gradient(circle at top right, rgba(197, 155, 95, 0.10), transparent 55%), var(--bg-linen);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 56px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4.4vw, 3.85rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--bordeaux);
  margin: 0 0 22px;
}

.hero-subtitle {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-emblem-card {
  background-color: var(--bg-sand);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.hero-emblem-card img {
  width: 190px;
  height: 190px;
  object-fit: contain;
  margin: 0 auto 22px;
}

.hero-emblem-label {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--bordeaux);
  margin: 0 0 10px;
}

.hero-emblem-quote {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* =========================================
   POR ONDE COMEÇAR (FOCO EM IMAGENS)
   ========================================= */
.start-section {
  padding: 84px 0;
  background-color: var(--bg-sand);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.section-header {
  max-width: 660px;
  margin-bottom: 44px;
}

.section-header--row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 600;
  color: var(--bordeaux);
  margin: 0 0 12px;
  line-height: 1.15;
}

.section-subtitle {
  color: var(--text-muted);
  margin: 0;
  font-size: 1.02rem;
}

.start-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.start-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.start-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.start-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #EFE5DA 0%, #E7D5C8 100%);
  overflow: hidden;
}

.start-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.start-card:hover .start-card-media img {
  transform: scale(1.04);
}

.start-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  background: radial-gradient(circle at center, rgba(197, 155, 95, 0.16), transparent 70%), linear-gradient(145deg, #F5EFE7 0%, #EADCD0 100%);
}

.start-card-placeholder img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  opacity: 0.85;
  margin-bottom: 10px;
}

.start-card-placeholder span {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--bordeaux);
  letter-spacing: 0.04em;
}

.start-card-num {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: rgba(250, 247, 242, 0.94);
  color: var(--bordeaux);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--gold-soft);
}

.start-card-body {
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.start-card-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--bordeaux);
  margin: 0 0 10px;
  line-height: 1.2;
}

.start-card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 20px;
  flex: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--rose-dark);
}

.card-link:hover {
  color: var(--bordeaux);
}

/* =========================================
   ÚLTIMOS ARTIGOS
   ========================================= */
.articles-section {
  padding: 88px 0;
  background-color: var(--bg-linen);
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
}

.filter-pill {
  background-color: var(--bg-sand);
  color: var(--text-muted);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill:hover,
.filter-pill.is-active {
  background-color: var(--bordeaux);
  color: var(--bg-linen);
  border-color: var(--bordeaux);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.article-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.article-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--bg-sand);
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-meta {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rose-dark);
  margin-bottom: 10px;
}

.article-title {
  font-family: var(--font-serif);
  font-size: 1.42rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--bordeaux);
  margin: 0 0 12px;
}

.article-excerpt {
  font-size: 0.93rem;
  color: var(--text-muted);
  margin: 0 0 20px;
  flex: 1;
}

/* =========================================
   QUOTE BANNER
   ========================================= */
.quote-banner {
  padding: 72px 0;
  background-color: var(--bordeaux);
  color: var(--bg-linen);
  text-align: center;
}

.quote-banner blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.35;
  max-width: 780px;
  margin: 0 auto 16px;
}

.quote-banner cite {
  font-style: normal;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background-color: var(--bg-sand);
  border-top: 1px solid var(--border-soft);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border-soft);
}

.footer-brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 14px;
}

.footer-brand-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--bordeaux);
  margin: 0 0 10px;
}

.footer-brand-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 320px;
  margin: 0;
}

.footer-col h4 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--bordeaux);
  margin: 0 0 14px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--bordeaux);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* =========================================
   PÁGINAS INTERNAS & ARTIGOS INDIVIDUAIS
   ========================================= */
.page-hero {
  padding: 64px 0 44px;
  background-color: var(--bg-sand);
  border-bottom: 1px solid var(--border-soft);
}

.page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 3.8vw, 3.2rem);
  font-weight: 600;
  color: var(--bordeaux);
  margin: 0 0 12px;
  line-height: 1.15;
}

.page-content-wrap {
  padding: 56px 0 84px;
}

.editorial-content {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.editorial-content--wide {
  max-width: 100%;
}

.editorial-content h2,
.editorial-content h3 {
  font-family: var(--font-serif);
  color: var(--bordeaux);
  margin-top: 1.8em;
  margin-bottom: 0.6em;
  line-height: 1.25;
}

.editorial-content p {
  margin-bottom: 1.25em;
}

.editorial-content a {
  color: var(--rose-dark);
  text-decoration: underline;
}

.empty-state {
  background-color: var(--bg-sand);
  border: 1px dashed var(--gold);
  border-radius: var(--radius-md);
  padding: 36px 24px;
  text-align: center;
  color: var(--text-muted);
}

.pagination-wrap {
  margin-top: 44px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.pagination-wrap .page-numbers {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background-color: var(--bg-card);
  font-size: 0.9rem;
}

.pagination-wrap .page-numbers.current {
  background-color: var(--bordeaux);
  color: var(--bg-linen);
  border-color: var(--bordeaux);
}

/* =========================================
   RESPONSIVO
   ========================================= */
@media (max-width: 980px) {
  .hero-grid,
  .start-grid,
  .articles-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-linen);
    border-bottom: 1px solid var(--border-soft);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
    box-shadow: var(--shadow-soft);
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
  }
}

@media (max-width: 680px) {
  .start-grid,
  .articles-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding: 48px 0 60px;
  }
}
