/* ============================================================
   WEDHOUSE EVENTS — THANK YOU PAGE
   thankscreen.css
   ============================================================ */

/* ── Design Tokens ── */
:root {
  --rose:       #d4a5b5;
  --rose-pale:  #e8c9d4;
  --rose-deep:  #b85a7a;
  --primary:    #b85a7a;
  --bg:         #0d0810;
  --ease-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-back:  cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* ── Body ── */
.ty-body {
  background: var(--bg);
  font-family: 'DM Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-y: auto;
}

/* ============================================================
   HERO — flex column keeps content truly centred
   ============================================================ */
.ty-hero {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* padding-bottom reserves space so footer never overlaps card */
  padding: 48px 0 96px;
  overflow: hidden;
}

/* ── Background Slideshow ── */
.ty-bg-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ty-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition:
    opacity   1.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 10s  cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}
.ty-slide.active {
  opacity: 1;
  transform: scale(1);
}

/* ── Gradient Overlay ── */
.ty-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(13, 8, 16, 0.50) 0%,
    rgba(13, 8, 16, 0.24) 28%,
    rgba(13, 8, 16, 0.52) 65%,
    rgba(13, 8, 16, 0.92) 100%
  );
}

/* ── Particles Layer ── */
.ty-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.ty-particle {
  position: absolute;
  border-radius: 50%;
  background: var(--rose);
  opacity: 0;
  animation: tyParticleRise var(--dur, 6s) var(--delay, 0s) ease-in infinite;
  will-change: transform, opacity;
}

@keyframes tyParticleRise {
  0%   { opacity: 0;    transform: translateY(0)      scale(0.5); }
  10%  { opacity: 0.55; }
  90%  { opacity: 0.15; }
  100% { opacity: 0;    transform: translateY(-110vh) scale(1.5) rotate(180deg); }
}

/* ============================================================
   CONTENT CARD
   ============================================================ */
.ty-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 24px;
  max-width: 620px;
  width: 100%;
  flex-shrink: 0;
}

/* ── Check Ring ── */
.ty-check-ring {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  opacity: 0;
  animation: checkRingIn 0.85s var(--ease-back) 0.25s forwards;
}

@keyframes checkRingIn {
  from { opacity: 0; transform: scale(0.4) rotate(-20deg); }
  to   { opacity: 1; transform: scale(1)   rotate(0deg);   }
}

.ty-check-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(184, 90, 122, 0.12);
  border: 1px solid rgba(212, 165, 181, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 12px rgba(184, 90, 122, 0.06),
    0 0 0 24px rgba(184, 90, 122, 0.03),
    0 20px 60px rgba(184, 90, 122, 0.25);
  animation: circlePulse 3.2s ease-in-out 1.6s infinite;
}

@keyframes circlePulse {
  0%, 100% {
    box-shadow:
      0 0 0 12px rgba(184, 90, 122, 0.06),
      0 0 0 24px rgba(184, 90, 122, 0.03),
      0 20px 60px rgba(184, 90, 122, 0.25);
  }
  50% {
    box-shadow:
      0 0 0 16px rgba(184, 90, 122, 0.10),
      0 0 0 32px rgba(184, 90, 122, 0.05),
      0 20px 80px rgba(184, 90, 122, 0.38);
  }
}

.ty-checkmark { width: 36px; height: 36px; }

.ty-check-bg {
  stroke: rgba(212, 165, 181, 0.2);
  stroke-width: 1;
}

.ty-check-stroke {
  stroke: var(--rose);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: drawCheck 0.55s cubic-bezier(0.65, 0, 0.35, 1) 1.0s forwards;
}

@keyframes drawCheck {
  from { stroke-dashoffset: 48; }
  to   { stroke-dashoffset: 0;  }
}

/* ── Eyebrow ── */
.ty-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp 0.65s var(--ease-expo) 0.65s forwards;
}

.ty-eyebrow::before,
.ty-eyebrow::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--rose-deep);
  flex-shrink: 0;
}

/* ── Headline ── */
.ty-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(34px, 5.5vw, 60px);
  font-weight: 400;
  line-height: 1.13;
  color: #fff;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 40px rgba(13, 8, 16, 0.6);
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp 0.75s var(--ease-expo) 0.85s forwards;
}

.ty-title em {
  font-style: italic;
  color: var(--rose-pale);
}

/* ── Subtitle ── */
.ty-subtitle {
  font-size: 15.5px;
  line-height: 1.78;
  color: rgba(255, 240, 248, 0.70);
  font-weight: 300;
  margin-bottom: 26px;
  opacity: 0;
  animation: fadeUp 0.75s var(--ease-expo) 1.05s forwards;
}

.ty-subtitle strong {
  color: var(--rose-pale);
  font-weight: 500;
}

/* ── Divider ── */
.ty-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 200px;
  margin: 0 auto 26px;
  opacity: 0;
  animation: fadeIn 0.55s ease 1.25s forwards;
}

