/* =====================================================
   Story section — cursive header + two columns
   Left: text | Right: oval + two overlapping polaroids
   ===================================================== */

.paper-card--story {
  align-items: center;
  justify-content: center;
  padding: 5rem 3.5rem;
}

/* Big cursive title — now matches the base h2 ImperialScript style */
.story-big-title {
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(49, 26, 4, 0.92);
  line-height: 1.1;
  margin-bottom: 2.4rem;
  text-align: center;
  width: 100%;
}

/* Two-column layout */
.story-two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: start;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

/* Left: story text */
.story-text-body {
  font-family: "FjordOne-Regular", Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.9;
  color: rgba(42, 33, 22, 0.68);
}

.story-text-body p + p {
  margin-top: 1.1rem;
}

.story-closing {
  font-style: italic;
  color: rgba(90, 76, 52, 0.85);
  font-size: 0.95rem;
  margin-top: 1.6rem !important;
}

/* ── Right photo column ── */
.story-photo-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Big oval — taller and narrower for a proper oval look */
.story-oval-wrap {
  width: 72%;
  aspect-ratio: 9/12;
  border-radius: 48%;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0,0,0,0.18);
  position: relative;
  z-index: 1;
  align-self: center;
}

.story-oval-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
  filter: none;
}

/* Polaroid row — pulled up to overlap the oval's bottom */
.story-polaroids-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: -80px;
  position: relative;
  z-index: 3;
  width: 110%;
  padding: 0;
  gap: 0;
}

/* Polaroid card */
.story-polaroid {
  background: none;
  padding: 0;
  box-shadow: none;
  width: 52%;
  max-width: 190px;
  transition: transform 0.35s ease;
  flex-shrink: 0;
}

.story-polaroid:hover {
  z-index: 5;
}

.story-polaroid img {
  width: 100%;
  height: auto;
  display: block;
  filter: none;
}

/* Asymmetric: left one lower and more tilted, right one higher */
.story-polaroid--1 {
  transform: rotate(-5deg) translate(-12px, 28px);
  z-index: 3;
}
.story-polaroid--1:hover { transform: rotate(0deg) translate(-12px, 28px) scale(1.04); }

.story-polaroid--2 {
  transform: rotate(3.5deg) translate(8px, -8px);
  z-index: 2;
  overflow: hidden;
}
.story-polaroid--2:hover { transform: rotate(0deg) translate(8px, -8px) scale(1.04); }

.story-polaroid--2 img {
  transform: scale(1.1);
  transform-origin: center center;
}

/* Mobile — photos on top, text collapsible below */
@media (max-width: 800px) {
  .paper-card--story { padding: 2.5rem 1.4rem 3.5rem; }

  .story-big-title {
    font-size: clamp(2.4rem, 10vw, 3.5rem);
    margin-bottom: 1.8rem;
  }

  .story-two-col {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Photos go first on mobile */
  .story-photo-col {
    order: -1;
    margin-bottom: 2.2rem;
  }

  .story-oval-wrap { width: 60%; }

  .story-polaroids-row { width: 100%; }

  .story-polaroid { max-width: 120px; padding: 7px 7px 28px; }
  .story-polaroid--1 { max-width: 135px; }

  /* Collapsible text — show ~5 lines before cutting off */
  .story-text-body {
    position: relative;
    max-height: 9.5rem;
    overflow: hidden;
    transition: max-height 0.55s ease;
  }

  .story-text-body.is-expanded {
    max-height: 2000px;
  }

  /* Fade out at the bottom when collapsed */
  .story-text-body::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3.5rem;
    background: linear-gradient(to bottom, transparent, var(--story-bg, #faf8f4));
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .story-text-body.is-expanded::after {
    opacity: 0;
  }

  /* Toggle button — plain text + arrow style */
  .story-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    background: none;
    border: none;
    padding: 0;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-dark);
    cursor: pointer;
    font-family: var(--font-serif);
    font-style: italic;
    opacity: 0.85;
    transition: opacity 0.2s ease;
  }

  .story-toggle-btn:hover { opacity: 1; }

  .story-toggle-btn .btn-arrow {
    display: inline-block;
    font-style: normal;
    font-size: 1rem;
    transition: transform 0.35s ease;
    line-height: 1;
  }

  .story-toggle-btn.is-expanded .btn-arrow {
    transform: rotate(180deg);
  }
}

/* Hide toggle button on desktop */
@media (min-width: 801px) {
  .story-toggle-btn { display: none; }
}


/* ── Hotel section — single centered block ── */
.hotel-grid {
  grid-template-columns: 1fr;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* RSVP lead + travel copy */
.travel-copy { margin-top: 0.6rem; }
.rsvp-lead {
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
}

.rsvp-lead .accent {
  color: rgba(49, 26, 4, 0.92);
}

/* Story signature */
.story-signature {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(49, 26, 4, 0.92);
  margin-top: 1.4rem;
  letter-spacing: 0.03em;
}

/* Mexico City Cards */
.mexico-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-content: center;
  gap: 1.4rem;
  margin-top: 1.8rem;
  width: 100%;
}

.mexico-card {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  padding: 1.2rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.mexico-card--full {
  grid-column: 1 / -1;
}

.mexico-card-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.mexico-card-icon svg {
  width: 2.4rem;
  height: 2rem;
  color: var(--accent);
  display: block;
  margin: 0 auto 0.3rem;
}

.mexico-card .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
  margin-bottom: 0.7rem;
}

.mexico-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mexico-card-list li {
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 0.4rem;
  color: var(--text-color);
}

.mexico-card-list li strong {
  color: var(--accent-dark);
}

.mexico-card p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-color);
  margin: 0;
}

