/* ===========================
   Base & Variables
   =========================== */
:root {
  --pastel-bg: #fdfbff;
  --wisteria-50: #fbf7ff;
  --wisteria-100: #f3e8ff;
  --wisteria-200: #e9d5ff;
  --wisteria-300: #d8b4fe;
  --wisteria-pastel: #9b72cf;
  --wisteria-dark: #7e57c2;
  --text-primary: #4a3b52;
  --text-secondary: #6d5f7a;
  --gold-soft: #c5a028;
  --white: #ffffff;
  --green-700: #15803d;
}

* {
  box-sizing: border-box;
  font-display: swap;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  color: var(--text-primary);
  background-color: var(--pastel-bg);
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239b72cf' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.5;
}

::selection {
  background-color: var(--wisteria-200);
  color: var(--text-primary);
}

/* ===========================
   Typography
   =========================== */
.font-script {
  font-family: 'Ballet', cursive;
}

.font-serif {
  font-family: 'Cormorant Garamond', serif;
}

.text-italic {
  font-style: italic;
}

.text-uppercase {
  text-transform: uppercase;
}

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

/* ===========================
   Animations
   =========================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

@keyframes sway {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(2deg);
  }
}

@keyframes floralBloom {
  from {
    opacity: 0.55;
    transform: scale(0.95);
  }
  to {
    opacity: 0.9;
    transform: scale(1);
  }
}

.fade-in-up {
  animation: fadeInUp 1.5s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
}

.fade-in-up.delay-1 {
  animation-delay: 0.3s;
}
.fade-in-up.delay-2 {
  animation-delay: 0.6s;
}
.fade-in-up.delay-3 {
  animation-delay: 0.9s;
}

.floral-sway {
  animation:
    floralBloom 0.8s ease-out forwards,
    sway 8s ease-in-out 1.8s infinite alternate;
  transform-origin: top center;
  opacity: 0;
}

.bounce-animation {
  animation: bounce 1s infinite;
}

/* ===========================
   Layout Utilities
   =========================== */
.container {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.container--narrow {
  max-width: 42rem;
}

.container--medium {
  max-width: 48rem;
}

.container--wide {
  max-width: 64rem;
}

/* ===========================
   Glass Card Component
   =========================== */
.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 40px -10px rgba(155, 114, 207, 0.15);
  border-radius: 3rem;
  padding: 3rem;
  position: relative;
  max-width: 56rem;
  width: 100%;
}

@media (min-width: 768px) {
  .glass-card {
    padding: 5rem;
  }
}

/* ===========================
   Hero Section
   =========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 5rem 1rem;
  overflow: hidden;
}

.hero__blob {
  position: absolute;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  mix-blend-mode: multiply;
  filter: blur(80px);
  opacity: 0.2;
}

.hero__blob--top {
  top: 0;
  left: 25%;
  background-color: var(--wisteria-200);
}

.hero__blob--bottom {
  bottom: 0;
  right: 25%;
  background-color: #fce7f3;
}

.hero__content {
  position: relative;
  z-index: 10;
}

.hero__tagline {
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  margin-bottom: 3.5rem;
  font-weight: 500;
}

@media (min-width: 768px) {
  .hero__tagline {
    font-size: 0.875rem;
  }
}

.hero__title {
  font-family: 'Ballet', cursive;
  font-size: 5.5rem;
  font-weight: 400;
  line-height: 0.8;
  color: var(--wisteria-dark);
  margin: 0 0 1.5rem 0;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.05));
  padding-right: 0.5rem;
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 8rem;
  }
}

.hero__ampersand {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 2.5rem 0;
}

.hero__ampersand svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

@media (min-width: 768px) {
  .hero__ampersand svg {
    width: 2.5rem;
    height: 2.5rem;
  }
}

.hero__divider {
  height: 1px;
  width: 6rem;
  background: linear-gradient(
    to right,
    transparent,
    var(--gold-soft),
    transparent
  );
  margin: 2.5rem auto;
  opacity: 0.8;
}

.hero__date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.875rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-style: italic;
  font-weight: 500;
}

@media (min-width: 768px) {
  .hero__date {
    font-size: 3rem;
  }
}

.hero__time {
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
}

.hero__cta {
  margin-top: 3rem;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  color: var(--wisteria-pastel);
  opacity: 0.7;
  font-size: 1.25rem;
}

/* Floral Decorations */
.floral-decoration {
  position: absolute;
  z-index: 20;
  pointer-events: none;
}

.floral-decoration img {
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
  opacity: 0.9;
}

.floral-decoration--top-left {
  top: -3.5rem;
  left: -7.5rem;
}

