/**
 * WonderLead Wonderland - Main Stylesheet
 * Victorian Alice in Wonderland meets Premium Web Design
 */

/* ============================================
   FONTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@400;500;600&family=Cinzel+Decorative:wght@400;700&display=swap');

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
  /* Primary Colors */
  --color-gold: #a87a2d;
  --color-deep-teal: #0d5f6f;
  --color-cream: #faf8f6;
  --color-rich-navy: #1a2332;

  /* Accent Colors */
  --color-rose-gold: #d4a574;
  --color-lavender: #c5b9d6;
  --color-forest-green: #2d5016;
  --color-card-red: #c41e3a;

  /* Additional Shades */
  --color-gold-dark: #8b6424;
  --color-cream-dark: #eae1d3;
  --color-cream-darker: #f0e6d2;

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --font-decorative: 'Cinzel Decorative', cursive;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  --spacing-xxl: 6rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 10px 40px rgba(168, 122, 45, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 60px rgba(168, 122, 45, 0.25), 0 5px 15px rgba(0, 0, 0, 0.1);
  --shadow-inset: inset 0 0 20px rgba(168, 122, 45, 0.1);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --transition-slow: 0.6s ease-in-out;
}

/* ============================================
   GLOBAL RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-rich-navy);
  background: var(--color-cream);
  overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-rich-navy);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.lead {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-deep-teal);
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-gold), var(--color-rose-gold), var(--color-deep-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ornate {
  font-family: var(--font-decorative);
  font-weight: 400;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: var(--spacing-xxl) 0;
  position: relative;
}

/* ============================================
   GRADIENTS
   ============================================ */
.wonderland-gradient {
  background: linear-gradient(135deg,
      var(--color-cream) 0%,
      var(--color-cream-dark) 25%,
      var(--color-lavender) 50%,
      var(--color-deep-teal) 100%);
}

.card-gradient {
  background: linear-gradient(145deg,
      #ffffff 0%,
      var(--color-cream) 50%,
      var(--color-cream-darker) 100%);
}

.button-gradient {
  background: linear-gradient(135deg,
      var(--color-rose-gold) 0%,
      var(--color-gold) 50%,
      var(--color-gold-dark) 100%);
}

/* ============================================
   HEADER
   ============================================ */
header {
  position: sticky;
  top: 0;
  background: rgba(250, 248, 246, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--color-gold);
  padding: 1rem 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-decorative);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-gold);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.logo:hover {
  color: var(--color-rose-gold);
  transform: scale(1.05);
}

.logo-icon {
  font-size: 2rem;
}

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: var(--color-rich-navy);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition-fast);
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

nav a.active {
  color: var(--color-gold);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: var(--spacing-xxl) 0;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--color-rich-navy);
  opacity: 0.9;
}

.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* ============================================
   CORNER FLOURISHES
   ============================================ */
.corner-flourish {
  position: absolute;
  width: 150px;
  height: 150px;
  pointer-events: none;
  opacity: 0.3;
}

.corner-flourish.top-left {
  top: 0;
  left: 0;
  border-top: 4px solid var(--color-gold);
  border-left: 4px solid var(--color-gold);
  border-radius: 0 0 50px 0;
}

.corner-flourish.top-right {
  top: 0;
  right: 0;
  border-top: 4px solid var(--color-gold);
  border-right: 4px solid var(--color-gold);
  border-radius: 0 0 0 50px;
}

.corner-flourish.bottom-left {
  bottom: 0;
  left: 0;
  border-bottom: 4px solid var(--color-gold);
  border-left: 4px solid var(--color-gold);
  border-radius: 0 50px 0 0;
}

.corner-flourish.bottom-right {
  bottom: 0;
  right: 0;
  border-bottom: 4px solid var(--color-gold);
  border-right: 4px solid var(--color-gold);
  border-radius: 50px 0 0 0;
}

/* ============================================
   SECTION TITLES & DIVIDERS
   ============================================ */
.section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  position: relative;
  display: inline-block;
  width: 100%;
}

.ornate-divider {
  color: var(--color-gold);
  font-size: 1.5rem;
  margin: 0 1rem;
  display: inline-block;
}

.section-subtitle {
  text-align: center;
  font-size: 1.25rem;
  color: var(--color-deep-teal);
  margin-bottom: var(--spacing-lg);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   SOCIAL PROOF TICKER
   ============================================ */
.social-proof-ticker {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(168, 122, 45, 0.2);
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.ticker-item img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--color-gold);
}

.ticker-item .stat {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gold);
}

/* ============================================
   GRIDS
   ============================================ */
.problem-grid,
.solution-grid,
.testimonials-grid {
  display: grid;
  gap: 2rem;
  margin-top: var(--spacing-lg);
}

.problem-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.solution-grid {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.testimonials-grid {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

/* ============================================
   PRICING GRID
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: var(--spacing-lg);
  align-items: start;
}

.pricing-section {
  background: var(--color-cream);
  position: relative;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--color-rich-navy);
  color: var(--color-cream);
  padding: var(--spacing-xl) 0 var(--spacing-md);
  margin-top: var(--spacing-xxl);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}

.footer-section h3 {
  color: var(--color-gold);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--color-cream);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-section a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(168, 122, 45, 0.3);
  color: var(--color-cream-dark);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  section {
    padding: var(--spacing-lg) 0;
  }

  .hero {
    padding: var(--spacing-lg) 0;
  }

  .solution-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cta-group {
    flex-direction: column;
  }

  nav {
    display: none;
    /* Mobile menu would be implemented separately */
  }

  .ornate-divider {
    display: none;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .social-proof-ticker {
    flex-direction: column;
    gap: 1rem;
  }
}