/* ==================================================================
   Shebeeb Wafy & Resheeqa Wafiyya — Wedding Invitation
   Vanilla CSS port of the fayis-weds design
   ================================================================== */

/* ---------------------- theme ---------------------- */
:root {
  --color-background: #fbf8f1;
  --color-foreground: #363328;
  --color-primary: #a87f3f;
  --color-secondary: #2f5d4e;
  --color-emerald: #2f5d4e;
  --color-emerald-deep: #22473a;
  --color-muted-foreground: #8a8474;
  --color-gold: #c5a880;
  --color-gold-soft: #dcc9a5;
  --color-card: #fffdf7;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "EB Garamond", Georgia, "Times New Roman", serif;
  --font-script: "Great Vibes", "Segoe Script", cursive;
  --font-names: "Hurricane", "Segoe Script", cursive;
  --font-label: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-arabic: "Amiri", "Traditional Arabic", serif;
  --font-corinthia: "Corinthia", cursive;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: rgba(197, 168, 128, 0.35);
  color: #363328;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f4efe3;
}
::-webkit-scrollbar-thumb {
  background: #c5a880;
  border-radius: 999px;
  border: 3px solid #f4efe3;
}

img {
  max-width: 100%;
}

.text-center {
  text-align: center;
}

/* ---------------------- layout ---------------------- */
.main {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
  padding: 6rem 1.25rem 5rem;
  opacity: 0;
  transition: opacity 1.2s ease;
}

body.ready .main {
  opacity: 1;
}

@media (min-width: 640px) {
  .main {
    padding-top: 8rem;
  }
}

/* ---------------------- ambient background ---------------------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -10;
  pointer-events: none;
}

.ambient-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(197, 168, 128, 0.10), transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(47, 93, 78, 0.08), transparent 50%),
    var(--color-background);
}

#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

/* ---------------------- corner florals ---------------------- */
.corner-img {
  position: absolute;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.85;
  z-index: 1;
}

.corner-top-left {
  top: 0;
  left: 0;
  width: min(52vw, 260px);
}

.corner-top-right {
  top: 0;
  right: 0;
  width: min(52vw, 260px);
}

@media (min-width: 640px) {
  .corner-top-left,
  .corner-top-right {
    width: min(52vw, 440px);
  }
}

/* ---------------------- loading screen ---------------------- */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fcfaf5;
  transition: opacity 1s ease;
}

.loading-screen.fading {
  pointer-events: none;
  opacity: 0;
}

.loading-floral {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  max-width: none;
  height: clamp(190px, 34vw, 390px);
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
  transform: translateX(-50%);
  animation: floral-focus-in 2.2s ease-out both;
}

@media (min-width: 900px) {
  .loading-floral {
    width: 40%;
    height: auto;
    object-fit: contain;
  }
}

.loading-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loading-monogram {
  font-family: var(--font-script);
  font-size: 4rem;
  line-height: 1;
  color: var(--color-gold);
  animation: fade-in 2.5s ease both;
}

.loading-divider {
  margin: 1.5rem auto 1rem;
  width: 10rem;
}

.loading-bismillah {
  font-family: var(--font-arabic);
  font-size: 1.35rem;
  color: rgba(197, 168, 128, 0.85);
  margin: 0 0 0.75rem;
  letter-spacing: 0.05em;
}

.loading-diamond {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(197, 168, 128, 0.45);
  transform: rotate(45deg);
}

/* ---------------------- header ---------------------- */
.bismillah {
  font-family: var(--font-arabic);
  color: var(--color-primary);
  font-size: 1.5rem;
  line-height: 1.75;
  margin: 0;
}

@media (min-width: 640px) {
  .bismillah {
    font-size: 1.875rem;
  }
}

.bismillah-translation {
  font-family: var(--font-body);
  color: var(--color-muted-foreground);
  font-size: 0.875rem;
  font-style: italic;
  margin: 0.5rem 0 0;
}

.families-label {
  font-family: var(--font-label);
  color: var(--color-secondary);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  margin: 1.5rem 0 0;
}

.invite-label {
  font-family: var(--font-label);
  color: var(--color-muted-foreground);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin: 1rem 0 0;
}

