/* Groupe Célébration — site prototype
   Cores: verde #009B3A, amarelo #FEDD00, azul #002B7F */

:root {
  --blue: #002B7F;
  --blue-dark: #00184d;
  --blue-deeper: #001136;
  --blue-mid: #0039a3;
  --blue-soft: #1a4aad;
  --green: #009B3A;
  --green-dark: #007a2e;
  --yellow: #FEDD00;
  --yellow-hover: #ffe44d;
  --white: #ffffff;
  --off: #f3f6fb;
  --cloud: #e6edf7;
  --ink: #12203a;
  --muted: #4d5b73;
  --line: rgba(255, 255, 255, 0.16);
  --line-dark: rgba(18, 32, 58, 0.12);
  --shadow: 0 12px 40px rgba(0, 24, 77, 0.18);
  --header-h: 4.5rem;
  --radius: 1rem;
  --radius-sm: 0.625rem;
  --max: 70rem;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --whatsapp: #25d366;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  min-height: 100vh;
}

body.nav-open { overflow: hidden; }

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

a { color: var(--blue); text-underline-offset: 0.15em; }
a:hover { color: var(--green-dark); }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: inherit;
  margin: 0 0 0.6em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 2000;
  background: var(--yellow);
  color: var(--blue);
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 0 0 0.5rem 0.5rem;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blue-dark);
  color: var(--white);
  border-bottom: 1px solid var(--line);
  min-height: var(--header-h);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(0, 17, 54, 0.35);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.5rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 11.5rem;
  text-decoration: none;
}
.logo-link img {
  height: 2.15rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.nav-toggle {
  margin-left: 0;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 auto;
  padding: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 0.5rem;
  background: transparent;
  cursor: pointer;
  color: var(--white);
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}
.site-header.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--blue-dark);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 1.25rem 1.25rem;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: 0 16px 32px rgba(0, 17, 54, 0.4);
}

.site-header.is-open .site-nav { display: flex; }
@media (max-width: 63.99rem) {
  .site-header.is-open .site-nav {
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100dvh - var(--header-h));
    background: var(--blue-dark);
    padding-bottom: 2.5rem;
  }
}

.site-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.08);
  color: var(--yellow);
}

.nav-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

@media (min-width: 64rem) {
  .nav-toggle { display: none; }

  .logo-link {
    flex: 0 0 auto;
    max-width: none;
  }
  .logo-link img { height: 3rem; }

  .header-inner { padding: 0.7rem 1.5rem; gap: 1rem; }

  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    margin-left: auto;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    gap: 0.1rem;
  }

  .site-nav > a {
    white-space: nowrap;
    padding: 0.55rem 0.7rem;
  }

  .nav-actions {
    flex-direction: row;
    margin-top: 0;
    margin-left: 0.75rem;
    align-items: center;
  }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.8rem 1.25rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
  white-space: nowrap;
}

/* Persistent Começar aqui in the header (mobile/tablet only).
   Must beat .btn { display: inline-flex }. */
.header-cta.btn {
  display: inline-flex;
  margin-left: auto;
  flex: 0 0 auto;
  padding: 0.65rem 0.95rem;
  font-size: 0.85rem;
}
@media (min-width: 64rem) {
  .header-cta.btn { display: none; }
}
.btn:hover { color: inherit; text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--yellow);
  color: var(--blue);
  border-color: var(--yellow);
}
.btn-primary:hover { background: var(--yellow-hover); color: var(--blue-dark); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: var(--white);
}

