/* ============================================
   wewillkissinfrontofyou.org
   Shanti & Aysha's Wedding
   ============================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- Fonts --- */
@font-face {
  font-family: 'Custom Serif';
  src: url('fonts/custom-serif-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Custom Serif';
  src: url('fonts/custom-serif-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'Custom Serif';
  src: url('fonts/custom-serif-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

:root {
  --bg: #FFFEFB;
  --primary: #E05B37;
  --primary-light: #F4C4B5;
  --primary-faint: #FBE9E3;
  --text: #E05B37;
  --font-serif: 'Custom Serif', 'Georgia', 'Times New Roman', Times, serif;
  --font-cursive: 'Custom Serif', 'Georgia', serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-serif);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
}

/* --- Typography --- */
h1,
h2,
h3 {
  font-weight: 400;
  line-height: 1.2;
}

.font-cursive {
  font-family: var(--font-cursive);
  font-style: italic;
}

/* --- Layout --- */
.section {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  position: relative;
}

.section--wide {
  max-width: 900px;
}

/* --- Divider --- */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 0;
}

.divider img {
  width: 80px;
  height: auto;
  opacity: 1;
}

.divider-line {
  width: 60px;
  height: 1px;
  background: var(--primary-light);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 2rem 1.5rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(140px);
  transition: transform 0.8s ease;
}

.hero-content.shift-up {
  transform: translateY(-20px);
}

/* Pigeon arena */
.pigeon-stage {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 260px;
  margin-bottom: 2rem;
}

.pigeon-solo {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 140px;
  height: auto;
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 0.3s ease;
}

.pigeon-solo.hidden {
  opacity: 0 !important;
}

.pigeon-solo--left {
  left: -160px;
}

.pigeon-solo--right {
  right: -160px;
}

.pigeon-kiss {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 280px;
  height: auto;
  opacity: 0;
  will-change: transform, opacity;
}

/* Animation states */
.pigeon-solo--left.walk-in {
  animation: walkInLeft 2s ease-out forwards;
}

.pigeon-solo--right.walk-in {
  animation: walkInRight 2s ease-out forwards;
}

.pigeon-kiss.appear {
  animation: kissAppear 0.6s ease-out forwards;
}

@keyframes walkInLeft {
  0% {
    left: -160px;
    opacity: 0;
    transform: translateY(-50%) rotate(0deg);
  }

  10% {
    opacity: 1;
  }

  20% {
    transform: translateY(-50%) rotate(-3deg);
  }

  30% {
    transform: translateY(-50%) rotate(3deg);
  }

  40% {
    transform: translateY(-50%) rotate(-3deg);
  }

  50% {
    transform: translateY(-50%) rotate(3deg);
  }

  60% {
    transform: translateY(-50%) rotate(-2deg);
  }

  70% {
    transform: translateY(-50%) rotate(2deg);
  }

  80% {
    transform: translateY(-50%) rotate(-1deg);
  }

  90% {
    transform: translateY(-50%) rotate(1deg);
  }

  100% {
    left: calc(50% - 135px);
    opacity: 1;
    transform: translateY(-50%) rotate(0deg);
  }
}

@keyframes walkInRight {
  0% {
    right: -160px;
    opacity: 0;
    transform: translateY(-50%) rotate(0deg);
  }

  10% {
    opacity: 1;
  }

  20% {
    transform: translateY(-50%) rotate(-3deg);
  }

  30% {
    transform: translateY(-50%) rotate(3deg);
  }

  40% {
    transform: translateY(-50%) rotate(-3deg);
  }

  50% {
    transform: translateY(-50%) rotate(3deg);
  }

  60% {
    transform: translateY(-50%) rotate(-2deg);
  }

  70% {
    transform: translateY(-50%) rotate(2deg);
  }

  80% {
    transform: translateY(-50%) rotate(-1deg);
  }

  90% {
    transform: translateY(-50%) rotate(1deg);
  }

  100% {
    right: calc(50% - 135px);
    opacity: 1;
    transform: translateY(-50%) rotate(0deg);
  }
}

@keyframes kissAppear {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.08);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Hero text */
.hero-chapel {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  width: 100%;
  max-width: 320px;
  margin-top: 1rem;
}

.hero-chapel.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-names {
  font-family: var(--font-cursive);
  font-style: italic;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}

.hero-ampersand {
  font-family: var(--font-cursive);
  font-style: italic;
  font-size: clamp(1.5rem, 4vw, 2rem);
  display: block;
  margin: 0.15rem 0;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(0.75rem, 2.5vw, 1rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 1.5rem;
  font-weight: 400;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeInUp 1s ease 4.5s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 0.6;
  }
}

/* ============================================
   ANNOUNCEMENT SECTION
   ============================================ */
.announcement {
  text-align: center;
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.announcement-prelude {
  font-family: var(--font-cursive);
  font-style: italic;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  margin-bottom: 1.5rem;
}

.announcement-composite {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 3rem auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 8rem;
  /* Space for the flowers */
}

.announcement-text {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.announcement-text .hero-names {
  font-size: clamp(2rem, 6vw, 3rem);
  margin: 0;
  line-height: 1.1;
}

.announcement-text .hero-ampersand {
  font-size: clamp(1rem, 3vw, 1.5rem);
  margin: 0.25rem 0;
}

.hero-tagline {
  margin-top: 2rem;
  font-size: clamp(0.6rem, 2vw, 0.75rem);
  letter-spacing: 0.2em;
}

.flower-side {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 84px;
  height: auto;
  z-index: 1;
  opacity: 0.85;
}

.flower-side--left {
  left: 0;
}

.flower-side--right {
  right: 0;
  transform: translateY(-50%) scaleX(-1);
}

/* ============================================
   DETAILS SECTION
   ============================================ */
.details {
  text-align: center;
}

.details-heading {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  font-weight: 400;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.2rem;
  text-align: center;
  max-width: 420px;
  margin: 0 auto;
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
}

.details-label {
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.1em;
  margin-top: 0.6rem;
}

.details-value {
  font-family: var(--font-cursive);
  font-style: italic;
}

.details-note {
  margin-top: 2.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  border: 1.5px solid var(--primary-light);
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.7;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   RSVP SECTION
   ============================================ */
.rsvp {
  text-align: center;
}

.rsvp-heading {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.rsvp-subheading {
  font-family: var(--font-cursive);
  font-style: italic;
  font-size: 1rem;
  margin-bottom: 2rem;
}

.rsvp-form {
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-group label {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  font-weight: 400;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-serif);
  font-size: 1rem;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--primary-light);
  background: var(--bg);
  color: var(--text);
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--primary);
  opacity: 0.6;
}

/* For older WebKit browsers */
.form-group input::-webkit-input-placeholder,
.form-group textarea::-webkit-input-placeholder {
  color: var(--primary);
  opacity: 0.6;
}

.form-group textarea {
  resize: vertical;
  min-height: 60px;
}

.form-group--joke input {
  border-style: dashed;
  opacity: 0.5;
  cursor: not-allowed;
}

.form-group--joke label {
  opacity: 0.5;
}

.form-hint {
  font-size: 0.75rem;
  font-style: italic;
  margin-top: 0.2rem;
  opacity: 0.5;
}

.form-group--joke .joke-hint {
  font-size: 0.75rem;
  font-style: italic;
  margin-top: 0.2rem;
  opacity: 0.7;
}

.rsvp-submit {
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  background: var(--primary);
  color: var(--bg);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 0.5rem;
}

.rsvp-submit:hover {
  background: #c94d2e;
  transform: scale(1.02);
}

.rsvp-submit:active {
  transform: scale(0.98);
}

.rsvp-decline-btn {
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  background: none;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  cursor: pointer;
  margin-top: -0.8rem;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.rsvp-decline-btn:hover {
  background: var(--primary-faint);
  transform: scale(1.02);
}

.rsvp-decline-btn:active {
  transform: scale(0.98);
}

/* Decline modal */
.decline-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(224, 91, 55, 0.12);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
}

.decline-modal-backdrop[hidden] {
  display: none;
}

.decline-modal-card {
  background: var(--bg);
  border: 1.5px solid var(--primary-light);
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.decline-headline {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  letter-spacing: 0.1em;
}

.decline-subtext {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.decline-confirm-q {
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

.decline-modal-card .form-group {
  text-align: left;
}

.required-mark {
  opacity: 0.5;
}

.decline-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.rsvp-decline-confirm {
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  background: none;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.rsvp-decline-confirm:hover {
  background: var(--primary-faint);
  transform: scale(1.02);
}

.rsvp-decline-confirm:active {
  transform: scale(0.98);
}

.decline-final {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.decline-final[hidden] {
  display: none;
}

.decline-final .font-cursive {
  font-size: 1.2rem;
}

.decline-close-btn {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: none;
  border: 1.5px solid var(--primary-light);
  color: var(--primary);
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  transition: border-color 0.2s;
}

.decline-close-btn:hover {
  border-color: var(--primary);
}

/* RSVP success state */
.rsvp-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0;
}

.rsvp-success.visible {
  display: flex;
}

.rsvp-success img {
  width: 180px;
}

.rsvp-success p {
  font-family: var(--font-cursive);
  font-style: italic;
  font-size: 1.4rem;
}

/* ============================================
   COMING SOON SECTION
   ============================================ */
.coming-soon {
  text-align: center;
  padding: 1rem 1.5rem;
}

.coming-soon-heading {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  font-weight: 400;
}

.coming-soon p {
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  text-align: center;
  padding: 2rem 1.5rem 2rem;
  font-size: 0.75rem;
  line-height: 1.8;
}

.footer-pigeon {
  width: 60px;
  margin-bottom: 2rem;
}

.footer-established {
  font-family: var(--font-cursive);
  font-style: italic;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.footer-disclaimer {
  max-width: 520px;
  margin: 0 auto 1.5rem;
  opacity: 0.6;
  font-size: 0.7rem;
  line-height: 1.7;
}



/* Ticker */
.ticker {
  overflow: hidden;
  white-space: nowrap;
  padding: 0.75rem 0;
  border-top: 1px solid var(--primary-light);
  border-bottom: 1px solid var(--primary-light);
  margin-top: 2rem;
}

.ticker-inner {
  display: inline-block;
  animation: ticker 20s linear infinite;
}

.ticker-inner span {
  display: inline-block;
  padding: 0 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.ticker-pigeon {
  display: inline-block;
  padding: 0 1.25rem;
  vertical-align: middle;
}

.ticker-pigeon img {
  width: 48px;
  height: auto;
  vertical-align: middle;
  transform: scaleX(-1);
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* stagger children */
.reveal-stagger>.reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.reveal-stagger>.reveal:nth-child(3) {
  transition-delay: 0.2s;
}

.reveal-stagger>.reveal:nth-child(4) {
  transition-delay: 0.3s;
}

.reveal-stagger>.reveal:nth-child(5) {
  transition-delay: 0.4s;
}

.reveal-stagger>.reveal:nth-child(6) {
  transition-delay: 0.5s;
}

.reveal-stagger>.reveal:nth-child(7) {
  transition-delay: 0.6s;
}

.reveal-stagger>.reveal:nth-child(8) {
  transition-delay: 0.7s;
}

/* ============================================
   PIGEON INTERACTIONS
   ============================================ */
.wobble-hover {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.wobble-hover:hover {
  animation: wobble 0.5s ease;
}

.wobble-hover:active,
.wobble-hover.pigeon-pop {
  animation: pigeonPop 0.3s ease forwards;
}

@keyframes wobble {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(-5deg); }
  50%  { transform: rotate(5deg); }
  75%  { transform: rotate(-3deg); }
  100% { transform: rotate(0deg); }
}

@keyframes pigeonPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}

/* Pigeon toast stack */
#pigeon-toast-container {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 9000;
  height: 0; /* toasts sit above this anchor via negative translateY */
}

.pigeon-toast {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 280px;
  text-align: center;
  background: var(--bg);
  color: var(--primary);
  border: 1.5px solid var(--primary);
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  padding: 0.65rem 1.4rem;
  transition: transform 0.25s ease, opacity 0.25s ease;
  will-change: transform, opacity;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 600px) {
  .section {
    padding: 2rem 1.25rem;
  }

  .pigeon-stage {
    height: 200px;
  }

  .pigeon-solo {
    width: 100px;
  }

  .pigeon-kiss {
    width: 200px;
  }

  .announcement-composite {
    padding: 1.5rem 0;
    max-width: 100%;
  }

  .flower-side {
    width: 49px;
  }

  .announcement-text .hero-names {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }
}

/* Flower pairs — hidden by default, shown on very narrow screens */
.flower-pair {
  display: none;
  flex-direction: row;
  justify-content: center;
  gap: 0;
}

.flower-pair-img--a,
.flower-pair-img--b {
  /* Square box so the rotated image never escapes its layout area */
  width: 30.8vw;
  height: 30.8vw;
  object-fit: contain;
  flex-shrink: 0;
}

/* Top pair: img-b flipped horizontally then rotated, swapped to left position */
.flower-pair--top .flower-pair-img--a {
  transform: rotate(90deg);
  order: 2;
}

.flower-pair--top .flower-pair-img--b {
  transform: rotate(-90deg) scaleX(-1); /* scaleX(-1) applied first, then rotate */
  order: 1;
}

/* Bottom pair: img-b flipped horizontally then rotated, swapped to left position */
.flower-pair--bottom .flower-pair-img--a {
  transform: scaleY(-1) rotate(90deg);
  order: 2;
}

.flower-pair--bottom .flower-pair-img--b {
  transform: scaleY(-1) rotate(-90deg) scaleX(-1); /* scaleX(-1) applied first, then rotate, then scaleY */
  order: 1;
}

/* ============================================
   FLAPPY PIGEON EASTER EGG
   ============================================ */
#flappy-overlay {
  position: fixed;
  inset: 0;
  background: rgba(224, 91, 55, 0.12);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

#flappy-overlay[hidden] {
  display: none;
}

#flappy-modal {
  background: var(--bg);
  border: 1.5px solid var(--primary-light);
  display: flex;
  flex-direction: column;
  width: 94vw;
  height: 92vh;
  overflow: hidden;
}

#flappy-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--primary-light);
  flex-shrink: 0;
}

#flappy-score {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--primary);
  letter-spacing: 0.1em;
  min-width: 2ch;
}

#flappy-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--primary);
  cursor: pointer;
  font-family: var(--font-serif);
  line-height: 1;
  padding: 0;
  opacity: 0.7;
  transition: opacity 0.15s;
}

#flappy-close:hover {
  opacity: 1;
}

#flappy-canvas {
  display: block;
  width: 100%;
  height: 100%;
  flex: 1;
  min-height: 0;
}

@media (max-width: 360px) {
  .announcement-composite {
    flex-direction: column;
    align-items: center;
    padding: 0;
    gap: 0;
  }

  .flower-side {
    display: none;
  }

  .flower-pair {
    display: flex;
  }
}