/* =========================================================================
   RIO NO DESERTO — SISTEMA VISUAL SOBERANO v2
   Interseção: Morningstar (objetividade editorial) × Champalimaud (elegância, silêncio)
   Regra: PREDOMINANTEMENTE CLARO. Dark usado pontualmente em 1-2 seções.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Lato:wght@300;400;700&family=Montserrat:wght@400;500;600;700&display=swap');

/* ─── TOKENS ────────────────────────────────────────────────────────────── */
:root {
  --ink: #1C1A17;
  --page: #F5F3EF;
  --page-warm: #EDE9E1;
  --white: #FFFFFF;
  --black: #000000;
  --surface-dark: #111010;

  --gold: #F09A0F;
  --terracota: #C55E2C;
  --crimson: #9F0E07;
  --border: rgba(28, 26, 23, 0.1);
  --border-dark: rgba(255, 255, 255, 0.12);

  --f-decreto: 'Cormorant Garamond', Georgia, serif;
  --f-apoio: 'Montserrat', system-ui, sans-serif;
  --f-corpo: 'Lato', system-ui, sans-serif;

  /* ─── ALIASES DE COMPATIBILIDADE (legado inline styles) ──── */
  --f-d: var(--f-decreto);
  --f-a: var(--f-apoio);
  --f-b: var(--f-corpo);
  --terra: var(--terracota);
  --surface-dk: var(--surface-dark);
  /* Domínio: rionodeserto.com | Subdomínios: rede / tabernaculo / projetos */

  --t-xs: 0.6875rem;
  --t-sm: 0.8125rem;
  --t-base: 1rem;
  --t-md: 1.125rem;
  --t-lg: 1.375rem;
  --t-xl: clamp(1.75rem, 2.5vw, 2.5rem);
  --t-2xl: clamp(2.5rem, 5vw, 4rem);
  --t-3xl: clamp(3.5rem, 8vw, 6.5rem);

  --sp-2xs: 0.5rem;
  --sp-xs: 1rem;
  --sp-sm: 2rem;
  --sp-md: 4rem;
  --sp-lg: 6rem;
  --sp-xl: 10rem;

  --max-w: 1380px;
  --gut: clamp(1.5rem, 5vw, 4rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.9s;
  --dur-slow: 1.4s;
}

/* ─── RESET ─────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--page);
  /* Garante fundo claro na raiz */
}

body {
  font-family: var(--f-corpo);
  background: var(--page);
  /* Claro por padrão */
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.65;
}

img,
video {
  display: block;
  max-width: 100%;
}

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

button {
  cursor: pointer;
  font-family: var(--f-apoio);
}

/* ─── LAYOUT ─────────────────────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section {
  padding-block: var(--sp-lg);
}

.section--sm {
  padding-block: var(--sp-md);
}

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

/* Grid 2 colunas */
.grid-2 {
  display: grid;
  gap: var(--sp-sm);
}

@media(min-width:768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.align-c {
  align-items: center;
}

/* Grid 3 colunas — EXPLÍCITO para tabernáculos */
.grid-3 {
  display: grid;
  gap: var(--sp-xs);
  grid-template-columns: 1fr;
}

@media(min-width:600px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(min-width:900px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-sm);
  }
}

/* ─── CORES DE SEÇÃO ─────────────────────────────────────────────────────── */
/* PADRÃO: body já é claro. Estas classes alteram pontualmente */
.bg-warm {
  background: var(--page-warm);
  color: var(--ink);
}

.bg-dark {
  background: var(--surface-dark);
  color: var(--white);
}

.bg-black {
  background: var(--black);
  color: var(--white);
}

/* ─── TIPOGRAFIA ─────────────────────────────────────────────────────────── */
.ty-tag {
  font-family: var(--f-apoio);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: block;
  margin-bottom: var(--sp-2xs);
}

.ty-tag--terra {
  color: var(--terracota);
}

.ty-tag--gold {
  color: var(--gold);
}

.ty-tag--crimson {
  color: var(--crimson);
}

.ty-tag--muted {
  color: var(--ink);
  opacity: 0.45;
}

.ty-h1 {
  font-family: var(--f-decreto);
  font-size: var(--t-3xl);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: inherit;
}

.ty-h2 {
  font-family: var(--f-decreto);
  font-size: var(--t-2xl);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: inherit;
}

.ty-h3 {
  font-family: var(--f-decreto);
  font-size: var(--t-xl);
  font-weight: 400;
  line-height: 1.1;
  color: inherit;
}

.ty-body {
  font-family: var(--f-corpo);
  font-size: var(--t-md);
  font-weight: 300;
  line-height: 1.85;
  color: inherit;
}