.floral-decoration--top-left img {
  height: 14rem;
}

@media (min-width: 768px) {
  .floral-decoration--top-left {
    top: -5rem;
  }

  .floral-decoration--top-left img {
    height: 20rem;
  }
}

.floral-decoration--bottom-right {
  bottom: 0;
  right: 1.8rem;
  transform: translateY(3rem) translateX(3rem) scaleX(-1);
}

.floral-decoration--bottom-right img {
  height: 12rem;
}

@media (min-width: 768px) {
  .floral-decoration--bottom-right {
    right: 1.6rem;
  }

  .floral-decoration--bottom-right img {
    height: 16rem;
  }
}

.floral-wisteria-1 {
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1)) hue-rotate(-15deg) !important;
}

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  letter-spacing: 0.05em;
  padding: 1rem 3rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.5s ease;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background-color: var(--wisteria-pastel);
  color: var(--white);
  font-size: 1.25rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn--primary:hover {
  background-color: var(--wisteria-dark);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.btn--dark {
  background-color: var(--text-primary);
  color: var(--white);
  font-size: 1.125rem;
  padding: 1rem 3.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn--dark:hover {
  background-color: var(--text-secondary);
  transform: translateY(-4px);
}

/* ===========================
   Ceremony Section
   =========================== */
.ceremony-section {
  padding: 6rem 1rem;
  max-width: 64rem;
  margin: 0 auto;
  position: relative;
}

.ceremony-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 2rem;
  box-shadow: 0 25px 50px -12px rgba(243, 232, 255, 0.5);
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--wisteria-50);
  z-index: 10;
}

@media (min-width: 768px) {
  .ceremony-card {
    padding: 3rem;
  }
}

.ceremony-card__corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 8rem;
  height: 8rem;
  background: linear-gradient(to bottom left, var(--wisteria-100), transparent);
  border-bottom-left-radius: 100%;
  opacity: 0.4;
}

.ceremony-card__icon {
  width: 5rem;
  height: 5rem;
  background-color: var(--wisteria-50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  color: var(--wisteria-pastel);
  box-shadow: 0 0 0 8px var(--white);
  border: 1px solid var(--wisteria-100);
}

.ceremony-card__icon i {
  font-size: 1.875rem;
}

.ceremony-card__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.25rem;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  font-style: italic;
}

@media (min-width: 768px) {
  .ceremony-card__title {
    font-size: 3rem;
  }
}

.ceremony-card__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .ceremony-card__grid {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
}

.ceremony-details__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.875rem;
  color: var(--text-primary);
  font-style: italic;
  margin: 0 0 1rem 0;
}

.ceremony-details__text {
  color: var(--text-secondary);
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.75;
  margin: 0;
}

.ceremony-details__text strong {
  font-weight: 500;
  color: var(--text-primary);
}

.ceremony-details__venue {
  font-size: 1.25rem;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--text-primary);
}

.ceremony-details__link {
  display: inline-flex;
  align-items: center;
  color: var(--wisteria-pastel);
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.125rem;
  font-weight: 500;
  border-bottom: 1px solid var(--wisteria-200);
  padding-bottom: 2px;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.ceremony-details__link:hover {
  color: var(--wisteria-dark);
  border-bottom-color: var(--wisteria-400);
}

.ceremony-details__link i {
  font-size: 0.875rem;
  margin-left: 0.5rem;
}

/* Map Container */
.map-container {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 4px solid var(--wisteria-50);
  height: 16rem;
  width: 100%;
  position: relative;
}

@media (min-width: 768px) {
  .map-container {
    height: 20rem;
  }
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(10%) contrast(100%);
  transition: filter 0.3s ease;
}

.map-container:hover iframe {
  filter: grayscale(0%);
}

/* ===========================
   Libretto Section
   =========================== */
.libretto-section {
  padding: 4rem 0;
}

.libretto-card {
  position: relative;
  padding: 3rem;
  border: 1px solid var(--wisteria-200);
  border-radius: 1.5rem;
  background-color: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
}

.libretto-card__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.875rem;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
  font-style: italic;
}

.libretto-card__text {
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 2rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.125rem;
}

.libretto-btn {
  display: inline-flex;
  align-items: center;
  background-color: var(--wisteria-50);
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  color: var(--text-primary);
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--wisteria-200);
}

.libretto-btn:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  background-color: var(--white);
}

.libretto-btn i {
  font-size: 1.5rem;
  margin-right: 0.75rem;
  color: var(--wisteria-pastel);
  transition: transform 0.3s ease;
}

.libretto-btn:hover i {
  transform: scale(1.1);
}

.libretto-btn span {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.125rem;
}

