/* ========================================================
   2. BASE RESETS & GLOBAL LAYOUT
   ======================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent !important;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent !important;
}

body {
  color: var(--text-body);
  background-color: var(--page-bg);
  background-image: radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.7) 0%, rgba(248, 244, 242, 0.95) 100%);
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  font-variant-numeric: lining-nums;
  -moz-font-feature-settings: "lnum" 1;
  -webkit-font-feature-settings: "lnum" 1;
  font-feature-settings: "lnum" 1;
}

h1, h2, h3, h4, h5, h6, p, span, strong, small {
  font-variant-numeric: lining-nums;
  -moz-font-feature-settings: "lnum" 1;
  -webkit-font-feature-settings: "lnum" 1;
  font-feature-settings: "lnum" 1;
}

button, input, select, textarea {
  font: inherit;
}

/* Safari iOS: font-size < 16px trên input/textarea/select sẽ auto-zoom khi focus */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="url"],
input[type="password"],
input:not([type]),
textarea,
select {
  font-size: 16px !important;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  -webkit-tap-highlight-color: transparent !important;
  user-select: none !important;
  outline: none !important;
  transition: all 0.25s ease;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  user-select: none !important;
}

a {
  color: inherit;
  text-decoration: none;
  outline: none !important;
  transition: color 0.2s ease;
}

/* Ambient Floating Petals Background */
.ambient-petals-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-petal {
  position: absolute;
  background-image: url("../assets/231d65b4-3c81-4d86-b07f-e4d6651b6de8.png");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.4;
  animation: fallPetal linear infinite;
}

@keyframes fallPetal {
  0% {
    transform: translateY(-80px) rotate(0deg) translateX(0);
    opacity: 0;
  }
  15% {
    opacity: 0.45;
  }
  85% {
    opacity: 0.35;
  }
  100% {
    transform: translateY(105vh) rotate(360deg) translateX(50px);
    opacity: 0;
  }
}

/* Main App Wrapper */
.main-wrapper {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
}

.wedding-load-error {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #6a3540;
  background: #fff5f6;
  font: 600 18px/1.5 "Cormorant Garamond", serif;
  text-align: center;
}
