:root {
  --blue: #bfd7ed;
  --pink: #f3c6c6;
  --gold: #c7a17a;
  --off-white: #f8f5f2;
  --text: #5b514b;
  --white-glass: rgba(255, 255, 255, 0.76);
  --white-soft: rgba(255, 255, 255, 0.58);
  --line: rgba(199, 161, 122, 0.28);
  --shadow: 0 22px 58px rgba(91, 81, 75, 0.12);
  --shadow-soft: 0 12px 30px rgba(91, 81, 75, 0.08);
  --button-gradient: linear-gradient(100deg, #9fbedb 0%, #c7a17a 48%, #e5aaaa 100%);
  --button-gradient-hover: linear-gradient(100deg, #8fb4d7 0%, #c39b70 46%, #dfa0a0 100%);
  --radius: 22px;
  --clean: "Segoe UI", Arial, Helvetica, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --script: "Segoe Script", "Brush Script MT", "Lucida Handwriting", cursive;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  font-family: var(--clean);
  background:
    linear-gradient(rgba(248, 245, 242, 0.78), rgba(248, 245, 242, 0.9)),
    url("./assets/bg-texture.png") center top / 760px auto repeat,
    var(--off-white);
}

::selection {
  color: var(--text);
  background: rgba(243, 198, 198, 0.58);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 8% 20%, rgba(191, 215, 237, 0.32), transparent 28%),
    radial-gradient(circle at 92% 34%, rgba(243, 198, 198, 0.34), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), transparent 45%);
  pointer-events: none;
}

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

.hero {
  width: 100%;
  min-height: clamp(180px, 25vw, 330px);
  overflow: hidden;
  background:
    linear-gradient(rgba(248, 245, 242, 0.02), rgba(248, 245, 242, 0.08)),
    url("./assets/banner-cha-revelacao.jpeg") center / cover no-repeat,
    var(--off-white);
  box-shadow: 0 12px 34px rgba(91, 81, 75, 0.08);
  animation: hero-enter 800ms ease both;
}

.page-shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.intro {
  position: relative;
  padding: clamp(44px, 7vw, 82px) clamp(18px, 4vw, 48px) clamp(30px, 5vw, 56px);
  text-align: center;
}

.flower {
  position: absolute;
  z-index: 0;
  width: min(28vw, 230px);
  opacity: 0.42;
  filter: drop-shadow(0 12px 22px rgba(91, 81, 75, 0.08));
  pointer-events: none;
}

.intro > :not(.flower) {
  position: relative;
  z-index: 1;
}

.flower--left {
  top: 18px;
  left: -38px;
}

.flower--right {
  top: 20px;
  right: -40px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(2.25rem, 7vw, 4.7rem);
  font-weight: 400;
  line-height: 1.02;
}

h2 {
  margin-bottom: 18px;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3.4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.15;
}

.names {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: clamp(8px, 2vw, 18px);
  margin: 0 0 22px;
  color: var(--gold);
  line-height: 0.95;
}

.names span {
  font-family: var(--script);
  font-size: clamp(2.35rem, 8vw, 5.1rem);
  font-weight: 400;
}

.names span:first-child {
  color: #86aacb;
}

.names span:last-child {
  color: #d99696;
}

.names small {
  color: var(--gold);
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-style: italic;
}

.intro__text {
  width: min(740px, 100%);
  margin: 0 auto;
  color: rgba(91, 81, 75, 0.86);
  font-size: clamp(1rem, 1.7vw, 1.16rem);
  line-height: 1.85;
}

.divider {
  width: min(310px, 70vw);
  margin: 0 auto clamp(28px, 5vw, 48px);
  opacity: 0.82;
}

.event {
  padding-bottom: clamp(38px, 6vw, 76px);
}

.event-card,
.rsvp-form,
.rsvp__content {
  background: var(--white-glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.event-card {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 5vw, 48px);
}

.event-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--blue), var(--gold), var(--pink));
}

.event-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0 0 26px;
}

