/* Midwest Flooring Company - Projects Page Styles */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables - Matching Homepage */
:root {
    --mw-accent: #ffaf00;
    --mw-accent-hover: #e69e00;
    --mw-accent-dark: #cc8e00;
    --mw-accent-soft: #ffd966;
    --mw-blue: #2F4858;
    --mw-blue-light: #4B6473;
    --mw-blue-dark: #223643;
    --mw-text: #333333;
    --mw-text-light: #666666;
    --mw-bg: #FFFFFF;
    --mw-bg-alt: #F9F9F4;
    --mw-bg-light: #F9F9F4;
    --mw-success: #5A8A5E;
    --mw-border: rgba(47, 72, 88, 0.1);
    --mw-border-warm: #E6E6D1;

    /* Shadows */
    --mw-shadow: 0 2px 8px rgba(0,0,0,0.06);
    --mw-shadow-md: 0 8px 16px rgba(47,72,88,0.1);
    --mw-shadow-lg: 0 16px 32px rgba(47,72,88,0.12);
    --mw-shadow-xl: 0 24px 48px rgba(47,72,88,0.15);

    /* Spacing (8px base) */
    --mw-space-xs: 8px;
    --mw-space-sm: 16px;
    --mw-space-md: 24px;
    --mw-space-lg: 32px;
    --mw-space-xl: 48px;
    --mw-space-2xl: 64px;
    --mw-space-3xl: 96px;

    /* Typography */
    --mw-text-xs: 0.75rem;
    --mw-text-sm: 0.875rem;
    --mw-text-base: 1rem;
    --mw-text-lg: 1.125rem;
    --mw-text-xl: 1.25rem;
    --mw-text-2xl: 1.5rem;
    --mw-text-3xl: 1.875rem;
    --mw-text-4xl: 2.25rem;
    --mw-text-5xl: 3rem;

    /* Border Radius */
    --mw-radius-sm: 4px;
    --mw-radius-md: 8px;
    --mw-radius-lg: 12px;
    --mw-radius-xl: 16px;

    /* Transitions */
    --mw-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--mw-text);
    line-height: 1.6;
    background: var(--mw-bg);
    overflow-x: hidden;
}

.mw-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--mw-space-sm);
}

@media (min-width: 768px) {
    .mw-container {
        padding: 0 var(--mw-space-md);
    }
}

@media (min-width: 1200px) {
    .mw-container {
        padding: 0 var(--mw-space-lg);
    }
}

h1, h2, h3 {
    color: var(--mw-blue);
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

/* Hero Section */
.mw-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--mw-blue-dark) 0%, var(--mw-blue) 100%);
    overflow: hidden;
    text-align: center;
    padding: var(--mw-space-3xl) 0;
}

.mw-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(255, 175, 0, 0.03) 2px,
            rgba(255, 175, 0, 0.03) 4px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.02) 2px,
            rgba(255, 255, 255, 0.02) 4px
        ),
        radial-gradient(
            circle at 20% 50%,
            rgba(255, 175, 0, 0.08) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 50%,
            rgba(255, 255, 255, 0.05) 0%,
            transparent 50%
        );
    opacity: 1;
}

.mw-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.4;
}

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

.mw-hero h1 {
    color: white;
    margin-bottom: var(--mw-space-md);
    text-shadow: 0 3px 6px rgba(0,0,0,0.3);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
}

.mw-hero-subtitle {
    font-size: var(--mw-text-xl);
    color: rgba(255,255,255,0.95);
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Stats Bar Section */
.mw-stats-bar {
    background: white;
    border-bottom: 2px solid var(--mw-accent);
    padding: var(--mw-space-xl) 0;
}

.mw-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--mw-space-lg);
    text-align: center;
}

.mw-stat-item {
    padding: var(--mw-space-md);
}

.mw-stat-number {
    font-size: var(--mw-text-4xl);
    font-weight: 800;
    color: var(--mw-accent);
    display: block;
    line-height: 1.2;
}

.mw-stat-label {
    font-size: var(--mw-text-sm);
    color: var(--mw-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: var(--mw-space-xs);
    display: block;
}

@media (max-width: 768px) {
    .mw-hero h1 {
        padding-top: 1rem;
    }

    .mw-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--mw-space-md);
    }
}

/* Intro Section */
.mw-intro-section {
    background: var(--mw-bg-light);
    padding: var(--mw-space-2xl) 0 var(--mw-space-xl);
    text-align: center;
}

.mw-intro-content {
    max-width: 800px;
    margin: 0 auto;
}

