:root {
  --brown-950: #1b0f05;
  --brown-900: #2b1808;
  --brown-800: #40240f;
  --cream-100: #f4dfbd;
  --cream-200: #e3c192;
  --paper: #ecd1a4;
  --paper-deep: #d8ad73;
  --ink: #221108;
  --muted-ink: #6f5135;
  --border: rgba(227, 193, 146, 0.42);
  --border-dark: rgba(43, 24, 8, 0.24);
  --container: 1180px;
  --display: "Instrument Serif", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--cream-100);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.035;
  background-image:
    repeating-radial-gradient(circle at 22% 34%, #1b0f05 0 0.45px, transparent 0.8px 4px),
    repeating-radial-gradient(circle at 72% 68%, #1b0f05 0 0.35px, transparent 0.7px 5px);
}

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #c56e31;
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--cream-200);
  transform: translateY(-160%);
  transition: transform 200ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  color: var(--cream-200);
  border-bottom: 1px solid rgba(227, 193, 146, 0.15);
}

.header-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.wordmark {
  display: grid;
  text-decoration: none;
  line-height: 1.05;
}

.wordmark-edition {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.wordmark-name {
  margin-top: 4px;
  font-family: var(--display);
  font-size: 1.35rem;
  font-style: italic;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav a {
  text-decoration: none;
  transition: color 200ms ease, background-color 200ms ease;
}

.main-nav a:hover {
  color: #fff0d6;
}

.main-nav .nav-cta {
  padding: 10px 17px;
  color: var(--ink);
  background: var(--cream-200);
  border: 1px solid var(--cream-200);
}

.main-nav .nav-cta:hover {
  color: var(--cream-100);
  background: transparent;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 760px;
  overflow: hidden;
  color: var(--cream-200);
  background:
    radial-gradient(circle at 25% 45%, rgba(151, 72, 26, 0.18), transparent 34%),
    linear-gradient(112deg, var(--brown-900) 0%, var(--brown-950) 100%);
}

.hero::after {
  display: none;
}

.hero-halftone {
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  width: clamp(24px, 6vw, 84px);
  opacity: 0.62;
  background:
    linear-gradient(90deg, rgba(83, 38, 15, 0.68), rgba(27, 15, 5, 0.04)),
    radial-gradient(circle, rgba(146, 76, 34, 0.58) 0.8px, transparent 1.4px);
  background-size: auto, 5px 5px;
  mask-image: linear-gradient(to right, #000, transparent);
}

.hero-grid {
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
  align-items: center;
  gap: 44px;
  padding-top: 80px;
}

.hero-art {
  position: relative;
  align-self: center;
  height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-art::after {
  position: absolute;
  bottom: -1px;
  left: 2%;
  width: 96%;
  height: 55px;
  content: "";
  background: linear-gradient(to top, var(--brown-950), transparent);
}

.hero-art-glow {
  position: absolute;
  top: 18%;
  left: 9%;
  width: 82%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(220, 137, 67, 0.12);
  filter: blur(35px);
}

.hero-art img {
  position: relative;
  z-index: 1;
  width: auto;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
}

.hero-copy {
  align-self: center;
  padding: 84px 0 50px;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  display: inline-block;
  width: 28px;
  height: 1px;
  margin-right: 12px;
  vertical-align: middle;
  content: "";
  background: currentColor;
  opacity: 0.72;
}

.eyebrow-dark {
  color: var(--muted-ink);
}

.hero h1,
.section-heading h2,
.registration-intro h2,
.final-cta h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.78;
  letter-spacing: -0.045em;
}

.hero h1 {
  max-width: 680px;
  font-size: clamp(5rem, 8.2vw, 8.1rem);
}

.hero h1 em,
.section-heading h2 em,
.registration-intro h2 em,
.final-cta h2 em {
  font-weight: inherit;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 1px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease, transform 200ms ease;
}

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

.button-primary {
  color: var(--ink);
  background: var(--cream-200);
  border-color: var(--cream-200);
}

.button-primary:hover {
  color: var(--cream-100);
  background: transparent;
}

.button-dark {
  color: var(--cream-100);
  background: var(--brown-950);
  border-color: var(--brown-950);
}

.button-dark:hover {
  color: var(--brown-950);
  background: transparent;
}

.button-outline {
  color: var(--brown-950);
  background: transparent;
  border-color: rgba(43, 24, 8, 0.55);
}

.button-outline:hover {
  background: rgba(43, 24, 8, 0.07);
}

.button-full {
  width: 100%;
}

.organizers-logo {
  width: min(100%, 430px);
  height: auto;
  margin-top: 58px;
}

.hero-copy > .button {
  min-width: 330px;
  min-height: 64px;
  margin-top: 42px;
  padding-inline: 30px;
  border-width: 2px;
  font-size: 0.86rem;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.26);
}

.hero-copy > .button:hover {
  box-shadow: none;
}

.event-summary {
  position: relative;
  z-index: 2;
  color: var(--cream-100);
  background: var(--brown-950);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.summary-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.3fr 0.7fr;
}

.summary-item {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 30px;
  border-left: 1px solid var(--border);
}

.summary-item:last-child {
  border-right: 1px solid var(--border);
}

.summary-kicker {
  margin-bottom: 5px;
  color: var(--paper-deep);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.summary-item strong {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.12;
}

.section {
  position: relative;
  padding-block: 120px;
}

.section-heading h2,
.registration-intro h2 {
  font-size: clamp(4.25rem, 7.6vw, 7.2rem);
}

.about {
  background:
    linear-gradient(rgba(227, 193, 146, 0.12) 1px, transparent 1px),
    var(--cream-100);
  background-size: 100% 42px;
}

.about-grid,
.location-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
  gap: clamp(60px, 10vw, 140px);
}

.about-copy {
  padding-top: 44px;
}

.about-text {
  margin: 0;
  padding-block: 30px;
  color: #4e321f;
  border-block: 1px solid rgba(43, 24, 8, 0.24);
}

.about-text p {
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.8;
}

.about-text p + p {
  margin-top: 18px;
}

.speakers {
  color: var(--cream-100);
  background:
    radial-gradient(circle at 12% 20%, rgba(147, 65, 24, 0.12), transparent 24%),
    linear-gradient(125deg, var(--brown-900), var(--brown-950));
}

.section-heading-centered {
  margin-bottom: 58px;
  text-align: center;
}

.section-heading-centered .eyebrow::before {
  display: none;
}

.speaker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.speaker-card {
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(227, 193, 146, 0.72);
}

/* PLACEHOLDER: substitua este bloco pela futura moldura em arco. */
.speaker-photo-placeholder {
  position: relative;
  aspect-ratio: 4 / 4.6;
  overflow: hidden;
  background: #a5876a;
  border-bottom: 1px solid var(--border-dark);
}

.speaker-photo-placeholder::after {
  position: absolute;
  inset: 12px;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(236, 209, 164, 0.62);
}

.speaker-photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
  filter: saturate(0.78) sepia(0.12) contrast(1.02);
}

.speaker-content {
  min-height: 340px;
  padding: 28px 28px 34px;
}

.speaker-role {
  margin: 0 0 6px;
  color: #92502a;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.speaker-content h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 2.35rem;
  font-weight: 400;
  line-height: 1;
}

.speaker-church {
  min-height: 52px;
  margin: 13px 0 18px;
  color: var(--muted-ink);
  font-size: 0.86rem;
  line-height: 1.5;
}

.speaker-content ul {
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--border-dark);
  list-style: none;
}