.ty-body--sm {
  font-family: var(--f-corpo);
  font-size: var(--t-base);
  font-weight: 300;
  line-height: 1.7;
}

.ty-label {
  font-family: var(--f-apoio);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ─── BOTÕES ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--f-apoio);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.95em 2.25em;
  border: 1.5px solid transparent;
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out), transform 0.4s var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--ink {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.btn--ink:hover {
  background: transparent;
  color: var(--ink);
}

.btn--ink-outline {
  background: transparent;
  color: var(--ink);
  border-color: rgba(28, 26, 23, 0.4);
}

.btn--ink-outline:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.btn--white-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--white-outline:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.btn--terra {
  background: var(--terracota);
  color: var(--white);
  border-color: var(--terracota);
}

.btn--terra:hover {
  background: var(--crimson);
  border-color: var(--crimson);
}

/* ─── HEADER ─────────────────────────────────────────────────────────────── */
.rnd-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 900;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(245, 243, 239, 0.94);
  /* claro por padrão */
  border-bottom: 1px solid var(--border);
  transition: background 0.4s;
}

.rnd-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.rnd-header__brand {
  font-family: var(--f-decreto);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.rnd-header__brand span {
  color: var(--terracota);
}

.rnd-nav {
  display: none;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}

@media(min-width:768px) {
  .rnd-nav {
    display: flex;
  }
}

.rnd-nav a {
  font-family: var(--f-apoio);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.6;
  transition: opacity 0.3s, color 0.3s;
}

.rnd-nav a:hover {
  opacity: 1;
  color: var(--terracota);
}

.rnd-nav .nav-cta {
  opacity: 1;
  padding: 0.6em 1.4em;
  border: 1.5px solid rgba(28, 26, 23, 0.3);
  color: var(--ink);
}

.rnd-nav .nav-cta:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

/* ─── HERO (CLARO — base clara com texto escuro) ─────────────────────────── */
.rnd-hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: 72px;
  background: var(--page);
  /* CLARO */
  position: relative;
  overflow: hidden;
}

/* Elemento decorativo de fundo — textura sutil */
.rnd-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background: var(--page-warm);
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
  pointer-events: none;
  z-index: 0;
}

.rnd-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-block: var(--sp-md) var(--sp-sm);
  position: relative;
  z-index: 2;
  flex: 1;
}

.rnd-hero__vert-rule {
  width: 2px;
  height: 80px;
  background: var(--terracota);
  margin-bottom: var(--sp-xs);
  display: block;
}

.rnd-hero__title {
  max-width: 14ch;
  margin-bottom: var(--sp-xs);
  color: var(--ink);
}

.rnd-hero__sub {
  max-width: 50ch;
  margin-bottom: var(--sp-sm);
  color: var(--ink);
  opacity: 0.75;
}

/* ─── SEÇÃO REDE (DARK — único bloco escuro antes dos tabernáculos) ─────── */
.section-rede {
  display: grid;
  background: var(--surface-dark);
  color: var(--white);
}

@media(min-width:900px) {
  .section-rede {
    grid-template-columns: 1fr 1fr;
    min-height: 580px;
  }
}

.section-rede__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--sp-lg) var(--gut);
  gap: var(--sp-xs);
}

.section-rede__image {
  overflow: hidden;
  min-height: 360px;
  position: relative;
}

.section-rede__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s var(--ease-out);
}

.section-rede__image:hover img {
  transform: scale(1.04);
}

/* ─── TABERNÁCULOS (CLARO — fundo quente) ────────────────────────────────── */
.section-tabs {
  background: var(--page-warm);
  color: var(--ink);
}

/* Card Tabernáculo */
.tab-card {
  display: block;
  position: relative;
  overflow: hidden;
  min-height: 420px;
  cursor: pointer;
  background: #ddd;
  /* fallback enquanto imagem carrega */
}

.tab-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.tab-card:hover .tab-card__img {
  transform: scale(1.06);
}

.tab-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.2) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-xs);
}

.tab-card__city {
  font-family: var(--f-decreto);
  font-size: var(--t-xl);
  font-weight: 400;
  color: var(--white);
  line-height: 1.1;
}

.tab-card__country {
  font-family: var(--f-apoio);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.25em;
}

.tab-card__arrow {
  position: absolute;
  top: var(--sp-xs);
  right: var(--sp-xs);
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: opacity 0.4s, transform 0.4s var(--ease-out);
}

.tab-card:hover .tab-card__arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.tab-card__arrow svg {
  width: 14px;
  height: 14px;
  stroke: white;
  fill: none;
}

/* ─── GIANT CARD PROJETOS (Dark — 1 de 2 seções escuras) ─────────────────── */
.section-projetos {
  background: var(--page);
  /* Seção wrapper clara */
}

