/*
Theme Name: Sementes Catequese
Theme URI: https://example.com
Author: Sementes
Description: Catechesis theme for children and youth — lessons, daily homilies and reflections.
Version: 2.0
Text Domain: sementes-catequese
*/

:root {
  --bg: oklch(97% 0.02 75);
  --card-bg: oklch(99% 0.012 75);
  --text: oklch(28% 0.03 50);
  --text-strong: oklch(24% 0.03 50);
  --muted: oklch(45% 0.03 50);
  --muted-2: oklch(50% 0.03 50);
  --muted-3: oklch(55% 0.03 50);
  --border: oklch(90% 0.02 70);
  --border-strong: oklch(88% 0.02 70);

  --terracotta: oklch(55% 0.13 35);
  --green: oklch(48% 0.09 135);
  --gold: oklch(62% 0.11 85);

  --mark-a: oklch(70% 0.14 135);
  --mark-b: oklch(55% 0.1 135);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito', sans-serif;
}

a { color: inherit; text-decoration: none; }

.site-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 0 100% 0 100%;
  background: linear-gradient(135deg, var(--mark-a), var(--mark-b));
  transform: rotate(-10deg);
  flex: none;
}
.logo-mark.small { width: 26px; height: 26px; }

.logo-text {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.2px;
}
.logo-text.small { font-size: 16px; }

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a { cursor: pointer; font-size: 15px; font-weight: 600; color: var(--muted); padding-bottom: 2px; border-bottom: 2px solid transparent; }
.site-nav a.is-active { color: var(--text-strong); font-weight: 700; }
.site-nav a.is-active.nav-inicio,
.site-nav a.is-active.nav-biblioteca { border-bottom-color: var(--terracotta); }
.site-nav a.is-active.nav-homilias { border-bottom-color: var(--green); }
.site-nav a.is-active.nav-reflexoes { border-bottom-color: var(--gold); }

/* Mobile nav toggle */
.nav-toggle-checkbox { display: none; }
.nav-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 22px;
  cursor: pointer;
}
.nav-toggle-btn span { display: block; height: 2px; background: var(--text); border-radius: 1px; }

/* Layout helpers */
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 32px; }
.container-medium { max-width: 720px; margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: 1080px; margin: 0 auto; padding: 0 32px; }

main { flex: 1; }

h1, h2, h3 { font-family: 'Lora', serif; font-weight: 600; margin: 0 0 20px; color: var(--text-strong); }

.btn-primary {
  background: var(--terracotta); color: oklch(98% 0.01 75); border: none;
  padding: 15px 28px; border-radius: 14px; font-size: 16px; font-weight: 700;
  font-family: 'Nunito', sans-serif; cursor: pointer; display: inline-flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 20px oklch(55% 0.13 35 / 0.25);
}

h2 { font-size: 26px; margin: 0 0 24px; }
.section { padding: 16px 32px 56px; }
.section-title-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.section-title-row h2 { margin: 0; }
.see-all { font-size: 14px; color: var(--terracotta); cursor: pointer; font-weight: 700; }

/* Hero (homepage) */
.hero-split {
  max-width: 1080px; margin: 0 auto; padding: 40px 32px 64px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
}
.hero-eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: oklch(93% 0.04 35); color: oklch(45% 0.13 35);
  padding: 7px 16px; border-radius: 999px; font-weight: 700; font-size: 13px; margin-bottom: 20px;
}
.hero-split h1 { font-size: 44px; line-height: 1.15; margin: 0 0 20px; }
.hero-split p { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 440px; margin: 0 0 28px; }
.hero-visual {
  position: relative; height: 320px; border-radius: 28px; overflow: hidden;
  background: repeating-linear-gradient(135deg, oklch(90% 0.03 135) 0px, oklch(90% 0.03 135) 14px, oklch(94% 0.025 135) 14px, oklch(94% 0.025 135) 28px);
  display: flex; align-items: center; justify-content: center; border: 1px solid oklch(85% 0.03 135);
}
.hero-visual-caption {
  background: oklch(99% 0.01 75 / 0.9); padding: 14px 20px; border-radius: 10px;
  font-family: monospace; font-size: 13px; color: var(--muted); text-align: center;
}
.hero-shape-a { position: absolute; top: 22px; right: 22px; width: 56px; height: 56px; border-radius: 0 100% 0 100%; background: oklch(75% 0.13 85 / 0.85); transform: rotate(20deg); }
.hero-shape-b { position: absolute; bottom: 24px; left: 24px; width: 36px; height: 36px; border-radius: 50%; background: oklch(62% 0.15 35 / 0.7); }