.mw-intro-content h2 {
    margin-bottom: var(--mw-space-md);
}

.mw-intro-content p {
    font-size: var(--mw-text-lg);
    color: var(--mw-text-light);
    line-height: 1.8;
}

/* Filter Section */
.mw-filter-section {
    display: flex;
    justify-content: center;
    gap: var(--mw-space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--mw-space-xl);
}

.mw-filter-btn {
    padding: var(--mw-space-xs) var(--mw-space-md);
    background: white;
    color: var(--mw-blue);
    border: 2px solid var(--mw-border);
    border-radius: var(--mw-radius-md);
    font-weight: 600;
    font-size: var(--mw-text-sm);
    cursor: pointer;
    transition: var(--mw-transition);
    min-height: 40px;
}

.mw-filter-btn:hover {
    border-color: var(--mw-accent);
    transform: translateY(-2px);
    box-shadow: var(--mw-shadow);
}

.mw-filter-btn.active {
    background: var(--mw-accent);
    border-color: var(--mw-accent);
    color: var(--mw-blue);
}

/* Projects Grid Section */
.mw-projects-section {
    padding: var(--mw-space-3xl) 0;
    background: var(--mw-bg-light);
}

.mw-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--mw-space-lg);
    margin-top: var(--mw-space-xl);
}

@media (min-width: 992px) {
    .mw-projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Project Card */
.mw-project-card {
    background: white;
    border-radius: var(--mw-radius-xl);
    overflow: hidden;
    box-shadow: var(--mw-shadow-md);
    transition: var(--mw-transition);
    cursor: pointer;
    position: relative;
}

a.mw-project-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

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

.mw-project-card.hidden {
    display: none;
}

.mw-project-card-image {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    overflow: hidden;
    background: var(--mw-bg-alt);
}

.mw-project-card-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mw-project-card:hover .mw-project-card-image img {
    transform: scale(1.1);
}

.mw-project-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(47,72,88,0.78) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--mw-space-md);
}

.mw-project-badge {
    position: absolute;
    top: var(--mw-space-sm);
    right: var(--mw-space-sm);
    background: var(--mw-accent);
    color: var(--mw-blue);
    padding: 6px 12px;
    border-radius: var(--mw-radius-md);
    font-size: var(--mw-text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mw-project-card h3 {
    color: white;
    margin-bottom: var(--mw-space-xs);
    font-size: var(--mw-text-xl);
}

.mw-project-card-description {
    color: rgba(255,255,255,0.9);
    font-size: var(--mw-text-sm);
    line-height: 1.5;
    margin-bottom: var(--mw-space-sm);
}

.mw-project-card-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--mw-space-xs);
    color: var(--mw-accent);
    font-weight: 600;
    font-size: var(--mw-text-sm);
    transition: var(--mw-transition);
}

.mw-project-card:hover .mw-project-card-cta {
    gap: var(--mw-space-sm);
}

/* Additional Projects Gallery Section */
.mw-additional-gallery-section {
    background: white;
    padding: var(--mw-space-3xl) 0;
}

.mw-additional-gallery-section .mw-section-header {
    text-align: center;
    margin-bottom: var(--mw-space-2xl);
}

.mw-additional-gallery-section h2 {
    margin-bottom: var(--mw-space-sm);
}

.mw-additional-gallery-section .mw-section-subtitle {
    color: var(--mw-text-light);
    font-size: var(--mw-text-lg);
    max-width: 600px;
    margin: 0 auto;
}

.mw-additional-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--mw-space-lg);
    margin-top: var(--mw-space-xl);
}

@media (max-width: 1199px) {
    .mw-additional-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--mw-space-md);
    }
}

@media (max-width: 767px) {
    .mw-additional-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--mw-space-sm);
    }
}

.mw-gallery-item-extra {
    position: relative;
    overflow: hidden;
    border-radius: var(--mw-radius-lg);
    box-shadow: 0 4px 12px rgba(47, 72, 88, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--mw-bg-alt);
    aspect-ratio: 3/4;
    width: 100%;
    height: 0;
    padding-bottom: 133.33%;
}

.mw-gallery-item-extra:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(47, 72, 88, 0.15), 0 4px 12px rgba(47, 72, 88, 0.1);
}

.mw-gallery-item-extra img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    display: block;
}

.mw-gallery-item-extra:hover img {
    transform: scale(1.08);
}

