/*
Theme Name: Obra MissionAL Block Theme — Sprint 1
Theme URI: https://obramissional.com
Author: Obra MissionAL
Author URI: https://obramissional.com
Description: Versão independente de testes da Sprint 1 do tema editorial em blocos da plataforma Obra MissionAL.
Requires at least: 6.4
Requires PHP: 7.4
Version: 3.1.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: obra-missional-sprint1
Tags: block-patterns, full-site-editing, one-column, custom-colors, custom-logo, featured-images
*/

:root {
  --om-navy: #071b35;
  --om-navy-deep: #031226;
  --om-burgundy: #8f1728;
  --om-burgundy-deep: #64121e;
  --om-gold: #cf9f3b;
  --om-gold-light: #ead29d;
  --om-cream: #fbf7ef;
  --om-sand: #f2e8d6;
  --om-green: #7a7b56;
  --om-ink: #111f33;
  --om-muted: #586578;
  --om-white: #ffffff;
  --om-radius: 24px;
  --om-shadow: 0 24px 70px rgba(3, 18, 38, 0.12);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  background: var(--om-cream);
  color: var(--om-ink);
  overflow-x: hidden;
}

a {
  text-underline-offset: 0.18em;
}

.om-header {
  position: sticky;
  top: 0;
  z-index: 100000;
  isolation: isolate;
  transform: translateZ(0);
  padding: 14px 24px;
  background: rgba(255, 253, 249, 0.94);
  border-bottom: 1px solid rgba(7, 27, 53, 0.09);
  backdrop-filter: blur(18px);
}

.admin-bar .om-header {
  top: 32px;
}

.om-header__inner {
  position: relative;
  z-index: 1;
  min-height: 54px;
  pointer-events: auto;
}

.om-brand {
  gap: 12px;
  flex-wrap: nowrap;
}

.om-logo {
  display: inline-block;
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  background: url("assets/images/logo-obra-missional.svg") center / contain no-repeat;
}

