/* =========================================
   1. VARIABLES & RESET (تنظیمات اولیه و رنگ‌ها)
   ========================================= */
:root {
    /* رنگ‌های اصلی برند بر اساس فایل اصلی */
    --primary-color: #078586;       /* رنگ سبز کله‌غازی برند */
    --primary-hover: #056666;       /* رنگ سبز تیره برای هاور */
    --dark-color: #1a1a1a;          /* رنگ متن‌های تیره */
    --text-gray: #666666;           /* رنگ متن‌های توضیحات */
    --light-bg: #f4f6f9;            /* رنگ پس‌زمینه بخش‌های روشن */
    --white: #ffffff;
    --border-color: #e5e5e5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif; /* فونت مدرن و خوانا */
    line-height: 1.6;
    color: var(--text-gray);
    background-color: var(--white);
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark-color);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   2. UTILITIES (کلاس‌های کمکی)
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.bg-light {
    background-color: var(--light-bg);
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 14px 35px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: var(--primary-hover);
    color: var(--white);
}

/* =========================================
   3. HEADER & NAVIGATION (هدر و منو)
   ========================================= */
header {
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo img {
    height: 55px; /* سایز لوگو */
    width: auto;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav a {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1rem;
    position: relative;
}

nav a:hover, nav a.active {
    color: var(--primary-color);
}

/* خط زیر منو هنگام هاور */
nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

nav a:hover::after, nav a.active::after {
    width: 100%;
}

.contact-header a {
    color: var(--primary-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* =========================================
   4. HERO SECTION (بخش اصلی بالای صفحه)
   ========================================= */
.hero {
    height: 650px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
}

/* لایه تاریک روی عکس */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6); 
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    color: #e0e0e0;
}

/* Page Header (برای صفحات داخلی مثل تماس و خدمات) */
.page-header {
    background: var(--dark-color);
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
}

/* =========================================
   5. GRIDS & CARDS (شبکه‌بندی و کارت‌ها)
   ========================================= */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* استایل کارت‌های خدمات */
.card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--light-bg);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.card .icon {
    font-size: 50px;
    color: var(--primary-color);
    margin-bottom: 25px;
    display: inline-block;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* =========================================
   6. TEAM SECTION (بخش تیم)
   ========================================= */
.team-member {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 100%;
    height: 350px;
    object-fit: cover; /* باعث می‌شود عکس دفرمه نشود */
    object-position: top;
}

.team-member h3 {
    margin: 20px 0 5px;
    font-size: 1.3rem;
}

.team-member span {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

/* =========================================
   7. SERVICES PAGE: PROCESS STEPS (مراحل کاری)
   ========================================= */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
    margin-top: 40px;
}

.process-step {
    background: var(--white);
    padding: 40px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.process-step:hover {
    transform: translateY(-5px);
}

/* شماره مرحله */
.step-number {
    background: var(--primary-color);
    color: var(--white);
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 1.5rem;
    margin: 0 auto 25px;
    box-shadow: 0 4px 10px rgba(7, 133, 134, 0.3);
}

.process-step h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.process-step p {
    font-size: 0.95rem;
    color: var(--text-gray);
}

/* =========================================
   8. CONTACT PAGE (صفحه تماس)
   ========================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr; /* فرم بزرگتر از اطلاعات تماس */
    gap: 50px;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* باکس‌های اطلاعات تماس */
.info-box {
    background: var(--white);
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.info-box i {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 15px;
    display: block;
}

.info-box h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.info-box p {
    font-size: 0.95rem;
    line-height: 1.8;
}

.map-section {
    line-height: 0; /* حذف فاصله زیر نقشه */
    margin-bottom: -5px;
}

/* =========================================
   9. FOOTER (پاورقی)
   ========================================= */
footer {
    background: #151515; /* رنگ تیره */
    color: #b0b0b0;
    padding: 70px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid #333;
}

.footer-logo {
    margin-bottom: 25px;
    max-width: 220px;
    filter: brightness(0) invert(1); /* سفید کردن لوگو */
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.2rem;
    position: relative;
    padding-left: 15px;
}

/* خط عمودی کوچک کنار تیترهای فوتر */
.footer-col h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    height: 20px;
    width: 3px;
    background: var(--primary-color);
}

.footer-col p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-col i {
    color: var(--primary-color);
    margin-top: 5px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    background: #333;
    padding: 10px 20px;
    border-radius: 5px;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
}

.copyright {
    background: #000;
    text-align: center;
    padding: 25px 0;
    font-size: 0.9rem;
    color: #777;
}

/* =========================================
   10. RESPONSIVE (موبایل و تبلت)
   ========================================= */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    /* تنظیم هدر برای موبایل */
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 20px;
        gap: 15px;
    }
    
    nav ul {
        flex-direction: column;
        text-align: center;
        width: 100%;
        gap: 15px;
    }

    .contact-header {
        display: none; /* مخفی کردن شماره تماس در هدر موبایل اگر شلوغ است */
    }

    /* تنظیم بخش اصلی */
    .hero {
        height: 500px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    /* تنظیم فرم تماس */
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 0;
    }
}