/* ── ROCHEDO ONLINE – SHARED STYLES ──────────────────────── */
:root {
  --black:      #2B1F16;
  --dark:       #36271B;
  --card-bg:    #453325;
  --border:     #5C4633;
  --orange:     #FF5000;
  --orange-dim: #D44200;
  --gold:#D4AF37;
  --ok:#22C55E;
  --erro:#EF4444;
  --navy:       #36271B; /* compat: 44 arquivos ainda pedem var(--navy) - sai na 2a sessao */
  --forest:     #59693A;
  --white:      #F7F1E9;
  --muted:      #C4B3A2;
  --radius:     6px;
  --max:        1140px;
  --font-head:  'Syne', sans-serif;
  --font-body:  'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── LAYOUT ──────────────────────────────────────────────── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--dark { background: var(--dark); }
.section--navy { background: var(--dark); }
.eyebrow {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700; line-height: 1.15;
  margin-bottom: 16px;
}
.section-sub { color: var(--muted); max-width: 560px; margin-bottom: 48px; font-size: 15px; }
.divider { width: 40px; height: 3px; background: var(--orange); margin: 16px 0 40px; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.15s; border: none;
}
.btn--primary { background: var(--orange); color: var(--white); }
.btn--primary:hover { background: var(--orange-dim); }
.btn--outline { background: transparent; border: 1px solid var(--border); color: var(--white); }
.btn--outline:hover { border-color: var(--orange); color: var(--orange); }

/* ── NAV ─────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(43,31,22,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; max-width: var(--max); margin: 0 auto; padding: 0 24px;
}
.nav__logo { font-family: var(--font-head); font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.nav__logo span { color: var(--orange); }
.nav__links { display: flex; gap: 4px; list-style: none; position: relative; }
.nav__links > li { position: relative; }
.nav__links > li > a {
  display: block; padding: 8px 14px;
  font-size: 13px; font-weight: 500;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}
.nav__links > li > a:hover { background: var(--card-bg); color: var(--orange); }
.nav__links > li > a.active { color: var(--orange); }
.nav__dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); min-width: 200px;
  list-style: none; padding: 6px 0; z-index: 200;
  margin-top: 0;
}
.nav__links > li.open .nav__dropdown { display: block; }
.nav__dropdown li a {
  display: block; padding: 9px 18px;
  font-size: 13px; color: var(--muted);
  transition: color 0.15s, background 0.15s;
}
.nav__dropdown li a:hover { color: var(--white); background: var(--border); }
.nav__burger {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.nav__burger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; }
.nav__cta {
  background: var(--orange); color: var(--white) !important;
  border-radius: var(--radius); padding: 8px 18px !important;
  font-weight: 600 !important; transition: background 0.15s !important;
}
.nav__cta:hover { background: var(--orange-dim) !important; color: var(--white) !important; }
.nav__mobile {
  display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: var(--dark); overflow-y: auto; z-index: 99; padding: 24px;
}
.nav__mobile.open { display: block; }
.nav__mobile-group { margin-bottom: 24px; }
.nav__mobile-group-title {
  font-size: 11px; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 8px;
}
.nav__mobile-group a {
  display: block; padding: 10px 0;
  font-size: 15px; border-bottom: 1px solid var(--border); color: var(--muted);
}
.nav__mobile-group a:hover { color: var(--white); }

/* ── PAGE HERO (inner pages) ─────────────────────────────── */
.page-hero {
  padding: 88px 24px 44px;
  background: var(--dark);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 80% at 80% 50%, rgba(255,80,0,0.08) 0%, transparent 70%);
}
.page-hero__inner { max-width: var(--max); margin: 0 auto; position: relative; }
.page-hero__breadcrumb {
  font-size: 12px; color: var(--muted); margin-bottom: 16px;
}
.page-hero__breadcrumb a { color: var(--orange); }
.page-hero__breadcrumb a:hover { text-decoration: underline; }
.page-hero__title {
  font-family: var(--font-head);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -0.02em;
}
.page-hero__sub {
  margin-top: 16px; font-size: 16px;
  color: var(--muted); max-width: 560px; line-height: 1.7;
}

