﻿
/* ================= GLOBAL STYLES ================= */
:root {
    --color-primary: #9F2F38;
    --color-primary-dark: #7a232a;
    --color-secondary: #142846;
    --color-white: #FFFFFF;
    --color-gray-light: #F8FAFC;
    --color-gray: #64748B;
    --color-dark: #1E293B;
    --color-green: #10B981;
    --color-yellow: #F59E0B;
    --color-blue: #3B82F6;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-white);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

section {
    padding: 40px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    gap: 8px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

    .btn-primary:hover {
        background-color: var(--color-primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(159, 47, 56, 0.2);
    }

.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

    .btn-outline:hover {
        background-color: var(--color-secondary);
        color: var(--color-white);
    }

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

    .btn-secondary:hover {
        background-color: #0d1f3b;
    }

/* ================= HEADER ================= */
.main-header {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #1a365d 100%);
    padding: 40px 0 60px;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

    .main-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600" opacity="0.1"><path d="M0 0h1200v600H0z" fill="none"/><path d="M0 300q300-150 600 0t600 0" stroke="white" stroke-width="2" fill="none"/></svg>') center/cover;
    }

.header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.header-breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

    .header-breadcrumb a {
        color: rgba(255, 255, 255, 0.8);
    }

        .header-breadcrumb a:hover {
            color: var(--color-white);
        }

    .header-breadcrumb .separator {
        color: rgba(255, 255, 255, 0.5);
    }

.header-title {
    font-size: 36px;
    margin-bottom: 12px;
    font-weight: 800;
}

.header-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 20px;
    line-height: 1.5;
}
/* ================= SERVICES GRID ================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
    margin-top: 20px;
}

.service-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    min-height: 360px;
    display: flex;
    flex-direction: column;
}

    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }

        .service-card:hover .service-image {
            transform: scale(1.05);
        }

        .service-card:hover .view-workers-btn {
            background-color: var(--color-primary-dark);
            transform: translateY(-2px);
        }

.service-image-container {
    height: 280px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .service-image-placeholder i {
        font-size: 48px;
        color: var(--color-white);
        opacity: 0.8;
    }

.service-content {
    padding: 16px 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
   margin-bottom:8px;
}

.service-card-title {
    font-size: 22px;
    color: var(--color-secondary);
    margin-bottom: 0;
    flex-grow: 1;
}

.workers-badge {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    margin-left: 10px;
    position: absolute;
    top: 6px;
    right: 6px;
    left: auto;
}
    .workers-badge:dir(rtl) {
        right: auto;
        left: 6px;
    }
    .workers-badge i {
        font-size: 10px;
    }

.service-card-description {
    color: var(--color-gray);
    margin-bottom: 16px;
    line-height: 1.4;
    flex-grow: 1;
}

.service-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
/*    padding-top: 15px;*/
/*    border-top: 1px solid #eee;*/
    margin-top: auto;
}

.service-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
}

    .service-price span {
        font-size: 14px;
        color: var(--color-gray);
        font-weight: 500;
    }

.view-workers-btn {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

    .view-workers-btn i {
        font-size: 12px;
        transition: var(--transition);
    }

    .view-workers-btn:hover i {
        transform: translateX(3px);
    }

/* ================= FEATURED SERVICES ================= */
.section-header {
    text-align: center;
    margin-bottom: 0px;
}

.section-label {
    display: inline-block;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    position: relative;
}

    .section-label::before {
        content: '';
        position: absolute;
        top: 50%;
        width: 20px;
        height: 1px;
        background: var(--color-primary);
    }

[dir="rtl"] .section-label::before {
    right: -30px;
    left: auto;
}
        [dir="ltr"] .section-label::before {
            left: -30px;
            right: auto;
        }
/*    .section-label::after {
        right: -40px;
    }*/

.section-title {
    font-size: 36px;
    color: var(--color-secondary);
    margin-bottom: 20px;
}

.section-description {
    color: var(--color-gray);
    max-width: 600px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
}

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--color-yellow);
}

/* ================= SERVICE PROCESS ================= */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.process-step {
    text-align: center;
    padding: 30px;
    position: relative;
}

    .process-step::before {
        content: '';
        position: absolute;
        top: 60px;
        right: -15px;
        width: 30px;
        height: 3px;
        background: var(--color-primary);
        opacity: 0.3;
    }

    .process-step:last-child::before {
        display: none;
    }

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    border-radius: 50%;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(159, 47, 56, 0.3);
}