/* Responsive */
@media (max-width: 600px) {
  .mexico-cards {
    grid-template-columns: 1fr;
  }

  .mexico-card--full,
  .flip-card--full {
    grid-column: 1;
  }
}

@media (min-width: 601px) and (max-width: 960px) {
  .mexico-cards {
    grid-template-columns: 1fr 1fr;
  }
  .flip-card--full {
    grid-column: 1 / -1;
  }
}

/* Simplified invitation section */
.invitation-formal--simple {
  text-align: center;
  width: 100%;
}

.invite-request.invite-request--big {
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-style: italic;
  font-size: clamp(2rem, 2vw, 2.4rem);
  line-height: 1.35;
  color: rgba(49, 26, 4, 0.92);
  text-align: center;
  letter-spacing: 0.01em;
  width: 100%;
  display: block;
  
}

/* Flip Card Animation */
.flip-card {
  background-color: transparent;
  height: 380px;
  width: 100%;
  perspective: 1000px;
  cursor: pointer;
  touch-action: pan-y; /* let vertical swipes scroll the page, not block them */
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card.flipped .flip-card-front {
  visibility: hidden;
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 8px;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.flip-card-front {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background-size: cover;
  background-position: center;
}

.flip-card-front .label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fff;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

/* Per-card background images */
.mexico-cards .flip-card:nth-child(1) .flip-card-front {
  background-image: linear-gradient(rgba(255,245,230,0.45), rgba(255,235,200,0.45)),
    url("../images/BG-PUJOL.jpg");
}
.mexico-cards .flip-card:nth-child(2) .flip-card-front {
  background-image: linear-gradient(rgba(230,235,245,0.45), rgba(210,220,240,0.45)),
    url("../images/BG-SOUMAYA.jpg");
}
.mexico-cards .flip-card:nth-child(3) .flip-card-front {
  background-image: linear-gradient(rgba(245,235,240,0.45), rgba(235,220,230,0.45)),
    url("../images/BG-SALON.jpg");
}

.flip-card-back {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.1);
  transform: rotateY(180deg);
  text-align: left;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  overflow-y: auto;
  overscroll-behavior: contain; /* don't propagate scroll to the page when card back reaches its limit */
  padding: 1.4rem;
  gap: 0;
}

.flip-card-back .card-back-title {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-dark);
  padding-bottom: 0.55rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(184, 154, 90, 0.3);
  flex-shrink: 0;
}

.flip-card-back .mexico-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.flip-card-back .mexico-card-list li {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.85rem;
}

.flip-card-back .mexico-card-list li:last-child {
  margin-bottom: 0;
}

/* Venue item row: name left, map link right */
.venue-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}

/* Category sub-header inside the flip card back */
.venue-category {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-family: "FjordOne-Regular", Georgia, serif;
  padding: 0.55rem 0 0.35rem;
  border-bottom: 1px solid rgba(184, 154, 90, 0.22);
  margin-bottom: 0.5rem;
  margin-top: 0.3rem;
}

.venue-category:first-of-type {
  margin-top: 0;
}

/* Map link — styled as a small pill button */
.venue-map-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 101, 53, 0.45);
  background: transparent;
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-family: "FjordOne-Regular", Georgia, serif;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  line-height: 1;
}

.venue-map-link:hover {
  background: rgba(125, 101, 53, 0.1);
  border-color: var(--accent-dark);
}

.venue-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-dark);
  line-height: 1.3;
}

.venue-desc {
  font-size: 0.72rem;
  color: rgba(42, 33, 22, 0.58);
  font-style: italic;
  margin-top: 0.1rem;
  line-height: 1.4;
}

.venue-activity-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.venue-activity-link {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 101, 53, 0.55);
  background: rgba(125, 101, 53, 0.06);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-family: "FjordOne-Regular", Georgia, serif;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
  line-height: 1;
}