.giant-projetos {
  display: grid;
  min-height: 580px;
}

@media(min-width:900px) {
  .giant-projetos {
    grid-template-columns: 1fr 1.2fr;
    min-height: 680px;
  }
}

.giant-projetos__content {
  background: var(--surface-dark);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--sp-md) var(--gut);
  gap: var(--sp-xs);
  position: relative;
  overflow: hidden;
}

.projetos-number {
  font-family: var(--f-decreto);
  font-size: clamp(8rem, 18vw, 16rem);
  font-weight: 300;
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
  position: absolute;
  bottom: -0.1em;
  right: var(--gut);
  pointer-events: none;
  user-select: none;
}

.giant-projetos__image {
  overflow: hidden;
  min-height: 420px;
  position: relative;
  background: #1a1a1a;
}

.giant-projetos__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.giant-projetos__image:hover img {
  transform: scale(1.04);
}

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */
.rnd-footer {
  background: var(--ink);
  color: var(--white);
  padding-block: var(--sp-lg) var(--sp-sm);
}

.rnd-footer__grid {
  display: grid;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-md);
}

@media(min-width:768px) {
  .rnd-footer__grid {
    grid-template-columns: 1.8fr 1fr 1.2fr;
  }
}

.footer-brand {
  font-family: var(--f-decreto);
  font-size: var(--t-xl);
  font-weight: 400;
  margin-bottom: var(--sp-2xs);
  display: block;
}

.footer-brand span {
  color: var(--terracota);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  margin-top: var(--sp-xs);
}

.footer-nav a {
  font-family: var(--f-apoio);
  font-size: var(--t-sm);
  font-weight: 500;
  opacity: 0.55;
  transition: opacity 0.3s, color 0.3s;
}

.footer-nav a:hover {
  opacity: 1;
  color: var(--gold);
}

address {
  font-style: normal;
  font-family: var(--f-corpo);
  font-size: var(--t-sm);
  font-weight: 300;
  opacity: 0.6;
  line-height: 1.9;
}

address a {
  color: var(--gold);
  opacity: 1;
}

address a:hover {
  text-decoration: underline;
}

.footer-socials {
  display: flex;
  gap: var(--sp-xs);
  margin-top: var(--sp-xs);
}

.footer-socials a {
  font-family: var(--f-apoio);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.45;
  transition: opacity 0.3s, color 0.3s;
}

.footer-socials a:hover {
  opacity: 1;
  color: var(--gold);
}

.rnd-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-xs);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--sp-xs);
  font-family: var(--f-apoio);
  font-size: var(--t-xs);
  opacity: 0.35;
}

.footer-legal {
  display: flex;
  gap: var(--sp-xs);
}

.footer-legal a:hover {
  opacity: 1;
  color: var(--white);
}

/* ─── DECORATIVOS ────────────────────────────────────────────────────────── */
.gold-line {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin-block: var(--sp-2xs) var(--sp-xs);
}

.terra-line {
  width: 60px;
  height: 2px;
  background: var(--terracota);
  margin-block: var(--sp-2xs) var(--sp-xs);
}

.ink-line {
  width: 60px;
  height: 2px;
  background: var(--ink);
  margin-block: var(--sp-2xs) var(--sp-xs);
}

/* ─── MICRO-ANIMAÇÕES ────────────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
}

[data-reveal].is-v {
  opacity: 1;
  transform: translateY(0);
}

[data-delay="1"] {
  transition-delay: 0.12s;
}

[data-delay="2"] {
  transition-delay: 0.24s;
}

[data-delay="3"] {
  transition-delay: 0.36s;
}

[data-delay="4"] {
  transition-delay: 0.50s;
}

/* ─── DOMÍNIO ESTÉTICO SOBRE O LEGADO (FORÇA DE CHOQUE) ─────────────────── */
.elementor-heading-title {
  font-family: var(--f-decreto) !important;
  color: var(--ink) !important;
}

.elementor-widget-text-editor,
.elementor-widget-text-editor * {
  font-family: var(--f-corpo) !important;
  color: var(--ink) !important;
}

.elementor-button {
  font-family: var(--f-apoio) !important;
}

/* ─── UNIFICAÇÃO DE MICRO-ANIMAÇÕES ─────────────────────────────────────── */
/* Sistema canônico: [data-reveal] + .is-visible                             */
/* Aliases para compatibilidade com código legado que usa .on e .is-v        */
[data-reveal].is-visible,
[data-r].is-visible,
[data-reveal].on,
[data-r].on,
[data-reveal].is-v,
[data-r].is-v {
  opacity: 1;
  transform: translateY(0);
}