/* ===========================
   RSVP Section
   =========================== */
.rsvp-section {
  padding: 6rem 1rem;
  background-color: rgba(255, 255, 255, 0.6);
  position: relative;
  overflow: hidden;
}

.rsvp-content {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 10;
}

.rsvp-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4.5rem;
  color: var(--wisteria-pastel);
  margin: 0 0 1.5rem 0;
  padding-right: 0.5rem;
}

@media (min-width: 768px) {
  .rsvp-title {
    font-size: 6rem;
  }
}

.rsvp-divider {
  width: 4rem;
  height: 1px;
  background-color: var(--gold-soft);
  margin: 0 auto 2rem;
  opacity: 0.7;
}

.rsvp-text {
  color: var(--text-secondary);
  font-size: 1.125rem;
  font-weight: 300;
  margin-bottom: 2.5rem;
  line-height: 1.75;
  padding: 0 1rem;
}

.rsvp-date {
  font-weight: 400;
  color: var(--text-primary);
  font-size: 1.25rem;
  margin-top: 0.5rem;
  display: block;
}

/* ===========================
   Gift Section
   =========================== */
.gift-section {
  padding: 5rem 1rem;
  max-width: 56rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.gift-section__inner {
  border-top: 1px solid var(--wisteria-200);
  padding-top: 4rem;
  position: relative;
}

.gift-section__icon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--pastel-bg);
  padding: 0 1rem;
  color: var(--wisteria-300);
}

.gift-section__icon i {
  font-size: 1.875rem;
}

.gift-section__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.25rem;
  color: var(--text-primary);
  margin: 0 0 1.5rem 0;
  font-style: italic;
}

.gift-section__text {
  color: var(--text-secondary);
  font-size: 1.125rem;
  font-weight: 300;
  margin-bottom: 2.5rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}

.iban-card {
  background-color: var(--white);
  display: inline-block;
  border-radius: 1rem;
  border: 1px solid var(--wisteria-200);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 2.5rem;
  max-width: 36rem;
  width: 100%;
  position: relative;
}

.iban-card__label {
  font-size: 0.875rem;
  color: var(--wisteria-pastel);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  font-weight: 700;
}

.iban-card__row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background-color: var(--wisteria-50);
  padding: 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid var(--wisteria-100);
  gap: 1rem;
}

@media (min-width: 640px) {
  .iban-card__row {
    flex-direction: row;
  }
}

.iban-card__code {
  color: var(--text-primary);
  font-family: monospace;
  font-size: 1rem;
  letter-spacing: -0.025em;
  font-weight: 500;
}

@media (min-width: 640px) {
  .iban-card__code {
    font-size: 1.125rem;
  }
}

.iban-card__copy-btn {
  color: var(--wisteria-pastel);
  font-family: 'Cormorant Garamond', serif;
  padding: 0.75rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  background: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
}

.iban-card__copy-btn:hover {
  color: var(--wisteria-dark);
  background-color: var(--white);
}

.iban-card__copy-btn i {
  font-size: 1.25rem;
}

.iban-card__copy-btn span {
  font-size: 0.75rem;
  font-style: italic;
  font-weight: 700;
  margin-right: 0.5rem;
}

@media (min-width: 640px) {
  .iban-card__copy-btn span {
    display: none;
  }
}

.iban-card__message {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: var(--green-700);
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.iban-card__message.visible {
  opacity: 1;
}

.iban-card__holder {
  margin-top: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
}

.iban-card__holder strong {
  font-weight: 700;
}

/* ===========================
   Footer
   =========================== */
.footer {
  background-color: var(--wisteria-100);
  color: var(--text-primary);
  padding: 4rem 0;
  text-align: center;
  border-top: 1px solid var(--white);
  position: relative;
  overflow: hidden;
}

.footer__floral {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  pointer-events: none;
  transform: translateY(10%);
}

.footer__floral img {
  width: 100%;
  max-width: 48rem;
  transform: rotate(5deg);
  filter: hue-rotate(-30deg);
  opacity: 0.4;
}

@media (min-width: 640px) {
  .footer__floral {
    transform: translateY(33%);
  }
}

.footer__names {
  font-family: 'Ballet', cursive;
  font-size: 3rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--wisteria-pastel);
  padding-right: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
  z-index: 10;
}

.footer__names svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.footer__date {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
  position: relative;
  z-index: 10;
  margin: 0;
}

.footer__credit {
  font-size: 0.6875rem;
  margin-top: 2.5rem;
  color: var(--text-secondary);
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  z-index: 10;
}

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

.space-y-6 > * + * {
  margin-top: 1.5rem;
}