.venue-activity-link:hover {
  background: rgba(125, 101, 53, 0.15);
  border-color: var(--accent-dark);
}

.flip-card-back p {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-color);
  margin: 0;
}

.flip-card--full {
  grid-column: auto;
}

/* 2-column list for the full-width salons card on desktop */
@media (min-width: 601px) {
  .flip-card--full .flip-card-back .mexico-card-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.3rem 1.8rem;
  }
}

.flip-card:hover .flip-card-inner {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Touch-device hint — visible on phones/tablets, hidden on hover-capable devices */
.flip-tap-hint {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  font-family: "FjordOne-Regular", Georgia, serif;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* Hide on devices that support hover (desktop) */
@media (hover: hover) {
  .flip-tap-hint { display: none; }
}

/* Hide once the card has been flipped */
.flip-card.flipped .flip-tap-hint {
  opacity: 0;
}

/* =========================================================
   Honeymoon Fund modal
   ========================================================= */

.honeymoon-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.honeymoon-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  cursor: pointer;
}

.honeymoon-modal-box {
  position: relative;
  width: min(92vw, 560px);
  max-height: 90vh;
  overflow-y: auto;
  background: #faf8f4;
  border-radius: 12px;
  padding: 2.8rem 2.4rem 2rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.honeymoon-modal-title {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 3vw, 1.45rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
  text-align: center;
  margin: 0;
}

.honeymoon-modal-intro {
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(42, 33, 22, 0.62);
  text-align: center;
  margin: 0;
}

/* ── Payment tabs ── */

.payment-tabs {
  display: flex;
  border-bottom: 1px solid rgba(184, 154, 90, 0.25);
  gap: 0;
}

.payment-tab {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 0.6rem 1rem;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-family: "FjordOne-Regular", Georgia, serif;
  color: rgba(42, 33, 22, 0.45);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.payment-tab:hover {
  color: var(--accent-dark);
}

.payment-tab--active {
  color: var(--accent-dark);
  border-bottom-color: var(--accent-dark);
}

/* Stacks both panels in the same grid cell so the modal never shrinks */
.payment-panels {
  display: grid;
}

.payment-panel {
  grid-area: 1 / 1;
  visibility: visible;
}

.payment-panel--hidden {
  visibility: hidden;
  pointer-events: none;
}

/* ── Payment section (US / International) ── */

.payment-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.payment-section-label {
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-family: "FjordOne-Regular", Georgia, serif;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(184, 154, 90, 0.25);
}

.payment-section-note {
  font-size: 0.8rem;
  line-height: 1.7;
  color: rgba(42, 33, 22, 0.55);
  font-style: italic;
  margin: 0;
}

/* ── Individual payment option ── */

.payment-option {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(184, 154, 90, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  flex-wrap: wrap;
  transition: background 0.22s ease, border-color 0.22s ease;
}

.payment-option:hover {
  background: rgba(184, 154, 90, 0.08);
  border-color: rgba(184, 154, 90, 0.55);
}

.payment-option-name {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-family: "FjordOne-Regular", Georgia, serif;
  min-width: 54px;
  flex-shrink: 0;
}

.payment-option-handle {
  font-size: 0.85rem;
  color: rgba(42, 33, 22, 0.75);
  font-family: "Courier New", Courier, monospace;
  flex: 1;
  word-break: break-all;
}

.payment-option-handle--zelle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.payment-option-btn {
  padding: 0.5rem 1.1rem;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  margin-top: 0;
  flex-shrink: 0;
  white-space: nowrap;
}

.payment-option-note {
  width: 100%;
  font-size: 0.78rem;
  color: rgba(42, 33, 22, 0.52);
  margin: 0;
  line-height: 1.5;
}

/* ── Zelle copy button (inherits .payment-option-btn styles) ── */

.zelle-copy-btn {
  cursor: pointer;
}

/* ── Divider ── */

.payment-divider {
  height: 1px;
  background: rgba(184, 154, 90, 0.2);
  margin: 0;
}

/* ── Bottom close link ── */

.payment-close-link {
  display: block;
  margin: 0 auto;
  background: none;
  border: none;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(120, 104, 78, 0.6);
  font-family: "FjordOne-Regular", Georgia, serif;
  cursor: pointer;
  padding: 0.4rem 0;
  transition: color 0.2s ease;
}

.payment-close-link:hover { color: var(--accent-dark); }

/* ── Mobile ── */

@media (max-width: 480px) {
  .honeymoon-modal-box {
    padding: 2rem 1.4rem 1.6rem;
  }
  .payment-option {
    flex-direction: column;
    align-items: flex-start;
  }
  .payment-option-btn {
    width: 100%;
    text-align: center;
  }
}

