/* EventsChurch — página principal */
:root {
  --ink: #0e1c18;
  --ink-soft: #1a2f28;
  --forest: #1f4a3c;
  --moss: #2d6a55;
  --leaf: #3d8b6e;
  --gold: #c4a35a;
  --gold-bright: #dbb96a;
  --sand: #e8ebe6;
  --paper: #f3f5f2;
  --white: #ffffff;
  --text: #1c2b26;
  --muted: #5a6b64;
  --line: rgba(14, 28, 24, 0.12);
  --radius: 14px;
  --shadow: 0 18px 50px rgba(14, 28, 24, 0.14);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", system-ui, sans-serif;
  --max: 1120px;
  --topbar-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--forest);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--moss);
}

/* Topbar */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--topbar-h);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.topbar.is-solid {
  background: rgba(14, 28, 24, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.topbar__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--white);
}

.brand__mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 45%, var(--leaf));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  position: relative;
  flex-shrink: 0;
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1.5px solid rgba(14, 28, 24, 0.55);
  border-radius: 50%;
  border-top-color: transparent;
  transform: rotate(-25deg);
}

.topbar__nav {
  display: none;
  gap: 1.35rem;
  margin-left: auto;
}

.topbar__nav a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.9rem;
}

.topbar__nav a:hover {
  color: var(--white);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

@media (min-width: 880px) {
  .topbar__nav {
    display: flex;
  }

  .topbar__actions {
    margin-left: 0;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}

.btn--lg {
  padding: 0.95rem 1.6rem;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(196, 163, 90, 0.35);
}

.btn--primary:hover {
  color: var(--ink);
  filter: brightness(1.05);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.45);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.btn--ghost-dark {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35);
}

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

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero__media {
  position: absolute;
  inset: 0;
  background:
    url("https://images.unsplash.com/photo-1524178232363-1fb2b075b655?auto=format&fit=crop&w=2000&q=80")
    center / cover no-repeat;
  transform: scale(1.06);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 28, 24, 0.4) 0%, rgba(14, 28, 24, 0.55) 40%, rgba(14, 28, 24, 0.94) 100%),
    radial-gradient(ellipse at 30% 20%, rgba(61, 139, 110, 0.28), transparent 50%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: calc(var(--topbar-h) + 2rem) 1.25rem 5.5rem;
}

.hero__brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--gold-bright);
}

.hero__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.35rem, 7vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.hero__lead {
  margin: 0 0 1.75rem;
  max-width: 38ch;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.86);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 22px;
  height: 36px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
}

.hero__scroll span {
  display: block;
  width: 4px;
  height: 8px;
  margin: 6px auto 0;
  border-radius: 4px;
  background: var(--gold-bright);
  animation: scroll-dot 1.6s ease-in-out infinite;
}

@keyframes hero-drift {
  from { transform: scale(1.06) translateY(0); }
  to { transform: scale(1.12) translateY(-2%); }
}

@keyframes scroll-dot {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(10px); }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.reveal:nth-child(1) { animation-delay: 0.1s; }
.reveal:nth-child(2) { animation-delay: 0.25s; }
.reveal:nth-child(3) { animation-delay: 0.4s; }
.reveal:nth-child(4) { animation-delay: 0.55s; }

@keyframes reveal-up {
  to { opacity: 1; transform: translateY(0); }
}

/* Sections */
.section {
  padding: 4.5rem 1.25rem;
}

.section--ink {
  background: var(--ink);
  color: var(--white);
}

.section__header {
  max-width: var(--max);
  margin: 0 auto 2.75rem;
}

.eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss);
}

.section__header--light .eyebrow {
  color: var(--gold);
}

.section__header h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 18ch;
  color: var(--ink);
}

.section__header--light h2 {
  color: var(--white);
}

.section__lead {
  margin: 0;
  max-width: 48ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.section__header--light .section__lead {
  color: rgba(255, 255, 255, 0.65);
}

/* Services — sem cards: ritmo tipográfico + divisórias */
.services {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 800px) {
  .services {
    grid-template-columns: 1fr 1fr;
  }
}

.service {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 800px) {
  .service:nth-child(odd) {
    padding-right: 2rem;
    border-right: 1px solid var(--line);
  }

  .service:nth-child(even) {
    padding-left: 2rem;
  }
}

.service h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
}

.service p {
  margin: 0;
  color: var(--muted);
  max-width: 42ch;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--max);
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.steps li {
  display: grid;
  gap: 0.85rem;
}

.steps__num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}

.steps h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.steps p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.62);
}

.section--muted-soft {
  background: var(--sand);
}

/* Pillars — eventos x cursos */
.pillars {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}

@media (min-width: 800px) {
  .pillars {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.pillar__label {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss);
}

.pillar h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.pillar p {
  margin: 0;
  color: var(--muted);
  max-width: 38ch;
  font-size: 1.05rem;
}

/* Examples dual */
.examples {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .examples {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

.example {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.example__type {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
}

.example h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink);
}

.example__url {
  margin: 0 0 0.85rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  color: var(--moss);
  word-break: break-all;
}

.example p:not(.example__type):not(.example__url) {
  margin: 0 0 1.25rem;
  color: var(--muted);
  max-width: 36ch;
}

/* Keep legacy demo block if used elsewhere */
.demo {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 880px) {
  .demo {
    grid-template-columns: 1fr 1.05fr;
    gap: 3rem;
  }
}

.demo__url {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  color: var(--moss);
  margin: 0 0 1rem;
  word-break: break-all;
}

.demo__copy p:not(.demo__url) {
  margin: 0 0 1.5rem;
  color: var(--muted);
  max-width: 40ch;
  font-size: 1.05rem;
}

.demo__preview {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  background:
    linear-gradient(160deg, rgba(14, 28, 24, 0.35), rgba(14, 28, 24, 0.75)),
    url("https://images.unsplash.com/photo-1505373877841-8d25f7d46678?auto=format&fit=crop&w=1400&q=80")
    center / cover;
  box-shadow: var(--shadow);
  transition: transform 0.4s ease;
}

.demo__preview:hover {
  transform: translateY(-4px);
}

.demo__preview-label {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
}

/* CTA band */
.cta-band {
  position: relative;
  padding: 5rem 1.25rem;
  color: var(--white);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(14, 28, 24, 0.92), rgba(31, 74, 60, 0.88)),
    url("https://images.unsplash.com/photo-1492684223066-81342ee5ff30?auto=format&fit=crop&w=1800&q=80")
    center / cover;
}

.cta-band__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.cta-band p {
  margin: 0 0 1.75rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Footer */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.65);
  padding: 3rem 1.25rem;
}

.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1.75rem;
}

.footer__brand {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.footer__brand strong {
  display: block;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.footer__brand p {
  margin: 0;
  max-width: 34ch;
  font-size: 0.9rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer__links a:hover {
  color: var(--gold-bright);
}

.footer__copy {
  margin: 0;
  font-size: 0.82rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__media,
  .hero__scroll span,
  .reveal {
    animation: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
