/**
 * Nina Warren Website - Enhanced Design System
 * Version: 2.1
 * Modern, clean, and readable design system with professional aesthetics
 * Fonts: Outfit (display/headings) & Work Sans (body)
 * Updated: November 5, 2025
 */

/* ============================================
   TYPOGRAPHY - Modern Clean System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Work+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&display=swap');

:root {
  /* ============================================
     TYPOGRAPHY
     ============================================ */
  
  --font-display: 'Outfit', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Work Sans', sans-serif;
  
  /* Type Scale - Perfect Fourth (1.333) */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.333rem;
  --text-2xl: 1.777rem;
  --text-3xl: 2.369rem;
  --text-4xl: 3.157rem;
  --text-5xl: 4.209rem;
  --text-6xl: 5.61rem;
  
  /* ============================================
     COLORS - Velvet Curtain Palette
     ============================================ */
  
  /* Primary - Crimson Velvet */
  --color-crimson-900: #4A0E1E;
  --color-crimson-800: #6B1630;
  --color-crimson-700: #8B1F3D;
  --color-crimson-600: #A52C4F;
  --color-crimson-500: #C24066;
  
  /* Accent - Gilded Gold */
  --color-gold-900: #5C4A1F;
  --color-gold-800: #8B6F2E;
  --color-gold-700: #B8923D;
  --color-gold-600: #D4AF51;
  --color-gold-500: #E8C976;
  
  /* Neutral - Stage & Shadows */
  --color-midnight-900: #0A0C10;
  --color-midnight-800: #141820;
  --color-midnight-700: #1E2530;
  --color-midnight-600: #2C3544;
  --color-midnight-500: #3F4A5C;
  
  /* Light - Spotlights */
  --color-ivory-100: #FFFFF7;
  --color-ivory-200: #FAF8F0;
  --color-ivory-300: #F5F1E8;
  --color-ivory-400: #EBE5D8;
  --color-ivory-500: #DDD5C5;
  
  /* Semantic Aliases */
  --color-primary: var(--color-crimson-700);
  --color-primary-dark: var(--color-crimson-900);
  --color-primary-light: var(--color-crimson-500);
  
  --color-accent: var(--color-gold-700);
  --color-accent-dark: var(--color-gold-900);
  --color-accent-light: var(--color-gold-500);
  
  --color-text-primary: var(--color-midnight-900);
  --color-text-secondary: var(--color-midnight-600);
  --color-text-muted: var(--color-midnight-500);
  --color-text-on-dark: var(--color-ivory-100);
  
  --color-bg-primary: var(--color-ivory-100);
  --color-bg-secondary: var(--color-ivory-300);
  --color-bg-dark: var(--color-midnight-800);
  
  --color-border-light: var(--color-ivory-400);
  --color-border-medium: var(--color-ivory-500);
  
  /* Legacy Compatibility */
  --primary-burgundy: var(--color-crimson-700);
  --primary-gold: var(--color-gold-600);
  --accent-navy: var(--color-midnight-700);
  --text-dark: var(--color-text-primary);
  --text-medium: var(--color-text-secondary);
  --background-light: var(--color-bg-secondary);
  --border-light: var(--color-border-light);
  
  /* ============================================
     SPACING
     ============================================ */
  
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;
  
  /* ============================================
     SHADOWS
     ============================================ */
  
  --shadow-sm: 0 2px 8px rgba(10, 12, 16, 0.08);
  --shadow-md: 0 4px 16px rgba(10, 12, 16, 0.12);
  --shadow-lg: 0 8px 32px rgba(10, 12, 16, 0.16);
  --shadow-xl: 0 16px 48px rgba(10, 12, 16, 0.2);
  --shadow-crimson: 0 12px 32px rgba(139, 31, 61, 0.3);
  --shadow-gold: 0 8px 24px rgba(184, 146, 61, 0.25);
  
  /* ============================================
     TRANSITIONS
     ============================================ */
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slower: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   BASE STYLES
   ============================================ */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
}

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

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem 0;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text-primary);
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

h2 {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: 600;
  letter-spacing: 0.01em;
}

h3 {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-xl), 3vw, var(--text-3xl));
  font-weight: 500;
}

h4 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 500;
}

h5 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 500;
}

h6 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

p {
  margin: 0 0 1.5rem 0;
  line-height: 1.8;
}

.lead {
  font-size: var(--text-xl);
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
  background: rgba(20, 24, 32, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184, 146, 61, 0.1);
  transition: all var(--transition-base);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-ivory-100) !important;
  transition: color var(--transition-base);
}

.navbar-brand:hover {
  color: var(--color-gold-500) !important;
}

.navbar-nav .nav-link {
  position: relative;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-ivory-200) !important;
  padding: 0.5rem 1rem;
  transition: color var(--transition-base);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-gold-600);
  transform: translateX(-50%);
  transition: width var(--transition-slow);
}

.navbar-nav .nav-link:hover {
  color: var(--color-gold-500) !important;
}

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

.navbar-nav .nav-link.active {
  color: var(--color-gold-600) !important;
}

/* Navbar Toggler (Mobile Menu) */
.navbar-toggler {
  border-color: var(--color-gold-600);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(232, 201, 118, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(232, 201, 118, 0.25);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-ivory-100);
  border: 2px solid var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-ivory-100);
  transform: translateY(-2px);
  box-shadow: var(--shadow-crimson);
}

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

.btn-outline-primary:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-ivory-100);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: linear-gradient(
    180deg,
    var(--color-midnight-900) 0%,
    var(--color-midnight-800) 100%
  );
  color: var(--color-ivory-200);
  border-top: 2px solid var(--color-gold-800);
  padding: var(--space-2xl) 0 var(--space-lg) 0;
}

.site-footer h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-gold-500);
  margin-bottom: var(--space-md);
}

.site-footer address {
  font-style: normal;
  line-height: 1.9;
  font-size: var(--text-base);
  color: var(--color-ivory-300);
}

.site-footer a {
  color: var(--color-gold-500);
  text-decoration: none;
  transition: color var(--transition-base);
}

.site-footer a:hover {
  color: var(--color-gold-300);
  text-decoration: underline;
}

.site-footer strong {
  color: var(--color-ivory-100);
}

/* ============================================
   CARDS
   ============================================ */

.card {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-slow);
  overflow: hidden;
}

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

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  z-index: 100;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
  color: white;
  outline: 2px solid var(--color-accent);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