/* Bottom CTA Section */
.mw-bottom-cta {
    background: linear-gradient(135deg, var(--mw-blue), var(--mw-blue-dark));
    padding: var(--mw-space-3xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mw-bottom-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.05;
}

.mw-bottom-cta-content {
    position: relative;
    z-index: 2;
}

.mw-bottom-cta h2 {
    color: white;
    margin-bottom: var(--mw-space-md);
}

.mw-bottom-cta p {
    color: rgba(255,255,255,0.9);
    font-size: var(--mw-text-lg);
    max-width: 600px;
    margin: 0 auto var(--mw-space-xl);
    line-height: 1.8;
}

.mw-cta-buttons {
    display: flex;
    gap: var(--mw-space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.mw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.8rem, 2.2vw, 1rem) clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    border-radius: 999px;
    transition: var(--mw-transition);
    text-decoration: none;
    cursor: pointer;
    border: none;
    min-height: 48px;
    gap: 0.5rem;
    white-space: nowrap;
    text-align: center;
}

.mw-btn-primary {
    background: var(--mw-accent);
    color: var(--mw-blue);
    box-shadow: 0 12px 24px rgba(255, 175, 0, 0.3);
}

.mw-btn-primary:hover {
    background: var(--mw-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(255, 175, 0, 0.4);
}

.mw-btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.mw-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Expanded Project View (Modal) */
.mw-project-modal {
    position: fixed;
    inset: 0;
    background: var(--mw-bg);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mw-project-modal.active {
    opacity: 1;
    visibility: visible;
}

.mw-project-modal-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s;
}

.mw-project-modal.active .mw-project-modal-content {
    opacity: 1;
    transform: translateY(0);
}

/* Modal Header */
.mw-modal-header {
    position: sticky;
    top: 0;
    background: white;
    border-bottom: 1px solid var(--mw-border);
    padding: var(--mw-space-md);
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.mw-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--mw-bg-alt);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--mw-transition);
    color: var(--mw-blue);
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
}

.mw-modal-close:hover {
    background: var(--mw-accent);
    transform: rotate(90deg);
}

/* Modal Hero */
.mw-modal-hero {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
    background: var(--mw-bg-alt);
}

.mw-modal-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mw-modal-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(47,72,88,0.75) 0%, transparent 100%);
    padding: var(--mw-space-2xl) var(--mw-space-md);
}

.mw-modal-hero-overlay h2 {
    color: white;
    margin-bottom: var(--mw-space-sm);
}

.mw-modal-hero-meta {
    display: flex;
    gap: var(--mw-space-md);
    flex-wrap: wrap;
}

.mw-meta-item {
    display: flex;
    align-items: center;
    color: rgba(255,255,255,0.9);
    font-size: var(--mw-text-sm);
    font-weight: 500;
    padding: 6px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--mw-radius-sm);
    backdrop-filter: blur(4px);
}

/* Modal Body */
.mw-modal-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--mw-space-2xl) var(--mw-space-md);
}

.mw-project-description {
    font-size: var(--mw-text-base);
    color: var(--mw-text);
    line-height: 1.8;
    margin-bottom: var(--mw-space-2xl);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.mw-project-description p {
    margin-bottom: var(--mw-space-md);
    text-align: left;
}

.mw-project-description p:first-of-type {
    font-size: var(--mw-text-lg);
    font-weight: 500;
    color: var(--mw-blue);
}

/* Project Highlights */
.mw-project-highlights {
    background: var(--mw-bg-light);
    border-radius: var(--mw-radius-lg);
    padding: var(--mw-space-xl);
    margin-bottom: var(--mw-space-2xl);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.mw-project-highlights h3 {
    text-align: center;
    margin-bottom: var(--mw-space-lg);
    color: var(--mw-blue);
}

.mw-highlights-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--mw-space-md);
}

.mw-highlights-list li {
    position: relative;
    padding-left: var(--mw-space-lg);
    color: var(--mw-text);
    line-height: 1.6;
}

.mw-highlights-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--mw-accent);
    font-weight: 700;
    font-size: var(--mw-text-lg);
}

@media (max-width: 768px) {
    .mw-highlights-list {
        grid-template-columns: 1fr;
    }
}

/* Image Gallery */
.mw-gallery-section {
    margin-bottom: var(--mw-space-2xl);
}

.mw-gallery-section h3 {
    text-align: center;
    margin-bottom: var(--mw-space-xl);
}

.mw-image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--mw-space-md);
}

@media (min-width: 768px) {
    .mw-image-gallery {
        gap: var(--mw-space-lg);
    }
}

.mw-gallery-item {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    border-radius: var(--mw-radius-lg);
    overflow: hidden;
    box-shadow: var(--mw-shadow-md);
    transition: var(--mw-transition);
}

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

