/* ═══════════════════════════════════════════════
   LOVECRAFT — SHARED DESIGN SYSTEM
   Aesthetic: Romantic Editorial / Luxury Warmth
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400;1,700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Great+Vibes&family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=DM+Sans:wght@300;400;500&display=swap');

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

:root {
  --rose: #c9184a;
  --rose-light: #ff4d6d;
  --rose-dark: #800f2f;
  --rose-muted: #a4133c;
  --blush: #fff0f3;
  --cream: #fdf6f0;
  --cream-dark: #f5ebe0;
  --gold: #d4a574;
  --gold-light: #e8c9a0;
  --gold-dark: #b08458;
  --wine: #590d22;
  --wine-light: #7a1e3a;
  --petal: #ff002d;
  --petal-light: #ffccd5;
  --deep: #1a0a10;
  --silk: #f8edeb;
  --text-primary: #3d1520;
  --text-secondary: #7a4a5a;
  --text-muted: #a88090;
  --border-subtle: rgba(201,24,74,0.08);
  --shadow-soft: 0 4px 40px rgba(89,13,34,0.06);
  --shadow-card: 0 8px 60px rgba(89,13,34,0.08), 0 1px 3px rgba(89,13,34,0.04);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 60px;
  --transition-base: 0.3s ease;
  --transition-slow: 0.6s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Cormorant Garamond', serif;
  background: var(--cream);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Background Atmosphere ── */
.page-atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(201,24,74,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(212,165,116,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 90%, rgba(255,77,109,0.03) 0%, transparent 50%);
}

/* ── Floating Petals ── */
.petal {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--petal);
  border-radius: 50% 0 50% 50%;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  animation: petalFall linear infinite;
}

@keyframes petalFall {
  0% { transform: translateY(-10vh) rotate(0deg) scale(1); opacity: 0; }
  10% { opacity: 0.4; }
  90% { opacity: 0.2; }
  100% { transform: translateY(110vh) rotate(720deg) scale(0.4); opacity: 0; }
}

/* ── Navigation ── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(253,246,240,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-brand {
  font-family: 'Great Vibes', cursive;
  font-size: 1.8rem;
  color: var(--rose);
  text-decoration: none;
  transition: opacity var(--transition-base);
}
.nav-brand:hover { opacity: 0.8; }

.nav-links {
  display: flex;
  gap: 0.3rem;
  list-style: none;
}

.nav-links a {
  padding: 0.5rem 1.1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: all var(--transition-base);
}

.nav-links a:hover {
  color: var(--rose);
  background: rgba(201,24,74,0.06);
}

.nav-links a.active {
  color: #fff;
  background: var(--rose);
}

/* ── Typography ── */
.page-title {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.8rem, 7vw, 5rem);
  color: var(--rose);
  text-align: center;
  line-height: 1.15;
  text-shadow: 0 2px 30px rgba(201,24,74,0.12);
}

.page-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  font-weight: 300;
}

.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--rose-dark);
}

/* ── Cards ── */
.glass-card {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

/* ── Form Elements ── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.form-group { text-align: left; }
.form-group.full { grid-column: 1 / -1; }

.form-group label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.45rem;
  font-weight: 500;
}

.form-group label .label-hint {
  opacity: 0.55;
  font-size: 0.72rem;
  text-transform: none;
  letter-spacing: 0;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid rgba(201,24,74,0.1);
  border-radius: 12px;
  background: rgba(255,255,255,0.55);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  color: var(--text-primary);
  transition: all var(--transition-base);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(201,24,74,0.07);
  background: #fff;
}

.form-input::placeholder,
.form-textarea::placeholder { color: #c8a8b0; }

.form-textarea { resize: vertical; min-height: 80px; }

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9184a' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2.5rem;
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 4px 25px rgba(201,24,74,0.28);
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 35px rgba(201,24,74,0.38);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  background: transparent;
  color: var(--rose);
  border: 1.5px solid var(--rose);
  border-radius: var(--radius-pill);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}
.btn-secondary:hover {
  background: var(--rose);
  color: #fff;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2.5rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 4px 25px rgba(212,165,116,0.3);
  text-decoration: none;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 35px rgba(212,165,116,0.4);
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

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

@keyframes shake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.anim-fade-up { animation: fadeUp 0.8s ease-out both; }
.anim-delay-1 { animation-delay: 0.15s; }
.anim-delay-2 { animation-delay: 0.3s; }
.anim-delay-3 { animation-delay: 0.45s; }
.anim-delay-4 { animation-delay: 0.6s; }
.anim-delay-5 { animation-delay: 0.75s; }

/* ── Page Loading Overlay ── */
.page-loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #fdf6f0 0%, #fff5f7 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loading.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(201,24,74,0.1);
  border-top-color: var(--rose);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-text {
  margin-top: 1.5rem;
  font-family: 'Lora', serif;
  font-size: 1rem;
  color: var(--rose-dark);
  animation: pulse 1.5s ease-in-out infinite;
}

.loading-subtext {
  margin-top: 0.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

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

/* ── Responsive ── */
@media (max-width: 700px) {
  .form-row { grid-template-columns: 1fr; }
  .glass-card { padding: 1.8rem 1.4rem; }
  .site-nav { padding: 0.8rem 1.2rem; flex-wrap: wrap; gap: 0.5rem; }
  .nav-links { gap: 0.15rem; }
  .nav-links a { padding: 0.4rem 0.7rem; font-size: 0.72rem; }
  .page-title { margin-top: 1.5rem; }
}

@media (max-width: 480px) {
  .site-nav { justify-content: center; }
  .nav-brand { width: 100%; text-align: center; }
  .nav-links { width: 100%; justify-content: center; }
  .page-title { margin-top: 2rem; font-size: 2.5rem; }
}
