:root {
  --bg: #f7f2ea;
  --paper: #fffaf2;
  --ink: #1f2933;
  --muted: #667085;
  --primary: #173f6d;
  --primary-dark: #0f2f53;
  --accent: #7a3b2e;
  --gold: #c49a4a;
  --whatsapp: #25d366;
  --shadow: 0 20px 60px rgba(24, 39, 75, 0.15);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.hero {
  position: relative;
  min-height: 92vh;
  background-image: url("assets/img/fachada-igreja.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 24, 39, 0.88), rgba(11, 24, 39, 0.58), rgba(11, 24, 39, 0.22)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.55));
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  width: 100%;
  margin: 0;
  padding: 14px max(16px, calc((100vw - 1120px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(15, 24, 35, 0.62);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  opacity: 0.9;
}

.nav-links a:hover {
  opacity: 1;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.lang-button {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: transparent;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.lang-button:hover {
  transform: translateY(-1px);
}

.lang-button.is-active {
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-dark);
}

.menu-toggle {
  display: none;
  border: 0;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 1.4rem;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 32px));
  padding: 150px 0 90px;
  max-width: 760px;
  margin-left: max(16px, calc((100vw - 1120px) / 2));
}

.eyebrow,
.section-kicker {
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--gold);
  margin: 0 0 12px;
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5.3rem);
  line-height: 0.98;
  margin: 0;
  max-width: 780px;
}

.hero-text {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 660px;
  color: rgba(255, 255, 255, 0.92);
  margin: 24px 0 34px;
}

.hero-actions,
.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-whatsapp {
  background: var(--whatsapp);
  color: #093d1c;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.28);
}

.btn-light {
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-dark);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.bordered {
  border: 1px solid rgba(23, 63, 109, 0.2);
}

.section {
  padding: 86px 0;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  margin: 0 0 22px;
  color: var(--primary-dark);
}

.about p,
.cafe p,
.location p,
.prayer p,
.giving p {
  font-size: 1.05rem;
  color: var(--muted);
}

.identity-card,
.map-card,
.giving-box,
.prayer-box {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
  border: 1px solid rgba(196, 154, 74, 0.22);
}

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

.identity-card img {
  width: 180px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 18px;
  border: 8px solid #fff;
  box-shadow: 0 16px 35px rgba(23, 63, 109, 0.16);
}

.identity-card strong,
.map-card strong {
  display: block;
  color: var(--primary);
  font-size: 1.4rem;
}

.identity-card span,
.map-card span {
  color: var(--accent);
  font-weight: 700;
}

.program {
  background: #fff;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.card {
  background: var(--paper);
  border-radius: 22px;
  padding: 26px;
  border: 1px solid rgba(23, 63, 109, 0.08);
  box-shadow: 0 14px 34px rgba(24, 39, 75, 0.08);
}

.day {
  color: var(--accent);
  font-weight: 800;
  font-size: 0.92rem;
}

.card h3 {
  color: var(--primary-dark);
  margin: 10px 0 16px;
}

.card p {
  margin: 8px 0;
  color: var(--muted);
}

.image-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

.image-frame img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.prayer {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
}

.prayer h2,
.prayer p {
  color: #fff;
}

.prayer-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.links-grid a {
  background: #fff;
  text-decoration: none;
  padding: 20px;
  border-radius: 18px;
  font-weight: 800;
  color: var(--primary);
  box-shadow: 0 12px 28px rgba(24, 39, 75, 0.08);
  border: 1px solid rgba(23, 63, 109, 0.08);
}

.links-grid a:hover {
  outline: 2px solid rgba(196, 154, 74, 0.5);
}

.bulletin-box {
  background: var(--paper);
  border: 1px solid rgba(196, 154, 74, 0.22);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.bulletin-box p {
  max-width: 680px;
}

.location {
  background: #fff;
}

.map-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.giving {
  padding-top: 70px;
}

.giving-box {
  max-width: 850px;
}

.bank-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  margin-top: 20px;
}

.bank-info p {
  margin: 0;
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  background: var(--whatsapp);
  color: #063b1b;
  text-decoration: none;
  padding: 15px 18px;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
}

footer {
  background: #0f2238;
  color: rgba(255, 255, 255, 0.82);
  padding: 28px 0;
}

.footer-content {
  justify-content: center;
  text-align: center;
}

.footer-content p {
  margin: 0;
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
  }

  .topbar-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 82px;
    left: 16px;
    right: 16px;
    background: rgba(15, 34, 56, 0.96);
    border-radius: 18px;
    padding: 16px;
    flex-direction: column;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .split,
  .reverse {
    grid-template-columns: 1fr;
  }

  .cards,
  .links-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content {
    padding-top: 120px;
  }

  .prayer-box,
  .bulletin-box {
    align-items: flex-start;
    flex-direction: column;
  }

  .bank-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 62px 0;
  }

  .topbar {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .lang-switcher {
    width: 100%;
    justify-content: center;
  }

  .lang-button {
    flex: 1;
  }

  .cards,
  .links-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-content {
    padding-top: 148px;
    padding-bottom: 70px;
  }

  .brand span {
    font-size: 0.95rem;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
  }
}


/* Ajustes do botão de oração */
.prayer-box .btn-whatsapp {
  text-align: center;
  white-space: normal;
  min-width: 230px;
  padding-left: 22px;
  padding-right: 22px;
}

/* Dízimos e ofertas com QR Code */
.giving-layout {
  display: grid;
  grid-template-columns: 1.25fr 260px;
  gap: 28px;
  align-items: center;
}

.giving-content {
  min-width: 0;
}

.giving-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.giving-qr img {
  width: 210px;
  max-width: 100%;
  height: auto;
  background: #fff;
  padding: 8px;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(24, 39, 75, 0.12);
  border: 1px solid rgba(23, 63, 109, 0.08);
}

.qr-caption {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .giving-layout {
    grid-template-columns: 1fr;
  }

  .giving-qr {
    margin-top: 8px;
  }
}
