/* Exhaust System Diagram Page - Specialized Technical Styling */

:root {
    --color-primary: #C70532;
    --color-secondary: #E91E63;
    --color-bg: #FFFFFF;
    --color-text-primary: #1F2937;
    --color-text-secondary: #6B7280;
    --color-blueprint: #0A3A66;
    --color-grid-line: rgba(10, 58, 102, 0.05);
    --color-grid-line-dark: rgba(10, 58, 102, 0.1);
    --transition-smooth: all 0.3s ease-in-out;
}

/* Blueprint Grid Background Pattern */
.blueprint-grid {
    background-image:
        linear-gradient(0deg, var(--color-grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--color-grid-line) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: 0 0, 0 0;
}

/* Technical Line Elements */
.technical-line {
    position: relative;
}

.technical-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), transparent);
}

.technical-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary));
}

/* Section Spacing - Minimalista */
section {
    padding: 6rem 0;
}

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    section {
        padding: 3rem 0;
    }
}

/* Typography - Clear and Technical */
h2, h3 {
    letter-spacing: -0.5px;
    font-weight: 700;
    color: var(--color-text-primary);
}

h2 {
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    line-height: 1.2;
}

h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

p {
    line-height: 1.7;
    color: var(--color-text-secondary);
}

/* Measurement Indicators */
.measurement {
    position: relative;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    background: rgba(199, 5, 50, 0.05);
    border: 1px solid rgba(199, 5, 50, 0.2);
    border-radius: 2px;
    font-family: 'Courier New', monospace;
}

/* Technical Indicators */
.indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    margin-right: 0.75rem;
}

/* Large Image Container */
.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    border: 1px solid #E5E7EB;
    background: linear-gradient(135deg, #F9FAFB 0%, #FFFFFF 100%);
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.05));
}

.image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(10, 58, 102, 0.02) 2px,
            rgba(10, 58, 102, 0.02) 4px
        );
    pointer-events: none;
}

/* Technical Diagram Area */
.diagram-area {
    position: relative;
    background: white;
    border: 2px solid #E5E7EB;
    padding: 2rem;
    border-radius: 2px;
    margin: 2rem 0;
}

.diagram-area::before,
.diagram-area::after {
    content: '';
    position: absolute;
    background: var(--color-primary);
}

.diagram-area::before {
    top: 0;
    left: 0;
    width: 20px;
    height: 2px;
}

.diagram-area::after {
    bottom: 0;
    right: 0;
    width: 20px;
    height: 2px;
}

/* Whitespace - Generous Spacing */
.spacer-lg {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.spacer-xl {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

/* Container with Wide Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container.wide {
    max-width: 1400px;
}

/* Section Header - Centered, Minimal */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--color-primary);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin: 1.5rem 0 0 0;
}

/* Technical Grid - No Card Repetition */
.technical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
}

.technical-item {
    position: relative;
    padding: 2rem;
    background: white;
    border-left: 3px solid var(--color-primary);
    transition: var(--transition-smooth);
}

.technical-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--color-primary), transparent);
}

.technical-item:hover {
    box-shadow: 0 8px 24px rgba(199, 5, 50, 0.08);
    border-left-color: var(--color-secondary);
}

.technical-item h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.technical-item p {
    margin: 0;
    font-size: 0.95rem;
}

/* Timeline - Technical Style */
.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 4rem auto;
}

.timeline-line {
    position: absolute;
    left: 60px;
    top: 80px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--color-primary), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 150px;
}

.timeline-dot {
    position: absolute;
    left: 45px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary), inset 0 0 0 1px white;
}

.timeline-item h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.timeline-item p {
    margin: 0;
    font-size: 0.95rem;
}

/* Two Column Layout - Technical */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.two-column-image {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 0 10px 30px rgba(199, 5, 50, 0.12);
}

.two-column-image img {
    width: 100%;
    height: auto;
    display: block;
}

.two-column-content h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.two-column-content p {
    margin-bottom: 1.5rem;
}

/* List Items - No Bullets, Technical Markers */
.technical-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.technical-list li {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    align-items: flex-start;
}

.technical-list li::before {
    content: '—';
    color: var(--color-primary);
    font-size: 1.5rem;
    font-weight: 300;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

/* CTA Buttons */
.btn {
    padding: 0.875rem 2.25rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 2px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    border: 2px solid var(--color-primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(199, 5, 50, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .two-column {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .two-column {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-header h2::after {
        width: 30px;
    }

    .technical-grid {
        gap: 2rem;
    }

    .timeline-line {
        left: 35px;
    }

    .timeline-item {
        padding-left: 100px;
    }

    .timeline-dot {
        left: 22px;
        width: 14px;
        height: 14px;
        border-width: 2px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .technical-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .technical-item {
        padding: 1.5rem;
    }

    .timeline-line {
        left: 25px;
    }

    .timeline-item {
        padding-left: 80px;
        margin-bottom: 2.5rem;
    }

    .btn {
        width: 100%;
        padding: 1rem 1.5rem;
    }
}
