/* --- وارد کردن استایل‌های پایه و متغیرها --- */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;700;900&display=swap');

:root {
    --primary-color: #0077b6; /* آبی عمیق */
    --secondary-color: #00b4d8; /* آبی روشن‌تر */
    --accent-color: #90e0ef; /* آبی ملایم */
    --dark-color: #03045e; /* آبی تیره برای متن/عناوین */
    --light-color: #f0f8ff; /* سفید مایل به آبی برای پس‌زمینه */
    --text-color: #333;
    --border-radius: 8px;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-heavy: 0 10px 20px rgba(0, 0, 0, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* --- استایل Header، Nav و Footer (برای یکپارچگی) --- */

header {
    background-color: var(--dark-color);
    color: white;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-heavy);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 {
    font-size: 1.8rem;
    font-weight: 900;
    margin: 0;
    color: var(--accent-color);
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    padding: 10px 0;
    transition: color 0.3s, border-bottom 0.3s;
    font-weight: 400;
}

nav a:hover, nav a.active {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

.dropdown {
    position: relative;
    display: inline-block;
    margin: 0 15px;
}

.dropbtn {
    background-color: transparent;
    color: white;
    padding: 10px 0;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    transition: color 0.3s;
}

.dropbtn:hover {
    color: var(--secondary-color);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--dark-color);
    min-width: 160px;
    box-shadow: var(--shadow-light);
    z-index: 1;
    border-radius: var(--border-radius);
    top: 100%;
    right: 0;
    text-align: right;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    margin: 0;
}

.dropdown-content a:hover {
    background-color: var(--primary-color);
    border-bottom: none;
}

.dropdown:hover .dropdown-content {
    display: block;
}

footer {
    background-color: var(--dark-color);
    color: var(--accent-color);
    padding: 20px 5%;
    text-align: center;
    border-top: 3px solid var(--secondary-color);
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s;
    font-weight: 400;
    padding-bottom: 5px;
    border-bottom: 1px solid transparent;
}

.footer-links a:hover {
    color: var(--secondary-color);
    border-bottom: 1px solid var(--secondary-color);
}

.footer-copy p {
    font-size: 0.9rem;
    color: var(--accent-color);
    opacity: 0.7;
}


/* --- استایل بخش اصلی (Main) و کارت --- */
main {
    display: flex;
    justify-content: center;
    padding: 40px 5%;
    background-color: var(--light-color);
    min-height: calc(100vh - 180px); /* برای حفظ ارتفاع مناسب */
}

.contact-container {
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    max-width: 900px;
    width: 100%;
}

.main-title {
    font-size: 2.2rem;
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 10px;
    padding-bottom: 15px;
    font-weight: 900;
}

.intro-text {
    font-size: 1.1rem;
    text-align: center;
    color: var(--text-color);
    margin-bottom: 30px;
    padding: 0 10%;
    font-weight: 400;
    border-bottom: 1px solid #eee;
}

.section-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 15px;
    border-right: 4px solid var(--secondary-color);
    padding-right: 10px;
    font-weight: 700;
}

/* --- چیدمان شبکه‌ای تماس (Contact Grid) --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* دو ستون مساوی */
    gap: 40px;
    margin-bottom: 40px;
}

.contact-details-box, .contact-form-box {
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
}

/* استایل لیست جزئیات تماس */
.contact-details-list {
    list-style: none;
    padding: 0;
}

.contact-details-list li {
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
    font-size: 1.05rem;
}

.contact-details-list li:last-child {
    border-bottom: none;
}

.contact-details-list a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-details-list a:hover {
    color: var(--dark-color);
    text-decoration: underline;
}

/* --- استایل فرم تماس (Contact Form) --- */
.form-group {
    margin-bottom: 15px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
    color: var(--text-color);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.2);
    outline: none;
}

/* استایل دکمه ارسال (Button) */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 1.05rem;
    transition: background-color 0.3s, transform 0.3s;
    border: none;
    cursor: pointer;
    width: 100%; /* دکمه تمام عرض */
}

.btn-primary:hover {
    background-color: var(--dark-color);
    transform: translateY(-1px);
}

/* --- استایل جای نقشه (Map Placeholder) --- */
.map-placeholder {
    height: 300px; /* ارتفاع برای نمایش نقشه */
    background-color: #e9ecef;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #6c757d;
    font-size: 1.2rem;
    margin-top: 30px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.map-placeholder::before {
    content: "محل قرارگیری نقشه گوگل 🗺️ (برای آدرس: تهران، خیابان آزادی، پلاک ۱۲)";
}

/* --- واکنش‌گرایی (Media Queries) --- */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr; /* در موبایل، ستون‌ها زیر هم قرار می‌گیرند */
    }
}

@media (max-width: 768px) {
    /* Header/Nav responsive styles here */
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 5%;
    }
    
    header h1 {
        margin-bottom: 10px;
    }

    nav {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    nav a, .dropdown {
        margin: 5px 0;
        width: 100%;
        text-align: right;
    }

    .dropbtn {
        width: 100%;
        text-align: right;
        padding: 10px 0;
    }

    .dropdown-content {
        position: static;
        min-width: 100%;
        border-radius: 0;
    }
    
    /* Main Content adjustments */
    main {
        padding: 20px 3%;
    }
    
    .contact-container {
        padding: 20px;
    }

    .main-title {
        font-size: 1.8rem;
    }

    .intro-text {
        font-size: 1rem;
        padding: 0;
    }

    .map-placeholder {
        height: 200px;
        font-size: 1rem;
    }
}