.speaker-content li {
  position: relative;
  padding-left: 15px;
  font-size: 0.78rem;
  line-height: 1.55;
}

.speaker-content li + li {
  margin-top: 8px;
}

.speaker-content li::before {
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 4px;
  height: 4px;
  content: "";
  background: #9a4d21;
  transform: rotate(45deg);
}

.registration {
  color: var(--cream-100);
  background:
    radial-gradient(circle, rgba(227, 193, 146, 0.12) 1px, transparent 1.4px),
    linear-gradient(115deg, #4d2812, var(--brown-950) 65%);
  background-size: 8px 8px, auto;
}

.registration::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(27, 15, 5, 0.12), rgba(27, 15, 5, 0.84));
}

.registration-shell {
  position: relative;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  align-items: center;
  gap: clamp(50px, 8vw, 112px);
}

.registration-intro > p:not(.eyebrow) {
  max-width: 430px;
  margin: 30px 0 0;
  color: rgba(244, 223, 189, 0.74);
}

.registration-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  max-width: 430px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.registration-price span {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.registration-price strong {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 400;
}

.registration-card {
  padding: clamp(26px, 5vw, 54px);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(227, 193, 146, 0.72);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
}

.steps {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
  color: rgba(34, 17, 8, 0.45);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step b {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.66rem;
}

.step.is-active {
  color: var(--ink);
}

.step.is-active b {
  color: var(--cream-100);
  background: var(--ink);
}

.field + .field {
  margin-top: 20px;
}

.field label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  height: 54px;
  padding: 0 15px;
  color: var(--ink);
  background: rgba(255, 248, 235, 0.28);
  border: 1px solid rgba(43, 24, 8, 0.42);
  border-radius: 0;
  transition: background-color 200ms ease, border-color 200ms ease;
}

.field input:focus {
  background: rgba(255, 248, 235, 0.56);
  border-color: var(--brown-900);
  outline: none;
}

.field input[aria-invalid="true"] {
  border-color: #852d1f;
  box-shadow: inset 3px 0 0 #852d1f;
}

.field-error {
  display: block;
  min-height: 20px;
  padding-top: 3px;
  color: #852d1f;
  font-size: 0.72rem;
}

#registration-form .button {
  margin-top: 14px;
}

.form-status {
  min-height: 24px;
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.78rem;
}

.form-status.is-error {
  color: #852d1f;
}

.button:disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.payment-panel {
  text-align: center;
}

.payment-check {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  color: var(--cream-100);
  background: var(--brown-950);
  border-radius: 50%;
  font-size: 1.4rem;
}

.payment-panel h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 1;
}