.btn-green {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-green:hover { background: var(--green-dark); color: var(--white); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  border-color: var(--whatsapp);
}
.btn-whatsapp:hover { filter: brightness(0.95); color: var(--white); }

.btn-outline-blue {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline-blue:hover {
  background: var(--blue);
  color: var(--white);
}

/* ----- Layout ----- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3.5rem 0;
}
@media (min-width: 48rem) {
  .section { padding: 5rem 0; }
}

.section-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  margin-bottom: 0.4em;
}

.section-lead {
  color: var(--muted);
  max-width: 38rem;
  margin-bottom: 2rem;
}

.section-dark {
  background: var(--blue);
  color: var(--white);
}
.section-dark .section-kicker { color: var(--yellow); }
.section-dark .section-lead { color: rgba(255, 255, 255, 0.78); }

.section-off { background: var(--off); }

.eyebrow-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--yellow);
  color: var(--blue);
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 40% at 15% -5%, rgba(254, 221, 0, 0.28), transparent 58%),
    radial-gradient(ellipse 45% 50% at 90% 0%, rgba(255, 255, 255, 0.16), transparent 55%),
    radial-gradient(ellipse 40% 35% at 70% 100%, rgba(0, 155, 58, 0.22), transparent 60%),
    radial-gradient(ellipse 30% 25% at 30% 90%, rgba(254, 221, 0, 0.1), transparent 55%),
    linear-gradient(165deg, #001136 0%, #002B7F 48%, #00184d 100%);
}

.hero::before {
  /* soft stage-floor glow */
  content: "";
  position: absolute;
  inset: auto 10% -20% 10%;
  height: 50%;
  background: radial-gradient(ellipse at center, rgba(254, 221, 0, 0.12), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.25rem 4.5rem;
  width: 100%;
}

.hero-placeholder-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
  border: 1px dashed rgba(255, 255, 255, 0.35);
  padding: 0.25rem 0.6rem;
  border-radius: 0.35rem;
  margin-bottom: 1.25rem;
  background: rgba(0, 17, 54, 0.25);
}

.hero h1 {
  font-size: clamp(2.15rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.4em;
  max-width: 14ch;
}
.hero h1 .cele { color: #3fd16e; }
.hero h1 .br { color: var(--yellow); }

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 400;
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
}
.hero-meta strong { color: var(--yellow); font-weight: 600; }

/* ----- Cards / grids ----- */
.grid-2, .grid-3 {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 40rem) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
@media (min-width: 56rem) {
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; }
}

.card {
  background: var(--white);
  border-radius: 1.15rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  color: var(--ink);
  display: flex;
  flex-direction: column;
}

.card-body { padding: 1.35rem 1.4rem 1.5rem; }

.card-link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 44px rgba(0, 24, 77, 0.22);
  color: inherit;
}

/* Photo placeholders */
.ph-photo {
  position: relative;
  background:
    radial-gradient(ellipse 50% 40% at 30% 20%, rgba(254, 221, 0, 0.18), transparent 55%),
    radial-gradient(ellipse 40% 50% at 80% 80%, rgba(0, 155, 58, 0.2), transparent 55%),
    linear-gradient(160deg, #00184d, #002B7F 55%, #0039a3);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 14rem;
  text-align: center;
  padding: 1rem;
}
.ph-photo--portrait { aspect-ratio: 3 / 4; min-height: 0; max-height: 22rem; }
@media (max-width: 39.99rem) {
  .ph-photo--portrait { aspect-ratio: 5 / 4; max-height: none; }
}
.ph-photo--wide { aspect-ratio: 16 / 9; min-height: 0; }
.ph-photo--square { aspect-ratio: 1 / 1; min-height: 0; }

.ph-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--yellow);
  background: rgba(0, 17, 54, 0.45);
  border: 1px dashed rgba(254, 221, 0, 0.55);
  padding: 0.3rem 0.65rem;
  border-radius: 0.35rem;
}

.ph-icon { opacity: 0.7; }

.ph-text {
  display: inline;
  background: rgba(254, 221, 0, 0.28);
  color: var(--blue-dark);
  font-weight: 600;
  padding: 0 0.2em;
  border-radius: 0.2em;
}

.pastor-name { font-size: 1.3rem; margin: 0 0 0.15em; }
.pastor-role {
  color: var(--green);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

/* ----- Horário ----- */
.schedule-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 36rem) {
  .schedule-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}

.schedule-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: 1.5rem 1.4rem 1.6rem;
}
.schedule-card .label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9ec0ff;
  margin-bottom: 0.35rem;
}
.schedule-card .time {
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: var(--yellow);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 0.35rem;
}
.schedule-card p { color: rgba(255, 255, 255, 0.82); margin: 0; }

.schedule-day {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

/* ----- Location / map ----- */
.map-frame {
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 16rem;
  border: 0;
  border-radius: 1.15rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--cloud);
}