.persons {
  position: relative;
  margin: 1.5rem auto 0;
  max-width: 48rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin: 0.5rem 0;
}

.person-name {
  font-family: var(--font-names);
  font-weight: 400;
  font-size: 5rem;
  line-height: 0.82;
  color: var(--color-emerald);
  text-shadow: 0 1px 2px rgba(47, 93, 78, 0.08);
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .person-name {
    font-size: 6.5rem;
    line-height: 1;
  }
}

@media (min-width: 1024px) {
  .person-name {
    font-size: 7.5rem;
  }
}

.person-name .name-line {
  display: block;
  opacity: 0;
  transform: translateY(0.12em);
  filter: blur(2px);
  will-change: opacity, transform, filter;
  animation: name-line-in 700ms ease-out forwards;
}

.person-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  width: 100%;
}

.person-relation {
  font-family: var(--font-corinthia);
  color: var(--color-gold);
  font-size: 1.6rem;
  margin: 0 0 0.25rem;
}

.person-parents {
  font-family: var(--font-corinthia);
  color: var(--color-emerald);
  font-size: 1.6rem;
  margin: 0;
}

@media (min-width: 768px) {
  .person-relation,
  .person-parents {
    font-size: 1.875rem;
  }
}

.name-separator {
  margin: 1rem 0;
  width: 100%;
  max-width: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.sep-side {
  flex: 1;
  display: flex;
  align-items: center;
}

.sep-side.sep-right {
  justify-content: flex-end;
}

.sep-side.sep-left {
  justify-content: flex-start;
}

.sep-line {
  height: 1px;
  width: 100%;
  background: rgba(197, 168, 128, 0.5);
}

.sep-right .sep-line {
  margin-left: 0.5rem;
}

.sep-left .sep-line {
  margin-right: 0.5rem;
}

.diamond-sm {
  width: 12px;
  height: 12px;
  color: rgba(197, 168, 128, 0.8);
  flex-shrink: 0;
}

.heart-lg {
  width: 32px;
  height: 32px;
  fill: var(--color-gold);
  color: var(--color-gold);
  filter: drop-shadow(0 1px 1px rgba(120, 90, 30, 0.15));
  flex-shrink: 0;
  padding: 0 0.5rem;
}

.inshaallah {
  font-family: var(--font-arabic);
  color: var(--color-primary);
  font-size: 1.5rem;
  margin: 1.5rem 0 0;
}

/* ---------------------- amp divider ---------------------- */
.amp-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2.5rem 0;
}

.amp-divider .line {
  height: 1px;
  width: 4rem;
  background: rgba(197, 168, 128, 0.4);
}

.amp-divider .amp {
  font-family: var(--font-script);
  font-size: 1.875rem;
  line-height: 1;
  color: var(--color-gold);
}

/* ---------------------- ornate card ---------------------- */
.ornate-card {
  position: relative;
  border: 1px solid rgba(197, 168, 128, 0.32);
  border-radius: 0.75rem;
  background:
    linear-gradient(0deg, rgba(197, 168, 128, 0.05), rgba(197, 168, 128, 0.05)),
    var(--color-card);
  box-shadow: 0 6px 18px rgba(120, 90, 30, 0.08);
}

.ornate-inset {
  position: absolute;
  inset: 0.45rem;
  border: 1px solid rgba(197, 168, 128, 0.25);
  border-radius: 0.5rem;
  pointer-events: none;
  z-index: 2;
}

.corner {
  position: absolute;
  z-index: 2;
  height: 18px;
  width: 18px;
  border-color: rgba(197, 168, 128, 0.6);
  border-style: solid;
  border-width: 0;
}

.corner-tl {
  left: 6px;
  top: 6px;
  border-left-width: 1.5px;
  border-top-width: 1.5px;
}

.corner-tr {
  right: 6px;
  top: 6px;
  border-right-width: 1.5px;
  border-top-width: 1.5px;
}

.corner-bl {
  bottom: 6px;
  left: 6px;
  border-bottom-width: 1.5px;
  border-left-width: 1.5px;
}

.corner-br {
  bottom: 6px;
  right: 6px;
  border-bottom-width: 1.5px;
  border-right-width: 1.5px;
}

