:root {
  --navy: #0A1A2F;
  --white: #FFFFFF;
  --accent: #1B3A5C;
  --text-secondary: #C4C4C4;
  --button-bg: rgba(255, 255, 255, 0.10);
  --button-border: rgba(255, 255, 255, 0.20);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.25);
  --glow: 0 0 22px rgba(255, 255, 255, 0.24);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  position: relative;
  background: var(--navy);
  color: var(--white);
  font-size: 15px;
  line-height: 1.45;
  overflow-x: hidden;
  isolation: isolate;
}

/* Fundo principal da pagina com foto dos pastores, overlay e leve blur. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(rgba(10, 26, 47, 0.65), rgba(10, 26, 47, 0.65)), url("../assets/pastores.png?v=2");
  background-position: center 40%;
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(3px);
  transform: scale(1.04);
}

/* Textura geometrica sutil em toda a pagina */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(120deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(60deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.05), transparent 45%);
  background-size: 34px 34px, 54px 54px, auto;
}

main,
header,
footer,
.modal-overlay {
  position: relative;
  z-index: 1;
}

h1,
h2 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
}

p {
  margin: 0;
}

.content-wrap {
  width: min(100%, 420px);
  margin: 0 auto;
  text-align: center;
  padding-left: 20px;
  padding-right: 20px;
}

.hero,
.footer {
  position: relative;
  background: transparent;
}

.hero .content-wrap,
.footer .content-wrap {
  position: relative;
  z-index: 2;
}

.hero .content-wrap {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hero {
  padding-top: calc(60px + env(safe-area-inset-top));
  padding-bottom: 30px;
}

.hero h1 {
  margin-top: 0;
  font-size: 28px;
}

.subtitle {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
}

.verse {
  margin-top: 10px;
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: 13px;
  font-style: italic;
}

.verse span {
  display: block;
  margin-top: 4px;
}

.main-content {
  background: var(--navy);
}

.links-section {
  padding: 24px 0 10px;
}

.links-container {
  width: min(100%, 420px);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.link-btn {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--button-border);
  border-radius: 12px;
  background: var(--button-bg);
  color: var(--white);
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-soft), 0 0 16px rgba(255, 255, 255, 0.10);
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;

  opacity: 0;
  transform: translateY(8px);
  animation: btn-stagger 0.45s ease-out forwards;
}

.btn-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  margin-right: 12px;
  color: currentColor;
  flex-shrink: 0;
}

.btn-label {
  line-height: 1.2;
}

.btn-icon-whatsapp {
  color: #25D366;
}

.links-container .link-btn:nth-child(1) { animation-delay: 0.05s; }
.links-container .link-btn:nth-child(2) { animation-delay: 0.15s; }
.links-container .link-btn:nth-child(3) { animation-delay: 0.25s; }
.links-container .link-btn:nth-child(4) { animation-delay: 0.35s; }
.links-container .link-btn:nth-child(5) { animation-delay: 0.45s; }
.links-container .link-btn:nth-child(6) { animation-delay: 0.55s; }
.links-container .link-btn:nth-child(7) { animation-delay: 0.65s; }

@keyframes btn-stagger {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-info {
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
  padding: 6px 20px 30px;
}

.contact-info p + p {
  margin-top: 7px;
}

.footer {
  padding-top: 30px;
  padding-bottom: calc(30px + env(safe-area-inset-bottom));
}

.footer-content p {
  color: var(--text-secondary);
  font-size: 12px;
  margin-top: 6px;
  text-align: center;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-box {
  width: min(90%, 360px);
  background: #0D1B2A;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  position: relative;
  animation: modal-fade-slide 0.3s ease;
}

@keyframes modal-fade-slide {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
}

.modal-box h2 {
  font-size: 18px;
  margin-bottom: 14px;
  text-align: center;
}

.modal-box .link-btn {
  opacity: 1;
  transform: none;
  animation: none;
}

.address {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
}

.programacao-page {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: calc(60px + env(safe-area-inset-top)) 20px 24px;
  text-align: center;
}

.programacao-hero h1 {
  margin-top: 0;
  font-size: 28px;
}

.programacao-card {
  margin-top: 18px;
}

.programacao-img {
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  display: block;
  margin: 0 auto;
}

.btn-voltar {
  margin-top: 16px;
}

@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    padding-top: calc(24px + env(safe-area-inset-top));
  }
}

@media (min-width: 481px) {
  body {
    font-size: 16px;
  }

  .content-wrap,
  .links-container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (min-width: 769px) {
  body {
    font-size: 17px;
  }

  .content-wrap,
  .links-container,
  .programacao-page {
    width: min(100%, 520px);
  }

  .hero {
    padding-top: calc(80px + env(safe-area-inset-top));
  }

  .hero h1 {
    font-size: 32px;
  }

  .subtitle {
    font-size: 17px;
  }

  .verse {
    font-size: 15px;
  }

  .links-container {
    max-width: 460px;
  }

  .programacao-page {
    padding-top: calc(80px + env(safe-area-inset-top));
  }
}

@media (min-width: 769px) and (hover: hover) and (pointer: fine) {
  .link-btn:hover {
    background: var(--white);
    color: var(--navy);
    transform: scale(1.02);
  }
}

@media (min-width: 1025px) {
  .content-wrap,
  .links-container,
  .programacao-page {
    width: min(100%, 560px);
  }
}