/* ── PROSE CONTENT ───────────────────────────────────────── */
.prose {
  max-width: 760px;
  font-size: 16px; line-height: 1.8; color: #D2C4B4;
}
.prose p { margin-bottom: 20px; }
.prose h2 {
  font-family: var(--font-head);
  font-size: 24px; font-weight: 700;
  color: var(--white); margin: 40px 0 16px;
}
.prose h3 {
  font-family: var(--font-head);
  font-size: 18px; font-weight: 600;
  color: var(--orange); margin: 32px 0 12px;
}
.prose strong { color: var(--white); font-weight: 600; }
.prose ol { padding-left: 24px; margin-bottom: 20px; }
.prose ol li { margin-bottom: 16px; }
.prose blockquote {
  border-left: 3px solid var(--orange);
  padding: 16px 24px; margin: 32px 0;
  background: var(--card-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--muted);
}
.prose blockquote cite {
  display: block; margin-top: 8px;
  font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold);
  font-style: normal;
}

/* ── TIMELINE ────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item::before {
  content: ''; position: absolute; left: -28px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--orange); border: 2px solid var(--black);
}
.timeline-item__year {
  font-family: var(--font-head); font-size: 13px; font-weight: 700;
  color: var(--orange); letter-spacing: 0.1em; margin-bottom: 6px;
}
.timeline-item__title {
  font-size: 17px; font-weight: 600; margin-bottom: 8px;
}
.timeline-item__text { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ── CRENÇA CARDS ────────────────────────────────────────── */
.crenca-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
.crenca-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.15s;
}
.crenca-card:hover { border-color: var(--orange); }
.crenca-card__num {
  font-family: var(--font-head);
  font-size: 32px; font-weight: 800;
  color: var(--border); line-height: 1; margin-bottom: 12px;
}
.crenca-card__title {
  font-size: 15px; font-weight: 600; margin-bottom: 8px;
}
.crenca-card__text { font-size: 13px; color: var(--muted); line-height: 1.7; }
.crenca-card__ref {
  margin-top: 12px; font-size: 11px;
  color: var(--gold); font-weight: 600;
  letter-spacing: 0.08em;
}

