/* ============================================= */
/* == 0. GLOBAL & SHARED STYLES == */
/* ============================================= */
:root {
    --wave-color-dark: #21417C;
    --wave-color-light: #4A5A8D;
    --light-bg: #f8f9fa;
    --section-bg-light: #eff3f9;
}

/* .animated-background REMOVED (Moved to wave.css as .wc-animated-bg) */

/* Shared Typography & Layout */
.section-title h2,
.join-us-section .section-title h2,
.contact-section-no-bg .section-title h2,
.about-us-section .section-title {
    font-size: 2.8rem;
    font-weight: 800;
}

.join-us-section .section-title,
.contact-section-no-bg .section-title {
    color: var(--wave-color-dark);
}

.about-us-content h3,
.feature-row-content h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--wave-color-dark);
    margin-bottom: 1.5rem;
}

.about-us-content p,
.feature-row-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #555;
}

/* Shared Button Styles */
.btn-base {
    position: relative;
    display: inline-block;
    padding: 12px 35px;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    background-size: 200%;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease;
    text-decoration: none;
    text-align: center;
}

.btn-base:hover {
    background-position: 100% 0;
    transform: translateY(-3px);
}

.btn-base::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-20deg);
    transition: all 0.7s ease;
}

.btn-base:hover::before {
    left: 125%;
}

/* Feature Button Modifier */
.btn-feature {
    color: #fff;
    background: linear-gradient(90deg, #3b68d3, #5b86e5, #3b68d3);
    box-shadow: 0 0 10px rgba(91, 134, 229, 0.4);
}

.btn-feature:hover {
    box-shadow: 0 0 25px rgba(91, 134, 229, 0.8), 0 0 50px rgba(33, 65, 124, 0.5);
    color: #fff;
}

/* Join Button Modifier */
.btn-join {
    color: var(--wave-color-dark);
    background: linear-gradient(90deg, #ffffff, #dfe8ff, #ffffff);
    box-shadow: 0 0 10px rgba(33, 65, 124, 0.2);
    opacity: 0;
    transform: translateY(20px);
}

a.join-card {
    display: block;
    text-decoration: none;
}

.join-card:hover .btn-join {
    opacity: 1;
    transform: translateY(0);
}

.btn-join:hover {
    color: var(--wave-color-dark);
    box-shadow: 0 0 25px rgba(33, 65, 124, 0.3);
}


/* ============================================= */
/* == 1. ABOUT US SECTION STYLES == */
/* ============================================= */
.about-us-section {
    padding: 80px 0;
}

.about-us-section .section-title {
    color: var(--wave-color-dark);
    margin-bottom: 1rem;
}

.about-us-section .section-subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 3rem;
}

.about-us-image img {
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(33, 65, 124, 0.15);
}

.about-us-section .counter-item {
    color: var(--wave-color-dark);
    text-align: center;
}

.about-us-section .counter-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-us-section .counter-number-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.about-us-section .counter-value {
    font-size: 2.5rem;
    font-weight: 700;
}

.about-us-section .counter-plus {
    font-size: 1.8rem;
    font-weight: 600;
    margin-right: 4px;
}

.about-us-section .counter-label {
    font-size: 1rem;
    margin-top: 0.5rem;
    font-weight: 300;
}

/* ================================================== */
/* == 2. IMAGE CARD (JOIN US) SECTION STYLES == */
/* ================================================== */
.join-us-section {
    padding: 80px 0;
    background-color: #fff;
}

.join-us-section .section-title {
    margin-bottom: 4rem;
}

.join-card {
    position: relative;
    min-height: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

@media (max-width: 991.98px) {
    .join-card {
        min-height: auto;
        aspect-ratio: 1 / 1;
    }
}

.join-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    z-index: 1;
}

.join-card:hover .join-card-img {
    transform: scale(1.1);
}

.join-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.join-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 50%);
    transition: all 0.4s ease;
    z-index: 2;
    pointer-events: none;
}

.join-card:hover::before {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(33, 65, 124, 0.4) 100%);
}

.join-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    color: #fff;
    text-align: center;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 3;
}

.join-card:hover .join-card-content {
    transform: translateY(0);
}

.join-card-content h5 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* ======================================================= */
/* == 3. FEATURE ROWS SECTION STYLES == */
/* ======================================================= */
.feature-rows-section {
    padding: 30px 0;
}

.feature-row {
    padding: 4rem 0;
    align-items: center;
}

.feature-row:nth-child(odd) {
    background-color: var(--section-bg-light);
}

