/* =====================================================================
   IBCC - Betel Church Cristã  ·  Folha de estilos
   Cores da logo: vermelho, dourado e branco
   ===================================================================== */

:root {
  --red: #D6200F;
  --red-dark: #A9170A;
  --gold: #D4A017;
  --gold-light: #F6D65A;
  --gold-soft: #FBEFC4;
  --gold-dark: #8F670A;
  --ink: #241C18;
  --muted: #62564F;
  --cream: #FFF8E7;
  --line: #EBDDB5;
  --white: #FFFFFF;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(120, 84, 8, .12);
  --shadow-sm: 0 4px 14px rgba(120, 84, 8, .10);
  --font-title: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Lato", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
.skip-link {
  position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 8px; z-index: 200;
}
.skip-link:focus { left: 12px; }

h1, h2, h3 { font-family: var(--font-title); line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }

.eyebrow {
  display: inline-block; font-weight: 700; font-size: .85rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold-dark); margin-bottom: 14px;
}
.lead { font-size: 1.2rem; color: var(--muted); }

/* ---------- ornamento dourado ---------- */
.ornament {
  display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 auto 26px; width: 220px;
}
.ornament::before, .ornament::after {
  content: ""; height: 2px; flex: 1; background: linear-gradient(90deg, transparent, var(--gold));
}
.ornament::after { background: linear-gradient(270deg, transparent, var(--gold)); }
.ornament span { width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); display: block; }
.ornament.left { margin-left: 0; justify-content: flex-start; width: 160px; }
.ornament.left::before { display: none; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  padding: 16px 28px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(214, 32, 15, .28); }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--ink); box-shadow: 0 8px 20px rgba(212, 160, 23, .3); }
.btn-gold:hover { color: var(--ink); }
.btn-outline { background: transparent; border-color: var(--gold); color: var(--gold-dark); }
.btn-outline:hover { background: var(--gold-soft); color: var(--gold-dark); }
.btn-white { background: #fff; color: var(--red); }
.btn-white:hover { color: var(--red-dark); }
.btn-sm { padding: 12px 22px; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold) 50%, var(--red));
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-title); font-weight: 700; font-size: 1.15rem; }
.brand-sub { font-size: .72rem; font-weight: 700; letter-spacing: .2em; color: var(--gold-dark); text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: .98rem;
  padding: 10px 14px; border-radius: 999px; position: relative;
}
.nav a:not(.btn):hover { color: var(--red); background: var(--cream); }
.nav a[aria-current="page"]:not(.btn) { color: var(--red); }
.nav a[aria-current="page"]:not(.btn)::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 22px; height: 3px; transform: translateX(-50%);
  border-radius: 3px; background: var(--gold);
}
.nav .btn { margin-left: 8px; }
.nav-toggle {
  display: none; background: none; border: 2px solid var(--line); border-radius: 12px;
  width: 48px; height: 48px; cursor: pointer; color: var(--ink); align-items: center; justify-content: center;
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 64px 0 72px;
  background:
    radial-gradient(900px 420px at 92% -10%, rgba(246, 214, 90, .38), transparent 60%),
    radial-gradient(700px 380px at -10% 110%, rgba(214, 32, 15, .07), transparent 60%),
    #fff;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lead { max-width: 34ch; margin-bottom: 30px; }

/* ---------- carrossel ---------- */
.carousel {
  position: relative; border-radius: 22px; overflow: hidden; background: #fff;
  border: 3px solid var(--gold); box-shadow: var(--shadow), 0 0 0 8px var(--gold-soft);
  aspect-ratio: 1 / 1;
}
.carousel-track { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; display: flex; align-items: center; justify-content: center; }
.slide.active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide.photo { background: #1b1410; overflow: hidden; }
.slide-bg { position: absolute; inset: -24px; background-size: cover; background-position: center; filter: blur(24px) saturate(1.1) brightness(.85); }
.slide.photo img { position: relative; object-fit: contain; }
.slide.logo-slide { background: radial-gradient(circle at 50% 40%, #fff, var(--cream)); }
.slide.logo-slide img { width: auto; height: 82%; object-fit: contain; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .92); color: var(--red-dark); cursor: pointer;
  box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center;
}
.carousel-btn:hover { background: #fff; color: var(--red); }
.carousel-btn svg { width: 22px; height: 22px; }
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }
.carousel-dots {
  position: absolute; left: 0; right: 0; bottom: 12px; z-index: 3; display: flex; gap: 8px; justify-content: center; padding: 0 12px; flex-wrap: wrap;
}
.carousel-dots button {
  width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; background: rgba(255, 255, 255, .35);
  cursor: pointer; padding: 0; box-shadow: 0 1px 4px rgba(0, 0, 0, .4);
}
.carousel-dots button[aria-current="true"] { background: var(--gold-light); transform: scale(1.2); }
.carousel.single .carousel-btn, .carousel.single .carousel-dots { display: none; }

/* ---------- seções ---------- */
.section { padding: 84px 0; }
.section.cream { background: var(--cream); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); }

.page-hero {
  text-align: center; padding: 64px 0 56px;
  background: radial-gradient(800px 300px at 50% -20%, rgba(246, 214, 90, .45), transparent 70%), var(--cream);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-bottom: .3em; }
.page-hero p { max-width: 640px; margin: 0 auto; color: var(--muted); font-size: 1.15rem; }

/* ---------- cartões de culto ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px;
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold)); }
.culto { text-align: center; }
.culto .dia { font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: .85rem; color: var(--red); }
.culto .hora { font-family: var(--font-title); font-size: 2.6rem; font-weight: 700; line-height: 1.1; margin: 6px 0 10px; }
.culto .hora small { font-size: 1.1rem; font-weight: 400; }
.culto h3 { margin: 0; font-size: 1.15rem; }
.culto p { color: var(--muted); font-size: .98rem; margin: 8px 0 0; }

/* ---------- ícones / obras ---------- */
.icon-circle {
  width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold-soft), #fff); border: 2px solid var(--gold); color: var(--red);
  margin-bottom: 18px;
}
.icon-circle svg { width: 30px; height: 30px; }
.obra-card { text-decoration: none; color: inherit; display: block; transition: transform .2s ease, box-shadow .2s ease; }
.obra-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.obra-card h3 { font-size: 1.12rem; }
.obra-card p { color: var(--muted); font-size: .97rem; margin: 0; }

.obra-item { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: center; padding: 52px 0; border-bottom: 1px solid var(--line); }
.obra-item:last-of-type { border-bottom: 0; }
.obra-item:nth-child(even) { grid-template-columns: 1fr 340px; }
.obra-item:nth-child(even) .obra-media { order: 2; }
.obra-media {
  aspect-ratio: 1 / 1; border-radius: var(--radius); border: 3px solid var(--gold); overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #fff, var(--cream)); display: flex; align-items: center; justify-content: center;
  color: var(--red); box-shadow: 0 0 0 8px var(--gold-soft);
}
.obra-media svg { width: 42%; height: 42%; }
.obra-media img { width: 100%; height: 100%; object-fit: cover; }
.obra-num { font-family: var(--font-title); color: var(--gold); font-size: 1rem; font-weight: 700; letter-spacing: .2em; }
.obra-body h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.obra-body p { color: var(--muted); }

/* ---------- faixa de chamada ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--red-dark), var(--red) 55%, #E2481C); color: #fff; text-align: center; padding: 72px 0; position: relative; overflow: hidden;
}
.cta-band::before, .cta-band::after { content: ""; position: absolute; left: 0; right: 0; height: 6px; background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold)); }
.cta-band::before { top: 0; } .cta-band::after { bottom: 0; }
.cta-band h2 { color: #fff; max-width: 760px; margin-inline: auto; }
.cta-band p { max-width: 560px; margin: 0 auto 28px; opacity: .95; }

/* ---------- doação ---------- */
.mbway-card {
  max-width: 640px; margin: 0 auto; text-align: center; background: #fff; border: 3px solid var(--gold);
  border-radius: 26px; padding: 40px 28px; box-shadow: var(--shadow), 0 0 0 8px var(--gold-soft);
}
.badge-mbway {
  display: inline-block; background: var(--red); color: #fff; font-weight: 900; letter-spacing: .08em;
  padding: 6px 18px; border-radius: 10px; font-size: 1rem; margin-bottom: 14px;
}
.mbway-number { font-family: var(--font-title); font-size: clamp(2.2rem, 7vw, 3.4rem); font-weight: 700; letter-spacing: .04em; line-height: 1.1; margin: 6px 0 20px; }
.mbway-card .hint { color: var(--muted); font-size: .98rem; margin: 16px 0 0; }

.copy-btn { cursor: pointer; }
.copy-btn.copied { background: #1F7A3E; border-color: #1F7A3E; color: #fff; }

.donation-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 36px auto 0; max-width: 640px; }
.donation-item {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center;
}
.donation-item .label { font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); }
.donation-item .value { font-weight: 700; font-size: 1.12rem; word-break: break-word; }
.donation-item .copy-btn { align-self: center; margin-top: 8px; }
.donation-item.wide { grid-column: 1 / -1; }

