/* @font-face declarations live in fonts.css (loaded by index.html). */

:root {
  --font-cormorant: 'Cormorant Garamond', Georgia, serif;
  --font-be-vietnam: 'Be Vietnam Pro', system-ui, sans-serif;
  --font-great-vibes: 'greatVibes', cursive;
  --font-montserrat: 'Montserrat', sans-serif;
  --font-inter: 'Inter', system-ui, sans-serif;
  --sh-red: #7E1518;
  --sh-red-bright: #A31E23;
  --sh-red-dark: #4A0A0D;
  --sh-red-deep: #340607;
  --sh-gold: #C9A24B;
  --sh-gold-light: #E6C87E;
  --sh-cream: #F6EDDA;
  --sh-paper: #FFFCF3;
  --sh-ink: #3E2B22;
  --sh-muted: #6B5744;
  --sh-faint: #8A7050;
}

* {
  box-sizing: border-box;
  border-color: rgba(201, 162, 75, 0.3);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #3E2B22;
  font-family: var(--font-be-vietnam);
  overflow-x: hidden;
}

/* Completely lock scroll and hide scrollbar on both html & body while WelcomeModal is open */
html.welcome-active,
body.welcome-active {
  overflow: hidden !important;
  height: 100% !important;
}

/* Exact mountedHiddenStyle from module 64069 */
.mounted-hidden {
  height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* Font utility classes */
.font-cormorant {
  font-family: 'Cormorant Garamond', Georgia, serif;
}
.font-be-vietnam {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif;
}
.font-great-vibes {
  font-family: 'greatVibes', 'Great Vibes', cursive;
}
.font-montserrat {
  font-family: 'Montserrat', sans-serif;
}
.font-inter {
  font-family: 'Inter', system-ui, sans-serif;
}

/* Typography utilities (match source; tailwind-base lacks arbitrary values used here) */
.text-\[8px\] { font-size: 10px; line-height: 1.35; }
.text-\[9px\] { font-size: 10px; line-height: 1.4; }
.text-\[10px\] { font-size: 11px; line-height: 1.45; }
.text-\[10\.5px\] { font-size: 11px; line-height: 1.45; }
.text-\[11px\] { font-size: 12px; line-height: 1.45; }
.text-\[12px\] { font-size: 13px; line-height: 1.55; }
.text-\[12\.5px\] { font-size: 13px; line-height: 1.55; }
.text-\[13px\] { font-size: 14px; line-height: 1.55; }
.text-\[14px\] { font-size: 15px; line-height: 1.55; }
.text-\[15px\] { font-size: 16px; line-height: 1.65; }
.text-\[16px\] { font-size: 16px; line-height: 1.7; }
.text-\[17px\] { font-size: 18px; line-height: 1.4; }
.text-\[18px\] { font-size: 19px; line-height: 1.4; }
.text-\[21px\] { font-size: 22px; line-height: 1.35; }
.text-\[22px\] { font-size: 22px; line-height: 1.25; }
.text-\[24px\] { font-size: 24px; line-height: 1.05; }
.text-\[27px\] { font-size: 27px; line-height: 1.05; }
.text-\[32px\] { font-size: 32px; line-height: 1.12; }
.text-\[34px\] { font-size: 34px; line-height: 1.12; }
.text-\[40px\] { font-size: 40px; line-height: 1.05; }
.text-\[41px\] { font-size: 41px; line-height: 1.12; }
.text-\[42px\] { font-size: 42px; line-height: 1.12; }
.text-\[52px\] { font-size: 52px; line-height: 1.12; }
.text-\[54px\] { font-size: 54px; line-height: 1; }

.leading-\[1\.12\] { line-height: 1.12; }
.leading-\[1\.75\] { line-height: 1.75; }
.leading-\[1\.8\] { line-height: 1.8; }

.tracking-\[\.04em\] { letter-spacing: 0.04em; }
.tracking-\[\.08em\] { letter-spacing: 0.08em; }
.tracking-\[\.1em\] { letter-spacing: 0.1em; }
.tracking-\[\.12em\] { letter-spacing: 0.12em; }
.tracking-\[\.14em\] { letter-spacing: 0.14em; }
.tracking-\[\.15em\] { letter-spacing: 0.15em; }
.tracking-\[\.16em\] { letter-spacing: 0.16em; }
.tracking-\[\.18em\] { letter-spacing: 0.18em; }
.tracking-\[\.2em\] { letter-spacing: 0.2em; }
.tracking-\[\.22em\] { letter-spacing: 0.22em; }
.tracking-\[\.24em\] { letter-spacing: 0.24em; }
.tracking-\[\.25em\] { letter-spacing: 0.25em; }
.tracking-\[\.28em\] { letter-spacing: 0.28em; }
.tracking-\[\.36em\] { letter-spacing: 0.36em; }
.tracking-\[0\.08em\] { letter-spacing: 0.08em; }
.tracking-\[0\.1em\] { letter-spacing: 0.1em; }
.tracking-\[0\.12em\] { letter-spacing: 0.12em; }
.tracking-\[0\.14em\] { letter-spacing: 0.14em; }
.tracking-\[0\.16em\] { letter-spacing: 0.16em; }
.tracking-\[0\.18em\] { letter-spacing: 0.18em; }
.tracking-\[0\.22em\] { letter-spacing: 0.22em; }
.tracking-\[0\.28em\] { letter-spacing: 0.28em; }
.tracking-\[0\.36em\] { letter-spacing: 0.36em; }
.tracking-\[3px\] { letter-spacing: 0.12em; }

/* Exact SH_KEYFRAMES from module 734014 */
@keyframes shy-seal-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(230, 200, 126, 0.45), 0 10px 30px rgba(0, 0, 0, 0.35);
  }
  55% {
    box-shadow: 0 0 0 16px rgba(230, 200, 126, 0), 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

@keyframes shy-knot-sway {
  0%, 100% {
    transform: rotate(-2.4deg);
  }
  50% {
    transform: rotate(2.4deg);
  }
}

@keyframes shy-lantern-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(9px);
  }
}

