/* ============================================
   Harmony Match - Main Stylesheet
   Chinese Wisdom for Modern Relationships
   ============================================ */

/* CSS Variables - Rose/Gold/Cream Color Scheme */
:root {
  /* Primary Colors */
  --rose-deep: #8B2942;
  --rose-primary: #C41E3A;
  --rose-light: #E8A0A0;
  --rose-pale: #F5D6D6;

  /* Gold Accents */
  --gold-deep: #996515;
  --gold-primary: #D4AF37;
  --gold-light: #F4E4BA;
  --gold-pale: #FBF5E6;

  /* Cream/Neutral */
  --cream-dark: #E8DCC8;
  --cream-primary: #F5F0E6;
  --cream-light: #FAF8F3;
  --cream-white: #FFFDF9;

  /* Text Colors - Improved contrast for accessibility */
  --text-dark: #2D1F1F;
  --text-medium: #5C4A4A;
  --text-light: #6B5B5B; /* Darkened from #8B7B7B for WCAG AA contrast */
  --text-muted: #7A6A6A; /* Darkened from #A69999 for WCAG AA contrast */

  /* Accent Colors */
  --jade: #00A86B;
  --jade-light: #88D4AB;
  --crimson: #DC143C;
  --ink: #1A1A2E;

  /* Gradients */
  --gradient-rose: linear-gradient(135deg, var(--rose-deep) 0%, var(--rose-primary) 100%);
  --gradient-gold: linear-gradient(135deg, var(--gold-deep) 0%, var(--gold-primary) 100%);
  --gradient-harmony: linear-gradient(135deg, var(--rose-primary) 0%, var(--gold-primary) 100%);
  --gradient-subtle: linear-gradient(180deg, var(--cream-white) 0%, var(--cream-primary) 100%);

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(45, 31, 31, 0.08);
  --shadow-md: 0 4px 12px rgba(45, 31, 31, 0.12);
  --shadow-lg: 0 8px 24px rgba(45, 31, 31, 0.16);
  --shadow-xl: 0 16px 48px rgba(45, 31, 31, 0.20);
  --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.3);
  --shadow-rose: 0 4px 20px rgba(196, 30, 58, 0.2);

  /* Typography */
  --font-display: 'Playfair Display', 'Noto Serif SC', Georgia, serif;
  --font-body: 'Lato', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-chinese: 'Noto Serif SC', 'Ma Shan Zheng', serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms ease;

  /* Container */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1200px;
}

/* ============================================
   Reset & Base Styles
   ============================================ */

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

html {
  font-size: 18px; /* Increased base font for better readability */
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8; /* Increased line height for readability */
  color: var(--text-dark);
  background-color: var(--cream-white);
  min-height: 100vh;
  overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}

/* Skip Navigation Link for Screen Readers */
.skip-link {
  position: absolute;
  top: -50px;
  left: 0;
  background: var(--gold-primary);
  color: var(--text-dark);
  padding: 1rem 1.5rem;
  z-index: 10000;
  font-weight: 600;
  text-decoration: underline;
}

.skip-link:focus {
  top: 0;
}

/* High Contrast Focus States for Keyboard Navigation */
*:focus {
  outline: 3px solid var(--gold-primary);
  outline-offset: 3px;
}

*:focus:not(:focus-visible) {
  outline: none;
}

*:focus-visible {
  outline: 3px solid var(--gold-primary);
  outline-offset: 3px;
}

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

a {
  color: var(--rose-primary);
  text-decoration: underline; /* Always underline links for clarity */
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--rose-deep);
  text-decoration-thickness: 2px;
}

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

input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

ul, ol {
  list-style: none;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-dark);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

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

h4 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

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

.text-chinese {
  font-family: var(--font-chinese);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-rose { color: var(--rose-primary); }
.text-gold { color: var(--gold-primary); }
.text-jade { color: var(--jade); }
.text-muted { color: var(--text-muted); }

/* ============================================
   Layout
   ============================================ */

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

.container-sm { max-width: var(--container-sm); }
.container-md { max-width: var(--container-md); }
.container-lg { max-width: var(--container-lg); }

.section {
  padding: var(--space-4xl) 0;
}

.section-sm {
  padding: var(--space-2xl) 0;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

.grid {
  display: grid;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Header & Navigation
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 253, 249, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cream-dark);
  transition: all var(--transition-normal);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  max-width: var(--container-xl);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-harmony);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.logo-text span {
  color: var(--rose-primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-link {
  font-weight: 500;
  color: var(--text-medium);
  padding: var(--space-sm) 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-harmony);
  transition: width var(--transition-normal);
}

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

.nav-link:hover {
  color: var(--rose-primary);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  min-width: 44px;
  min-height: 44px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: all var(--transition-fast);
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--cream-white);
    flex-direction: column;
    padding: var(--space-xl);
    gap: var(--space-lg);
    border-bottom: 1px solid var(--cream-dark);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
  }

  .nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  cursor: pointer;
  text-decoration: none;
  min-height: 44px; /* Minimum touch target for accessibility */
}

