/* Igreja Crescer em Cristo — estilos */
:root {
  --bg: #0e0d0c;
  --bg-2: #171513;
  --light: #f4efe7;
  --light-2: #e9e2d6;
  --ink: #f4efe7;
  --ink-dark: #1a1714;
  --muted: #a39b8f;
  --accent: #d9a26a;
  --accent-2: #e8b886;
  --line: rgba(244, 239, 231, .12);
  --radius: 18px;
  --wrap: 1180px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, .h2 {
  font-stretch: 125%;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6.4vw, 5.2rem); }
h2, .h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.35rem; }
em { font-style: normal; color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 100; background: var(--accent); color: var(--ink-dark); padding: .6rem 1rem; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 640px; }
.center { text-align: center; }

.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 40ch; color: #e4ddd2; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  background: var(--accent);
  color: var(--ink-dark);
  font: 700 .95rem/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s;
}
.btn:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(244,239,231,.5); }
.btn-ghost:hover { background: var(--ink); color: var(--ink-dark); }
.btn-sm { padding: .65rem 1.1rem; font-size: .85rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.link { color: var(--accent); font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Cabeçalho */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled, body:not([data-page="home"]) .site-header {
  background: rgba(14, 13, 12, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { border-radius: 50%; }
.brand-name { font-stretch: 125%; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: .9rem; }
.brand-name b { font-weight: 300; margin: 0 .3em; }
.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a:not(.btn) { text-decoration: none; font-size: .92rem; font-weight: 600; opacity: .85; position: relative; }
.nav a:not(.btn):hover, .nav a.active { opacity: 1; }
.nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent); }
.menu-btn { display: none; }
.header-social { display: flex; gap: .4rem; margin-left: -.6rem; }
.header-social a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; transition: background .2s; }
.header-social a:hover { background: rgba(244,239,231,.12); }
.header-social svg { width: 17px; height: 17px; fill: var(--ink); }
body:not([data-page="home"]) .header-social { display: none; }

@media (max-width: 900px) {
  .menu-btn {
    display: grid; place-content: center; gap: 6px;
    width: 46px; height: 46px; border: 0; border-radius: 50%;
    background: rgba(244,239,231,.08); cursor: pointer;
  }
  .menu-btn span:not(.sr) { width: 20px; height: 2px; background: var(--ink); transition: transform .3s; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .35s var(--ease); z-index: -1;
  }
  .nav.open { transform: none; }
  .nav a:not(.btn) { padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a.active::after { display: none; }
  .nav .btn { margin-top: 1.2rem; }
  .header-social { margin: 1.2rem 0 0; justify-content: center; gap: 1rem; }
  .header-social a { width: 44px; height: 44px; border: 1px solid var(--line); }
}

/* Hero */
.hero, .page-hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 120px 0 clamp(5rem, 10vh, 8rem);
  overflow: hidden;
}
.page-hero { min-height: 62svh; padding-bottom: 4rem; }
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: center 35%;
  animation: slowzoom 18s var(--ease) both;
}
.hero::after, .page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(14,13,12,.55) 0%, rgba(14,13,12,.15) 35%, rgba(14,13,12,.85) 80%, var(--bg) 100%),
    linear-gradient(90deg, rgba(14,13,12,.75) 0%, rgba(14,13,12,0) 70%);
}
.hero-content > * { animation: rise .9s var(--ease) both; }
.hero-content > :nth-child(2) { animation-delay: .1s; }
.hero-content > :nth-child(3) { animation-delay: .2s; }
.hero-content > :nth-child(4) { animation-delay: .3s; }
.hero h1 { max-width: 13ch; font-size: clamp(2.1rem, 5vw, 4rem); }
.hero .lead { font-size: clamp(1rem, 1.3vw, 1.1rem); }
.page-hero h1 { max-width: 18ch; font-size: clamp(2.1rem, 5vw, 4rem); }
.next-service {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .6rem 1.1rem; border-radius: 999px;
  background: rgba(14,13,12,.7); border: 1px solid var(--line); backdrop-filter: blur(8px);
  font-size: .88rem; white-space: nowrap;
}
.next-service .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(217,162,106,.6); animation: pulse 2s infinite; }
.next-service.live .dot { background: #e5484d; }
.next-service a { color: var(--accent); font-weight: 700; }

@keyframes slowzoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(217,162,106,0); } 100% { box-shadow: 0 0 0 0 rgba(217,162,106,0); } }