@keyframes shy-fire-drop {
  0% {
    transform: translateY(-115%) rotate(0);
  }
  62% {
    transform: translateY(0) rotate(2.5deg);
  }
  80% {
    transform: translateY(-3%) rotate(-2deg);
  }
  100% {
    transform: translateY(0) rotate(0);
  }
}

@keyframes shy-fire-shake {
  0%, 100% {
    transform: rotate(-1.6deg);
  }
  50% {
    transform: rotate(1.8deg);
  }
}

@keyframes shy-spark {
  0% {
    transform: scale(0.2);
    opacity: 0;
  }
  25% {
    transform: scale(1.25);
    opacity: 1;
  }
  100% {
    transform: scale(0.1);
    opacity: 0;
  }
}

@keyframes shy-burst {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx), var(--ty)) scale(0.15);
    opacity: 0;
  }
}

@keyframes shy-cue {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.9;
  }
  50% {
    transform: translateY(7px);
    opacity: 0.45;
  }
}

/* Exact WeddingGift keyframes from module 974756 */
@keyframes shy-envelope-float {
  0%, 100% {
    transform: translateY(0) rotate(-1.5deg);
  }
  50% {
    transform: translateY(-8px) rotate(1.5deg);
  }
}

@keyframes shy-envelope-glow {
  0%, 100% {
    opacity: 0.35;
    transform: scale(0.88);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.08);
  }
}

.shy-envelope-float {
  animation: shy-envelope-float 4s ease-in-out infinite;
}

.shy-envelope-glow {
  animation: shy-envelope-glow 3.2s ease-in-out infinite;
}