.btn-primary {
  background: var(--gradient-harmony);
  color: white;
  box-shadow: var(--shadow-rose);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-rose);
  color: white;
}

.btn-secondary {
  background: white;
  color: var(--rose-primary);
  border: 2px solid var(--rose-primary);
}

.btn-secondary:hover {
  background: var(--rose-pale);
  color: var(--rose-deep);
}

.btn-gold {
  background: var(--gradient-gold);
  color: white;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border: 2px solid var(--cream-dark);
}

.btn-outline:hover {
  border-color: var(--gold-primary);
  color: var(--gold-deep);
}

.btn-lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: 1.125rem;
}

.btn-sm {
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

/* ============================================
   Cards
   ============================================ */

.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-header {
  padding: var(--space-xl);
  border-bottom: 1px solid var(--cream-dark);
}

.card-body {
  padding: var(--space-xl);
}

.card-footer {
  padding: var(--space-xl);
  border-top: 1px solid var(--cream-dark);
  background: var(--cream-light);
}

/* Pricing Card */
.pricing-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  position: relative;
  border: 2px solid transparent;
  transition: all var(--transition-normal);
}

.pricing-card:hover {
  border-color: var(--gold-light);
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
  border-color: var(--gold-primary);
  background: linear-gradient(180deg, white 0%, var(--gold-pale) 100%);
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-gold);
  color: white;
  padding: var(--space-xs) var(--space-lg);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
}

.pricing-price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--rose-primary);
  margin-bottom: var(--space-xs);
}

.pricing-price .currency {
  font-size: 1.5rem;
  vertical-align: super;
}

.pricing-original {
  font-size: 1.25rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-bottom: var(--space-lg);
}

.pricing-features {
  text-align: left;
  margin: var(--space-xl) 0;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  color: var(--text-medium);
}

.pricing-feature::before {
  content: '\2713';
  color: var(--jade);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================
   Forms
   ============================================ */

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

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-dark);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius-md);
  background: white;
  color: var(--text-dark);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--rose-primary);
  box-shadow: 0 0 0 3px var(--rose-pale);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235C4A4A' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-lg) center;
  padding-right: var(--space-2xl);
}

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

.form-hint {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

.form-error {
  font-size: 0.875rem;
  color: var(--crimson);
  margin-top: var(--space-xs);
}

/* Partner Input Card */
.partner-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--cream-dark);
  transition: all var(--transition-normal);
}

.partner-card:focus-within {
  border-color: var(--rose-light);
  box-shadow: var(--shadow-lg);
}

.partner-card.partner-1 {
  border-top: 4px solid var(--rose-primary);
}

.partner-card.partner-2 {
  border-top: 4px solid var(--gold-primary);
}

.partner-title {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.partner-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.partner-1 .partner-icon {
  background: var(--rose-pale);
  color: var(--rose-primary);
}

.partner-2 .partner-icon {
  background: var(--gold-pale);
  color: var(--gold-deep);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: var(--gradient-subtle);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='%23D4AF37' stroke-width='0.5' opacity='0.3'/%3E%3C/svg%3E") repeat;
  opacity: 0.1;
  pointer-events: none;
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--gold-pale);
  color: var(--gold-deep);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-xl);
}

.hero-title {
  margin-bottom: var(--space-lg);
}

.hero-title .highlight {
  color: var(--rose-primary);
  position: relative;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-medium);
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
}

.hero-decoration {
  position: absolute;
  font-family: var(--font-chinese);
  font-size: 8rem;
  color: var(--rose-pale);
  opacity: 0.3;
  z-index: 0;
}

/* ============================================
   Zodiac Display
   ============================================ */

.zodiac-wheel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  padding: var(--space-xl);
}

@media (max-width: 768px) {
  .zodiac-wheel {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }
}

@media (max-width: 480px) {
  .zodiac-wheel {
    grid-template-columns: repeat(2, 1fr);
  }
}

