/* styles.css - طراحی ریسپانسیو و مدرن برای سایت تعمیرات موبایل */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #0B2F5C;
    --primary-light: #1a4b7a;
    --accent-orange: #FF8C42;
    --accent-orange-dark: #e67e22;
    --bg-light: #F5F7FA;
    --text-dark: #1E2A3E;
    --text-gray: #4a5568;
    --white: #ffffff;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.1);
    --border-radius: 12px;
}

body {
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    direction: rtl;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-orange);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}
.skip-link:focus { top: 0; }

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}
.logo i { color: var(--accent-orange); font-size: 28px; }
.logo span strong { color: var(--accent-orange); }

/* Navigation */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 28px;
}
.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}
.nav-menu a:hover, .nav-menu a.active {
    color: var(--accent-orange);
}
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--primary-dark);
    cursor: pointer;
}
.header-phone .phone-btn {
    background: var(--primary-dark);
    color: white;
    padding: 10px 18px;
    border-radius: 40px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: background 0.3s;
}
.header-phone .phone-btn:hover {
    background: var(--accent-orange);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a4b7a 100%);
    color: white;
    padding: 60px 0;
}
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.hero-content { flex: 1; }
.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    line-height: 1.3;
}
.highlight { color: var(--accent-orange); }
.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 24px;
}
.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}
.btn-primary {
    background: var(--accent-orange);
    color: white;
}
.btn-primary:hover {
    background: var(--accent-orange-dark);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}
.btn-outline:hover {
    background: white;
    color: var(--primary-dark);
}
.hero-features {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.hero-features span i { margin-left: 8px; }
.hero-image { flex: 1; text-align: center; }
.hero-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 48px;
    color: var(--primary-dark);
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-orange);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* Benefits */
.benefits { padding: 60px 0; background: var(--white); }
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}
.benefit-card {
    text-align: center;
    padding: 28px 16px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    transition: transform 0.3s;
}
.benefit-card:hover { transform: translateY(-5px); }
.benefit-card i {
    font-size: 48px;
    color: var(--accent-orange);
    margin-bottom: 16px;
}
.benefit-card h3 { margin-bottom: 12px; }

/* Brands */
.brands {
    padding: 40px 0;
    background: var(--bg-light);
}
.brands-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}
.brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 16px 24px;
    border-radius: 40px;
    box-shadow: var(--shadow-sm);
}
.brand-item i { font-size: 32px; color: var(--primary-dark); }

/* Price Table */
.price-summary {
    padding: 60px 0;
    background: white;
}
.price-table-wrapper { overflow-x: auto; }
.price-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    overflow: hidden;
}
.price-table th, .price-table td {
    padding: 14px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}
.price-table th {
    background: var(--primary-dark);
    color: white;
}
.price-link { text-align: center; margin-top: 24px; }
.price-link a {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 600;
}

/* Special Services */
.special-services {
    padding: 60px 0;
    background: var(--bg-light);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.service-card {
    padding: 32px;
    border-radius: var(--border-radius);
    text-align: center;
}
.service-dark {
    background: var(--primary-dark);
    color: white;
}
.service-dark .btn-small {
    background: var(--accent-orange);
    color: white;
}
.service-light {
    background: white;
    border: 1px solid #ddd;
}
.service-card i { font-size: 48px; margin-bottom: 16px; }
.btn-small {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 20px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
}

/* Request Form */
.request-form-section {
    padding: 60px 0;
    background: white;
}
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-light);
    padding: 32px;
    border-radius: var(--border-radius);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 8px; }
.full-width { grid-column: span 2; margin-bottom: 20px; }
.form-group input, .form-group select, .form-group textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
}
.btn-submit {
    background: var(--accent-orange);
    color: white;
    border: none;
    cursor: pointer;
    width: 100%;
    justify-content: center;
}

/* Blog Section */
.blog-section {
    padding: 60px 0;
    background: var(--bg-light);
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.blog-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.blog-card h3, .blog-card p {
    padding: 0 20px;
}
.blog-card h3 { margin: 16px 0 8px; }
.read-more {
    display: inline-block;
    margin: 16px 20px 24px;
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 600;
}

/* Testimonials */
/* Testimonials - نسخه اصلاح شده */
.testimonials {
    padding: 60px 0;
    background: white;
}
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.testimonial-card {
    background: var(--bg-light);
    padding: 28px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
    text-align: center;
}
.testimonial-card:hover {
    transform: translateY(-5px);
}
.rating {
    color: #FFB800;
    font-size: 1.6rem;
    letter-spacing: 4px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    margin-bottom: 16px;
    text-align: center;
}
.testimonial-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-gray);
    font-style: italic;
}
.customer-info {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 8px;
    border-top: 1px solid #e2e8f0;
    padding-top: 16px;
}
.avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.customer-name {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1rem;
}


/* اصلاح فونت روی دکمه فرم */
.btn-submit, .btn, .btn-primary, .btn-outline, .btn-small, .phone-btn {
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: #ccc;
    padding: 48px 0 20px;
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 32px;
}
.footer-about .logo { color: white; margin-bottom: 16px; }
.social-links {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}
.social-links a {
    color: white;
    font-size: 24px;
    transition: color 0.3s;
}
.social-links a:hover { color: var(--accent-orange); }
.footer-links ul { list-style: none; margin-top: 12px; }
.footer-links li { margin-bottom: 8px; }
.footer-links a, .footer-contact a {
    color: #ccc;
    text-decoration: none;
}
.footer-contact p { margin-bottom: 8px; }
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #2a4a6e;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 2rem; }
    .hero-container { flex-direction: column; text-align: center; }
    .hero-features { justify-content: center; }
    .hero-buttons { justify-content: center; }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    .navbar {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background: white;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: 0.3s;
        z-index: 999;
    }
    .navbar.active { right: 0; }
    .nav-menu {
        flex-direction: column;
        padding: 32px;
        gap: 20px;
    }
    .header-phone .phone-btn span { display: none; }
    .form-row { grid-template-columns: 1fr; }
    .full-width { grid-column: span 1; }
    .section-title { font-size: 1.75rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-content h1 { font-size: 1.6rem; }
    .btn { padding: 10px 20px; }
}

/* اصلاحات نهایی برای موبایل */
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-content h1 { font-size: 1.6rem; }
    .btn { padding: 10px 20px; }
    .customer-info {
        justify-content: center;
    }
    .avatar {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}