/* ---------------------- invitation card ---------------------- */
.invitation-card {
  padding: 2rem 2rem;
  text-align: center;
  background-color: #fbf8f1;
  max-width: 90%;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .invitation-card {
    max-width: 100%;
    padding: 3.5rem;
  }
}

.side-ornament {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(197, 168, 128, 0.6);
}

.side-ornament.side-left {
  left: 1rem;
}

.side-ornament.side-right {
  right: 1rem;
}

@media (min-width: 768px) {
  .side-ornament.side-left {
    left: 2rem;
  }
  .side-ornament.side-right {
    right: 2rem;
  }
}

.side-ornament .vline {
  width: 1px;
  height: 3rem;
  background: rgba(197, 168, 128, 0.4);
}

.side-ornament .dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(197, 168, 128, 0.6);
}

.side-ornament .diamond-fill {
  width: 12px;
  height: 12px;
  color: #1a382d;
}

.invitation-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 400px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

@media (min-width: 640px) {
  .invitation-inner {
    padding: 0 4rem;
  }
}

.mini-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  margin-bottom: 2rem;
}

.mini-divider .line {
  height: 1px;
  width: 3rem;
  background: rgba(197, 168, 128, 0.5);
}

.mini-divider.wide .line {
  width: 4rem;
}

.mini-divider.leaf {
  gap: 0.75rem;
  margin-bottom: 0;
}

.heart-sm {
  width: 14px;
  height: 14px;
  fill: var(--color-gold);
  color: var(--color-gold);
}

.heart-sm.gold {
  fill: var(--color-gold);
}

.diamond-xs {
  width: 10px;
  height: 10px;
  color: var(--color-gold);
  flex-shrink: 0;
}

.dear {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-emerald);
  letter-spacing: 0.025em;
  margin: 0 0 2rem;
}

@media (min-width: 640px) {
  .dear {
    font-size: 2rem;
  }
}

.invitation-text {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.625;
  color: var(--color-muted-foreground);
  margin: 0 0 2rem;
}

.leaf-group {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--color-gold);
}

.leaf-group .dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(197, 168, 128, 0.6);
}

/* ---------------------- countdown ---------------------- */
.countdown-section {
  margin-top: 3.5rem;
}

.section-label {
  font-family: var(--font-label);
  color: var(--color-secondary);
  text-align: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin: 0 0 1.5rem;
}

.countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .countdown {
    gap: 1.5rem;
  }
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-value {
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
  font-size: clamp(40px, 11vw, 64px);
  line-height: 1;
  text-shadow: 0 0 24px rgba(197, 168, 128, 0.25);
  animation: tick-fade 0.45s ease both;
}

.countdown-label {
  font-family: var(--font-label);
  color: var(--color-muted-foreground);
  margin-top: 0.5rem;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
}

@media (min-width: 640px) {
  .countdown-label {
    font-size: 12px;
  }
}

.countdown-colon {
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--color-gold-soft);
  font-size: clamp(34px, 9vw, 56px);
  line-height: 1;
}

.countdown-ended {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 1rem;
}

.countdown[hidden],
.countdown-ended[hidden] {
  display: none;
}

.ended-title {
  font-family: var(--font-display);
  font-size: 1.875rem;
  color: var(--color-emerald);
  margin: 0 0 1rem;
}

.ended-text {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-muted-foreground);
  max-width: 32rem;
  margin: 0;
}

/* ---------------------- celebration card ---------------------- */
.celebration-card {
  overflow: hidden;
  padding: 1.25rem;
  transition: box-shadow 0.3s ease;
}

.celebration-card:hover {
  box-shadow: 0 14px 40px rgba(120, 90, 30, 0.18);
}

@media (min-width: 640px) {
  .celebration-card {
    padding: 2rem;
  }
}

@media (min-width: 768px) {
  .celebration-card {
    padding: 3rem;
  }
}

.celebration-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.celebration-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.5rem;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.title-row h3 {
  font-family: var(--font-label);
  color: var(--color-emerald);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-weight: 500;
  margin: 0;
}

.title-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 0.5rem;
  color: var(--color-gold);
}

.title-dots .d1 {
  width: 4px;
  height: 4px;
}

