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

:root {
  --color-primary: #d4a373;
  --color-secondary: #faedcd;
  --color-accent: #e9edc9;
  --color-bg: #fefae0;
  --color-text: #3d3522;
  --color-text-light: #7c6f58;
  --color-white: #ffffff;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Montserrat", "Helvetica Neue", sans-serif;
  --transition-smooth: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  --hero-font-size: 5rem;
  --countdown-font-size: 4.5rem;
  --section-title-font-size: 3.5rem;
  --bg-overlay-opacity: 0.85;
  --card-border-radius: 16px;
  --gallery-columns: 3;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ===== Canvas ===== */
#petals-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* ===== Background Layer ===== */
.background-layer {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
  transition: opacity 1.2s ease;
}

.background-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(254, 250, 224, 0.5) 0%,
    rgba(254, 250, 224, var(--bg-overlay-opacity)) 50%,
    rgba(254, 250, 224, 0.95) 100%
  );
}

/* ===== Section ===== */
.section {
  position: relative;
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, var(--section-title-font-size));
  font-weight: 300;
  text-align: center;
  color: var(--color-primary);
  margin-bottom: 3rem;
  letter-spacing: 0.05em;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 0%,
    rgba(254, 250, 224, 0.4) 70%
  );
  z-index: -1;
}

.hero__content {
  margin-bottom: 3rem;
}

.hero__date {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, var(--hero-font-size));
  font-weight: 300;
  color: var(--color-primary);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero__names {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--color-text);
}

.hero__ampersand {
  display: inline-block;
  font-style: normal;
  color: var(--color-primary);
  margin: 0 0.5rem;
  font-weight: 300;
}

.hero__subheadline {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-top: 1rem;
  letter-spacing: 0.1em;
}

.hero__venue {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--color-primary);
  margin-top: 0.5rem;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--color-text-light);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: floatUpDown 2s ease-in-out infinite;
}

.hero__scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 1.5px solid var(--color-text-light);
  border-bottom: 1.5px solid var(--color-text-light);
  transform: rotate(45deg);
  margin-top: 0.5rem;
}

@keyframes floatUpDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ===== Video Section ===== */
.video-section {
  text-align: center;
}

.video-wrapper {
  position: relative;
  max-width: 900px;
  max-height: 80vh;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.video-wrapper video {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  border-radius: var(--card-border-radius);
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--color-text);
  color: var(--color-white);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  z-index: 10001;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .section {
    padding: 4rem 1.5rem;
  }
}
