/* Fire System Preventive Maintenance Styles */
/* ============================================= */

@import url('design-tokens.css');

/* 1. HERO SECTION */
.pm-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pm-hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.pm-hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pm-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(199, 5, 50, 0.5), rgba(3, 20, 58, 0.7));
    z-index: 2;
}

.pm-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 2rem;
}

.pm-hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.pm-hero-description {
    font-size: clamp(1rem, 3vw, 1.4rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    font-weight: 300;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.pm-hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 2. WHY PREVENTIVE MAINTENANCE MATTERS */
.pm-why-matters {
    padding: 6rem 0;
    background-color: var(--color-bg);
}

.pm-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.pm-two-column-image {
    overflow: hidden;
    border-radius: 8px;
    height: 600px;
}

.pm-two-column-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pm-two-column-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.pm-two-column-content > p {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.pm-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.pm-benefits-list li {
    font-size: 1rem;
    color: var(--color-text-primary);
    line-height: 1.7;
    padding-left: 0;
}

.pm-benefits-list strong {
    color: var(--color-primary);
    font-weight: 600;
}

/* 3. MAINTENANCE SCOPE */
.pm-scope {
    padding: 6rem 0;
    background-color: #F9FAFB;
}

.pm-section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.pm-section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--color-text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.pm-section-header p {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.pm-scope-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.pm-scope-item {
    text-align: center;
    padding: 2rem 1.5rem;
}

.pm-scope-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.pm-scope-item h3 {
    font-size: 1.1rem;
    color: var(--color-text-primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.pm-scope-item p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

.pm-scope-note {
    background: linear-gradient(135deg, rgba(199, 5, 50, 0.08), rgba(233, 30, 99, 0.08));
    border-left: 4px solid var(--color-primary);
    padding: 1.5rem;
    border-radius: 6px;
    text-align: center;
}

.pm-scope-note p {
    font-size: 0.95rem;
    color: var(--color-text-primary);
    margin: 0;
    line-height: 1.6;
}

/* 4. MAINTENANCE PROCESS - TIMELINE */
.pm-process {
    padding: 6rem 0;
    background-color: var(--color-bg);
}

.pm-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.pm-timeline-item {
    position: relative;
    padding: 2.5rem 2rem 2.5rem 5rem;
    background: white;
    border-radius: 8px;
    border-left: 3px solid var(--color-primary);
    transition: all 0.3s ease;
}

.pm-timeline-item:hover {
    box-shadow: 0 8px 24px rgba(199, 5, 50, 0.12);
    transform: translateY(-4px);
}

.pm-timeline-number {
    position: absolute;
    left: -18px;
    top: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    background: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pm-timeline-icon {
    position: absolute;
    left: 8px;
    top: 1.5rem;
    font-size: 1.5rem;
}

.pm-timeline-item h3 {
    font-size: 1.2rem;
    color: var(--color-text-primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.pm-timeline-item p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* 5. MAINTENANCE DOCUMENTATION */
.pm-documentation {
    padding: 6rem 0;
    background-color: #F9FAFB;
}

.pm-doc-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    align-items: start;
}

.pm-doc-column h3 {
    font-size: 1.3rem;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.pm-doc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pm-doc-list li {
    font-size: 1rem;
    color: var(--color-text-primary);
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
}

.pm-doc-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.pm-doc-example {
    background: white;
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-top: 3px solid var(--color-primary);
}

.pm-doc-preview {
    margin-top: 1.5rem;
}

.pm-doc-preview-header {
    border-bottom: 2px solid #E5E7EB;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.pm-doc-preview-header h4 {
    font-size: 1.1rem;
    color: var(--color-text-primary);
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.pm-doc-preview-header p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin: 0;
}

.pm-doc-preview-section {
    margin-bottom: 1.5rem;
}

.pm-doc-preview-section strong {
    font-size: 0.9rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.5rem;
}

.pm-doc-preview-section p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* 6. CALL TO ACTION */
.pm-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
}

.pm-cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.pm-cta-content h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    font-weight: 700;
}

.pm-cta-content p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
}

.pm-cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button style overrides for CTA */
.pm-cta .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.pm-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .pm-why-matters {
        padding: 4rem 0;
    }

    .pm-two-column {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pm-two-column-image {
        height: 400px;
    }

    .pm-scope {
        padding: 4rem 0;
    }

    .pm-scope-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .pm-scope-item {
        padding: 1.5rem 1rem;
    }

    .pm-process {
        padding: 4rem 0;
    }

    .pm-timeline {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pm-documentation {
        padding: 4rem 0;
    }

    .pm-doc-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pm-cta {
        padding: 3rem 0;
    }

    .pm-cta-content h2 {
        font-size: 1.8rem;
    }

    .pm-hero-buttons,
    .pm-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .pm-hero-buttons .btn,
    .pm-cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
        justify-content: center;
    }

    .pm-section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .pm-hero-title {
        font-size: 1.8rem;
    }

    .pm-hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .pm-two-column-image {
        height: 300px;
    }

    .pm-scope-grid {
        grid-template-columns: 1fr;
    }

    .pm-scope-item {
        padding: 1.5rem;
    }

    .pm-timeline-item {
        padding: 1.5rem 1rem 1.5rem 3.5rem;
    }

    .pm-timeline-number {
        font-size: 1rem;
    }

    .pm-doc-example {
        padding: 1.5rem;
    }

    .pm-cta-content p {
        font-size: 1rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pm-scope-item,
.pm-timeline-item,
.pm-doc-column {
    animation: fadeInUp 0.6s ease-out both;
}

.pm-scope-item:nth-child(1) { animation-delay: 0.1s; }
.pm-scope-item:nth-child(2) { animation-delay: 0.15s; }
.pm-scope-item:nth-child(3) { animation-delay: 0.2s; }
.pm-scope-item:nth-child(4) { animation-delay: 0.25s; }
.pm-scope-item:nth-child(5) { animation-delay: 0.3s; }
.pm-scope-item:nth-child(6) { animation-delay: 0.35s; }
.pm-scope-item:nth-child(7) { animation-delay: 0.4s; }
.pm-scope-item:nth-child(8) { animation-delay: 0.45s; }
.pm-scope-item:nth-child(9) { animation-delay: 0.5s; }
.pm-scope-item:nth-child(10) { animation-delay: 0.55s; }

.pm-timeline-item:nth-child(1) { animation-delay: 0.1s; }
.pm-timeline-item:nth-child(2) { animation-delay: 0.2s; }
.pm-timeline-item:nth-child(3) { animation-delay: 0.3s; }
.pm-timeline-item:nth-child(4) { animation-delay: 0.4s; }
.pm-timeline-item:nth-child(5) { animation-delay: 0.5s; }
.pm-timeline-item:nth-child(6) { animation-delay: 0.6s; }
