/* ==========================================================================
   TA PORCHE & BRIANNE — 3D OPENING DOORS & FORMAL BLACK-TIE INVITATION STYLES
   Inspired by & upgraded from webgency.tilda.ws/taporchebrianne
   ========================================================================== */

:root {
  --bg-ivory: #fffcf5;
  --bg-cream: #f7f1e3;
  --bg-white: #ffffff;
  --gold-primary: #b9a149;
  --gold-dark: #8f792c;
  --gold-soft: rgba(185, 161, 73, 0.15);
  --taupe: #b3998d;
  --silver: #cbcbcb;
  --charcoal: #757575;
  --black-formal: #18181b;
  --text-dark: #22201d;
  --text-body: #4a453e;
  --text-muted: #7a7368;
  --border-gold: rgba(185, 161, 73, 0.36);
  --shadow-soft: 0 14px 40px rgba(34, 32, 29, 0.08);
  --shadow-card: 0 22px 55px rgba(34, 32, 29, 0.14);
  --font-serif: 'Rufina', 'Cormorant Garamond', 'Georgia', serif;
  --font-display: 'Playfair Display', 'Times New Roman', serif;
  --font-script: 'Great Vibes', cursive;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ==========================================================================
   TOP FLOATING TOOLBAR (Language Switcher & Custom Guest Link)
   ========================================================================== */
.top-floating-bar {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill-btn {
  background: rgba(255, 252, 245, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-gold);
  color: var(--text-dark);
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.pill-btn:hover {
  background: var(--gold-primary);
  color: #fff;
  border-color: var(--gold-primary);
  transform: translateY(-1px);
}

/* ==========================================================================
   SECTION 1: 3D OPENING DOORS & HERO PORTRAIT (REC 1327378621 & 1329462801)
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 0 0 60px;
  overflow: hidden;
  text-align: center;
}

.doors-stage {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  min-height: 760px;
  perspective: 1600px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 3D Doors Overlay */
.doors-overlay {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  height: 760px;
  z-index: 15;
  display: flex;
  justify-content: center;
  perspective: 1500px;
  pointer-events: auto;
  transition: pointer-events 0s 2.2s;
}

.doors-opened .doors-overlay {
  pointer-events: none;
}

.door-panel {
  width: 50%;
  height: 100%;
  transition: transform 2.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 1.8s ease 0.6s;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

.door-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,0.18));
}

.left-door {
  transform-origin: left center;
  transform: rotateY(0deg);
}

.right-door {
  transform-origin: right center;
  transform: rotateY(0deg);
}

.doors-opened .left-door {
  transform: rotateY(-106deg);
  opacity: 0.12;
}

.doors-opened .right-door {
  transform: rotateY(106deg);
  opacity: 0.12;
}

.discover-btn-wrap {
  position: absolute;
  top: 66%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.doors-opened .discover-btn-wrap {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -40%) scale(0.9);
}

.discover-btn {
  background: linear-gradient(135deg, #c7af57 0%, #9a812e 100%);
  color: #ffffff;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px rgba(154, 129, 46, 0.45), 0 0 0 6px rgba(185, 161, 73, 0.2);
  animation: pulseDoorBtn 2.4s infinite ease-in-out;
  white-space: nowrap;
}

@keyframes pulseDoorBtn {
  0%, 100% { box-shadow: 0 10px 30px rgba(154, 129, 46, 0.45), 0 0 0 4px rgba(185, 161, 73, 0.2); }
  50% { box-shadow: 0 14px 36px rgba(154, 129, 46, 0.65), 0 0 0 12px rgba(185, 161, 73, 0.05); }
}

.hero-underneath {
  width: 100%;
  max-width: 520px;
  margin: 28px auto 0;
  padding: 0 18px;
  z-index: 2;
}

.hero-invite-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: var(--gold-soft);
  padding: 6px 18px;
  border-radius: 99px;
  margin-bottom: 10px;
}

.hero-couple-names {
  font-family: var(--font-script);
  font-size: clamp(3.1rem, 7.5vw, 4.4rem);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.08;
  margin-bottom: 6px;
}

.hero-subline {
  font-size: 1.12rem;
  color: var(--text-body);
  margin-bottom: 18px;
}

.hero-arch-photo {
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
  border-radius: 200px 200px 24px 24px;
  overflow: hidden;
  border: 6px solid #ffffff;
  box-shadow: var(--shadow-card), 0 0 0 1px var(--border-gold);
  aspect-ratio: 3 / 4;
}

.hero-arch-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-swirl-img {
  width: 170px;
  margin: 14px auto;
}

.hero-date-place-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 420px;
  margin: 10px auto 0;
}

