@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=EB+Garamond:ital,wght@0,400;1,400&family=Tenor+Sans&display=swap');

@font-face {
  font-family: 'Lavishly Yours';
  src: url('./Lavishly_Yours/LavishlyYours-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ─── Variables ─── */
:root {
  --cream:    #eed0ba;
  --blush:    #D7EBF7;
  --rose:     #5EBCE6;
  --deeprose: #2E7BA4;
  --sage:     #b5bfaa;
  --deepsage: #6e7c65;
  --gold:     #C85C3A;
  --ink:      #3a2c2e;
  --ink-soft: #6b5356;
}

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

html { scroll-behavior: smooth; }

body {
  background: url('flowerbackground.png') center/cover no-repeat;
  background-attachment: fixed;
  color: var(--ink);
  font-family: 'EB Garamond', Georgia, serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── Page Background Texture ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle 24% at 12% 12%, rgba(181,191,170,0.18) 0%, transparent 38%),
    radial-gradient(circle 18% at 80% 18%, rgba(200,169,110,0.16) 0%, transparent 42%),
    radial-gradient(circle 36% at 42% 48%, rgba(200,169,110,0.08) 0%, transparent 72%),
    radial-gradient(circle 45% at 68% 76%, rgba(181,191,170,0.10) 0%, transparent 62%);
  pointer-events: none;
  z-index: 0;
}

/* ─── Main wrapper ─── */
.invitation-wrapper {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 60px auto;
  padding: 0 24px 80px;
}

/* ─── Card ─── */
.card {
  background: rgba(255,255,255,0.7);
  box-shadow:
    0 2px 6px rgba(155,84,89,0.2),
    0 12px 48px rgba(155,84,89,0.3),
    inset 0 0 0 8px rgb(226, 195, 163);
  padding: 60px 56px 70px;
  position: relative;
  text-align: center;
  animation: fadeUp 1.2s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Floral SVG header ─── */
.floral-top {
  width: 340px;
  max-width: 90%;
  margin: 0 auto 28px;
  display: block;
  opacity: 0;
  animation: fadeIn 1.6s 0.3s ease forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ─── Preamble ─── */
.preamble {
  font-family: 'Tenor Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 18px;
  opacity: 0;
  animation: fadeIn 1s 0.6s ease forwards;
}

/* ─── Names ─── */
.names {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15em;
  font-family: 'Lavishly Yours', cursive;
  font-size: clamp(4rem, 9vw, 6rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--deeprose);
  margin-bottom: 10px;
  opacity: 0;
  animation: fadeIn 1s 0.85s ease forwards;
}
.names .ampersand {
  font-style: italic;
  font-size: 1.2em;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin: 0;
}

/* ─── Divider ─── */
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px auto;
  max-width: 300px;
  opacity: 0;
  animation: fadeIn 1s 1.05s ease forwards;
}
.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.divider-icon {
  font-size: 1rem;
  color: var(--gold);
}

/* ─── Intro verse ─── */
.verse {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto 28px;
  opacity: 0;
  animation: fadeIn 1s 1.2s ease forwards;
}

.image-section {
  margin: 26px auto 32px;
  max-width: 680px;
}

.image-section img {
  width: 100%;
  display: block;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(58, 44, 46, 0.12);
}

/* ─── Couple full names ─── */
.full-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 2;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeIn 1s 1.35s ease forwards;
}
.full-names .label {
  font-family: 'Tenor Sans', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--deepsage);
  display: block;
  margin-top: 2px;
}

/* ─── Details block ─── */
.details {
  background: rgba(242,215,213,0.22);
  border-top: 1px solid rgba(200,169,110,0.3);
  border-bottom: 1px solid rgba(200,169,110,0.3);
  padding: 28px 20px;
  margin: 32px 0;
  opacity: 0;
  animation: fadeIn 1s 1.5s ease forwards;
}
.detail-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.detail-item {
  min-width: 120px;
}
.detail-item .d-label {
  font-family: 'Tenor Sans', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--deeprose);
  margin-bottom: 6px;
}
.detail-item .d-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  color: var(--ink);
  line-height: 1.35;
}