.zodiac-sign {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-lg);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.zodiac-sign:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.zodiac-sign.active {
  border: 2px solid var(--rose-primary);
  box-shadow: var(--shadow-rose);
}

.zodiac-emoji {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}

.zodiac-name {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-dark);
}

.zodiac-chinese {
  font-family: var(--font-chinese);
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ============================================
   Compatibility Score
   ============================================ */

.compatibility-score {
  text-align: center;
  padding: var(--space-3xl);
}

.score-circle {
  width: 200px;
  height: 200px;
  margin: 0 auto var(--space-xl);
  position: relative;
}

.score-circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-circle-bg {
  fill: none;
  stroke: var(--cream-dark);
  stroke-width: 12;
}

.score-circle-progress {
  fill: none;
  stroke: url(#scoreGradient);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 502;
  stroke-dashoffset: 502;
  transition: stroke-dashoffset 1.5s ease-out;
}

.score-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--rose-primary);
}

.score-label {
  font-size: 1.25rem;
  color: var(--text-medium);
  margin-bottom: var(--space-md);
}

.score-description {
  max-width: 500px;
  margin: 0 auto;
  color: var(--text-medium);
  line-height: 1.7;
}

/* ============================================
   Report Sections
   ============================================ */

.report-section {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-md);
}

.report-section-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 2px solid var(--cream-dark);
}

.report-section-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--rose-pale);
  color: var(--rose-primary);
}

.report-section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-dark);
}

.report-content {
  color: var(--text-medium);
  line-height: 1.8;
}

.report-content p {
  margin-bottom: var(--space-lg);
}

.report-content h4 {
  color: var(--text-dark);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.report-content ul {
  margin-left: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.report-content li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.report-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--gold-primary);
  border-radius: var(--radius-full);
}

/* Harmony Practices */
.practice-card {
  background: var(--cream-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  border-left: 4px solid var(--gold-primary);
}

.practice-title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
}

.practice-description {
  color: var(--text-medium);
  margin-bottom: 0;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--ink);
  color: white;
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.footer-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-harmony);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
  color: var(--gold-primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--gradient-harmony);
}

/* ============================================
   Decorative Elements
   ============================================ */

.chinese-pattern {
  position: relative;
}

.chinese-pattern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 0L60 30L30 60L0 30z' fill='none' stroke='%23D4AF37' stroke-width='0.5' opacity='0.1'/%3E%3C/svg%3E");
  pointer-events: none;
}

.divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  margin: var(--space-3xl) 0;
}

.divider-ornate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin: var(--space-3xl) 0;
}

.divider-ornate::before,
.divider-ornate::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light));
}

.divider-ornate::after {
  background: linear-gradient(90deg, var(--gold-light), transparent);
}

.divider-ornate span {
  font-family: var(--font-chinese);
  font-size: 1.5rem;
  color: var(--gold-primary);
}

/* ============================================
   Animations
   ============================================ */

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

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

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

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

.animate-fadeIn { animation: fadeIn 0.5s ease forwards; }
.animate-fadeInUp { animation: fadeInUp 0.6s ease forwards; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* Loading State */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer 1.5s infinite;
}

/* ============================================
   Utility Classes
   ============================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden { display: none !important; }
.visible { visibility: visible; }
.invisible { visibility: hidden; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }
.p-2xl { padding: var(--space-2xl); }

.bg-cream { background-color: var(--cream-light); }
.bg-white { background-color: white; }
.bg-rose-pale { background-color: var(--rose-pale); }
.bg-gold-pale { background-color: var(--gold-pale); }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* ============================================
   Print Styles
   ============================================ */

@media print {
  .header,
  .footer,
  .btn,
  .no-print {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .report-section {
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
}

/* ============================================
   Keyboard Navigation - Focus States
   ============================================ */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
.btn:focus,
.quiz-option:focus-within,
.nav-link:focus {
  outline: 2px solid var(--rose-primary);
  outline-offset: 2px;
}

/* Remove outline for mouse users, keep for keyboard */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
.btn:focus:not(:focus-visible) {
  outline: none;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--rose-primary);
  outline-offset: 2px;
}

/* ============================================
   Large Screen Support (1920px+)
   ============================================ */
@media (min-width: 1920px) {
  html {
    font-size: 18px;
  }

  .container {
    max-width: 1400px;
  }

  .hero__title,
  h1 {
    font-size: 4.5rem;
  }

  .hero__subtitle {
    font-size: 1.35rem;
  }

  .section {
    padding: var(--space-4xl) 0;
  }
}