/* Seções */
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.page-top { padding-top: calc(76px + clamp(3rem, 7vw, 6rem)); min-height: 70svh; }
.section-light { background: var(--light); color: var(--ink-dark); }
.section-light .muted { color: #6f675c; }
.section-light .eyebrow, .section-light .link { color: #a4642a; }
.section-dark2 { background: var(--bg-2); }
.section-head { margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head.row, .row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.section-head h2 { margin: 0; }

/* Cultos */
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.service-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3.2; isolation: isolate; }
.service-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.service-card:hover img { transform: scale(1.05); }
.service-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,13,12,0) 35%, rgba(14,13,12,.92) 100%); }
.service-body { position: absolute; inset: auto 0 0; padding: clamp(1.4rem, 3vw, 2.2rem); }
.service-day { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: var(--accent); color: var(--ink-dark); padding: .35rem .8rem; border-radius: 999px; margin-bottom: .9rem; }
.service-body h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: .3rem; }
.service-body p:last-child { margin: 0; color: #d9d2c6; max-width: 36ch; }

/* Split */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.split-rev > :first-child { order: 0; }
.split-text p { max-width: 52ch; }
.rounded { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split-rev .rounded { aspect-ratio: 3 / 2; }
.photo-stack { position: relative; padding-bottom: 18%; }
.photo-stack img:first-child { border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; width: 88%; }
.photo-stack img:last-child { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; border: 6px solid var(--light); }

/* Versículo */
.verse { position: relative; isolation: isolate; padding: clamp(6rem, 14vw, 11rem) 0; text-align: center; overflow: hidden; }
.verse > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: blur(2px) brightness(.35); transform: scale(1.05); }
.verse blockquote { margin: 0 auto; max-width: 900px; }
.verse blockquote p { max-width: 24ch; margin-inline: auto; }
.verse p { font-stretch: 112%; font-size: clamp(1.6rem, 3.6vw, 2.8rem); font-weight: 600; line-height: 1.2; }
.verse cite { font-style: normal; color: var(--accent); letter-spacing: .2em; text-transform: uppercase; font-size: .85rem; font-weight: 700; }

/* Galeria */
.gallery {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 max(1.25rem, calc((100vw - var(--wrap)) / 2)) 1rem;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: 0 0 auto; height: clamp(240px, 36vw, 440px); width: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; scroll-snap-align: start; scroll-margin-left: max(1.25rem, calc((100vw - var(--wrap)) / 2)); }
.gallery-nav { display: flex; gap: .5rem; }
.gallery-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 1.1rem; cursor: pointer; transition: background .2s, color .2s; }
.gallery-nav button:hover { background: var(--ink); color: var(--ink-dark); }

/* Vídeos */
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.video-card { text-decoration: none; display: block; }
.video-thumb { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; background: #222; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.video-card:hover .video-thumb img { transform: scale(1.05); }
.video-thumb::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 58px; height: 58px; margin: -29px; border-radius: 50%; background: rgba(14,13,12,.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f4efe7'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 26px no-repeat; transition: background-color .2s; }
.video-card:hover .video-thumb::after { background-color: var(--accent); }
.video-card h3 { font-stretch: 100%; font-size: 1rem; font-weight: 600; line-height: 1.35; margin: .9rem 0 .2rem; }
.video-card time { font-size: .85rem; color: var(--muted); }
.video-skeleton { aspect-ratio: 16 / 9; border-radius: 14px; background: linear-gradient(90deg, #1d1a17 25%, #26221e 50%, #1d1a17 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.video-skeleton.big { aspect-ratio: 16 / 9; }
@keyframes shimmer { to { background-position: -200% 0; } }
.player { border-radius: var(--radius); overflow: hidden; background: #000; }
.player iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.player-title { padding: 1rem 0 0; font-weight: 700; }
.videos-fallback { grid-column: 1 / -1; padding: 2rem; border: 1px dashed var(--line); border-radius: 14px; text-align: center; }

/* Visite / lista */
.info-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.info-list li { padding: 1rem 0; border-top: 1px solid var(--line); }
.info-list b { display: block; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: .2rem; }
.map-wrap { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 4.2; background: #222; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }

/* PIX */
.pix-box { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding: 1.1rem 1.2rem; border-radius: 14px; background: rgba(0,0,0,.06); margin: 1.4rem 0; }
.give-card .pix-box { background: rgba(244,239,231,.06); }
.pix-label { width: 100%; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; opacity: .7; }
.pix-box code { font: 700 1.05rem/1.3 var(--font); word-break: break-all; flex: 1 1 auto; }

/* Contribua */
.give-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.give-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.6rem); }
.qr { background: #fff; padding: 12px; border-radius: 12px; width: 220px; height: auto; }
.bank { display: grid; grid-template-columns: auto 1fr; gap: .9rem 1.5rem; margin: 1.5rem 0; }
.bank dt { color: var(--muted); font-size: .9rem; }
.bank dd { margin: 0; font-weight: 700; }
.copy-mini { margin-left: .4rem; background: none; border: 1px solid var(--line); color: var(--accent); border-radius: 6px; font: 600 .75rem var(--font); padding: .15rem .5rem; cursor: pointer; }

/* Pilares */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pillar { padding: 2rem; border-radius: var(--radius); background: #fff; }
.pillar span { font-stretch: 125%; font-weight: 800; color: #a4642a; }
.pillar h3 { margin: .8rem 0 .5rem; }
.pillar p { margin: 0; color: #5c554b; }

/* Formulário */
.form { display: grid; gap: 1rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.4rem); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: .4rem; font-size: .85rem; font-weight: 600; color: #d6cfc3; }
.form input, .form textarea, .form select {
  width: 100%; font: 400 1rem var(--font); color: var(--ink);
  background: rgba(244,239,231,.05); border: 1px solid var(--line); border-radius: 10px; padding: .85rem 1rem;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--accent); }
.form select option { color: #111; }
.form .btn { justify-self: start; margin-top: .4rem; }
.form-status { margin: 0; min-height: 1.4em; font-size: .95rem; }
.form-status.ok { color: #7bd88f; }
.form-status.err { color: #ff8f8f; }
.hp { position: absolute; left: -9999px; }

/* Rodapé (igual ao site antigo da Wix) */
.site-footer { background: #fff; color: #000; text-align: center; padding: 1.25rem 1rem; border-top: 1px solid #d9d9d9; }
.site-footer p { margin: 0; font-size: 14px; font-weight: 300; line-height: 1.5; }

/* Animação ao rolar */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .split, .give-grid, .cards-2 { grid-template-columns: 1fr; }
  .split-rev > img { order: 2; }
  .videos { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .map-wrap { aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .videos, .field-row { grid-template-columns: 1fr; }
  .service-card { aspect-ratio: 4 / 4.4; }
  .brand-name { font-size: .78rem; letter-spacing: .1em; }
  .next-service { font-size: .8rem; }
  .hero { padding-bottom: 6.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

[hidden] { display: none !important; }