.title-dots .d2 {
  width: 6px;
  height: 6px;
}

/* timeline */
.timeline {
  width: 100%;
  max-width: 32rem;
  display: flex;
  flex-direction: column;
}

.timeline-row {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  padding: 1.25rem 0;
  position: relative;
}

@media (min-width: 640px) {
  .timeline-row {
    gap: 1.5rem;
  }
}

.timeline-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  z-index: 10;
}

.timeline-icon svg {
  width: 48px;
  height: 48px;
  padding: 13px;
  border-radius: 999px;
  border: 1px solid var(--color-gold);
  background: #fbf8f1;
  color: var(--color-emerald);
}

@media (min-width: 640px) {
  .timeline-icon svg {
    width: 56px;
    height: 56px;
    padding: 15px;
  }
}

.timeline-node-wrap {
  position: absolute;
  left: 3.5rem;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 640px) {
  .timeline-node-wrap {
    left: 4.5rem;
  }
}

.timeline-node-wrap::before {
  content: "";
  width: 1px;
  height: 100%;
  background: rgba(197, 168, 128, 0.4);
  position: relative;
  display: block;
}

.timeline-node {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: -4px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--color-gold);
  border: 3px solid #fbf8f1;
}

.timeline-body {
  flex: 1;
  padding: 0.25rem 0 0 1rem;
}

.timeline-body.pad-top {
  padding-top: 0.75rem;
}

.timeline-main {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-emerald);
  font-weight: 700;
  margin: 0 0 0.25rem;
}

@media (min-width: 640px) {
  .timeline-main {
    font-size: 1.5rem;
  }
}

.timeline-sub {
  font-family: var(--font-body);
  color: var(--color-muted-foreground);
  font-size: 12px;
  line-height: 1.625;
  margin: 0;
}

@media (min-width: 640px) {
  .timeline-sub {
    font-size: 14px;
  }
}

.timeline-sep {
  border-bottom: 1px dotted rgba(197, 168, 128, 0.4);
  width: 100%;
}

.timeline-sep.last {
  margin-bottom: 2rem;
}

/* ---------------------- refreshed invitation & celebration cards ---------------------- */
.invitation-card,
.celebration-card {
  border: 0;
  box-shadow: 0 18px 50px rgba(55, 50, 37, 0.1);
}

.invitation-card .ornate-inset,
.invitation-card .corner,
.invitation-card .side-ornament,
.celebration-card .ornate-inset,
.celebration-card .corner {
  display: none;
}

.invitation-card {
  isolation: isolate;
  overflow: hidden;
  padding: 3.5rem 2rem 3rem;
  border-radius: 1.5rem 1.5rem 4.5rem 1.5rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(197, 168, 128, 0.22), transparent 30%),
    linear-gradient(135deg, #fffefa, #f6f0e5);
}

.invitation-card::before,
.celebration-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  left: 50%;
  height: 5px;
  border-radius: 0 0 999px 999px;
  transform: translateX(-50%);
}

.invitation-card::before {
  width: 8rem;
  background: var(--color-emerald);
}

.invitation-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: -4rem;
  bottom: -4rem;
  width: 11rem;
  height: 11rem;
  border: 1px solid rgba(197, 168, 128, 0.35);
  border-radius: 50%;
}

.celebration-card {
  isolation: isolate;
  padding: 3.25rem 1.25rem 1.5rem;
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at 50% 0, rgba(47, 93, 78, 0.13), transparent 25rem),
    #fffdf8;
}

.celebration-card::before {
  width: 9rem;
  background: var(--color-gold);
}

.invitation-card .invitation-inner,
.celebration-card .celebration-inner {
  position: relative;
  z-index: 1;
}

.celebration-card .celebration-title {
  margin-bottom: 2rem;
}

.celebration-card .title-row h3 {
  letter-spacing: 0.22em;
}

.celebration-card .timeline {
  display: grid;
  gap: 0.75rem;
  max-width: 42rem;
}

.celebration-card .timeline-row {
  align-items: center;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(246, 240, 229, 0.7);
}

.celebration-card .timeline-node-wrap,
.celebration-card .timeline-sep {
  display: none;
}