/* Card grids */
.cards-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.overview-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 20px;
  padding: 30px 26px; cursor: pointer; display: flex; flex-direction: column; gap: 14px;
}
.overview-icon-wrap {
  width: 52px; height: 52px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--icon-bg, var(--border));
}
.overview-card .card-label { font-family: 'Lora', serif; font-size: 20px; font-weight: 600; }
.overview-card .card-desc { font-size: 15px; line-height: 1.55; color: var(--muted); flex: 1; }
.overview-card .card-cta { font-size: 14px; color: var(--icon-fg, var(--terracotta)); font-weight: 700; }

.teaser-card {
  border-radius: 20px; padding: 30px; cursor: pointer; display: flex; flex-direction: column; gap: 10px;
  background: var(--teaser-bg, var(--card-bg));
}
.teaser-kicker { font-size: 13px; font-weight: 800; letter-spacing: 0.3px; text-transform: uppercase; color: var(--teaser-fg, var(--terracotta)); }
.teaser-card .teaser-title { font-family: 'Lora', serif; font-size: 22px; font-weight: 600; margin: 6px 0 2px; }
.teaser-card .teaser-link { font-size: 14px; color: var(--teaser-fg, var(--terracotta)); font-weight: 700; margin-top: auto; }
.teaser-card .teaser-excerpt { font-size: 15px; color: var(--muted); line-height: 1.55; }

/* Lesson / library cards */
.lesson-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 20px;
  overflow: hidden; cursor: pointer; display: flex; flex-direction: column;
}
.lesson-thumb {
  height: 120px; position: relative; display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(135deg, var(--stripe-a, #f1ece2) 0px, var(--stripe-a, #f1ece2) 12px, var(--stripe-b, #e8e0d0) 12px, var(--stripe-b, #e8e0d0) 24px);
}
.lesson-type-badge {
  position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 9px;
  background: oklch(99% 0.01 75 / 0.9); display: flex; align-items: center; justify-content: center;
}
.play-button {
  width: 38px; height: 38px; border-radius: 50%;
  background: oklch(55% 0.13 35 / 0.85); display: flex; align-items: center; justify-content: center;
}
.play-triangle {
  width: 0; height: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent;
  border-left: 11px solid var(--bg); margin-left: 3px;
}
.lesson-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.badge-row { display: flex; gap: 8px; }
.badge {
  font-size: 12px; font-weight: 800; letter-spacing: 0.2px; padding: 4px 10px; border-radius: 999px;
  color: var(--badge-fg, var(--terracotta)); background: var(--badge-bg, var(--border));
}
.badge.age { color: var(--muted-2); background: oklch(93% 0.015 70); }
.lesson-body .lesson-title { font-family: 'Lora', serif; font-size: 18px; font-weight: 600; line-height: 1.3; }
.lesson-body .lesson-meta { font-size: 13px; color: var(--muted-2); }
.lesson-body .lesson-meta.small { font-size: 13px; color: var(--muted-2); margin-top: auto; padding-top: 4px; }
.lesson-body .lesson-excerpt { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* Search box (decorative, matches design) */
.search-box {
  display: flex; align-items: center; gap: 12px; background: var(--card-bg);
  border: 1.5px solid var(--border-strong); border-radius: 14px; padding: 13px 18px;
  max-width: 420px; margin-bottom: 24px; color: var(--muted-3); font-size: 15px;
}

/* Chips / pills */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-row.tight { gap: 8px; }
.chip {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: 13.5px;
  cursor: pointer; font-family: 'Nunito', sans-serif;
  background: var(--chip-bg, var(--card-bg)); color: var(--chip-fg, var(--text));
  border: 1.5px solid var(--chip-border, var(--border-strong));
}
.chip.small { padding: 7px 16px; font-size: 13px; }
.chip .chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--chip-dot, currentColor); flex: none; }
.chip.is-active { background: var(--text-strong); color: var(--bg); border-color: var(--text-strong); }
.chip.is-active .chip-dot { background: var(--bg); }

/* Page headers (Biblioteca / Homilias / Reflexões) */
.page-main { flex: 1; width: 100%; padding: 40px 32px 96px; }
.page-eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.3px; text-transform: uppercase; color: var(--terracotta); margin-bottom: 8px; }
.page-title { font-family: 'Lora', serif; font-weight: 600; margin: 0 0 10px; }
.page-lede { font-size: 16px; color: var(--muted); margin: 0 0 28px; max-width: 560px; }
.back-link { font-size: 14px; color: var(--terracotta); cursor: pointer; font-weight: 700; }

