/* ==========================================================================
   Post-Wedding Thank You Landing Page
   Builds on the design tokens, header, and buttons defined in style.css
   ========================================================================== */

/* --- Nav: "Wedding Website" pill button --- */
.nav-item.nav-archive a {
  display: inline-block;
  padding: 9px 20px;
  border: 1px solid var(--champagne-gold);
  border-radius: 30px;
  color: var(--gold-dark);
  transition: var(--transition-smooth);
}

.nav-item.nav-archive a::after {
  display: none;
}

.nav-item.nav-archive a:hover {
  background: var(--champagne-gold);
  color: var(--ivory);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.3);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.ty-hero {
  position: relative;
  height: 90vh;
  min-height: 580px;
  max-height: 850px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: var(--ivory);
  background: var(--sage-forest);
}

.ty-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
  /* Natural warm Tuscan sunlight warmth without muddying the shadows */
  filter: sepia(0.12) saturate(1.08) brightness(0.92) contrast(1.02);
}

/* Elegant top gradient behind header & headline; faces stay 100% bright & natural */
.ty-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(27, 45, 35, 0.85) 0%,
      rgba(27, 45, 35, 0.65) 16%,
      rgba(27, 45, 35, 0.35) 30%,
      rgba(27, 45, 35, 0.08) 42%,
      rgba(27, 45, 35, 0) 55%,
      rgba(27, 45, 35, 0.15) 100%);
  pointer-events: none;
  z-index: 1;
}

.ty-hero-content {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 650px;
  margin: 0 auto;
  margin-top: calc(3vh + 70px);
  padding: 0 20px;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.ty-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 5.8vw, 5.6rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.1;
  color: var(--ivory);
  letter-spacing: 0.04em;
  margin: 0;
  /* Deep cinematic shadow and soft warm gold halo for effortless legibility */
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.6),
    0 4px 20px rgba(0, 0, 0, 0.7),
    0 0 35px rgba(212, 175, 55, 0.35);
  opacity: 0;
  animation: ty-rise 1.4s 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ty-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 10px auto 12px;
  max-width: 260px;
  color: var(--champagne-gold);
  opacity: 0;
  animation: ty-fade 1.4s 0.8s ease forwards;
}

.ty-ornament::before,
.ty-ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--champagne-gold), transparent);
}

.ty-ornament span {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-style: italic;
}

.ty-hero-names {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.2vw, 2.2rem);
  font-weight: 400;
  color: var(--ivory);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  opacity: 0;
  animation: ty-rise 1.2s 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ty-hero-names span {
  color: var(--champagne-gold);
  font-style: italic;
}

.ty-hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: ty-rise 1.2s 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.btn-ghost-light {
  background: rgba(250, 250, 247, 0.08);
  color: var(--ivory);
  border: 1px solid rgba(250, 250, 247, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.btn-ghost-light:hover {
  background: var(--ivory);
  color: var(--sage-forest);
  transform: translateY(-2px);
}

.ty-scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 1px solid rgba(250, 250, 247, 0.6);
  border-radius: 14px;
  opacity: 0;
  animation: ty-fade 1s 2s ease forwards;
}

.ty-scroll-cue::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--champagne-gold);
  animation: ty-scroll-dot 2s infinite;
}

/* ==========================================================================
   Thank You Note
   ========================================================================== */
.ty-note-section {
  background: var(--gold-light);
  position: relative;
  overflow: hidden;
}

.ty-note-section::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.14), transparent 70%);
  pointer-events: none;
}

.ty-note-section::after {
  content: '';
  position: absolute;
  bottom: -160px;
  left: -160px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 70, 56, 0.08), transparent 70%);
  pointer-events: none;
}

.ty-note-card {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 70px 70px 60px;
  text-align: center;
  background: rgba(255, 255, 255, 0.7);
}

.ty-note-seal {
  width: 84px;
  height: 84px;
  object-fit: contain;
  margin: -60px auto 26px;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(45, 70, 56, 0.18));
}

.ty-note-card p {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  line-height: 1.75;
  color: var(--charcoal);
  margin-bottom: 22px;
}

.ty-note-card p.ty-note-lead {
  font-size: 1.9rem;
  font-style: italic;
  color: var(--sage-forest);
}

.ty-signature {
  margin-top: 36px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.6rem;
  color: var(--gold-dark);
}

.ty-signature-sub {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-medium);
  margin-top: 6px;
}

/* ==========================================================================
   Memories / Venue Split
   ========================================================================== */
.ty-memory-section {
  background: var(--sage-forest);
  color: var(--ivory);
  overflow: hidden;
}

.ty-memory-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 70px;
  align-items: center;
}

.ty-memory-image-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.ty-memory-image-wrap::after {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(250, 247, 240, 0.45);
  border-radius: 10px;
  pointer-events: none;
}