.celebration-card .timeline-body {
  padding: 0;
}

@media (min-width: 640px) {
  .invitation-card {
    padding: 4.25rem 3.5rem 3.75rem;
  }

  .celebration-card {
    padding: 4rem 2rem 2rem;
  }

  .celebration-card .timeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: none;
  }

  .celebration-card .timeline-row {
    min-height: 11.5rem;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .celebration-card .timeline-body {
    flex: 0;
  }

.celebration-card .timeline-main {
    font-size: 1.35rem;
  }
}

.celebration-card .date-display {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
}

.date-display time {
  font: inherit;
}

@media (min-width: 768px) {
  .celebration-card {
    padding: 4.5rem 3rem 3rem;
  }
}

/* buttons */
.celebration-buttons {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  max-width: 32rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .celebration-buttons {
    flex-direction: row;
    margin-top: 2rem;
  }
}

.btn-outline,
.btn-solid {
  flex: 1;
  font-family: var(--font-label);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 2rem;
  padding: 0.875rem 1.5rem;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-outline {
  color: var(--color-emerald);
  border: 1px solid var(--color-emerald);
}

.btn-outline:hover {
  background: rgba(47, 93, 78, 0.05);
}

.btn-solid {
  color: #fff;
  background: var(--color-emerald-deep);
}

.btn-solid:hover {
  background: #1a382d;
}

.btn-outline svg,
.btn-solid svg {
  width: 16px;
  height: 16px;
}

/* ---------------------- dua + footer ---------------------- */
.dua {
  margin-top: 5rem;
  text-align: center;
  position: relative;
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 3rem;
  color: rgba(197, 168, 128, 0.4);
  margin-bottom: 1rem;
}

.dua-text {
  font-family: var(--font-display);
  max-width: 28rem;
  margin: 0 auto;
  font-size: 1.5rem;
  line-height: 1.625;
  color: var(--color-foreground);
  position: relative;
  z-index: 10;
}

@media (min-width: 768px) {
  .dua-text {
    font-size: 1.875rem;
  }
}

.dua-rule {
  margin: 1.5rem auto;
  height: 1px;
  width: 4rem;
  background: rgba(197, 168, 128, 0.4);
}

.ameen-arabic {
  font-family: var(--font-arabic);
  color: var(--color-primary);
  font-size: 1.875rem;
  margin: 1rem 0 0;
}

.ameen-label {
  font-family: var(--font-label);
  color: var(--color-secondary);
  margin: 0.5rem 0 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
}

.footer {
  margin-top: 4rem;
}

.footer-main {
  background: var(--color-emerald);
  color: #fff;
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: 3rem 3rem 0 0;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.footer-blessing {
  font-family: var(--font-display);
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 24rem;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

@media (min-width: 768px) {
  .footer-blessing {
    font-size: 1.5rem;
  }
}

.footer-heart {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 10;
}

.footer-heart svg {
  width: 16px;
  height: 16px;
  fill: rgba(255, 255, 255, 0.8);
  color: rgba(255, 255, 255, 0.8);
}

.footer-sub {
  background: var(--color-emerald);
  color: #fff;
  text-align: center;
  padding: 1rem 1.5rem 2rem;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-sub p {
  font-family: var(--font-body);
  font-size: 12px;
  opacity: 0.8;
  margin: 0;
  position: relative;
  z-index: 10;
}

@media (min-width: 768px) {
  .footer-sub p {
    font-size: 14px;
  }
}

.heart-inline {
  color: #f8b4b4;
}

/* ---------------------- keyframes ---------------------- */
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes floral-focus-in {
  from {
    opacity: 0.45;
    filter: blur(9px);
    transform: translateX(-50%) scale(1.025);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateX(-50%) scale(1);
  }
}

@keyframes name-line-in {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes tick-fade {
  from {
    opacity: 0.15;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------------------- scroll reveal ---------------------- */
.reveal {
  opacity: 0;
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--rv-delay, 0ms);
}

.reveal-up {
  transform: translateY(28px);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------------------- reduced motion ---------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .countdown-value,
  .loading-monogram,
  .loading-floral,
  .person-name .name-line {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
  .reveal,
  .reveal-up {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
