/* Fire Suppression Agent Recharge Styles */
/* ========================================= */

@import url('design-tokens.css');

/* 1. HERO SECTION */
.fsar-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.fsar-hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.fsar-hero-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fsar-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(199, 5, 50, 0.55), rgba(3, 20, 58, 0.75));
    z-index: 2;
}

.fsar-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 2rem;
}

.fsar-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);
    letter-spacing: -0.5px;
}

.fsar-hero-description {
    font-size: clamp(1rem, 3vw, 1.3rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    font-weight: 300;
    line-height: 1.7;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.fsar-hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 2. WHEN DOES A FIRE SYSTEM NEED RECHARGE? */
.fsar-when {
    padding: 7rem 0;
    background-color: var(--color-bg);
    position: relative;
    overflow: hidden;
}

.fsar-when-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.fsar-when-image {
    overflow: hidden;
    border-radius: 8px;
    height: 550px;
    box-shadow: 0 20px 40px rgba(199, 5, 50, 0.08);
}

.fsar-when-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fsar-when-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;
    letter-spacing: -0.5px;
}

.fsar-when-intro {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.fsar-when-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.fsar-when-list li {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.fsar-when-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(199, 5, 50, 0.1), rgba(233, 30, 99, 0.1));
    border-radius: 8px;
    border: 1px solid rgba(199, 5, 50, 0.2);
}

.fsar-when-item-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.fsar-when-item-text strong {
    font-size: 1rem;
    color: var(--color-text-primary);
    font-weight: 600;
}

.fsar-when-item-text span {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* 3. OUR RECHARGE SERVICE */
.fsar-service {
    padding: 7rem 0;
    background: linear-gradient(to bottom, #FAFBFC, #F9FAFB);
    position: relative;
}

.fsar-section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.fsar-section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--color-text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.fsar-section-header p {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.fsar-service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.fsar-service-item {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: white;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(199, 5, 50, 0.08);
}

.fsar-service-item:hover {
    box-shadow: 0 12px 32px rgba(199, 5, 50, 0.1);
    transform: translateY(-4px);
    border-color: rgba(199, 5, 50, 0.2);
}

.fsar-service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fsar-service-item h3 {
    font-size: 1.1rem;
    color: var(--color-text-primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.fsar-service-item p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* 4. OUR RECHARGE PROCESS */
.fsar-process {
    padding: 7rem 0;
    background-color: var(--color-bg);
}

.fsar-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.fsar-timeline-item {
    position: relative;
    padding: 2.5rem 2rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid var(--color-primary);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.fsar-timeline-item:hover {
    box-shadow: 0 12px 28px rgba(199, 5, 50, 0.12);
    transform: translateY(-4px);
}

.fsar-timeline-step {
    position: absolute;
    left: -18px;
    top: -12px;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(199, 5, 50, 0.3);
}

.fsar-timeline-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.fsar-timeline-item h3 {
    font-size: 1.15rem;
    color: var(--color-text-primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.fsar-timeline-item p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* 5. COMPLIANCE & DOCUMENTATION */
.fsar-compliance {
    padding: 7rem 0;
    background: linear-gradient(to bottom, #F9FAFB, #FAFBFC);
}

.fsar-compliance-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    align-items: start;
}

.fsar-compliance-column h3 {
    font-size: 1.3rem;
    color: var(--color-text-primary);
    margin-bottom: 2rem;
    font-weight: 600;
    line-height: 1.4;
}

.fsar-compliance-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.fsar-compliance-checklist li {
    font-size: 1rem;
    color: var(--color-text-primary);
    padding-left: 2.5rem;
    position: relative;
    line-height: 1.6;
}

.fsar-compliance-checklist li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #067a48;
    font-weight: 700;
    font-size: 1.2rem;
}

.fsar-compliance-report {
    background: white;
    border-radius: 8px;
    padding: 3rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--color-primary);
}

.fsar-report-preview {
    font-family: 'Courier New', monospace;
}

.fsar-report-header {
    border-bottom: 2px solid #E5E7EB;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.fsar-report-header h4 {
    font-size: 1.1rem;
    color: var(--color-text-primary);
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.fsar-report-header p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.fsar-report-divider {
    height: 1px;
    background: #E5E7EB;
    margin: 0.5rem 0;
}

.fsar-report-section {
    margin-bottom: 1.5rem;
}

.fsar-report-label {
    font-size: 0.8rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.fsar-report-section p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.8;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* 6. CALL TO ACTION */
.fsar-cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.fsar-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.fsar-cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.fsar-cta-content h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.fsar-cta-content p {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
}

.fsar-cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.fsar-cta .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.fsar-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .fsar-service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .fsar-timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .fsar-when-grid {
        gap: 3rem;
    }

    .fsar-compliance-showcase {
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .fsar-when {
        padding: 4rem 0;
    }

    .fsar-when-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .fsar-when-image {
        height: 400px;
    }

    .fsar-service {
        padding: 4rem 0;
    }

    .fsar-service-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .fsar-service-item {
        padding: 2rem 1.5rem;
    }

    .fsar-process {
        padding: 4rem 0;
    }

    .fsar-timeline {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .fsar-compliance {
        padding: 4rem 0;
    }

    .fsar-compliance-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .fsar-compliance-report {
        padding: 2rem;
    }

    .fsar-cta {
        padding: 3rem 0;
    }

    .fsar-cta-content h2 {
        font-size: 1.8rem;
    }

    .fsar-hero-buttons,
    .fsar-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .fsar-hero-buttons .btn,
    .fsar-cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
        justify-content: center;
    }

    .fsar-section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .fsar-hero-title {
        font-size: 1.8rem;
    }

    .fsar-hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .fsar-when-image {
        height: 300px;
    }

    .fsar-when-list {
        gap: 1.2rem;
    }

    .fsar-when-icon {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }

    .fsar-service-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .fsar-service-item {
        padding: 1.5rem 1rem;
    }

    .fsar-timeline-item {
        padding: 1.5rem 1rem 1.5rem 3.5rem;
    }

    .fsar-timeline-step {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .fsar-compliance-report {
        padding: 1.5rem;
    }

    .fsar-cta-content p {
        font-size: 1rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fsar-when-list li,
.fsar-service-item,
.fsar-timeline-item,
.fsar-compliance-column {
    animation: fadeInUp 0.6s ease-out both;
}

.fsar-when-list li:nth-child(1) { animation-delay: 0.1s; }
.fsar-when-list li:nth-child(2) { animation-delay: 0.15s; }
.fsar-when-list li:nth-child(3) { animation-delay: 0.2s; }
.fsar-when-list li:nth-child(4) { animation-delay: 0.25s; }
.fsar-when-list li:nth-child(5) { animation-delay: 0.3s; }

.fsar-service-item:nth-child(1) { animation-delay: 0.1s; }
.fsar-service-item:nth-child(2) { animation-delay: 0.15s; }
.fsar-service-item:nth-child(3) { animation-delay: 0.2s; }
.fsar-service-item:nth-child(4) { animation-delay: 0.25s; }
.fsar-service-item:nth-child(5) { animation-delay: 0.3s; }
.fsar-service-item:nth-child(6) { animation-delay: 0.35s; }
.fsar-service-item:nth-child(7) { animation-delay: 0.4s; }
.fsar-service-item:nth-child(8) { animation-delay: 0.45s; }

.fsar-timeline-item:nth-child(1) { animation-delay: 0.1s; }
.fsar-timeline-item:nth-child(2) { animation-delay: 0.2s; }
.fsar-timeline-item:nth-child(3) { animation-delay: 0.3s; }
.fsar-timeline-item:nth-child(4) { animation-delay: 0.4s; }
.fsar-timeline-item:nth-child(5) { animation-delay: 0.5s; }
.fsar-timeline-item:nth-child(6) { animation-delay: 0.6s; }

.fsar-compliance-column:nth-child(1) { animation-delay: 0.1s; }
.fsar-compliance-column:nth-child(2) { animation-delay: 0.2s; }