/* Homilias */
.date-header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; margin-bottom: 32px; }
.date-nav-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--border-strong);
  background: var(--card-bg); cursor: pointer; display: flex; align-items: center; justify-content: center; flex: none;
}
.date-header-center { text-align: center; }
.homily-eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: oklch(92% 0.03 135); color: oklch(40% 0.09 135);
  padding: 6px 16px; border-radius: 999px; font-weight: 800; font-size: 12.5px;
  text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 14px;
}
.date-header-center h1 { font-size: 32px; margin: 0; }
.date-jump { display: flex; justify-content: center; margin: 0 0 36px; }
.date-jump-field {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  background: var(--card-bg); border: 1.5px solid var(--border-strong); border-radius: 999px;
  padding: 10px 20px; font-size: 14px; font-weight: 600; color: var(--text);
}
.date-jump-field input[type="date"] {
  font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 600; color: var(--text);
  background: transparent; border: none; cursor: pointer; padding: 0;
}

.readings-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 20px; padding: 8px; margin-bottom: 44px; }
.reading-row { padding: 22px 24px; border-bottom: 1px solid var(--border); }
.reading-row:last-child { border-bottom: none; }
.reading-row-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.reading-num {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px;
  background: var(--rn-bg); color: var(--rn-fg);
}
.reading-type { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.3px; color: var(--rn-fg); }
.reading-ref { font-family: 'Lora', serif; font-weight: 600; font-size: 16px; color: var(--text-strong); }
.reading-summary { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0 0 0 44px; }

.homily-title { font-size: 26px; margin: 0 0 18px; }
.homily-text p, .article-body p, .reflection-body p { font-size: 17px; line-height: 1.72; color: var(--text); margin: 0 0 20px; }

.question-callout {
  background: oklch(93% 0.045 35); border-radius: 18px; padding: 26px 28px;
  display: flex; gap: 16px; align-items: flex-start; margin-top: 8px;
}
.question-callout-icon {
  width: 38px; height: 38px; border-radius: 11px; background: oklch(88% 0.06 35);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.question-callout-label { font-size: 12.5px; font-weight: 800; color: oklch(45% 0.13 35); text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 6px; }
.question-callout p { font-size: 16px; line-height: 1.6; color: oklch(30% 0.06 35); margin: 0; font-style: italic; }

/* Article / reflection body */
.article-meta { font-size: 14px; color: var(--muted-2); margin-bottom: 36px; }
.article-title { font-family: 'Lora', serif; font-weight: 600; line-height: 1.25; margin: 12px 0 12px; font-size: 36px; }

.related-block { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--border); }
.related-block h2 { font-size: 19px; margin: 0 0 18px; }
.related-card { border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; cursor: pointer; background: var(--card-bg); }
.related-card .related-title { font-family: 'Lora', serif; font-size: 15px; font-weight: 600; margin-top: 6px; }