.ty-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(212, 165, 181, 0.4),
    transparent
  );
}

.ty-divider-icon {
  color: var(--rose);
  font-size: 10px;
  flex-shrink: 0;
  line-height: 1;
}

/* ── Buttons ── */
.ty-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.75s var(--ease-expo) 1.25s forwards;
}

.ty-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 13px 30px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-expo), box-shadow 0.3s var(--ease-expo);
  box-shadow: 0 8px 32px rgba(184, 90, 122, 0.40);
}

.ty-btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  opacity: 0;
  border-radius: inherit;
  transition: opacity 0.25s;
}

.ty-btn-primary:hover::before { opacity: 1; }
.ty-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(184, 90, 122, 0.52);
}
.ty-btn-primary:active { transform: translateY(-1px); }

.ty-btn-secondary {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.82);
  padding: 13px 30px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  transition: border-color 0.25s, color 0.25s, transform 0.3s var(--ease-expo);
}

.ty-btn-secondary:hover {
  border-color: var(--rose);
  color: var(--rose);
  transform: translateY(-3px);
}
.ty-btn-secondary:active { transform: translateY(-1px); }

/* ── Contact Strip ── */
.ty-contact-strip {
  display: flex;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 6px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  opacity: 0;
  animation: fadeUp 0.75s var(--ease-expo) 1.45s forwards;
}

.ty-contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  flex: 1;
  min-width: 0;
  transition: background 0.25s;
}

.ty-contact-item:hover { background: rgba(255, 255, 255, 0.05); }

.ty-contact-sep {
  width: 1px;
  align-self: stretch;
  background: rgba(255, 255, 255, 0.10);
  flex-shrink: 0;
}

.ty-contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(184, 90, 122, 0.18);
  border: 1px solid rgba(212, 165, 181, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rose);
  flex-shrink: 0;
  transition: background 0.25s, transform 0.3s var(--ease-back);
}

.ty-contact-item:hover .ty-contact-icon {
  background: rgba(184, 90, 122, 0.35);
  transform: scale(1.12) rotate(-8deg);
}

.ty-contact-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
  overflow: hidden;
}

.ty-contact-label {
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.36);
  line-height: 1;
  white-space: nowrap;
}

.ty-contact-text a {
  color: rgba(255, 240, 248, 0.88);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 400;
  transition: color 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.ty-contact-text a:hover { color: var(--rose-pale); }

/* ============================================================
   FOOTER
   FIX: left:0 right:0 width:100% — NO transform on this
   element so fadeIn animation never causes a position jump
   ============================================================ */
.ty-footer-note {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 3;
  text-align: center;
  opacity: 0;
  animation: fadeIn 0.8s ease 1.9s forwards;
}

.ty-logo {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.50);
  text-decoration: none;
  letter-spacing: 0.10em;
  display: block;
  margin-bottom: 5px;
  transition: color 0.2s;
}

.ty-logo:hover { color: rgba(255, 255, 255, 0.90); }
.ty-logo span  { color: var(--rose); }

.ty-footer-note p {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.14em;
}

/* ============================================================
   KEYFRAMES
   Always declare explicit `from` so browsers never infer
   the start state from a mid-transition value
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0);    }
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Short screens */
@media (max-height: 680px) {
  .ty-hero         { padding: 40px 0 84px; }
  .ty-check-ring   { margin-bottom: 20px; }
  .ty-check-circle { width: 64px; height: 64px; }
  .ty-checkmark    { width: 28px; height: 28px; }
  .ty-title        { font-size: 30px; margin-bottom: 12px; }
  .ty-subtitle     { font-size: 14px; margin-bottom: 18px; }
  .ty-actions      { margin-bottom: 22px; }
  .ty-divider      { margin-bottom: 18px; }
}

/* Narrow phones */
@media (max-width: 640px) {
  .ty-hero    { padding-top: 44px; }
  .ty-content { padding: 0 18px; }

  .ty-title {
    font-size: 32px;
    line-height: 1.15;
  }

  .ty-actions {
    flex-direction: column;
    align-items: center;
  }

  .ty-btn-primary,
  .ty-btn-secondary {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .ty-contact-strip { flex-direction: column; }

  .ty-contact-sep {
    width: calc(100% - 36px);
    height: 1px;
    align-self: auto;
    margin: 0 auto;
  }

  .ty-contact-item { padding: 14px 16px; }
  .ty-footer-note  { bottom: 16px; }
}

@media (max-width: 380px) {
  .ty-contact-text a { font-size: 12px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ty-slide,
  .ty-particle { animation: none !important; }

  .ty-check-ring,
  .ty-eyebrow,
  .ty-title,
  .ty-subtitle,
  .ty-divider,
  .ty-actions,
  .ty-contact-strip,
  .ty-footer-note {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .ty-check-stroke {
    animation: none !important;
    stroke-dashoffset: 0 !important;
  }

  .ty-check-circle { animation: none !important; }
  .ty-slide.active { opacity: 1; transform: none; }
}