.ty-memory-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 65%;
  transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ty-memory-image-wrap:hover .ty-memory-image {
  transform: scale(1.05);
}

.ty-memory-text .section-title,
.ty-memory-text .section-subtitle {
  text-align: left;
}

.ty-memory-text .section-title {
  color: var(--ivory);
}

.ty-memory-text .section-title::after {
  margin-left: 0;
}

.ty-memory-text .section-subtitle {
  color: var(--champagne-gold);
  margin-bottom: 30px;
}

.ty-memory-text p {
  color: var(--sage-medium);
  font-size: 1.15rem;
  line-height: 1.85;
  margin-bottom: 18px;
}

.ty-moments {
  list-style: none;
  margin-top: 34px;
  display: grid;
  gap: 14px;
}

.ty-moments li {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 16px 20px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 12px;
  background: rgba(250, 250, 247, 0.04);
  transition: var(--transition-smooth);
}

.ty-moments li:hover {
  background: rgba(250, 250, 247, 0.08);
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateX(6px);
}

.ty-moment-date {
  flex: 0 0 auto;
  min-width: 70px;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--champagne-gold);
  font-weight: 600;
}

.ty-moment-text {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--ivory);
}

/* ==========================================================================
   Honeymoon Fund
   ========================================================================== */
.ty-fund-section {
  background: linear-gradient(180deg, var(--sage-light) 0%, var(--ivory) 100%);
}

.ty-fund-split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  padding: 32px;
  background: var(--glass-bg);
}

.ty-fund-photo-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 16px 36px rgba(45, 70, 56, 0.15);
}

.ty-fund-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(250, 247, 240, 0.5);
  border-radius: 10px;
  pointer-events: none;
}

.ty-fund-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ty-fund-photo-wrap:hover .ty-fund-photo {
  transform: scale(1.04);
}

.ty-fund-content {
  text-align: center;
  padding: 20px 10px;
}

.ty-fund-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold-light);
  border: 1px solid var(--glass-border);
  color: var(--gold-dark);
}

.ty-fund-content p {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.ty-fund-content p em {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--sage-forest);
}

.ty-fund-content .btn {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ty-fund-content .btn svg {
  transition: transform 0.3s ease;
}

.ty-fund-content .btn:hover svg {
  transform: translate(2px, -2px);
}

/* ==========================================================================
   Archive CTA
   ========================================================================== */
.ty-archive-section {
  position: relative;
  padding: 7rem 0;
  text-align: center;
  color: var(--ivory);
  overflow: hidden;
}

.ty-archive-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.ty-archive-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(27, 45, 35, 0.78);
  z-index: 1;
}

.ty-archive-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.ty-archive-content h2 {
  color: var(--ivory);
  font-size: 2.8rem;
  font-style: italic;
  margin-bottom: 16px;
}

.ty-archive-content p {
  color: var(--sage-medium);
  font-size: 1.15rem;
  margin-bottom: 34px;
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.ty-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.ty-reveal.visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Keyframes
   ========================================================================== */
@keyframes ty-slow-zoom {
  from {
    transform: scale(1.08);
  }

  to {
    transform: scale(1);
  }
}

@keyframes ty-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes ty-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes ty-scroll-dot {
  0% {
    opacity: 0;
    transform: translateY(0);
  }

  30% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(14px);
  }
}

@media (prefers-reduced-motion: reduce) {

  .ty-hero-image,
  .ty-eyebrow,
  .ty-hero-title,
  .ty-ornament,
  .ty-hero-names,
  .ty-hero-date,
  .ty-hero-actions,
  .ty-scroll-cue,
  .ty-scroll-cue::after {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .ty-scroll-cue {
    transform: translateX(-50%);
  }

  .ty-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
  .ty-memory-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .ty-memory-image-wrap {
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .ty-hero {
    height: 82vh;
    min-height: 520px;
  }

  .ty-hero-image {
    object-position: center 25%;
  }

  .ty-hero-content {
    margin-top: calc(var(--header-height) + 16px);
    padding: 0 16px;
  }

  .ty-note-card {
    padding: 60px 28px 44px;
  }

  .ty-note-card p {
    font-size: 1.35rem;
  }

  .ty-note-card p.ty-note-lead {
    font-size: 1.6rem;
  }

  .ty-fund-split {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 24px;
    max-width: 520px;
  }

  .ty-fund-photo-wrap {
    max-width: 380px;
    margin: 0 auto;
    width: 100%;
  }

  .ty-archive-content h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  .ty-hero-title {
    font-size: 3.8rem;
  }

  .ty-hero-date {
    font-size: 0.9rem;
    letter-spacing: 0.15em;
  }

  .ty-hero-actions .btn {
    width: 100%;
  }

  .ty-moments li {
    flex-direction: column;
    gap: 4px;
  }
}