/* Video */
.video-placeholder {
  width: 100%; aspect-ratio: 16/9;
  background: repeating-linear-gradient(135deg, #efe8db, #efe8db 14px, #e4d9c4 14px, #e4d9c4 28px);
  border-radius: 16px; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 14px; position: relative;
}
.play-circle-lg {
  width: 64px; height: 64px; border-radius: 50%; background: oklch(55% 0.13 35 / 0.9);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.play-triangle-lg {
  width: 0; height: 0; border-top: 12px solid transparent; border-bottom: 12px solid transparent;
  border-left: 19px solid var(--bg); margin-left: 5px;
}
.video-caption { font-family: monospace; font-size: 13px; color: #7a6a56; letter-spacing: 0.3px; }

/* Reflections */
.reflection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.reflection-card {
  display: flex; flex-direction: column; gap: 12px; padding: 26px;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 20px; cursor: pointer;
}
.reflection-icon-wrap {
  width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  background: var(--icon-bg);
}
.reflection-card .reflection-title { font-family: 'Lora', serif; font-size: 18px; font-weight: 600; }
.reflection-card .reflection-excerpt { font-size: 14px; color: var(--muted); line-height: 1.55; flex: 1; }
.reflection-card .reflection-link { font-size: 14px; font-weight: 700; color: var(--icon-fg); }
.reflection-theme { font-size: 12px; font-weight: 800; letter-spacing: 0.3px; text-transform: uppercase; color: var(--icon-fg); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border); padding: 32px 48px; max-width: 1080px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.site-footer .footer-brand { display: flex; align-items: center; gap: 10px; }
.site-footer .footer-tagline { font-size: 14px; color: var(--muted-2); margin-left: 8px; }
.site-footer .footer-note { font-size: 13px; color: var(--muted-3); }

/* Filter helper */
[data-filterable].is-hidden { display: none !important; }

@media (max-width: 900px) {
  .cards-grid-3 { grid-template-columns: 1fr; }
  .cards-grid-2 { grid-template-columns: 1fr; }
  .reflection-grid { grid-template-columns: 1fr; }
  .hero-split { grid-template-columns: 1fr; }
  .hero-visual { height: 220px; }
  .site-header { padding: 18px 20px; }
  .hero-split h1 { font-size: 34px; }
}

@media (max-width: 640px) {
  .site-header { flex-wrap: wrap; position: relative; }
  .nav-toggle-btn { display: flex; }

  .site-nav {
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    width: 100%;
    transition: max-height 0.25s ease;
  }
  .nav-toggle-checkbox:checked ~ .site-nav {
    max-height: 320px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }
  .site-nav a { width: 100%; padding: 10px 0; border-bottom: none !important; }

  .container-narrow, .container-medium, .container-wide { padding: 0 20px; }
  .page-main { padding: 32px 20px 72px; }
  .section { padding: 12px 20px 40px; }
  .hero-split { padding: 24px 20px 40px; }
  .hero-split h1 { font-size: 28px; }
  .hero-split p { font-size: 16px; }
  .article-title { font-size: 26px !important; }
  .page-title { font-size: 26px !important; }
  .homily-title { font-size: 20px; }
  .section-title-row { flex-wrap: wrap; gap: 8px; }
  .date-header { gap: 8px; }
  .date-nav-btn { width: 36px; height: 36px; }
  .date-nav-btn svg { width: 15px; height: 15px; }
  .date-header-center h1 { font-size: 20px; line-height: 1.3; }
  .homily-eyebrow-pill { margin-bottom: 10px; }
  .lesson-thumb { height: 100px; }
  .site-footer { justify-content: center; text-align: center; }
}