.safe-box {
  display: flex; gap: 18px; align-items: flex-start; background: var(--cream); border: 1px solid var(--line);
  border-left: 6px solid var(--gold); border-radius: 14px; padding: 24px 26px; max-width: 820px; margin: 48px auto 0;
}
.safe-box svg { width: 34px; height: 34px; flex: none; color: var(--gold-dark); }
.safe-box h3 { margin: 0 0 6px; font-size: 1.15rem; }
.safe-box p { margin: 0 0 14px; color: var(--muted); }
.safe-box p:last-child { margin-bottom: 0; }

.where-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; text-align: left; }
.where-list li { display: flex; gap: 10px; align-items: flex-start; }
.where-list svg { width: 22px; height: 22px; flex: none; color: var(--red); margin-top: 4px; }

/* ---------- contacto ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-card { text-align: center; }
.contact-card .icon-circle { margin-inline: auto; }
.contact-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.contact-card p { margin: 0 0 14px; color: var(--muted); word-break: break-word; }
.social-row { display: flex; gap: 12px; justify-content: center; }
.social-link {
  width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #fff; border: 2px solid var(--gold); color: var(--red); transition: background .15s, color .15s, transform .15s;
}
.social-link:hover { background: var(--red); color: #fff; transform: translateY(-2px); }
.social-link svg { width: 22px; height: 22px; }
.map-wrap { margin-top: 48px; border-radius: var(--radius); overflow: hidden; border: 3px solid var(--gold); box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; }
.address-line { text-align: center; margin-top: 18px; color: var(--muted); }

/* ---------- galeria ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 260px)); justify-content: center; gap: 14px; }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 14px; overflow: hidden; aspect-ratio: 1 / 1; border: 2px solid var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .3s ease; }
.gallery button:hover img { transform: scale(1.06); }
.lightbox { position: fixed; inset: 0; background: rgba(20, 12, 8, .92); z-index: 300; display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; max-width: 94vw; border-radius: 12px; border: 3px solid var(--gold); }
.lightbox button { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: var(--red); cursor: pointer; font-size: 1.6rem; line-height: 1; }

/* ---------- sobre ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: center; }
.about-grid .logo-big { width: 100%; max-width: 320px; margin-inline: auto; filter: drop-shadow(0 12px 24px rgba(120, 84, 8, .25)); }
.quote {
  font-family: var(--font-title); font-size: clamp(1.4rem, 2.8vw, 1.9rem); line-height: 1.4; color: var(--ink);
  border-left: 5px solid var(--gold); padding-left: 22px; margin: 0 0 26px;
}

/* ---------- rodapé ---------- */
.site-footer { background: #1E1612; color: #EADFCB; padding: 60px 0 0; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--red), var(--gold), var(--red)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.site-footer h3 { color: var(--gold-light); font-size: 1.05rem; letter-spacing: .06em; }
.site-footer a { color: #EADFCB; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.footer-brand img { width: 64px; height: 64px; object-fit: contain; }
.footer-brand strong { font-family: var(--font-title); font-size: 1.2rem; color: #fff; display: block; line-height: 1.2; }
.footer-brand span { font-size: .75rem; letter-spacing: .2em; color: var(--gold-light); font-weight: 700; }
.site-footer .social-link { background: transparent; border-color: var(--gold); color: var(--gold-light); }
.site-footer .social-link:hover { background: var(--gold); color: #1E1612; text-decoration: none; }
.footer-praise { text-align: center; padding: 26px 0 8px; border-top: 1px solid rgba(246, 214, 90, .25); }
.footer-praise p { font-family: var(--font-title); font-style: italic; color: var(--gold-light); font-size: 1.35rem; margin: 0; }
.footer-copy { text-align: center; font-size: .85rem; color: #A99C86; padding: 6px 0 28px; }

/* ---------- responsivo ---------- */
@media (max-width: 960px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 44px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .contact-grid { grid-template-columns: 1fr; }
  .obra-item, .obra-item:nth-child(even) { grid-template-columns: 1fr; gap: 28px; }
  .obra-item:nth-child(even) .obra-media { order: 0; }
  .obra-media { max-width: 340px; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .about-grid .logo-big { max-width: 240px; order: -1; }

  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch;
    padding: 12px 20px 22px; border-bottom: 3px solid var(--gold); box-shadow: var(--shadow); display: none; gap: 2px;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 12px; font-size: 1.05rem; }
  .nav a[aria-current="page"]:not(.btn)::after { display: none; }
  .nav a[aria-current="page"]:not(.btn) { background: var(--cream); }
  .nav .btn { margin: 10px 0 0; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .section { padding: 60px 0; }
  .grid-4, .grid-2, .donation-list, .where-list { grid-template-columns: 1fr; }
  .brand-name { font-size: 1rem; }
  .brand img { width: 46px; height: 46px; }
  .btn-row .btn { flex: 1 1 100%; }
  .map-wrap iframe { height: 320px; }
  .safe-box { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide { transition: none; }
  .btn, .obra-card, .gallery img { transition: none; }
}
@media print {
  .site-header, .nav-toggle, .carousel-btn, .carousel-dots { display: none; }
}

/* ---------- utilidades ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