.event-list div {
  min-height: 128px;
  padding: 20px;
  background: var(--white-soft);
  border: 1px solid rgba(199, 161, 122, 0.22);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.event-list dt {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.event-list dd {
  margin: 0;
  color: rgba(91, 81, 75, 0.82);
  font-size: 0.98rem;
  line-height: 1.5;
}

.maps-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.72)),
    linear-gradient(100deg, var(--blue), var(--pink));
  border: 1px solid rgba(199, 161, 122, 0.36);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.maps-button:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--gold);
  box-shadow: 0 16px 34px rgba(91, 81, 75, 0.12);
  transform: translateY(-1px);
}

.rsvp {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(320px, 1.18fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: start;
  padding-bottom: clamp(50px, 7vw, 92px);
}

.rsvp__content {
  position: sticky;
  top: 24px;
  padding: clamp(22px, 4vw, 34px);
}

.rsvp__content p:not(.eyebrow) {
  margin-bottom: 0;
  color: rgba(91, 81, 75, 0.84);
  font-size: 1rem;
  line-height: 1.75;
}

.rsvp-form {
  display: grid;
  gap: 19px;
  padding: clamp(24px, 4vw, 38px);
}

label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.radio-group label {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 11px 14px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(199, 161, 122, 0.28);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.radio-group input {
  width: auto;
  min-height: auto;
  margin: 0;
  accent-color: var(--gold);
}

input,
select,
textarea {
  width: 100%;
  min-height: 50px;
  padding: 14px 15px;
  color: var(--text);
  font: 1rem var(--clean);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(199, 161, 122, 0.3);
  border-radius: 16px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

textarea {
  min-height: 118px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  background: #fff;
  border-color: var(--gold);
  box-shadow:
    0 0 0 4px rgba(191, 215, 237, 0.32),
    0 10px 24px rgba(91, 81, 75, 0.08);
}

input::placeholder,
textarea::placeholder {
  color: rgba(91, 81, 75, 0.45);
}

button {
  min-height: 52px;
  padding: 14px 18px;
  color: #fff;
  font: 800 0.98rem var(--clean);
  letter-spacing: 0.02em;
  background: var(--button-gradient);
  border: 0;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(199, 161, 122, 0.22);
  cursor: pointer;
  transition:
    background 180ms ease,
    filter 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

button:hover {
  background: var(--button-gradient-hover);
  filter: brightness(1.03);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(199, 161, 122, 0.28);
}

button:active {
  transform: translateY(0);
}

.form-feedback {
  min-height: 20px;
  margin: 0;
  color: #b17474;
  font-size: 0.9rem;
}

.success-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(199, 161, 122, 0.32);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.success-card strong {
  color: var(--gold);
  font-size: 1rem;
}

.success-card span {
  color: rgba(91, 81, 75, 0.82);
  font-size: 0.94rem;
  line-height: 1.5;
}

.success-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 42px;
  padding: 11px 15px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.52)),
    linear-gradient(100deg, var(--blue), var(--pink));
  border: 1px solid rgba(134, 170, 203, 0.34);
  border-radius: 14px;
  transition:
    box-shadow 180ms ease,
    transform 180ms ease;
}

.success-card a:hover {
  box-shadow: 0 12px 26px rgba(91, 81, 75, 0.11);
  transform: translateY(-1px);
}

.is-hidden {
  display: none;
}

.footer {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 170px;
  padding: 42px 24px;
  overflow: hidden;
  color: rgba(91, 81, 75, 0.78);
  text-align: center;
  border-top: 1px solid var(--line);
}

.footer p {
  width: min(620px, 100%);
  margin: 0;
  line-height: 1.6;
}

.footer__flower {
  position: absolute;
  bottom: 8px;
  width: min(33vw, 260px);
  opacity: 0.5;
  pointer-events: none;
}

.footer__flower--left {
  left: max(0px, calc(50% - 620px));
}

.footer__flower--right {
  right: max(0px, calc(50% - 620px));
}

.duck-world {
  position: fixed;
  inset: 0;
  z-index: 20;
  overflow: hidden;
  pointer-events: none;
}

.screen-duck {
  position: absolute;
  left: -92px;
  width: 58px;
  height: auto;
  opacity: 0.28;
  filter: drop-shadow(0 9px 12px rgba(91, 81, 75, 0.12));
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

.screen-duck--one {
  top: 68vh;
  animation: duck-cross-one 36s linear infinite;
  animation-delay: -5s;
}

.screen-duck--two {
  top: 42vh;
  width: 50px;
  opacity: 0.22;
  animation: duck-cross-two 48s linear infinite;
  animation-delay: -22s;
}

.screen-duck--three {
  top: 82vh;
  width: 54px;
  opacity: 0.24;
  animation: duck-cross-three 42s linear infinite;
  animation-delay: -31s;
}

.duck-fallback {
  display: inline-block;
  width: auto;
  font-size: 2.2rem;
  line-height: 1;
}

@keyframes duck-cross-one {
  0% {
    transform: translate3d(-110px, 0, 0) rotate(-1deg);
  }

  24% {
    transform: translate3d(25vw, -10px, 0) rotate(2deg);
  }

  52% {
    transform: translate3d(56vw, 8px, 0) rotate(-2deg);
  }

  76% {
    transform: translate3d(82vw, -7px, 0) rotate(1deg);
  }

  100% {
    transform: translate3d(calc(100vw + 130px), 0, 0) rotate(-1deg);
  }
}

@keyframes duck-cross-two {
  0% {
    transform: translate3d(-120px, 0, 0) rotate(1deg);
  }

  30% {
    transform: translate3d(32vw, 9px, 0) rotate(-2deg);
  }

  58% {
    transform: translate3d(62vw, -12px, 0) rotate(2deg);
  }

  100% {
    transform: translate3d(calc(100vw + 140px), 4px, 0) rotate(0deg);
  }
}

@keyframes duck-cross-three {
  0% {
    transform: translate3d(-100px, 0, 0) rotate(-2deg);
  }

  34% {
    transform: translate3d(36vw, -8px, 0) rotate(1deg);
  }

  66% {
    transform: translate3d(70vw, 10px, 0) rotate(-1deg);
  }

  100% {
    transform: translate3d(calc(100vw + 120px), -4px, 0) rotate(2deg);
  }
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .duck-world {
    display: none;
  }
}

@media (max-width: 860px) {
  .page-shell {
    width: min(100% - 24px, 660px);
  }

  .event-list,
  .rsvp {
    grid-template-columns: 1fr;
  }

  .event-list {
    gap: 12px;
  }

  .rsvp__content {
    position: static;
  }
}

@media (max-width: 560px) {
  body {
    background-size: auto, 520px auto, auto;
  }

  .hero {
    min-height: clamp(154px, 43vw, 190px);
  }

  .intro {
    padding: 34px 4px 26px;
  }

  .flower {
    width: 150px;
    opacity: 0.32;
  }

  .flower--left {
    left: -74px;
  }

  .flower--right {
    right: -76px;
  }

  .names {
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-bottom: 18px;
  }

  h1 {
    font-size: clamp(2rem, 11vw, 3.1rem);
  }

  h2 {
    font-size: clamp(1.45rem, 8vw, 2rem);
  }

  .intro__text,
  .rsvp__content p:not(.eyebrow) {
    font-size: 0.98rem;
    line-height: 1.75;
  }

  .event-card,
  .rsvp-form,
  .rsvp__content {
    border-radius: 18px;
    padding: 20px;
  }

  .event-list div {
    min-height: auto;
    padding: 16px;
  }

  .maps-button,
  button,
  .success-card a {
    width: 100%;
  }

  .radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .radio-group label {
    justify-content: center;
    padding-inline: 10px;
  }

  .footer__flower {
    width: 190px;
    opacity: 0.32;
  }

  .screen-duck {
    width: 38px;
    opacity: 0.2;
  }

  .screen-duck--two {
    width: 34px;
  }

  .screen-duck--three {
    width: 36px;
  }

  .duck-fallback {
    font-size: 1.7rem;
  }
}