/* ── PASTOR ──────────────────────────────────────────────── */
.pastor-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
}
.pastor-avatar {
  background: linear-gradient(135deg, #36271B, #241A12);
  border-radius: var(--radius);
  aspect-ratio: 3/4;
  display: flex; align-items: center; justify-content: center;
  font-size: 80px;
  border: 1px solid var(--border);
}
.pastor-name {
  font-family: var(--font-head);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800; margin-bottom: 4px;
}
.pastor-role { font-size: 14px; color: var(--orange); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 24px; }
.pastor-verse {
  border-left: 3px solid var(--orange);
  padding: 16px 20px; margin: 32px 0;
  background: var(--card-bg); border-radius: 0 var(--radius) var(--radius) 0;
}
.pastor-verse__text { font-size: 15px; color: var(--muted); line-height: 1.7; font-style: italic; }
.pastor-verse__ref { font-size: 11px; color: var(--gold); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 8px; }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: #36271B; border-top: 1px solid var(--border);
  padding: 48px 24px 24px;
}
.footer__inner { max-width: var(--max); margin: 0 auto; }
.footer__top {
  display: flex; flex-wrap: wrap; gap: 40px;
  justify-content: space-between;
  padding-bottom: 40px; border-bottom: 1px solid var(--border); margin-bottom: 24px;
}
.footer__brand { max-width: 280px; }
.footer__logo { font-family: var(--font-head); font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.footer__logo span { color: var(--orange); }
.footer__desc { font-size: 13px; color: var(--muted); line-height: 1.7; }
.footer__contact { margin-top: 20px; }
.footer__contact a {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted); margin-bottom: 8px; transition: color 0.15s;
}
.footer__contact a:hover { color: var(--orange); }
.footer__col-title { font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.footer__links { list-style: none; }
.footer__links li { margin-bottom: 10px; }
.footer__links li a { font-size: 13px; color: var(--muted); transition: color 0.15s; }
.footer__links li a:hover { color: var(--white); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted);
}
.footer__bottom a { color: var(--orange); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .section { padding: 56px 0; }
  .footer__top { flex-direction: column; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .pastor-layout { grid-template-columns: 1fr; }
  .pastor-avatar { max-width: 240px; }
  .crenca-grid { grid-template-columns: 1fr; }
  /* Colapsa layouts conteudo+barra-lateral no celular (evita overflow) */
  .layout-split { grid-template-columns: 1fr !important; gap: 32px !important; }
}

/* ── ICONES SVG (substituem os antigos emojis) ───────────── */
.ico {
  width: 1.05em; height: 1.05em;
  display: inline-block; vertical-align: -0.15em;
  flex: none;
  fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  overflow: visible;
}
/* Alguns contextos usam icone maior/isolado */
.ico--lg { width: 1.6em; height: 1.6em; }



/* ===================================================================== */
/* INDICE DO MODO APLICATIVO - leia antes de mexer (26/jul/2026)         */
/*                                                                       */
/* Tudo daqui para baixo vale so em @media (max-width:768px) e so quando */
/* o <html> tem a classe .ro-has-appbar (membro logado). No computador   */
/* nada disso se aplica.                                                 */
/*                                                                       */
/* Os blocos estao em ordem de cascata: o de baixo vence o de cima.      */
/*                                                                       */
/*  1. SKIN DE APP .............. fundo dos cards, raio, rodape escondido */
/*  2. UNIFORMIZACAO DAS ABAS ... NAO REMOVER. Parece substituido pelo    */
/*                                bloco 3, mas ainda e o unico dono de    */
/*                                .btn-conta e do padding de .section e   */
/*                                de .section .container.                 */
/*  3. CABECALHO UNICO ......... iguala .app-topo, .ens-topo e .inc-head:  */
/*                                recuo, avatar de 38px, titulo de 25px,   */
/*                                cabecalho de 70px e saudacao de 18px.    */
/*                                Absorveu o antigo bloco 6 em 27/jul.     */
/*  4. PAGINAS INTERNAS ........ esconde nav e hero em toda pagina do app,*/
/*                               estilo da seta de voltar, classe .ro-dup */
/*  5. CARDS E TILES ........... uma cor e um padding para cards e tiles  */
/*                                                                       */
/* Regras que moram FORA daqui, de proposito, por serem de uma pagina so: */
/*   inicio.php  -> #inc-polish (barra laranja, lema, faixa sem scrollbar)*/
/*   ensino.html -> barra laranja das trilhas                             */
/*   igreja.html -> mesma lista do ensino                                 */
/*   quiz.html   -> QUIZ COMPACTO NO APP                                  */
/*   minha-conta.php e gestao.php -> override dos tiles com modificador   */
/*                                                                       */
/* Mexeu aqui? suba style.css?v=N em todos os .html e .php da raiz.       */
/* ===================================================================== */
/* ── SKIN DE APP · celular · membro logado (ro-has-appbar) ─── */
@media (max-width: 768px), (pointer:coarse) {
  html.ro-has-appbar { --card-bg: #453325; --radius: 12px; }
  .ro-has-appbar .footer { display: none !important; }
  .ro-has-appbar body { padding-bottom: 72px !important; }
  .ro-has-appbar .page-hero { padding: 78px 14px 14px !important; border-bottom: none !important; }
  .ro-has-appbar .page-hero::before { display: none !important; }
  .ro-has-appbar .page-hero__breadcrumb { display: none !important; }
  .ro-has-appbar .page-hero__title { font-size: 26px !important; line-height: 1.1 !important; }
  .ro-has-appbar .page-hero__sub { font-size: 14px !important; margin-top: 10px !important; }
  .ro-has-appbar .section { padding: 18px 0 !important; }
  .ro-has-appbar .section .container, .ro-has-appbar .page-hero__inner { padding-left: 14px !important; padding-right: 14px !important; }
}


/* ── UNIFORMIZACAO DAS ABAS (app · celular) ─────────────── */
@media (max-width: 768px), (pointer:coarse){
  html.ro-has-appbar .app-topo,
  html.ro-has-appbar .ens-topo{
    display:flex !important; justify-content:space-between !important; align-items:center !important;
    padding: calc(14px + env(safe-area-inset-top)) 16px 8px !important; margin:0 !important;
  }
  html.ro-has-appbar .inc-head{
    display:flex !important; justify-content:space-between !important; align-items:center !important;
    padding-left:0 !important; padding-right:0 !important; margin:0 0 14px !important;
  }
  html.ro-has-appbar .app-topo .hav,
  html.ro-has-appbar .ens-topo .hav,
  html.ro-has-appbar .inc-head .av{ width:38px !important; height:38px !important; font-size:14px !important; }
  html.ro-has-appbar .app-topo .ht,
  html.ro-has-appbar .ens-topo .ht,
  html.ro-has-appbar .inc-head .marca{ font-size:22px !important; }
  html.ro-has-appbar .section,
  html.ro-has-appbar section.section{ padding-top:8px !important; padding-bottom:44px !important; }
  html.ro-has-appbar .section .container,
  html.ro-has-appbar .container{ padding-left:16px !important; padding-right:16px !important; }
  html.ro-has-appbar .ens-row,
  html.ro-has-appbar .btn-conta{ padding:16px !important; border-radius:12px !important; }
}

/* ─────────────────────────────────────────────────────────────────────── */
/* CABECALHO UNICO DAS ABAS DO APP (etapa 2 · 26/jul/2026)                 */
/* Substitui na pratica o bloco UNIFORMIZACAO DAS ABAS acima: e o ultimo   */
/* a valer. Iguala .app-topo, .ens-topo e .inc-head em posicao, altura,    */
/* recuo lateral, tipografia e avatar, independente de onde o cabecalho    */
/* esta no DOM (direto no body, dentro de .container, ou aninhado).        */
/* ─────────────────────────────────────────────────────────────────────── */
@media (max-width:768px), (pointer:coarse){
  html.ro-has-appbar .app-topo,
  html.ro-has-appbar .ens-topo,
  html.ro-has-appbar .inc-head{
    display:flex!important;align-items:center!important;justify-content:space-between!important;
    gap:12px!important;padding:14px 16px 8px!important;margin:0!important;
  }
  /* dentro de .container o recuo lateral ja vem do proprio container */
  html.ro-has-appbar .container .app-topo,
  html.ro-has-appbar .container .ens-topo,
  html.ro-has-appbar .container .inc-head{padding-left:0!important;padding-right:0!important}
  /* o cabecalho e a primeira coisa da tela: sem respiro extra acima */
  html.ro-has-appbar section.section{padding-top:0!important}
  /* container aninhado dentro de container dobrava o recuo (caso do inicio.php) */
  html.ro-has-appbar .container .container{padding-left:0!important;padding-right:0!important}
  /* titulo, subtitulo e avatar iguais nas cinco abas */
  html.ro-has-appbar .app-topo .ht,
  html.ro-has-appbar .ens-topo .ht,
  html.ro-has-appbar .inc-head .marca{font-size:25px!important;line-height:1.15!important}
  html.ro-has-appbar .app-topo .hs,
  html.ro-has-appbar .ens-topo .hs,
  html.ro-has-appbar .inc-head .sub{font-size:11px!important;line-height:1.5!important}
  html.ro-has-appbar .app-topo .hav,
  html.ro-has-appbar .ens-topo .hav,
  html.ro-has-appbar .inc-head .av{width:38px!important;height:38px!important;flex:0 0 38px!important}
  /* saudacao do Inicio, logo abaixo do cabecalho */
  html.ro-has-appbar .inc-head + p{font-size:18px!important;line-height:1.35!important;}
}

/* --------------------------------------------------------------------- */
/* PAGINAS INTERNAS NO APP (etapa 3 - 26/jul/2026)                        */
/* --------------------------------------------------------------------- */
@media (max-width:768px), (pointer:coarse){
  html.ro-has-appbar .nav,
  html.ro-has-appbar .page-hero{display:none!important}
/* 70px, nao 67: era o antigo bloco 6 que mandava aqui, por vir depois. */
  html.ro-has-appbar .app-topo,
  html.ro-has-appbar .ens-topo,
  html.ro-has-appbar .inc-head{min-height:70px!important;box-sizing:border-box!important}
  html.ro-has-appbar .ro-topo-interno{gap:10px!important;justify-content:flex-start!important}
  html.ro-has-appbar .ro-topo-interno .ro-voltar{
    display:flex;align-items:center;justify-content:center;width:32px;height:32px;
    margin-left:-6px;flex:0 0 32px;border-radius:8px;color:var(--white);text-decoration:none;
  }
  html.ro-has-appbar .ro-topo-interno .ro-voltar:active{background:rgba(247,241,233,.10)}
  html.ro-has-appbar .ro-topo-interno .ro-tt{min-width:0}
  html.ro-has-appbar .ro-topo-interno .ht{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}

@media (max-width:768px), (pointer:coarse){ html.ro-has-appbar .ro-dup{display:none!important} }
@media (min-width:769px) and (pointer:fine){ .ro-topo-interno{display:none!important} }

/* --------------------------------------------------------------------- */
/* CARDS E TILES UNIFORMES NO APP (etapa 4 - 26/jul/2026)                 */
/* --------------------------------------------------------------------- */
@media (max-width:768px), (pointer:coarse){
  /* Inicio: PGA e Quiz sao o mesmo tipo de atalho, entao a mesma cor.     */
  /* O verde fica reservado aos botoes de acao de Conta e Gestao.          */
  html.ro-has-appbar section.section a[style][href="pga.html"]{background:#453325!important}
  /* Inicio usava 18px; as demais abas usam 16px */
  html.ro-has-appbar section.section a[style*="background"],
  html.ro-has-appbar section.section .container > div[style*="background"]{padding:16px!important}
  /* um avatar por tela: sai o circulo laranja da saudacao, fica o texto */
  html.ro-has-appbar div[style*="border-radius:50%"][style*="#FF5000"]{display:none!important}
  /* tiles de Conta e Gestao: mesma altura por linha e mesmo tratamento */
  html.ro-has-appbar .mc-menu-grid,
  html.ro-has-appbar .gs-menu-grid{grid-auto-rows:1fr!important}
  html.ro-has-appbar .mc-tile,
  html.ro-has-appbar .gs-tile{background:var(--forest)!important;border:1px solid var(--forest)!important;
    border-radius:12px!important;padding:16px!important;height:100%!important;box-sizing:border-box!important}
  /* Ensino: seta igual em todas as linhas, inclusive na que tem selo */
  html.ro-has-appbar .ens-row .chev{display:none!important}
  html.ro-has-appbar .ens-row::after{content:"";flex:0 0 8px;width:8px;height:8px;margin-left:6px;
    border-right:2px solid rgba(247,241,233,.45);border-top:2px solid rgba(247,241,233,.45);transform:rotate(45deg)}
}

/* --------------------------------------------------------------------- */


/* === respiro do fim da pagina no modo app — 11/ago/2026 === */
/* As .section aparecem aninhadas em varias paginas, e a regra de respiro do modo
   app se aplicava nas duas, somando 88px de vazio no fim. Agora a de dentro nao
   repete o respiro e a ultima fica com 14px, o mesmo espaco que separa dois cards.
   Os 64px do body continuam: sao a reserva para a barra fixa. */
@media (max-width: 768px), (pointer:coarse) {
  html.ro-has-appbar .section:last-of-type { padding-bottom: 14px !important; }
  html.ro-has-appbar .section .section     { padding-bottom: 0    !important; }
}
