/* 
 * PROFESSIONAL SERVICE PAGE STYLES
 * Next Step Therapy - Premium Design System
 * Version 2.0 - Production Ready
 */

/* ============================================
   DESIGN TOKENS & VARIABLES
   ============================================ */
:root {
    /* Main Site Color Palette - Matching shared.min.css */
    --primary-soft-blue: #4a6b7a;
    --primary-deep: #36525f;
    --primary-light: #6b8a98;
    --accent-warm: #c4a191;
    --accent-gold: #b19976;
    --neutral-cream: #faf8f5;
    --neutral-soft: #f5f3ef;
    --neutral-warm: #ede9e3;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --background-primary: #fefefe;
    --white: #ffffff;
    
    /* Typography - Matching main site */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Font Sizes - Perfect Scale */
    --text-xs: 0.75rem;     /* 12px */
    --text-sm: 0.875rem;    /* 14px */
    --text-base: 1rem;      /* 16px */
    --text-lg: 1.125rem;    /* 18px */
    --text-xl: 1.25rem;     /* 20px */
    --text-2xl: 1.5rem;     /* 24px */
    --text-3xl: 1.875rem;   /* 30px */
    --text-4xl: 2.25rem;    /* 36px */
    --text-5xl: 3rem;       /* 48px */
    --text-6xl: 3.75rem;    /* 60px */
    
    /* Spacing System - Matching main site */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-xxl: 4rem;
    --space-section: 6rem;
    
    /* Shadows - Matching main site */
    --shadow-soft: 0 4px 20px rgba(74,107,122,0.06);
    --shadow-medium: 0 8px 30px rgba(74,107,122,0.08);
    --shadow-strong: 0 12px 40px rgba(74,107,122,0.12);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Border Radius - Matching main site */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

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

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

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--background-primary);
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 0.002em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
}

/* ============================================
   TYPOGRAPHY - PROFESSIONAL HIERARCHY
   ============================================ */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    font-feature-settings: "kern" 1;
    text-rendering: optimizeSpeed;
    will-change: auto;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    font-style: italic;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.025em;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(1.375rem, 3vw, 1.75rem);
    font-weight: 600;
    margin-bottom: var(--space-md);
    letter-spacing: -0.015em;
}

h4 {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}

p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
    max-width: 65ch;
    font-weight: 400;
    line-height: 1.7;
}

.lead {
    font-size: var(--text-xl);
    line-height: 1.7;
    color: var(--neutral-600);
    font-weight: 400;
}

/* ============================================
   LAYOUT COMPONENTS
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

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

.section-alt {
    background: linear-gradient(180deg, var(--neutral-cream) 0%, var(--white) 100%);
}

/* ============================================
   HERO SECTION - PREMIUM DESIGN
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--primary-soft-blue) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: var(--space-section) 0 var(--space-xxl);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="1440" height="600" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="pattern" x="0" y="0" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="1440" height="600" fill="url(%23pattern)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    color: var(--white);
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: var(--text-xl);
    line-height: 1.6;
    color: var(--white);
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.8s ease 0.2s both;
    font-weight: 400;
}

/* ============================================
   BUTTONS - PROFESSIONAL CTAs
   ============================================ */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: var(--text-base);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
    letter-spacing: 0.02em;
    text-transform: none;
}

.btn-primary {
    background: var(--primary-soft-blue);
    color: var(--white);
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    background: var(--primary-deep);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

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

.btn-secondary:hover {
    background: var(--primary-soft-blue);
    color: var(--white);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: var(--text-lg);
}

/* ============================================
   CARDS - PROFESSIONAL COMPONENTS
   ============================================ */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-base);
    height: 100%;
}

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

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-soft-blue), var(--primary-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    font-size: var(--text-2xl);
    color: var(--white);
}

.card-title {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.card-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   FEATURE GRID - PROFESSIONAL LAYOUT
   ============================================ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.feature-item {
    text-align: left;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-soft-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    color: var(--white);
}

/* ============================================
   PROCESS TIMELINE - PROFESSIONAL
   ============================================ */
.timeline {
    position: relative;
    padding-left: var(--space-2xl);
    margin: var(--space-2xl) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-soft-blue), var(--primary-light));
}

.timeline-item {
    position: relative;
    margin-bottom: var(--space-2xl);
}

.timeline-marker {
    position: absolute;
    left: -44px;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--white);
    border: 3px solid var(--primary-soft-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary-soft-blue);
}

.timeline-content {
    background: var(--neutral-soft);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
}

/* ============================================
   FORMS - PROFESSIONAL DESIGN
   ============================================ */
.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 17px;
    border: 2px solid var(--neutral-warm);
    border-radius: var(--radius-md);
    background: var(--white);
    transition: all var(--transition-fast);
    font-family: var(--font-body);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-soft-blue);
    box-shadow: 0 0 0 3px rgba(74, 107, 122, 0.1);
}

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

/* ============================================
   CTA SECTION - CONVERSION OPTIMIZED
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary-soft-blue), var(--primary-light));
    color: var(--white);
    padding: var(--space-section) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-md);
    color: var(--white);
}

.cta-description {
    font-size: var(--text-xl);
    margin-bottom: var(--space-xl);
    color: var(--white);
    font-weight: 400;
    line-height: 1.6;
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ============================================ */
@media (max-width: 768px) {
    :root {
        --text-base: 0.9375rem;
    }
    
    .hero {
        padding: var(--space-3xl) 0 var(--space-2xl);
    }
    
    .section {
        padding: var(--space-2xl) 0;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .timeline {
        padding-left: var(--space-lg);
    }
    
    .timeline::before {
        left: 10px;
    }
    
    .timeline-marker {
        left: -14px;
        width: 32px;
        height: 32px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

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

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

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.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); }

.mb-0 { margin-bottom: 0; }
.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); }

.text-primary { color: var(--primary-soft-blue); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }

.bg-light { background-color: var(--neutral-soft); }
.bg-white { background-color: var(--white); }

/* ============================================
   ACCESSIBILITY
   ============================================ */
.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;
}

:focus-visible {
    outline: 2px solid var(--primary-soft-blue);
    outline-offset: 2px;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}
