/* ============================================================
   IGREJA REVIVER — Landing Page
   Design tokens extraídos do handoff técnico
   ============================================================ */

:root {
  /* Paleta */
  --black: #000000;
  --almost-black: #141413;
  --white: #ffffff;
  --blue-accent: #0d63d1;   /* link ativo */
  --blue-light: #116dff;    /* "family" / "pertencer" */
  --gray-text: #757575;
  --green-accent: #68b04d;
  --navy-card: #23323f;     /* cards do mosaico */

  /* Tipografia */
  --font-display: 'Anton', 'Poppins', sans-serif;
  --font-body: 'Poppins', system-ui, sans-serif;

  /* Layout */
  --content-width: 980px;
  --header-height: 60px;
  --radius-btn: 10px;
  --radius-mosaic: 18px;
}

/* ----------------------------- Reset ----------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 { margin: 0; }

/* ----------------------------- Helpers ----------------------------- */
.container {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: 24px;
}

.center { text-align: center; }

.section { padding-block: 72px; }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 41px);
  line-height: 1.4;
  color: var(--black);
  letter-spacing: normal;
}

.section-subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 21px;
  text-transform: uppercase;
  margin-top: 14px;
  color: var(--black);
}

/* Logo da marca (ring + "r") */
.brand-logo { display: block; width: 44px; height: 44px; }
.welcome-logo { display: block; width: 72px; height: 72px; margin: 0 auto 10px; }

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  border-radius: var(--radius-btn);
  cursor: pointer;
  border: none;
  transition: opacity .2s ease, transform .2s ease;
}
.btn:hover { opacity: .88; }
.btn:active { transform: translateY(1px); }

.btn--dark {
  background: var(--black);
  color: var(--white);
  min-width: 212px;
  min-height: 47px;
  padding: 0 26px;
  margin-top: 28px;
}
.btn--icon { gap: 10px; }

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .08), 0 2px 8px rgba(0, 0, 0, .04);
}

.header-inner {
  position: relative;
  height: 100%;
  max-width: 1143px;
  margin-inline: auto;
  padding-inline: 40px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.brand { display: inline-flex; align-items: center; }

/* Menu centralizado no header; o logo permanece à esquerda. */
.primary-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--black);
  padding-block: 6px;
  transition: color .2s ease;
}
.nav-link:hover { color: var(--blue-accent); }
.nav-link.is-active {
  color: var(--blue-accent);
  border-bottom: 2px solid var(--blue-accent);
}

/* Hambúrguer (mobile) */
.nav-toggle {
  display: none;
  margin-left: auto;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 7px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--black);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 874px;
  max-height: 90vh;
  overflow: hidden;
  background: var(--almost-black);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .15) 45%, rgba(0, 0, 0, .45) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  color: var(--white);
  text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}

.hero-controls {
  position: absolute;
  right: 22px;
  bottom: 130px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
}
.video-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .4);
  cursor: pointer;
}
.video-time {
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  background: rgba(0, 0, 0, .45);
  padding: 4px 8px;
  border-radius: 6px;
}

/* Curva côncava branca na base */
.hero-curve {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 120px;
  display: block;
}

/* ============================================================
   FAMÍLIA-IGREJA + CARROSSEL
   ============================================================ */
.section--family { padding-top: 20px; padding-bottom: 80px; }

/* Carrossel em leque */
.carousel {
  position: relative;
  margin-top: 56px;
  width: 100%;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  gap: 26px;
  padding: 40px clamp(24px, 8vw, 120px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.photo-card {
  flex: 0 0 auto;
  width: 240px;
  height: 300px;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  scroll-snap-align: center;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .16);
  transition: transform .3s ease;
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; }

/* Inclinação alternada em "leque" / polaroide */
.photo-card:nth-child(odd) { transform: rotate(-4deg); }
.photo-card:nth-child(even) { transform: rotate(4deg) translateY(12px); }
.photo-card:hover { transform: rotate(0) scale(1.03); z-index: 2; }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, .85);
  color: var(--white);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: opacity .2s ease;
}
.carousel-arrow:hover { opacity: .8; }
.carousel-arrow--prev { left: 14px; }
.carousel-arrow--next { right: 14px; }

/* ============================================================
   BEM-VINDO (3 COLUNAS)
   ============================================================ */
.section--welcome { padding-block: 80px; }