.payment-panel > p:not(.payment-check, .payment-instruction) {
  color: var(--muted-ink);
}

.pix-details {
  margin: 28px 0;
  border-top: 1px solid var(--border-dark);
}

.pix-details div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  padding: 14px 0;
  text-align: left;
  border-bottom: 1px solid var(--border-dark);
}

.pix-details dt {
  color: var(--muted-ink);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pix-details dd {
  margin: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.payment-instruction {
  margin: 24px 0 16px;
  color: var(--muted-ink);
  font-size: 0.84rem;
}

.whatsapp-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 16px;
  padding: 14px 0;
  border-block: 1px solid var(--border-dark);
  text-align: left;
}

.whatsapp-contact span {
  color: var(--muted-ink);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.whatsapp-contact a {
  flex: 0 0 auto;
  color: var(--brown-950);
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.whatsapp-button img {
  width: 20px;
  height: 20px;
}

.location {
  background: var(--cream-100);
}

.location-card {
  margin-top: 44px;
  padding: clamp(30px, 4vw, 48px);
  color: var(--cream-100);
  background: var(--brown-950);
  border-left: 6px solid #a35728;
}

.location-label {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.location-card address {
  margin-bottom: 30px;
  color: rgba(244, 223, 189, 0.7);
  font-style: normal;
}

.map-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-top: 34px;
  overflow: hidden;
  background: var(--brown-900);
  border: 1px solid var(--border);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  filter: sepia(0.28) saturate(0.72) contrast(1.04);
}

.text-link {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.final-cta {
  padding-block: 88px;
  color: var(--cream-100);
  background:
    radial-gradient(circle at 15% 50%, rgba(162, 72, 25, 0.18), transparent 35%),
    linear-gradient(112deg, var(--brown-900), var(--brown-950));
  border-block: 1px solid var(--border);
}

.final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.final-cta h2 {
  font-size: clamp(3.2rem, 5.5vw, 5rem);
}

.final-cta .button {
  flex: 0 0 auto;
}

.site-footer {
  padding-block: 42px;
  color: var(--cream-100);
  background: #120a04;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.footer-event {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-theme {
  margin: 4px 0 0;
  color: var(--cream-200);
  font-family: var(--display);
  font-size: 1.75rem;
  font-style: italic;
  line-height: 1;
}

.site-footer img {
  width: min(44vw, 400px);
  height: auto;
}

@media (max-width: 1023px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(400px, 1.15fr);
    gap: 20px;
  }

  .hero-art {
    height: 540px;
  }

  .hero h1 {
    font-size: clamp(4.8rem, 9vw, 6.5rem);
  }

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

  .summary-item:nth-child(3) {
    border-top: 1px solid var(--border);
  }

  .summary-item:nth-child(4) {
    border-top: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }

  .speaker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .speaker-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 11px);
    justify-self: center;
  }

  .registration-shell {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 44px;
  }
}

@media (max-width: 767px) {
  html {
    scroll-padding-top: 0;
  }

  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .site-header {
    position: relative;
    background: var(--brown-950);
  }

  .header-inner {
    min-height: 68px;
  }

  .main-nav a:not(.nav-cta) {
    display: none;
  }

  .main-nav .nav-cta {
    padding: 8px 13px;
    font-size: 0.68rem;
  }

  .hero {
    min-height: auto;
  }

  .hero::after {
    display: none;
  }

  .hero-grid {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 0;
  }

  .hero-art {
    order: 1;
    width: calc(100% + 32px);
    height: min(112vw, 500px);
    margin-inline: -16px;
  }

  .hero-art img {
    max-width: none;
    height: 106%;
  }

  .hero-copy {
    order: 2;
    width: 100%;
    padding: 28px 0 54px;
  }

  .hero h1 {
    font-size: clamp(4.2rem, 21vw, 6.3rem);
    line-height: 0.78;
  }

  .hero-copy > .button {
    width: 100%;
    min-width: 0;
    margin-top: 32px;
  }

  .organizers-logo {
    margin-top: 38px;
  }

  .summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .summary-item {
    min-height: 106px;
    padding: 18px 14px;
  }

  .summary-item strong {
    font-size: 1.08rem;
  }

  .summary-item:nth-child(even) {
    border-right: 1px solid var(--border);
  }

  .section {
    padding-block: 78px;
  }

  .section-heading h2,
  .registration-intro h2 {
    font-size: clamp(4rem, 19vw, 5.4rem);
  }

  .about-grid,
  .location-grid,
  .registration-shell {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-copy {
    padding-top: 0;
  }

  .location-card {
    margin-top: 0;
  }

  .speaker-grid {
    grid-template-columns: 1fr;
  }

  .speaker-card:last-child {
    grid-column: auto;
    width: 100%;
  }

  .speaker-content {
    min-height: 0;
  }

  .registration-intro > p:not(.eyebrow) {
    margin-top: 26px;
  }

  .steps {
    gap: 8px;
    font-size: 0.62rem;
  }

  .whatsapp-contact {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .step {
    gap: 6px;
  }

  .final-cta-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .final-cta .button {
    width: 100%;
  }

  .site-footer img {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