.step-title {
    font-size: 20px;
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.step-description {
    color: var(--color-gray);
    line-height: 1.6;
}

/* ================= CTA SECTION ================= */
.cta-section {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #1a365d 100%);
    color: var(--color-white);
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

    .cta-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600" opacity="0.05"><circle cx="600" cy="300" r="250" fill="white"/></svg>') center/contain no-repeat;
    }

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 32px;
    margin-bottom: 16px;
    font-weight: 700;
}

.cta-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ================= LOADING STATES ================= */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: var(--color-gray);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-text {
    font-size: 18px;
    font-weight: 500;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
    padding: 40px;
}

.error-icon {
    font-size: 64px;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.error-message {
    font-size: 18px;
    color: var(--color-gray);
    margin-bottom: 30px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1200px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .header-title {
        font-size: 36px;
    }

    .section-title {
        font-size: 30px;
    }

    .process-step::before {
        display: none;
    }

    .process-steps {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 50px auto 0;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .header-title {
        font-size: 32px;
    }

    .header-description {
        font-size: 16px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .service-card {
        height: auto;
        min-height: 350px;
    }

    .cta-title {
        font-size: 32px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    .header-title {
        font-size: 20px;
    }

    .section-title {
        font-size: 26px;
    }

    .service-title-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .workers-badge {
        margin-left: 0;
    }

    .service-card-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .view-workers-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ================= ANIMATIONS ================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.service-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

/* Add a default image if none is provided */
.service-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 48px;
}



/* ================= ABOUT CONTENT ================= */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text h2 {
    font-size: 24px;
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.about-text p {
    color: var(--color-gray);
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 14px;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.image-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
}

    .image-placeholder i {
        font-size: 50px;
        opacity: 0.2;
    }

/* ================= STATS ================= */
.stats-section {
    background: var(--color-gray-light);
    padding: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 25px 15px;
    background: var(--color-white);
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 6px;
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--color-gray);
    font-weight: 500;
}

/* ================= VALUES ================= */
.section-header {
    text-align: center;
    margin-bottom: 30px;
}

    .section-header h2 {
        font-size: 24px;
        color: var(--color-secondary);
        margin-bottom: 10px;
    }

    .section-header p {
        color: var(--color-gray);
        max-width: 500px;
        margin: 0 auto;
        font-size: 14px;
    }

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.value-card {
    text-align: center;
    padding: 20px 15px;
    border-radius: 6px;
    border: 1px solid #eee;
    background: var(--color-white);
    transition: var(--transition);
}

    .value-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
        border-color: var(--color-primary);
    }

.value-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

    .value-icon i {
        font-size: 18px;
        color: var(--color-white);
    }

.value-title {
    font-size: 16px;
    color: var(--color-secondary);
    margin-bottom: 8px;
    font-weight: 600;
}

.value-description {
    font-size: 13px;
    color: var(--color-gray);
    line-height: 1.4;
}

/* ================= WHY CHOOSE US ================= */
.why-choose-section {
    background: var(--color-gray-light);
    padding: 40px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
    background: var(--color-white);
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.benefit-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .benefit-icon i {
        font-size: 14px;
        color: var(--color-white);
    }

.benefit-content h4 {
    font-size: 15px;
    color: var(--color-secondary);
    margin-bottom: 6px;
    font-weight: 600;
}

.benefit-content p {
    font-size: 13px;
    color: var(--color-gray);
    line-height: 1.4;
}

/* ================= CTA ================= */
/* ================= CTA SECTION ================= */
.cta-section {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #1a365d 100%);
    color: var(--color-white);
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

    .cta-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600" opacity="0.05"><circle cx="600" cy="300" r="250" fill="white"/></svg>') center/contain no-repeat;
    }

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 800;
}

.cta-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
/* ================= ANIMATIONS ================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    opacity: 0;
}

    .animate-in.visible {
        animation: fadeIn 0.5s ease forwards;
    }



/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    section {
        padding: 40px 0;
    }

    .main-header {
        padding: 50px 0 70px;
    }

    .header-title {
        font-size: 32px;
    }

    .header-description {
        font-size: 15px;
    }

    .about-text h2 {
        font-size: 22px;
    }

    .section-header h2 {
        font-size: 22px;
    }

    .cta-title {
        font-size: 22px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }

    .values-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }

    .header-buttons,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 220px;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    .header-title {
        font-size: 28px;
    }

    .image-placeholder {
        height: 200px;
    }

        .image-placeholder i {
            font-size: 40px;
        }

    .stat-number {
        font-size: 24px;
    }

    .benefit-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}