/* Wiggle animation for Guestbook CTA button */
@keyframes shy-wiggle {
  0%, 100% {
    transform: rotate(0deg);
  }
  20% {
    transform: rotate(-2deg);
  }
  40% {
    transform: rotate(2deg);
  }
  60% {
    transform: rotate(-1deg);
  }
  80% {
    transform: rotate(1deg);
  }
}

.animate-wiggle {
  animation: shy-wiggle 3s ease-in-out infinite;
}

/* ScrollReveal (module 747781) - reveal content as user scrolls */
.sh-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

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

/* Gallery lightbox thumbnail strip */
#lightbox-thumbs {
  scrollbar-width: thin;
  scrollbar-color: rgba(230, 200, 126, 0.45) transparent;
}
#lightbox-thumbs::-webkit-scrollbar { height: 6px; }
#lightbox-thumbs::-webkit-scrollbar-thumb { background: rgba(230, 200, 126, 0.4); border-radius: 999px; }
.sh-lightbox-thumb {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 14px rgba(0,0,0,0.22);
}
.sh-lightbox-thumb:focus {
  outline: 2px solid #E6C87E;
  outline-offset: 1px;
}
.sh-lightbox-thumb:hover {
  opacity: 0.92 !important;
  border-color: rgba(230, 200, 126, 0.55) !important;
}
#gallery-lightbox #lightbox-img {
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
}

@media (prefers-reduced-motion: reduce) {
  .sh-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Falling hearts effect layer */
#falling-hearts-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 30;
  overflow: hidden;
}

.sh-falling-heart {
  position: absolute;
  top: -12%;
  will-change: transform, opacity;
  animation-name: shy-heart-fall;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
  user-select: none;
  line-height: 1;
}

@keyframes shy-heart-fall {
  0% {
    transform: translate3d(0, -10%, 0) rotate(0deg) scale(var(--sh-scale, 1));
    opacity: 0;
  }
  8% {
    opacity: var(--sh-opacity, 0.75);
  }
  100% {
    transform: translate3d(var(--sh-drift, 0px), 115vh, 0) rotate(var(--sh-rot, 180deg)) scale(var(--sh-scale, 1));
    opacity: 0;
  }
}

/* Paper background texture (songHyPaperBackgroundStyle from module 734014) */
.song-hy-paper-bg {
  background-color: #F6EDDA;
  background-image: url('../public/sites/song-hy/static/paper-bg.jpg');
  background-position: top center;
  background-repeat: repeat-y;
  background-size: 100% auto;
}

/* Dot patterns from module 734014 */
.song-hy-dot-pattern {
  background-image: radial-gradient(rgba(163, 30, 35, 0.05) 1px, transparent 1.4px);
  background-size: 26px 26px;
}

.song-hy-dark-dot-pattern {
  background-image: radial-gradient(rgba(230, 200, 126, 0.08) 1px, transparent 1.5px);
  background-size: 24px 24px;
}

/* Welcome Modal Open Transitions (3D Book Opening Right-to-Left) */
#welcome-modal {
  opacity: 1;
  transition: opacity 0.75s ease;
}

#welcome-modal.is-sliding {
  opacity: 0;
  pointer-events: none;
}

. leading-tight-dummy {}

.leading-tight { line-height: 1.35; }
.leading-\[1\.3\] { line-height: 1.3; }
.leading-\[1\.35\] { line-height: 1.35; }
.leading-\[1\.4\] { line-height: 1.4; }
.leading-\[1\.45\] { line-height: 1.45; }
.leading-\[1\.5\] { line-height: 1.5; }
.leading-\[1\.55\] { line-height: 1.55; }
.text-\[19px\] { font-size: 19px; line-height: 1.35; }
.text-\[20px\] { font-size: 20px; line-height: 1.35; }
.text-\[56px\] { font-size: 56px; line-height: 1; }

/* Nút chọn nhà (RSVP / sổ lưu bút) */
.side-choice-btn {
  border: 1px solid #d6d3d1;
  background: #ffffff;
  color: #57534e;
}
.side-choice-btn.is-active {
  border-color: #7e1518;
  background: rgba(126, 21, 24, 0.1);
  color: #7e1518;
}