.mw-gallery-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CTA Section */
.mw-cta-section {
    background: linear-gradient(135deg, var(--mw-blue), var(--mw-blue-light));
    border-radius: var(--mw-radius-xl);
    padding: var(--mw-space-2xl) var(--mw-space-md);
    text-align: center;
    margin-top: var(--mw-space-2xl);
}

.mw-cta-section h3 {
    color: white;
    margin-bottom: var(--mw-space-md);
}

.mw-cta-section p {
    color: rgba(255,255,255,0.9);
    font-size: var(--mw-text-lg);
    margin-bottom: var(--mw-space-xl);
}

/* Navigation Controls */
.mw-modal-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mw-modal-nav.prev { left: var(--mw-space-md); }
.mw-modal-nav.next { right: var(--mw-space-md); }

.mw-nav-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--mw-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--mw-transition);
    box-shadow: var(--mw-shadow-lg);
    color: var(--mw-blue);
    font-size: 24px;
    font-weight: 300;
}

.mw-nav-button:hover {
    background: var(--mw-accent);
    border-color: var(--mw-accent);
    transform: scale(1.1);
}

.mw-nav-button:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .mw-modal-nav {
        display: none;
    }
}

/* Project Navigation */
.mw-project-navigation {
    display: flex;
    gap: var(--mw-space-md);
    align-items: center;
}

.mw-nav-link {
    display: flex;
    align-items: center;
    gap: var(--mw-space-xs);
    padding: var(--mw-space-xs) var(--mw-space-sm);
    background: var(--mw-bg-light);
    border: 1px solid var(--mw-border);
    border-radius: var(--mw-radius-sm);
    cursor: pointer;
    transition: var(--mw-transition);
    text-decoration: none;
    color: var(--mw-blue);
    font-size: var(--mw-text-sm);
    font-weight: 500;
}

.mw-nav-link:hover {
    background: var(--mw-accent);
    border-color: var(--mw-accent);
    transform: translateY(-1px);
}

.mw-nav-arrow {
    font-size: var(--mw-text-base);
    font-weight: 700;
}

.mw-nav-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

@media (max-width: 768px) {
    .mw-nav-label {
        max-width: 100px;
    }
}

@media (max-width: 480px) {
    .mw-nav-label {
        display: none;
    }

    .mw-nav-link {
        padding: var(--mw-space-xs);
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Accessibility */
*:focus-visible {
    outline: 2px solid var(--mw-accent);
    outline-offset: 2px;
}

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

/* Loading State */
.mw-loading {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mw-loading.active {
    opacity: 1;
    visibility: visible;
}

.mw-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--mw-bg-alt);
    border-top-color: var(--mw-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Get Your Free Quote Section */
.mw-quote-section {
    background: var(--mw-bg-light);
    padding: var(--mw-space-3xl) 0;
    border-top: 1px solid var(--mw-border);
}

.mw-quote-section .mw-section-header {
    text-align: center;
    margin-bottom: var(--mw-space-2xl);
}

.mw-quote-section .mw-section-header h2 {
    margin-bottom: var(--mw-space-sm);
}

.mw-quote-section .mw-section-subtitle {
    color: var(--mw-text-light);
    font-size: var(--mw-text-lg);
    max-width: 700px;
    margin: 0 auto;
}

.mw-quote-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--mw-space-2xl);
    align-items: start;
}

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

/* Form Container */
.mw-quote-form-container {
    position: relative;
}

.mw-quote-form {
    background: white;
    border-radius: var(--mw-radius-xl);
    padding: var(--mw-space-xl);
    box-shadow: var(--mw-shadow-lg);
    border: 1px solid var(--mw-border);
}

.mw-form-title {
    color: var(--mw-blue);
    text-align: center;
    margin-bottom: var(--mw-space-lg);
    padding-bottom: var(--mw-space-md);
    border-bottom: 2px solid var(--mw-accent);
    font-size: var(--mw-text-2xl);
}

.mw-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--mw-space-md);
    margin-bottom: var(--mw-space-md);
}

@media (max-width: 640px) {
    .mw-form-row {
        grid-template-columns: 1fr;
        gap: var(--mw-space-sm);
    }
}

.mw-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--mw-space-md);
    position: relative;
}

.mw-form-group label {
    font-weight: 600;
    color: var(--mw-blue);
    margin-bottom: var(--mw-space-xs);
    font-size: var(--mw-text-sm);
}

.mw-form-group input,
.mw-form-group select,
.mw-form-group textarea {
    padding: 12px 16px;
    border: 2px solid var(--mw-border);
    border-radius: var(--mw-radius-md);
    font-size: var(--mw-text-base);
    font-family: inherit;
    transition: var(--mw-transition);
    background: white;
    color: var(--mw-text);
}

