/* ============================================
   TOKENS.CSS — Design Variables & Base Reset
   Wedding Wow Creations | Luxury Wedding Planning
   ============================================ */

/* ---- Design Tokens ---- */
:root {
  /* Colors */
  --primary: #3e030c;
  --secondary: #7A1022;
  --accent: #D4AF37;
  --accent-light: #F0D78C;
  --ivory: #FFF8F2;
  --cream: #F7EFE6;
  --pink: #DFA5AE;
  --text: #2B1B1B;
  --text-light: rgba(255, 248, 242, 0.75);
  --white: #FFFFFF;

  /* Legacy aliases kept for compat */
  --gold: var(--accent);
  --gold-light: var(--accent-light);
  --gold-pale: #F5EAC8;
  --rose: var(--secondary);
  --rose-light: var(--pink);
  --cream-dark: #F0E4D8;
  --charcoal: var(--primary);
  --text-muted: #7A5C50;

  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body: 'Poppins', sans-serif;

  --shadow-soft: 0 8px 40px rgba(90, 15, 26, 0.15);
  --shadow-card: 0 4px 24px rgba(90, 15, 26, 0.10);

  --radius: 16px;
  --radius-sm: 10px;

  /* Curvy section wave color shorthand */
  --wave-dark: #5A0F1A;
  --wave-mid: #7A1022;
}

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

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

body {
  font-family: var(--ff-body);
  color: var(--text-light);
  overflow-x: hidden;
  line-height: 1.7;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url('../images/floral2.webp');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  transform: translateZ(0);
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--ff-body);
}

/* ---- Base Typography ---- */
.display {
  font-family: var(--ff-display);
}

h1 {
  font-family: var(--ff-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.1;
}

h2 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
}

h3 {
  font-family: var(--ff-display);
  font-size: 1.35rem;
}

/* ---- Eyebrow Label ---- */
.eyebrow {
  font-family: var(--ff-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.eyebrow::before,
.eyebrow::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

/* ---- Layout Helpers ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
  scroll-margin-top: 90px;
}

/* Performance: skip rendering work for offscreen heavy sections until user scrolls near them */
#services,
#why,
#gallery,
#process,
#testimonials,
#blog {
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header p {
  color: var(--accent);
  max-width: 520px;
  margin: 16px auto 0;
  font-size: 1rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 16px auto 0;
  font-size: 1rem;
}

/* ---- Floral Divider ---- */
.floral-divider {
  text-align: center;
  color: var(--rose-light);
  font-size: 1.4rem;
  letter-spacing: 0.5em;
  margin: 0 auto 12px;
}

/* Gold ornament divider */
.gold-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 12px 0;
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 4px;
}

.gold-divider::before,
.gold-divider::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

/* ---- Fade-Up Animation ---- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

.fade-up-delay-1 {
  transition-delay: 0.1s;
}

.fade-up-delay-2 {
  transition-delay: 0.2s;
}

.fade-up-delay-3 {
  transition-delay: 0.3s;
}

/* Section wave/curve borders */
.wave-bottom {
  position: relative;
}

.wave-bottom::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 0;
  right: 0;
  height: 80px;
  background: inherit;
  clip-path: ellipse(55% 100% at 50% 0%);
  z-index: 2;
}

/* Respect users who've requested reduced motion at the OS level */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-up {
    opacity: 1;
    transform: none;
  }
}