.detail-item .d-sub {
  font-size: 1.2rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* ─── RSVP ─── */
.rsvp-block {
  margin-top: 36px;
  opacity: 0;
  animation: fadeIn 1s 1.7s ease forwards;
}
.rsvp-block p {
  font-family: 'Tenor Sans', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--deepsage);
  margin-bottom: 14px;
}
.rsvp-btn {
  display: inline-block;
  padding: 14px 44px;
  border: 1.5px solid var(--deeprose);
  color: var(--deeprose);
  font-family: 'Tenor Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  position: relative;
  overflow: hidden;
}
.rsvp-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--deeprose);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  z-index: 0;
}
.rsvp-btn:hover::before { transform: scaleX(1); }
.rsvp-btn:hover { color: var(--cream); }
.rsvp-btn span { position: relative; z-index: 1; }

.qr-block {
  margin-top: 20px;
  display: grid;
  gap: 12px;
  justify-items: center;
}
.qr-block p {
  font-family: 'Tenor Sans', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--deepsage);
}
.qr-code-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: rgba(231,216,201,0.95);
  color: var(--ink);
  border: 1px solid rgba(231,216,201,0.95);
  border-radius: 999px;
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.qr-code-link:hover {
  transform: translateY(-1px);
  background: rgba(231,216,201,1);
  box-shadow: 0 12px 24px rgba(60, 38, 40, 0.08);
}
.qr-code {
  width: 190px;
  max-width: 100%;
  border: 1px solid rgba(46,123,164,0.16);
  border-radius: 14px;
  background: white;
  padding: 10px;
}

/* ─── Sections & Separators ─── */
.section {
  margin: 28px 0;
  text-align: center;
}
.section-title {
  font-family: 'Tenor Sans', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--deepsage);
  margin-bottom: 12px;
}
.section-separator {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
  max-width: 100%;
  justify-content: center;
}
.section-separator .sep-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(200,169,110,0.7), transparent);
  max-width: 220px;
}
.section-separator .sep-icon {
  font-size: 0.95rem;
  color: var(--gold);
  padding: 0 8px;
}

.photos-section {
  margin: 32px 0 18px;
  overflow: hidden;
  border-radius: 18px;
}

.photos-section img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  object-fit: cover;
}

.section-photo .qr-block { margin-top: 6px; }
.section-map .map-embed { margin-top: 6px; }

.gift-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.gift-item {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 220px;
  max-width: 420px;
  width: auto;
  padding: 16px 22px;
  border-radius: 999px;
  border: 1px solid rgba(231,216,201,0.95);
  background: rgba(231,216,201,0.95);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.gift-item:hover {
  transform: translateY(-1px);
  background: rgba(231,216,201,1);
  box-shadow: 0 12px 24px rgba(60, 38, 40, 0.08);
}

.gift-label {
  font-family: 'Tenor Sans', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--deepsage);
  margin-bottom: 0;
}

.gift-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.4;
  display: inline-block;
  transform: translateY(-3px)
}

.secret-target {
  cursor: pointer;
}

.simon-hint {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 14px auto 0;
  line-height: 1.6;
}

.simon-reward {
  background: rgba(235,231,209,0.75);
  border: 1px solid rgba(200,169,110,0.35);
  padding: 22px 18px;
  margin-top: 22px;
}

.hidden { display: none !important; }

/* Section description */
.section-desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 12px;
  line-height: 1.5;
}

/* ─── Floral bottom ─── */
.floral-bottom {
  width: 260px;
  max-width: 80%;
  margin: 36px auto 0;
  display: block;
  transform: rotate(180deg);
  opacity: 0;
  animation: fadeIn 1.2s 1.9s ease forwards;
}

/* ─── Dress code tag ─── */
.dress-code {
  margin-top: 40px;
  opacity: 0;
  animation: fadeIn 1s 2s ease forwards;
}
.dress-code p {
  font-family: 'Tenor Sans', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
}
.dress-code strong {
  color: var(--deepsage);
}

.menu-subsection {
  margin-bottom: 8px;
}

.menu-subsection-title {
  font-family: 'Tenor Sans', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #2E7BA4;
  margin-bottom: 12px;
}

/* ─── Responsive ─── */
@media (max-width: 520px) {
  .card { padding: 44px 28px 52px; }
  .detail-row { gap: 28px; }
  .names { font-size: 2.6rem; }
}

.photo-trio-wrapper {
  position: relative;
  width: 100%;
}

.photo-trio-wrapper img {
  display: block;
  width: 100%;
}

.photo-zone {
  position: absolute;
  top: 0;
  height: 100%;
  width: 33.333%;
  cursor: pointer;
}

.photo-zone[data-zone="0"] { left: 0; }
.photo-zone[data-zone="1"] { left: 33.333%; }
.photo-zone[data-zone="2"] { left: 66.666%; }