.mw-form-group input:focus,
.mw-form-group select:focus,
.mw-form-group textarea:focus {
    outline: none;
    border-color: var(--mw-accent);
    box-shadow: 0 0 0 3px rgba(255, 175, 0, 0.1);
}

.mw-form-group input::placeholder,
.mw-form-group textarea::placeholder {
    color: var(--mw-text-light);
    opacity: 0.6;
}

.mw-form-group select {
    cursor: pointer;
    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='%232F4858' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.mw-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Form Error States */
.mw-form-error {
    display: none;
    color: #dc3545;
    font-size: var(--mw-text-xs);
    margin-top: 4px;
}

.mw-form-group.error input,
.mw-form-group.error select,
.mw-form-group.error textarea {
    border-color: #dc3545;
}

.mw-form-group.error .mw-form-error {
    display: block;
}

/* Submit Button */
.mw-btn-submit {
    width: auto;
    min-width: 240px;
    margin-top: var(--mw-space-md);
    margin-left: auto;
    margin-right: auto;
    display: block;
    position: relative;
    overflow: hidden;
}

@media (max-width: 640px) {
    .mw-btn-submit {
        width: 100%;
    }
}

.mw-btn-submit .mw-btn-loading {
    display: none;
}

.mw-btn-submit.loading .mw-btn-text {
    display: none;
}

.mw-btn-submit.loading .mw-btn-loading {
    display: block;
}

.mw-btn-submit.loading {
    pointer-events: none;
    opacity: 0.8;
}

/* Form Privacy Note */
.mw-form-privacy {
    text-align: center;
    font-size: var(--mw-text-xs);
    color: var(--mw-text-light);
    margin-top: var(--mw-space-md);
    line-height: 1.5;
}

/* Success Message */
.mw-quote-success {
    display: none;
    background: white;
    border-radius: var(--mw-radius-xl);
    padding: var(--mw-space-2xl);
    box-shadow: var(--mw-shadow-lg);
    border: 1px solid var(--mw-border);
    text-align: center;
}

.mw-quote-success.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

.mw-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mw-accent), var(--mw-accent-hover));
    color: var(--mw-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    margin: 0 auto var(--mw-space-lg);
    box-shadow: 0 8px 24px rgba(255, 175, 0, 0.3);
}

.mw-quote-success h3 {
    color: var(--mw-blue);
    margin-bottom: var(--mw-space-md);
}

.mw-quote-success p {
    color: var(--mw-text);
    font-size: var(--mw-text-base);
    line-height: 1.7;
    margin-bottom: var(--mw-space-md);
}

.mw-success-details {
    padding-top: var(--mw-space-md);
    border-top: 1px solid var(--mw-border);
    margin-top: var(--mw-space-md);
}

.mw-success-details a {
    color: var(--mw-accent);
    text-decoration: none;
    font-weight: 600;
}

.mw-success-details a:hover {
    text-decoration: underline;
}

.mw-quote-success .mw-btn {
    margin-top: var(--mw-space-lg);
}

/* Benefits Column */
.mw-quote-benefits {
    background: white;
    border-radius: var(--mw-radius-xl);
    padding: var(--mw-space-xl);
    box-shadow: var(--mw-shadow-md);
    border: 1px solid var(--mw-border);
    height: fit-content;
    position: sticky;
    top: calc(var(--mw-space-md) + 60px);
}

@media (max-width: 992px) {
    .mw-quote-benefits {
        position: static;
    }
}

.mw-quote-benefits h3 {
    color: var(--mw-blue);
    margin-bottom: var(--mw-space-lg);
    text-align: center;
}

.mw-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mw-benefits-list li {
    display: flex;
    gap: var(--mw-space-md);
    margin-bottom: var(--mw-space-lg);
    padding-bottom: var(--mw-space-lg);
    border-bottom: 1px solid var(--mw-border);
}

.mw-benefits-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.mw-benefit-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--mw-accent);
    color: var(--mw-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--mw-text-base);
}

.mw-benefit-content h4 {
    color: var(--mw-blue);
    font-size: var(--mw-text-base);
    font-weight: 700;
    margin-bottom: 4px;
}

.mw-benefit-content p {
    color: var(--mw-text-light);
    font-size: var(--mw-text-sm);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 640px) {
    .mw-quote-form,
    .mw-quote-benefits,
    .mw-quote-success {
        padding: var(--mw-space-md);
    }
}
