/* ============================================
   THE STRESS-FREE WEDDING PLAN
   Design System: Modern Romantic Editorial
   ============================================ */

/* Fonts loaded via Google Fonts in HTML head:
   - Cormorant Garamond (display, headings)
   - Lora (body, readable serif)
   - Inter (UI elements only)
*/

:root {
  /* Colors — warm cream base, deep burgundy, gold accent */
  --cream: #FAF6F1;
  --cream-soft: #F5EFE7;
  --cream-darker: #EDE4D4;
  --burgundy: #6B2737;
  --burgundy-deep: #4A1A26;
  --burgundy-light: #8B3D4D;
  --gold: #C9A961;
  --gold-light: #D9BD7E;
  --gold-soft: #E8D9B5;
  --blush: #E8D5D0;
  --blush-soft: #F5E6E2;
  --ink: #2C1810;
  --ink-soft: #4A3528;
  --ink-muted: #7A6354;
  --white: #FFFFFF;
  --error: #B83A3A;
  --success: #4A7C59;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;
  --font-ui: 'Inter', -apple-system, sans-serif;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Layout */
  --max-width: 1200px;
  --content-width: 720px;

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(107, 39, 55, 0.06);
  --shadow-md: 0 8px 32px rgba(107, 39, 55, 0.08);
  --shadow-lg: 0 24px 64px rgba(107, 39, 55, 0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

a {
  color: var(--burgundy);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--burgundy-deep);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--burgundy-deep);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-style: italic;
  font-weight: 300;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
}

.script-accent {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  color: var(--burgundy);
}

p {
  margin-bottom: var(--space-4);
}

p.lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.container-narrow {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

section {
  padding: var(--space-9) 0;
}

@media (max-width: 768px) {
  section {
    padding: var(--space-7) 0;
  }
}

/* ============================================
   DECORATIVE ELEMENTS
   ============================================ */

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin: var(--space-6) 0;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.divider-symbol {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 24px;
}

.botanical-corner {
  position: absolute;
  width: 120px;
  height: 120px;
  opacity: 0.15;
  pointer-events: none;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 18px 36px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--burgundy);
  color: var(--cream);
  border: 1px solid var(--burgundy);
}

.btn-primary:hover {
  background: var(--burgundy-deep);
  border-color: var(--burgundy-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--cream);
}

.btn-gold {
  background: var(--gold);
  color: var(--burgundy-deep);
  border: 1px solid var(--gold);
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
  background: var(--burgundy);
  color: var(--cream);
}

.btn-large {
  padding: 22px 48px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: var(--space-2);
}

.form-input,
.form-select {
  width: 100%;
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--cream-darker);
  border-radius: 0;
  transition: all 0.2s;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--cream-soft);
  box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.1);
}

.form-input::placeholder {
  color: var(--ink-muted);
  font-style: italic;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.fade-up {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.fade-in {
  animation: fadeIn 0.6s ease both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ============================================
   UTILITY
   ============================================ */

.text-center { text-align: center; }
.text-burgundy { color: var(--burgundy); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--ink-muted); }
.italic { font-style: italic; }

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.hidden { display: none !important; }

/* ============================================
   GRAIN OVERLAY (subtle paper texture)
   ============================================ */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  z-index: 1000;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' /%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