/* Hover cho mọi button: làm đậm/nhạt màu */
button {
  transition-property: filter, background-color, border-color, color, box-shadow, opacity, transform;
  transition-duration: 180ms;
  transition-timing-function: ease;
}
button:not(:disabled):hover {
  filter: brightness(0.94);
}
button:not(:disabled):active {
  filter: brightness(0.88);
}

/* Cụm "Chạm để mở thiệp": hover vào nút hoặc dòng chữ đều có hiệu ứng */
.seal-hover-group #open-card-btn {
  transition: transform 500ms cubic-bezier(0.34, 1.56, 0.64, 1), filter 500ms ease;
  will-change: transform;
}
.seal-hover-group:hover #open-card-btn,
.seal-hover-group #open-card-btn:hover {
  transform: scale(1.01);
  filter: brightness(1.01) saturate(1.05);
}
.seal-hint {
  color: #a31e23;
  cursor: pointer;
  transition: color 500ms ease, opacity 500ms ease, letter-spacing 500ms ease;
}
.seal-hover-group:hover .seal-hint {
  color: #7e1518;
  opacity: 0.92;
  letter-spacing: 0.26em;
}
.seal-hover-group:hover #open-card-btn > div[aria-hidden="true"] {
  box-shadow: inset 0 0 0 2px rgba(230, 200, 126, 0.8), 0 10px 26px rgba(126, 21, 24, 0.5) !important;
}

/* ==========================================================================
   3D INTERACTIVE EXPERIENCE (Parallax Tilt, Gold Foil Shimmer, 3D Carousel, Gate)
   ========================================================================== */

/* 1. 3D Book Opening (Lật mở từ phải sang trái quanh mép trái, mờ dần hé lộ nội dung thiệp) */
#welcome-modal {
  perspective: 1800px;
  transition: opacity 1.0s cubic-bezier(0.4, 0, 0.2, 1) 0.35s;
  will-change: opacity;
}

#welcome-card {
  position: relative;
  border-radius: 20px;
  padding: 11px;
  transform-origin: 0% 50%;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
  opacity: 1;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(230, 200, 126, 0.4);
  transition: transform 1.85s cubic-bezier(0.32, 0.05, 0.22, 1),
              opacity 1.0s cubic-bezier(0.4, 0, 0.2, 1) 0.35s,
              box-shadow 1.85s ease;
  will-change: transform, opacity;
  overflow: hidden;
}

/* Khi mở thiệp (ngay lúc click): thiệp lật mở chậm rãi sang trái và mờ dần biến mất */
#welcome-modal.is-opening {
  opacity: 0;
  pointer-events: none;
}

#welcome-modal.is-opening #welcome-card {
  transform: perspective(1600px) rotateY(-110deg);
  opacity: 0;
  box-shadow: -20px 25px 60px rgba(0, 0, 0, 0.12);
}



/* 4. 3D Interlocking Wedding Rings Showcase */
.sh-rings-3d-card {
  position: relative;
  margin: 26px auto 4px;
  max-width: 340px;
  border-radius: 18px;
  padding: 14px 12px 12px;
  background: radial-gradient(circle at 50% 35%, rgba(163, 30, 35, 0.55), rgba(52, 6, 7, 0.65));
  border: 1px solid rgba(230, 200, 126, 0.42);
  box-shadow: inset 0 0 24px rgba(230, 200, 126, 0.12), 0 16px 36px rgba(28, 2, 4, 0.35);
  touch-action: pan-y;
}

/* Quick Switch Pill (Nhà Trai / Nhà Gái) - Ngăn rớt dòng trên Mobile */
#demo-quick-switch [data-side-switch] {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  min-width: 96px;
}

#demo-quick-switch [data-side-switch] span {
  white-space: nowrap !important;
}