.om-brand__name {
  margin: 0;
  color: var(--om-ink);
  font-size: clamp(0.92rem, 1.4vw, 1.08rem);
  font-weight: 780;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.om-brand__name span {
  color: var(--om-burgundy);
  font-style: italic;
}

.om-header .wp-block-navigation {
  font-size: 0.91rem;
  font-weight: 650;
}

.om-header .wp-block-navigation a {
  color: var(--om-navy);
}

.om-button .wp-block-button__link,
.om-button--outline .wp-block-button__link {
  border-radius: 999px;
  padding: 0.86rem 1.25rem;
  font-weight: 750;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.om-button .wp-block-button__link {
  background: var(--om-burgundy);
  color: var(--om-white);
  box-shadow: 0 12px 28px rgba(100, 18, 30, 0.22);
}

.om-header__cta .wp-block-button__link {
  background: var(--om-gold);
  color: var(--om-ink);
  box-shadow: 0 12px 28px rgba(207, 159, 59, 0.25);
}

.om-button--outline .wp-block-button__link {
  background: transparent;
  color: var(--om-white);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.om-button .wp-block-button__link:hover,
.om-button--outline .wp-block-button__link:hover {
  transform: translateY(-2px);
}

.om-hero {
  position: relative;
  min-height: min(810px, 91vh);
  display: flex;
  align-items: center;
  padding: clamp(72px, 9vw, 118px) 24px;
  overflow: hidden;
  color: var(--om-ink);
  background:
    radial-gradient(circle at 74% 28%, rgba(244, 197, 92, 0.42), transparent 25%),
    radial-gradient(circle at 92% 64%, rgba(207, 159, 59, 0.18), transparent 34%),
    linear-gradient(105deg, #fffdf9 0%, var(--om-cream) 45%, #f7e6bd 100%);
}

.om-hero::before,
.om-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.om-hero::before {
  width: 460px;
  height: 190px;
  right: -70px;
  bottom: -65px;
  border-radius: 58% 0 0 0;
  background: linear-gradient(145deg, rgba(143, 23, 40, 0.92), #701421);
  transform: rotate(-7deg);
}

.om-hero::after {
  width: 420px;
  height: 420px;
  right: -185px;
  top: 36px;
  border: 1px solid rgba(207, 159, 59, 0.42);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(207, 159, 59, 0.04);
}

.om-hero__inner {
  position: relative;
  z-index: 2;
}

.om-eyebrow {
  margin-bottom: 18px;
  color: var(--om-burgundy);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.om-hero h1 {
  max-width: 780px;
  margin: 0;
  color: var(--om-ink);
  font-size: clamp(3.1rem, 6vw, 4.8rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.om-hero__lead {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--om-muted);
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  line-height: 1.65;
}

.om-hero__buttons {
  margin-top: 34px;
}

.om-hero__accent { color: var(--om-burgundy); }

.om-hero-showcase {
  position: relative;
  max-width: 560px;
  min-height: 570px;
  margin-left: auto;
}

.om-hero-showcase__message {
  position: relative;
  z-index: 4;
  width: min(92%, 430px);
  margin: 0 auto -10px;
  padding: 20px 26px;
  border: 1px solid rgba(207, 159, 59, 0.6);
  border-radius: 28px;
  background: rgba(255, 253, 249, 0.94);
  box-shadow: 0 16px 38px rgba(100, 18, 30, 0.1);
  text-align: center;
}

.om-hero-showcase__message small {
  display: block;
  color: #a66d13;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
}

.om-hero-showcase__message strong {
  display: block;
  margin-top: 6px;
  color: var(--om-burgundy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  line-height: 1.12;
}

.om-devotional-stack { position: relative; z-index: 2; width: min(88%, 430px); margin: 28px auto 0; }
.om-devotional-stack::before {
  content: "";
  position: absolute;
  inset: 36px -42px -22px 38px;
  z-index: -1;
  border: 2px solid rgba(255,255,255,.82);
  border-radius: 28px;
  background: linear-gradient(145deg, #eed090, #a96b31);
  box-shadow: 0 24px 50px rgba(100,18,30,.16);
  transform: rotate(6deg);
}

.om-devotional-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.88);
  border-radius: 28px;
  background: linear-gradient(180deg, #fae2a9 0%, #e3b65d 52%, #9b5e2d 100%);
  box-shadow: 0 28px 65px rgba(100,18,30,.2);
}

.om-devotional-card.has-image {
  background-position: center;
  background-size: cover;
}

.om-devotional-card__sun { position:absolute; width:78px; height:78px; right:58px; top:78px; border-radius:50%; background:#f4bd4f; box-shadow:0 0 48px rgba(255,218,117,.8); }
.om-devotional-card__hills { position:absolute; left:-8%; right:-8%; bottom:0; height:55%; border-radius:50% 58% 0 0; background:linear-gradient(155deg,#dca85e,#955628); transform:rotate(-3deg); }
.om-devotional-card__book { position:absolute; z-index:2; left:18%; right:18%; bottom:30px; height:92px; border-radius:50% 50% 9px 9px; background:#fffaf0; box-shadow:0 12px 24px rgba(72,35,18,.22); }
.om-devotional-card__book::after { content:""; position:absolute; left:50%; top:8px; bottom:8px; width:2px; background:#8f1728; }
.om-devotional-card__label { position:absolute; z-index:3; left:22px; top:22px; padding:8px 12px; border-radius:9px; color:var(--om-burgundy); background:rgba(255,253,249,.9); font-size:.8rem; font-weight:800; }
.om-devotional-card__symbol { position:absolute; z-index:4; right:20%; bottom:46px; color:var(--om-burgundy); font-size:2rem; line-height:1; }

.om-hero-showcase__support {
  position: relative;
  z-index: 5;
  max-width: 420px;
  margin: 28px auto 0;
  color: var(--om-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  line-height: 1.3;
  text-align: center;
}

.om-hero-showcase__domain { display:block; width:max-content; margin:18px auto 0; padding:10px 22px; border-radius:999px; color:#fff; background:var(--om-burgundy); font-weight:750; text-decoration:none; box-shadow:0 12px 25px rgba(100,18,30,.2); }

.om-section {
  padding: clamp(78px, 10vw, 132px) 24px;
}

.om-section--white {
  background: var(--om-white);
}

.om-section--soft {
  background: var(--om-sand);
}

.om-section--navy {
  color: var(--om-white);
  background: var(--om-navy-deep);
}

.om-section__head {
  max-width: 780px;
  margin-bottom: 48px;
}

.om-section__head h2,
.om-split h2,
.om-study h2,
.om-about h2 {
  margin-top: 0;
  color: var(--om-navy);
  font-size: clamp(2.25rem, 5.2vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.om-section--navy h2 {
  color: var(--om-white);
}

.om-kicker {
  margin-bottom: 12px;
  color: var(--om-green);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.om-section--navy .om-kicker {
  color: var(--om-gold-light);
}

.om-copy {
  color: var(--om-muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.om-section--navy .om-copy {
  color: rgba(255, 255, 255, 0.74);
}

.om-split {
  gap: clamp(34px, 7vw, 90px);
  align-items: center !important;
}

.om-visual {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border-radius: var(--om-radius);
  background:
    linear-gradient(180deg, rgba(9, 35, 60, 0.02), rgba(9, 35, 60, 0.72)),
    radial-gradient(circle at 65% 28%, #f1cf83 0 9%, transparent 10%),
    linear-gradient(145deg, #d9bf87, #789084 55%, #17324d);
  box-shadow: var(--om-shadow);
}

.om-visual::before {
  content: "";
  position: absolute;
  left: 10%;
  right: -8%;
  bottom: -25%;
  height: 68%;
  border-radius: 50% 0 0 0;
  background: rgba(9, 35, 60, 0.6);
  transform: rotate(-8deg);
}

.om-visual__content {
  position: absolute;
  z-index: 2;
  left: clamp(26px, 5vw, 52px);
  right: clamp(26px, 5vw, 52px);
  bottom: clamp(28px, 5vw, 50px);
}

.om-visual__content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.om-visual__content h3 {
  max-width: 520px;
  margin: 8px 0 0;
  color: var(--om-white);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}

.om-checks {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.om-checks li {
  position: relative;
  margin: 14px 0;
  padding-left: 32px;
  color: var(--om-ink);
  line-height: 1.55;
}

.om-checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: var(--om-navy);
  background: var(--om-gold-light);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 22px;
  text-align: center;
}

.om-card-grid {
  gap: 24px;
}

.om-card {
  height: 100%;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid rgba(16, 47, 79, 0.09);
  border-radius: var(--om-radius);
  background: var(--om-white);
  box-shadow: 0 18px 55px rgba(9, 35, 60, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.om-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 70px rgba(9, 35, 60, 0.12);
}

.om-card__number {
  margin-bottom: 30px;
  color: var(--om-gold);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.om-card h3 {
  margin: 0 0 14px;
  color: var(--om-navy);
  font-size: 1.45rem;
  line-height: 1.2;
}

.om-card p {
  margin-bottom: 0;
  color: var(--om-muted);
  line-height: 1.65;
}

.om-study {
  border-radius: 34px;
  padding: clamp(34px, 6vw, 72px);
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.om-study__list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: study;
}

.om-study__list li {
  counter-increment: study;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
}

.om-study__list li::before {
  content: "0" counter(study);
  flex: 0 0 auto;
  color: var(--om-gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.om-about__quote {
  margin: 28px 0 0;
  padding: 24px 0 24px 28px;
  border-left: 3px solid var(--om-gold);
  color: var(--om-navy);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 680;
  line-height: 1.45;
}

.om-cta {
  position: relative;
  padding: clamp(52px, 8vw, 92px);
  overflow: hidden;
  border-radius: 34px;
  color: var(--om-white);
  background: linear-gradient(135deg, var(--om-burgundy), var(--om-burgundy-deep));
  box-shadow: var(--om-shadow);
}

.om-cta::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -110px;
  top: -145px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(255, 255, 255, 0.035);
}

.om-cta h2 {
  position: relative;
  z-index: 2;
  max-width: 850px;
  margin: 0;
  color: var(--om-white);
  font-size: clamp(2.35rem, 5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.om-cta p,
.om-cta .wp-block-buttons {
  position: relative;
  z-index: 2;
}

.om-cta p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  line-height: 1.65;
}

.om-footer {
  padding: 48px 24px;
  color: rgba(255, 255, 255, 0.68);
  background: var(--om-navy-deep);
}

.om-footer a {
  color: var(--om-gold-light);
}

.om-footer__inner {
  gap: 26px;
}

.om-footer__name {
  margin: 0;
  color: var(--om-white);
  font-weight: 750;
}

.om-post-shell {
  padding: clamp(60px, 8vw, 110px) 24px;
}

.om-post-shell .wp-block-post-title {
  color: var(--om-navy);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.om-post-shell .wp-block-post-content {
  font-size: 1.08rem;
  line-height: 1.8;
}

@media (max-width: 960px) {
  .om-hero {
    min-height: auto;
  }

  .om-hero-showcase {
    max-width: none;
    margin: 20px 0 0;
  }

  .om-split {
    gap: 46px;
  }
}

@media (max-width: 782px) {
  .admin-bar .om-header {
    top: 46px;
  }

  .om-header {
    padding: 10px 18px;
  }

  .om-header__inner {
    gap: 20px;
    width: 100%;
  }

  .om-brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .om-header .wp-block-navigation {
    flex: 0 0 auto;
  }

  .om-header .wp-block-navigation__responsive-container-open {
    position: relative;
    z-index: 2;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    padding: 0;
    color: var(--om-navy);
    pointer-events: auto;
    touch-action: manipulation;
  }

  .om-header .wp-block-navigation__responsive-container-open svg {
    display: none;
  }

  .om-header .wp-block-navigation__responsive-container-open::before {
    content: "";
    width: 25px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    box-shadow: 0 -7px 0 currentColor, 0 7px 0 currentColor;
  }

  /* Menu móvel em tela cheia, com links verticais e centralizados. */
  .om-header .wp-block-navigation__responsive-container.is-menu-open {
    position: fixed !important;
    z-index: 999999 !important;
    inset: 0 !important;
    display: flex !important;
    width: 100vw !important;
    max-width: none !important;
    height: 100vh !important;
    height: 100dvh !important;
    padding: 24px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background: var(--om-cream) !important;
    color: var(--om-navy) !important;
  }

  .om-header .wp-block-navigation__responsive-container-close {
    top: 22px !important;
    right: 22px !important;
    color: var(--om-navy) !important;
  }

  .om-header .wp-block-navigation__responsive-container-content {
    display: flex !important;
    flex: 1 1 auto;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 70px 0 32px !important;
    text-align: center !important;
  }

  .om-header .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
    width: min(100%, 360px) !important;
    margin: 0 auto !important;
    gap: 8px !important;
  }

  .om-header .wp-block-navigation__responsive-container-content .wp-block-navigation-item {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
  }

  .om-header .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content {
    display: block !important;
    width: 100% !important;
    padding: 13px 18px !important;
    border-bottom: 1px solid rgba(16, 47, 79, 0.12);
    color: var(--om-navy) !important;
    font-size: 1.18rem !important;
    font-weight: 750 !important;
    line-height: 1.25 !important;
    text-decoration: none !important;
  }

  .om-logo {
    width: 52px;
    height: 52px;
  }

  .om-brand__name {
    font-size: clamp(0.96rem, 4vw, 1.08rem);
  }

  .om-hero {
    padding: 76px 20px 68px;
  }

  .om-hero__inner { gap: 54px; }

  .om-hero h1 {
    font-size: clamp(3rem, 13vw, 4.5rem);
  }

  .om-hero__lead {
    font-size: 1rem;
  }

  .om-hero-showcase { min-height: 520px; }
  .om-devotional-stack { width: min(82%, 390px); }
  .om-hero::before { opacity: .8; }

  .om-hero__buttons .wp-block-button,
  .om-hero__buttons .wp-block-button__link,
  .om-cta .wp-block-button,
  .om-cta .wp-block-button__link {
    width: 100%;
    text-align: center;
  }

  .om-section {
    padding: 72px 20px;
  }

  .om-visual {
    min-height: 390px;
  }

  .om-cta {
    padding: 42px 28px;
    border-radius: 24px;
  }

  .om-footer__inner {
    text-align: center;
  }
}

@media (max-width: 400px) {
  .om-header {
    padding-inline: 14px;
  }

  .om-brand {
    gap: 9px;
  }

  .om-logo {
    width: 46px;
    height: 46px;
  }

  .om-brand__name {
    font-size: 0.94rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}


/* Integração com Obra MissionAL — Devocionais 2.0 */
.om-shortcode-area{margin-top:34px}.om-home-library>.wp-block-buttons{position:relative;z-index:2;clear:both;margin-top:52px!important}.om-home-devotional .om-card-featured{box-shadow:var(--om-shadow)}.post-type-archive-om_devocional body,.single-om_devocional body{background:var(--om-cream)}.om-wrap a{transition:opacity .18s ease}.om-wrap a:hover{opacity:.82}

.om-footer__inner{max-width:720px;text-align:center}.om-footer__inner>*{margin-inline:auto}.om-footer__links a{color:var(--om-gold-light)}.om-footer__copyright{opacity:.78}


/* Sprint 1 — Fundação editorial e identidade oficial */
.screen-reader-text.om-skip-link:focus {
  position: fixed !important;
  z-index: 1000000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  clip: auto;
  padding: .75rem 1rem;
  border-radius: 8px;
  color: var(--om-white);
  background: var(--om-navy);
}

.om-brand__lockup { display:flex; align-items:center; gap:12px; text-decoration:none; }
.om-brand__copy { display:flex; flex-direction:column; line-height:1.05; }
.om-brand__tagline { margin-top:5px; color:var(--om-gold); font-size:.57rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; white-space:nowrap; }
.om-header .current-menu-item > a,
.om-header .wp-block-navigation-item__content:hover { color:var(--om-burgundy); }

.om-mission-strip {
  padding: 16px 24px;
  color: rgba(255,255,255,.9);
  background: var(--om-navy);
  text-align:center;
}
.om-mission-strip p { margin:0; font-family:Georgia,'Times New Roman',serif; font-size:clamp(.95rem,2vw,1.1rem); letter-spacing:.02em; }
.om-mission-strip strong { color:var(--om-gold-light); }

.om-section__head { position:relative; }
.om-section__head::after { content:""; display:block; width:72px; height:2px; margin-top:22px; background:linear-gradient(90deg,var(--om-gold),transparent); }
.om-shortcode-area:empty,
.om-shortcode-area:has(> :only-child:empty) { display:none; }

.om-footer { border-top:3px solid var(--om-gold); }
.om-footer__brand { display:flex; align-items:center; justify-content:center; gap:12px; margin-bottom:12px; }
.om-footer__mark { width:42px; height:42px; background:url("assets/images/logo-obra-missional.svg") center/contain no-repeat; filter:brightness(0) invert(1); opacity:.95; }
.om-footer__mission { max-width:620px; color:rgba(255,255,255,.8); font-family:Georgia,'Times New Roman',serif; }

.om-post-shell > .wp-block-post-featured-image img { border-radius:var(--om-radius); box-shadow:var(--om-shadow); }
.om-post-shell .wp-block-post-date { color:var(--om-burgundy); font-size:.82rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.om-post-shell blockquote { margin:2rem 0; padding:1rem 0 1rem 1.5rem; border-left:3px solid var(--om-gold); color:var(--om-navy); font-family:Georgia,'Times New Roman',serif; }

.om-not-found { min-height:55vh; display:grid; place-items:center; text-align:center; }
.om-not-found h1 { margin-bottom:12px; color:var(--om-navy); font-size:clamp(3rem,10vw,7rem); }

@media (max-width:782px) {
  .om-brand__tagline { display:none; }
  .om-header .wp-block-navigation__responsive-container.is-menu-open::before {
    content:"Obra MissionAL";
    position:absolute;
    top:24px;
    left:24px;
    color:var(--om-navy);
    font-family:Georgia,'Times New Roman',serif;
    font-size:1.05rem;
    font-weight:700;
  }
}
