/* SWS Personal Injury - Modern Interactive Styles */

:root {
    --primary: #6B46C1;  /* Purple */
    --secondary: #FF6B35; /* Orange */
    --accent: #9333EA;    /* Deep Purple */
    --dark: #1F1F23;
    --light: #FFFFFF;
    --gray: #6B7280;
    --success: #10B981;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --shadow: 0 10px 30px rgba(107, 70, 193, 0.1);
    --shadow-hover: 0 20px 40px rgba(107, 70, 193, 0.2);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-subtitle {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 500;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

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

.header-cta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.phone-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

.cta-button {
    padding: 0.75rem 1.5rem;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(107, 70, 193, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(107, 70, 193, 0); }
    100% { box-shadow: 0 0 0 0 rgba(107, 70, 193, 0); }
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.animated-gradient {
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, #6B46C1, #FF6B35, #9333EA, #FF6B35);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    opacity: 0.05;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.text-accent {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--gray);
    margin-bottom: 3rem;
    max-width: 600px;
}

/* Interactive Calculator Widget */
.calculator-widget {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
    max-width: 700px;
}

.calculator-widget h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.calc-btn {
    padding: 1.5rem 1rem;
    background: linear-gradient(135deg, #f3f4f6, #ffffff);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: var(--dark);
}

.calc-btn span {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
}

.calc-btn:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.calc-btn.active {
    background: var(--gradient);
    color: white;
}

.calc-btn.active span {
    color: white;
}

/* Stats Display */
.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    display: block;
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Service Cards */
.services {
    padding: 5rem 0;
    background: #f9fafb;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark);
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.service-card.expanded {
    grid-column: span 2;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.card-preview {
    color: var(--gray);
    margin-bottom: 1rem;
}

.card-expanded {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.service-card.expanded .card-expanded {
    max-height: 500px;
}

.card-expanded ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.card-expanded li {
    color: var(--gray);
    margin-bottom: 0.5rem;
}

/* Coverage Section */
.coverage {
    padding: 5rem 0;
}

.coverage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.map-container {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.05), rgba(255, 107, 53, 0.05));
    border-radius: 20px;
    overflow: hidden;
}

.map-pulse {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    animation: mapPulse 2s infinite;
}

.map-pulse.chicago {
    top: 40%;
    left: 50%;
}

.map-pulse.suburbs {
    top: 30%;
    left: 60%;
}

.map-pulse.foxvalley {
    top: 50%;
    left: 40%;
}

@keyframes mapPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(107, 70, 193, 0.7);
        transform: scale(1);
    }
    70% {
        box-shadow: 0 0 0 30px rgba(107, 70, 193, 0);
        transform: scale(1.1);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(107, 70, 193, 0);
        transform: scale(1);
    }
}

.coverage-zones {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.zone {
    position: absolute;
    background: rgba(107, 70, 193, 0.1);
    border: 2px dashed rgba(107, 70, 193, 0.3);
    border-radius: 10px;
    padding: 0.5rem;
    font-size: 0.9rem;
    color: var(--primary);
}

.zone-1 { top: 35%; left: 45%; width: 150px; }
.zone-2 { top: 20%; right: 20%; width: 150px; }
.zone-3 { bottom: 30%; left: 20%; width: 150px; }
.zone-4 { bottom: 40%; right: 30%; width: 120px; }

/* Area Tabs */
.area-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: #f3f4f6;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--gradient);
    color: white;
}

.area-content {
    display: none;
}

.area-content.active {
    display: block;
}

.area-content ul {
    list-style: none;
}

.area-content li {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
    transition: all 0.3s ease;
}

.area-content li:hover {
    background: white;
    padding-left: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Results Timeline */
.results {
    padding: 5rem 0;
    background: #f9fafb;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.timeline-item:nth-child(odd) {
    text-align: right;
    padding-right: 50%;
}

.timeline-item:nth-child(even) {
    padding-left: 50%;
}

.timeline-dot {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--gradient);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 4px rgba(107, 70, 193, 0.2);
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: scale(1.05);
}

.timeline-content h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.case-location {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: var(--gradient);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-method:hover {
    background: white;
    box-shadow: var(--shadow);
}

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

.phone-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
}

.chat-trigger {
    padding: 0.5rem 1rem;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.chat-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 70, 193, 0.3);
}

.office-locations {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 12px;
}

.location {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.location:last-child {
    border-bottom: none;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

#contactForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#contactForm input,
#contactForm select,
#contactForm textarea {
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#contactForm input:focus,
#contactForm select:focus,
#contactForm textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
}

.submit-btn {
    padding: 1rem 2rem;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.form-disclaimer {
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 0.5rem;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 380px;
    height: 500px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    z-index: 1000;
    animation: slideUp 0.3s ease;
}

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

.chat-widget.active {
    display: flex;
}

.chat-header {
    background: var(--gradient);
    color: white;
    padding: 1rem;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.chat-message {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 12px;
    max-width: 80%;
}

.chat-message.bot {
    background: #f3f4f6;
    margin-right: auto;
}

.chat-message.user {
    background: var(--gradient);
    color: white;
    margin-left: auto;
}

.chat-input {
    display: flex;
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
}

.chat-input input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px 0 0 8px;
    outline: none;
}

.chat-input button {
    padding: 0.75rem 1.5rem;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
}

/* Chat Trigger Button */
.chat-trigger-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 1rem 1.5rem;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50px;
    box-shadow: var(--shadow-hover);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    z-index: 999;
}

.chat-trigger-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(107, 70, 193, 0.3);
}

.chat-icon {
    font-size: 1.3rem;
    animation: bounce 2s infinite;
}

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

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

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

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.6;
}

.disclaimer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(107, 70, 193, 0.05);
    border-radius: 8px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav {
        display: none;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .calculator-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .coverage-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .timeline:before {
        left: 30px;
    }
    
    .timeline-item {
        padding-left: 60px !important;
        text-align: left !important;
        padding-right: 20px !important;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .chat-widget {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }
}