.dp-box {
  background: #ffffff;
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 16px 12px;
  box-shadow: var(--shadow-soft);
}

.dp-lbl {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.dp-val {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 2px;
}

.replay-doors-link {
  margin-top: 14px;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  color: var(--gold-dark);
  text-decoration: underline;
  opacity: 0;
  transition: opacity 0.4s;
}

.doors-opened .replay-doors-link {
  opacity: 0.9;
}

/* ==========================================================================
   SECTION 2: WELCOME LETTER & COUNTDOWN (REC 1327378691 & 1327378701)
   ========================================================================== */
.welcome-cd-section {
  padding: 50px 20px 65px;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.welcome-card {
  background: #ffffff;
  border: 1.5px solid var(--border-gold);
  border-radius: 28px;
  padding: 42px 28px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 44px;
}

.welcome-floral-img {
  width: 175px;
  margin: 0 auto 16px;
}

.guest-greeting-title {
  font-family: var(--font-script);
  font-size: clamp(2.3rem, 5.5vw, 3.1rem);
  color: var(--gold-dark);
  margin-bottom: 12px;
}

.section-script-hdr {
  font-family: var(--font-script);
  font-size: clamp(2.7rem, 6.5vw, 3.6rem);
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 10px;
}

.cd-couple-frame {
  max-width: 380px;
  margin: 18px auto 24px;
  border-radius: 22px;
  overflow: hidden;
  border: 5px solid #ffffff;
  box-shadow: var(--shadow-card);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.cd-tile {
  background: #ffffff;
  border: 1.5px solid var(--border-gold);
  border-radius: 16px;
  padding: 18px 8px;
  box-shadow: var(--shadow-soft);
}

.cd-num {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.5rem);
  font-weight: 700;
  color: var(--gold-dark);
}

.cd-lbl {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-top: 6px;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #c7af57 0%, #9a812e 100%);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(154, 129, 46, 0.3);
  transition: all 0.25s ease;
}

.btn-gold:hover {
  transform: translateY(-2px);
}

.btn-gold-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  color: var(--gold-dark);
  border: 1.5px solid var(--gold-primary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.btn-gold-outline:hover {
  background: var(--gold-primary);
  color: #fff;
}

/* ==========================================================================
   SECTION 3: 10-STOP EVENT TIMELINE (REC 1327378711)
   ========================================================================== */
.timeline-section {
  padding: 60px 20px;
  background: var(--bg-cream);
  text-align: center;
}

.timeline-container {
  max-width: 640px;
  margin: 0 auto;
}

.tl-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tl-item {
  background: #ffffff;
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-soft);
}

.tl-item.strict-doors {
  border-color: var(--black-formal);
  background: #faf6eb;
}

.tl-time {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--gold-primary);
  padding: 6px 14px;
  border-radius: 99px;
  min-width: 92px;
}

.tl-item.strict-doors .tl-time {
  background: var(--black-formal);
}

.tl-name {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: left;
  flex: 1;
}

/* ==========================================================================
   SECTION 4: FORMAL BLACK DRESS CODE & 9-PHOTO GRID (REC 1329512901)
   ========================================================================== */
.dresscode-section {
  padding: 65px 20px;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.dc-swatches {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 20px 0 28px;
}

.dc-swatch {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.dc-grid-9 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.dc-photo-card {
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid #ffffff;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 3 / 4;
}

.dc-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   SECTION 5: VENUE & PLANNER DETAILS (REC 1327378741 - 1327378771)
   ========================================================================== */
.venue-org-section {
  padding: 60px 20px;
  background: var(--bg-cream);
  text-align: center;
}

.venue-org-container {
  max-width: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.info-card {
  background: #ffffff;
  border: 1.5px solid var(--border-gold);
  border-radius: 24px;
  padding: 32px 22px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.copy-row-tp {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-ivory);
  border: 1px dashed var(--gold-primary);
  padding: 9px 12px;
  border-radius: 10px;
  margin-top: 10px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
}

.copy-tp-btn {
  background: var(--gold-primary);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
}

/* ==========================================================================
   SECTION 6: QUESTIONS & ANSWERS ACCORDION (REC 1329960781 & 1329961851)
   ========================================================================== */
.faq-section {
  padding: 65px 20px;
  max-width: 680px;
  margin: 0 auto;
}

.faq-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  overflow: hidden;
}

.faq-q-btn {
  width: 100%;
  padding: 18px 22px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
}

.faq-plus {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-plus {
  transform: rotate(45deg);
  background: var(--gold-primary);
  color: #fff;
}

.faq-ans {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-ans-inner {
  padding: 0 22px 18px;
  font-size: 1.02rem;
  color: var(--text-body);
  border-top: 1px solid rgba(185, 161, 73, 0.15);
  padding-top: 12px;
}

/* ==========================================================================
   SECTION 7: RSVP FORM & 10-PHOTO GALLERY (REC 1327378781 & 1329426911)
   ========================================================================== */
.rsvp-gallery-section {
  padding: 60px 20px 80px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.rsvp-box {
  max-width: 580px;
  margin: 0 auto 60px;
  background: #ffffff;
  border: 2px solid var(--border-gold);
  border-radius: 28px;
  padding: 38px 28px;
  box-shadow: var(--shadow-card);
  text-align: left;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-gold);
  background: var(--bg-ivory);
  font-family: var(--font-serif);
  font-size: 1rem;
}

.radio-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-ivory);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-gold);
  cursor: pointer;
}

.qr-tp-pass {
  display: none;
  margin-top: 20px;
  background: var(--bg-ivory);
  border: 2px solid var(--gold-primary);
  border-radius: 16px;
  padding: 16px;
}

.qr-tp-pass.active {
  display: block;
}

.qr-tp-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.qr-tp-img {
  width: 100px;
  height: 100px;
  background: #fff;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--border-gold);
}

/* 10-Photo Couple Gallery Grid */
.couple-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.gal-item {
  border-radius: 18px;
  overflow: hidden;
  border: 3px solid #ffffff;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 3 / 4;
}

.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gal-item:hover img {
  transform: scale(1.05);
}

/* ==========================================================================
   SECTION 8: FOOTER & FLOATING AUDIO (REC 1327378791)
   ========================================================================== */
.footer-section {
  padding: 55px 20px 90px;
  text-align: center;
  border-top: 1px solid var(--border-gold);
  background: #ffffff;
}

.footer-floral-img {
  width: 185px;
  margin: 0 auto 16px;
}

.floating-audio-btn {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--gold-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9400;
  box-shadow: 0 8px 24px rgba(154, 129, 46, 0.42);
  border: 2px solid #ffffff;
}

.custom-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 24, 27, 0.65);
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.custom-modal-backdrop.open {
  display: flex;
}

.custom-modal-box {
  background: #ffffff;
  border: 2px solid var(--border-gold);
  border-radius: 22px;
  max-width: 460px;
  width: 100%;
  padding: 30px 24px;
  position: relative;
  text-align: left;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-ivory);
  font-size: 1.2rem;
}

@media (max-width: 680px) {
  .doors-stage,
  .doors-overlay {
    min-height: 620px;
    height: 620px;
  }
  .venue-org-container {
    grid-template-columns: 1fr;
  }
}