.feature-row-content p {
    margin-bottom: 2rem;
}

.feature-row-image {
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(33, 65, 124, 0.15);
    overflow: hidden;
    transition: all 0.4s ease;
}

.feature-row-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(33, 65, 124, 0.25);
}

.feature-row-image img {
    transition: transform 0.4s ease;
}

.feature-row-image:hover img {
    transform: scale(1.1);
}

@media (max-width: 991.98px) {
    .feature-row-content {
        text-align: center;
    }

    .feature-row-content.text-right {
        text-align: center !important;
    }

    .feature-row .col-lg-6:first-child {
        margin-bottom: 2rem;
    }
}

/* ======================================================= */
/* == 4. CONTACT SECTION STYLES == */
/* ======================================================= */
.contact-section-no-bg {
    padding: 0 0 120px 0;
    background-color: transparent;
}

.contact-section-no-bg .section-title {
    margin-bottom: 4rem;
}

.contact-section-no-bg .contact-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 8px 32px 0 rgba(33, 65, 124, 0.1);
    color: #343a40;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 5;
}

.contact-section-no-bg .card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(33, 65, 124, 0.2) !important;
}

.contact-section-no-bg .contact-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--wave-color-dark);
}

.contact-section-no-bg h5 {
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.contact-section-no-bg .contact-info {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
}

.contact-section-no-bg .contact-info a {
    color: var(--wave-color-light);
    text-decoration: none;
    display: block;
    direction: ltr;
}

.contact-section-no-bg .contact-info a:hover {
    color: var(--wave-color-dark);
    text-decoration: underline;
}

/* wave-svg-bottom styles REMOVED from here */

/* ================================================ */
/* == 5. SHARED ANIMATIONS (WAVES & BUBBLES) == */
/* REMOVED - MOVED TO wave.css */
/* ================================================ */


.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 150px;
}

.wave-divider .shape-fill {
    fill: #FFFFFF;
}

/* بازنویسی رنگ‌های پیش‌فرض قالب به رنگ سازمانی شما */
a { text-decoration: none; font-weight: bold; color: #4A5A8D; }
.text-primary { color: #4A5A8D !important; }
.btn-primary { background-color: #4A5A8D !important; border-color: #4A5A8D !important; }
.btn-outline-primary { color: #4A5A8D !important; border-color: #4A5A8D !important; }
.btn-outline-primary:hover { background-color: #4A5A8D !important; color: #fff !important; }

/* استایل کارت‌های تماس (لیست آدرس و تلفن) */
.contact-info-row {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.contact-info-row:last-child { border-bottom: none; }

.contact-label { font-weight: bold; color: #21417C; margin-bottom: 5px; display: block; }
.contact-value { color: #555; font-size: 0.95rem; line-height: 1.6; }

/* استایل باکس خدمات پس از فروش */
.service-box {
    background-color: #f8f9fa;
    border: 2px dashed #4A5A8D;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}
.service-box:hover { background-color: #fff; box-shadow: 0 5px 15px rgba(74, 90, 141, 0.15); }

/* دکمه‌های گرادینت */
.btn-base {
    position: relative; display: inline-block; padding: 10px 25px; border: none; border-radius: 50px;
    font-weight: 700; font-size: 0.9rem; cursor: pointer; overflow: hidden; color: #fff !important;
    transition: all 0.4s ease; text-align: center;
}
.btn-feature {
    background: linear-gradient(90deg, #4A5A8D, #6a7ac2, #4A5A8D); background-size: 200%;
    box-shadow: 0 4px 15px rgba(74, 90, 141, 0.3);
}
.btn-feature:hover { background-position: 100% 0; box-shadow: 0 6px 20px rgba(74, 90, 141, 0.5); }

/* هدر چسبان (Sticky Header) */
.page-header--middle.sticky {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background-color: white; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); padding: 10px 0;
}

/* کانتینر نقشه */
.map-container {
    width: 100%; height: 100%; min-height: 450px;
    border-radius: 15px; overflow: hidden; border: 1px solid #ddd;
}
.map-container iframe { width: 100%; height: 100%; border: 0; }

/* استایل پریلودر (Loading) */
#professional-preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: #ffffff; display: flex; justify-content: center; align-items: center;
    flex-direction: column; z-index: 99999; transition: opacity 0.7s ease, visibility 0.7s ease;
}
#professional-preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-icons i {
    font-size: 60px; color: #4A5A8D; animation: icon-pulse 2s infinite;
}
@keyframes icon-pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}