/* style.css - نسخه به‌روزشده 2025 - IraPolska.eu */

/* متغیرهای رنگی و پایه */
:root {
    --primary: #003087;      /* آبی تیره */
    --accent: #D4A017;       /* طلایی */
    --light: #f8fbff;        /* آبی روشن */
    --dark: #1a1a1a;         /* تیره */
    --gray: #f5f7fa;         /* پس‌زمینه */
    --radius: 16px;          /* گوشه‌های گرد */
    --shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

/* ریست و پایه */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
    line-height: 1.7;
    color: #333;
    background: var(--gray);
    font-size: 16px;
    direction: rtl; /* برای فارسی */
    text-align: right;
}

/* کانتینر */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* هدر */
header {
    background: var(--primary);
    color: white;
    padding: 18px 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
}

.lang-switch {
    margin-top: 10px;
}

.lang-switch a {
    color: white;
    margin: 0 10px;
    font-weight: bold;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.lang-switch a:hover {
    text-decoration: underline;
}

.lang-switch a.active {
    text-decoration: underline;
    font-weight: 700;
}

/* منو */
nav {
    background: #00205b;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 6px;
    transition: var(--transition);
}

nav a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* هیرو — با پشتیبانی از ویدئوی YouTube */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
    text-align: center;
    padding: 0;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 48, 135, 0.88), rgba(0, 48, 135, 0.92));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}

.hero .badge {
    background: var(--primary);
    color: white;
    padding: 6px 14px;
    border-radius: 24px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-right: 10px;
    display: inline-block;
}

.hero p {
    font-size: 1.35rem;
    max-width: 850px;
    margin: 0 auto 30px;
    font-weight: 300;
}

.hero .contact-info {
    display: flex;
    gap: 35px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 25px;
}

.hero .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    direction: ltr;
}

.hero .contact-item i {
    font-size: 1.5rem;
}

/* سکشن‌های عمومی */
section {
    padding: 70px 0;
    background: white;
    margin-bottom: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary);
    font-size: 2.1rem;
    position: relative;
}

h2::after {
    content: '';
    width: 80px;
    height: 4px;
    background: var(--primary);
    display: block;
    margin: 15px auto 0;
    border-radius: 2px;
}

/* خدمات */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.service-card {
    background: #f0f7ff;
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #d0e4ff;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 30px rgba(0, 51, 135, 0.18);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 18px;
}

.service-card h3 {
    color: var(--primary);
    margin: 16px 0;
    font-size: 1.3rem;
}

.service-card p {
    font-size: 0.98rem;
    color: #444;
}

/* تیم */
.team {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    margin-top: 35px;
}

.team-card {
    background: var(--light);
    padding: 28px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.team-card img {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 18px;
    border: 5px solid var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.team-card h3 {
    color: var(--primary);
    margin: 12px 0;
    font-size: 1.25rem;
}

.team-card p {
    font-size: 0.96rem;
    color: #555;
    line-height: 1.6;
}

/* فرم تماس — وسط‌چین */
form {
    max-width: 720px;
    margin: 0 auto;
    background: var(--light);
    padding: 38px;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.form-group {
    margin-bottom: 22px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary);
}

input,
textarea,
select {
    width: 100%;
    padding: 13px;
    border: 1.5px solid #ccc;
    border-radius: 7px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 48, 135, 0.12);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.g-recaptcha {
    margin: 24px auto;
    display: flex;
    justify-content: center;
}

button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px;
    font-size: 1.15rem;
    border-radius: 7px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    font-weight: 600;
    transition: var(--transition);
}

button:hover {
    background: #00205b;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 32, 91, 0.3);
}

#form-message {
    margin-top: 16px;
    font-weight: 600;
    text-align: center;
    font-size: 1rem;
}

/* فوتر */
footer {
    background: var(--dark);
    color: #ccc;
    text-align: center;
    padding: 40px 0;
    font-size: 0.92rem;
}

footer p {
    margin-bottom: 10px;
}

.footer-links a {
    color: #4da6ff;
    text-decoration: none;
    margin: 0 12px;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    text-decoration: underline;
    color: white;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.3rem;
    }

    .hero .contact-info {
        flex-direction: column;
        gap: 18px;
    }

    .lang-switch {
        position: static;
        text-align: center;
        margin-bottom: 15px;
    }

    nav ul {
        gap: 15px;
        flex-direction: column;
        align-items: center;
    }

    .services {
        grid-template-columns: 1fr;
    }

    .team {
        grid-template-columns: 1fr;
    }

    form {
        padding: 25px;
    }

    .hero-content {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .contact-info {
        gap: 14px;
    }

    .lang-switch a {
        display: block;
        margin: 8px 0;
    }
}