.welcome-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 44px;
}
.welcome-col {
  font-size: 19px;
  line-height: 1.6;
  color: var(--black);
  padding: 6px 38px;
  margin: 0;
}
.welcome-col + .welcome-col { border-left: 1px solid #e2e2e2; }

/* ============================================================
   ORAÇÃO
   ============================================================ */
.section--prayer { min-height: 333px; }
.prayer-text {
  max-width: 800px;
  margin: 22px auto 0;
  font-size: 19px;
  line-height: 1.7;
  color: var(--black);
}

/* ============================================================
   MOSAICO 2x2
   ============================================================ */
.mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 280px;
  gap: 16px;
}
.mosaic-cell {
  margin: 0;
  border-radius: var(--radius-mosaic);
  overflow: hidden;
}
.mosaic-cell--photo img { width: 100%; height: 100%; object-fit: cover; }
.mosaic-cell--text {
  background: var(--navy-card);
  display: flex;
  align-items: center;
  padding: 42px;
}
.mosaic-cell--text p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.08;
  color: var(--white);
  text-align: left;
}
.mosaic-cell--text .hl { color: var(--blue-light); }
.mosaic-cell--text .hl-dot { color: var(--blue-light); }

/* ============================================================
   PROGRAMAÇÃO
   ============================================================ */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 210px));
  justify-content: center;
  gap: 28px 52px;
  margin-top: 48px;
  text-align: left;
}
.schedule-dayname {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 19px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.schedule-items {
  list-style: none;
  margin: 0;
  padding: 0;
}
.schedule-items li {
  font-size: 12px;
  line-height: 1.5;
  color: var(--black);
  padding: 7px 0;
  border-top: 1px solid #ececec;
}

/* ============================================================
   PASTORES SENIORES
   ============================================================ */
.section--pastors {
  background: var(--black);
  padding: 0;
}
.pastors-inner {
  max-width: 1143px;
  margin-inline: auto;
  min-height: 480px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.pastors-photo { align-self: end; height: 100%; display: flex; align-items: flex-end; }
.pastors-photo img { width: 100%; height: 100%; object-fit: cover; object-position: bottom; }

.pastors-text {
  position: relative;
  padding: 70px 60px;
  color: var(--white);
}
.pastors-outline {
  position: absolute;
  top: 30px;
  left: 56px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.05;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .35);
  max-width: 460px;
  pointer-events: none;
  user-select: none;
}
.pastors-title {
  position: relative;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.02;
  text-transform: uppercase;
  margin-top: 64px;
}
.pastors-paragraph {
  position: relative;
  margin-top: 22px;
  font-size: 16px;
  line-height: 1.7;
  max-width: 440px;
  color: rgba(255, 255, 255, .9);
}

/* ============================================================
   MAPA
   ============================================================ */
.map-subtitle { line-height: 1.45; }
.map {
  margin-top: 36px;
  width: 100%;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
}
/* Pin azul das unidades */
.reviver-pin span {
  display: block;
  width: 20px;
  height: 20px;
  background: var(--blue-light);
  border: 3px solid var(--white);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
}

/* ============================================================
   RODAPÉ
   ============================================================ */
.site-footer {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 26px 16px;
}
.site-footer p {
  margin: 0;
  font-weight: 300;
  font-size: 16px;
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 768px) {
  .header-inner { padding-inline: 20px; gap: 16px; }

  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .1);
    padding: 8px 20px 16px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .primary-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-link { width: 100%; padding: 12px 0; }
  .nav-link.is-active { border-bottom: none; }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { height: 70vh; }
  .hero-curve { height: 70px; }
  .hero-controls { bottom: 90px; }

  /* 3 colunas -> empilhadas */
  .welcome-cols { grid-template-columns: 1fr; gap: 0; }
  .welcome-col { padding: 22px 0; }
  .welcome-col + .welcome-col { border-left: none; border-top: 1px solid #e2e2e2; }

  /* Programação -> empilhada */
  .schedule-grid { grid-template-columns: 1fr; gap: 0; text-align: center; }
  .schedule-day { padding: 22px 0; border-top: 1px solid #ececec; }
  .schedule-items li { border-top: none; }

  /* Pastores -> foto em cima, texto embaixo */
  .pastors-inner { grid-template-columns: 1fr; }
  .pastors-photo { height: 360px; }
  .pastors-text { padding: 50px 28px 56px; }
  .pastors-outline { position: static; margin-bottom: 12px; }
  .pastors-title { margin-top: 0; }
}

@media (max-width: 480px) {
  body { font-size: 17px; }
  .section { padding-block: 52px; }
  /* Mosaico -> 1 coluna */
  .mosaic { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .mosaic-cell--text { padding: 30px; }
  .photo-card { width: 200px; height: 260px; }
}
