﻿:root {
    --primary: #6a4a9c;
    --primary-dark: #4e357a;
    --primary-light: #9c7adc;
    --accent: #ffd700;
    --accent-alt: #ff9d5c;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --success: #28a745;
    --error: #dc3545;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --shadow: 0 8px 30px rgba(106, 74, 156, 0.15);
}

body {
    background: linear-gradient(135deg, #f9f7ff 0%, #f0edf7 100%);
    color: #333;
    overflow-x: hidden;
    background-attachment: fixed;
    line-height: 1.7;
    padding-top: 80px;
    font-family: Shabnam, Tahoma, sans-serif;
    scroll-behavior: smooth;
    margin: 0;
}

.section-title {
    font-size: 2.7rem;
    font-weight: 900;
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 2px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 120px;
    height: 5px;
    background: linear-gradient(90deg, var(--accent), var(--accent-alt));
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(255, 157, 92, 0.7);
}

/* تغییرات اصلی: جابجایی نقشه به سمت چپ و اطلاعات به سمت راست */
.top-contact-container {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    justify-content: center;
    align-items: flex-start;
    /* حذف direction: ltr */
}

/* اطلاعات تماس سمت راست */
.contact-info {
    flex: 1 1 480px;
    background: white;
    border-radius: 25px;
    box-shadow: var(--shadow);
    padding: 45px 40px 45px 45px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition);
    min-width: 300px;
    font-size: 1.1rem;
    /* حذف direction: rtl */
}

    .contact-info:hover {
        box-shadow: 0 25px 55px rgba(106, 74, 156, 0.35);
        transform: translateY(-7px);
    }

    .contact-info::before {
        content: "";
        position: absolute;
        top: -60px;
        right: -60px; /* تغییر به سمت راست */
        width: 220px;
        height: 220px;
        border-radius: 50%;
        background: var(--primary-light);
        opacity: 0.15;
        z-index: -1;
    }

.contact-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-dark);
    margin-bottom: 35px;
    position: relative;
    padding-bottom: 18px;
    letter-spacing: 0.7px;
    text-align: right;
}

    .contact-title::after {
        content: "";
        position: absolute;
        bottom: 0;
        right: 0; /* تغییر به سمت راست */
        width: 90px;
        height: 5px;
        background: linear-gradient(90deg, var(--accent), var(--accent-alt));
        border-radius: 10px;
        box-shadow: 0 3px 8px rgba(255, 157, 92, 0.6);
    }

.contact-details {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(106, 74, 156, 0.12);
    transition: var(--transition);
}

    .contact-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .contact-item:hover {
        background: #f9f6ff;
        border-radius: 20px;
        box-shadow: 0 6px 18px rgba(106, 74, 156, 0.1);
    }

.contact-icon {
    width: 56px;
    height: 56px;
    background: rgba(106, 74, 156, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 20px; /* تغییر به سمت چپ */
    flex-shrink: 0;
    transition: var(--transition);
    font-size: 1.8rem;
    color: var(--primary);
    box-shadow: inset 0 0 8px rgba(106, 74, 156, 0.3);
}

.contact-item:hover .contact-icon {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 15px var(--primary);
    transform: scale(1.15);
}

.contact-content h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
    font-weight: 700;
}

.contact-content p {
    font-size: 1.15rem;
    color: #555;
    margin-bottom: 7px;
    line-height: 1.5;
}

.contact-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    display: inline-block;
    letter-spacing: 0.4px;
}

    .contact-content a:hover {
        color: var(--primary-dark);
        text-decoration: underline;
        transform: translateX(4px);
    }

.phones-container {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 12px;
}

.phone-item {
    background: rgba(106, 74, 156, 0.07);
    padding: 10px 22px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-dark);
    box-shadow: 0 0 8px rgba(154, 123, 196, 0.12);
    user-select: text;
}

    .phone-item i {
        font-size: 1.4rem;
        color: var(--primary);
    }

    .phone-item:hover {
        background: var(--primary-light);
        color: var(--primary-dark);
        box-shadow: 0 6px 18px rgba(106, 74, 156, 0.25);
        transform: translateY(-2px);
    }

/* ساعت کاری */
.contact-hours {
    background: var(--primary);
    padding: 28px 30px;
    border-radius: 25px;
    margin-top: 40px;
    color: white;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    font-family: inherit;
    box-shadow: 0 6px 20px rgba(106, 74, 156, 0.3);
    letter-spacing: 0.7px;
}

    .contact-hours h4 {
        font-size: 1.5rem;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 13px;
        font-weight: 800;
    }

.hours-grid {
    display: grid;
    grid-template-columns: auto auto;
    gap: 18px;
}

.hour-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    font-weight: 700;
    font-size: 1.1rem;
}

.hour-day {
    letter-spacing: 0.4px;
}



/* مپ سمت چپ */
.map-wrapper {
    flex: 1 1 600px; /* بزرگ‌تر */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.contact-map {
    width: 100%;
    height: 500px;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border: 10px solid white;
}

    .contact-map iframe {
        width: 100%;
        height: 100%;
        border: none;
    }

/* دکمه مسیریابی زیر مپ */
.btn-route {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 35px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(106, 74, 156, 0.4);
    transition: var(--transition);
    font-size: 1.2rem;
    width: 100%;
    max-width: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    user-select: none;
    letter-spacing: 0.8px;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.15);
}

    .btn-route:hover {
        background: var(--primary-dark);
        box-shadow: 0 18px 45px rgba(78, 53, 122, 0.7);
        transform: translateY(-4px);
    }

/* ریسپانسیو */
@media (max-width: 992px) {
    .top-contact-container {
        flex-direction: column;
        gap: 40px;
    }

    .map-wrapper,
    .contact-info {
        flex-basis: 100%;
        max-width: 600px;
        margin: 0 auto;
        height: auto;
    }

    .contact-map {
        height: 400px;
        border-radius: 20px;
    }
}

@media (max-width: 576px) {
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-icon {
        margin-left: 0;
        margin-bottom: 18px;
    }

    .phones-container {
        justify-content: flex-start;
    }
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: rebeccapurple;
}