.address-block {
  font-style: normal;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.split {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}
@media (min-width: 52rem) {
  .split { grid-template-columns: 1fr 1.2fr; gap: 2.5rem; align-items: center; }
  .split--reverse { grid-template-columns: 1.2fr 1fr; }
}

/* ----- Forms ----- */
.form {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
}

.field label,
.field .label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--line-dark);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
}
.field textarea { min-height: 8rem; resize: vertical; }

.field input:focus,
.field textarea:focus {
  outline: 3px solid var(--yellow);
  outline-offset: 1px;
  border-color: var(--blue);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
}
.check input { width: 1.15rem; height: 1.15rem; margin-top: 0.15rem; accent-color: var(--green); }

.form-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

.form-status {
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-ok {
  background: #e5f8ec;
  color: var(--green-dark);
}
.form-status.is-error {
  background: #fdecea;
  color: #8b1e1e;
}

/* ----- Ministry cards ----- */
.ministry-card .ph-photo { min-height: 10rem; }
.ministry-card h3 { margin: 0 0 0.4em; font-size: 1.25rem; }
.ministry-card p { color: var(--muted); font-size: 0.95rem; }
.ministry-card .more {
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 700;
  color: var(--blue);
  font-size: 0.92rem;
}
.card-link:hover .more { color: var(--green); }

/* ----- Agenda ----- */
.event {
  background: var(--white);
  border-radius: 1.15rem;
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.75rem;
  grid-template-columns: auto 1fr;
  align-items: start;
}
.event-date {
  background: var(--blue);
  color: var(--white);
  border-radius: 0.85rem;
  min-width: 4.25rem;
  text-align: center;
  padding: 0.65rem 0.5rem;
}
.event-date .day {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1;
  color: var(--yellow);
}
.event-date .month {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}
.event h3 { font-size: 1.1rem; margin: 0 0 0.2em; }
.event p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.event-list { display: grid; gap: 1rem; }

/* ----- Page hero (inner pages) ----- */
.page-hero {
  background:
    radial-gradient(ellipse 40% 80% at 0% 0%, rgba(254, 221, 0, 0.18), transparent 50%),
    radial-gradient(ellipse 40% 80% at 100% 100%, rgba(0, 155, 58, 0.18), transparent 50%),
    var(--blue);
  color: var(--white);
  padding: 3rem 0 3.25rem;
}
.page-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  margin-bottom: 0.35em;
}
.page-hero p {
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}

.crumbs {
  font-size: 0.85rem;
  margin-bottom: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}
.crumbs a { color: var(--yellow); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ----- Expect list ----- */
.expect-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}
.expect-list li {
  background: var(--white);
  border-radius: 1rem;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 24, 77, 0.08);
  border-left: 4px solid var(--green);
}
.expect-list strong { display: block; margin-bottom: 0.2rem; }

/* ----- Footer ----- */
.site-footer {
  background: var(--blue-deeper);
  color: rgba(255, 255, 255, 0.86);
  padding: 3.5rem 0 1.5rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 48rem) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1.2fr; gap: 2.5rem; }
}

.site-footer h2,
.site-footer h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin: 0 0 0.85rem;
}

.site-footer a { color: var(--yellow); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--yellow-hover); }

.social {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}
.social a:hover {
  background: var(--yellow);
  color: var(--blue);
  border-color: var(--yellow);
  text-decoration: none;
}

.footer-note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.5rem;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.newsletter-form input {
  flex: 1 1 12rem;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.7rem 0.85rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}
.newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.45); }
.newsletter-form input:focus {
  outline: 3px solid var(--yellow);
  outline-offset: 1px;
}

/* Contact band on inner / home */
.contact-band {
  background: var(--off);
}

/* ----- Floating WhatsApp ----- */
.wa-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  text-decoration: none;
}
.wa-float:hover { color: var(--white); filter: brightness(1.05); }
.wa-float svg { width: 1.75rem; height: 1.75rem; }

@media (min-width: 48rem) {
  .wa-float { right: 1.5rem; bottom: 1.5rem; }
}

/* ----- Utilities ----- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.stack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.form-card-inner { display: grid; gap: 1rem; }

body { overflow-x: hidden; }
