
/* ============================================
   فایل استایل اصلی - شرکت فرازمهر پارسیان آینده
   تم: #001b42 (هدر/فوتر) ، #f6f9fa (زمینه) ، #c9a84c (طلایی)
   ============================================ */

/* ---------- ریست و فونت ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', 'Vazir', sans-serif;
    background-color: #001b42;
    color: #ffd700;
    line-height: 1.8;
    padding-top: 70px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- رنگ‌های کمکی ---------- */
.text-gold {
    color: #ffd700
}
.bg-dark-blue {
    background-color: #001b42;
}
.bg-gold {
    background-color: #ffd700
}
.bg-light {
    background-color: #f6f9fa;
}

/* ---------- هدر (مشترک همه صفحات) ---------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #001b42;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 27, 66, 0.3);
    flex-wrap: wrap;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffd700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    margin-right: right;
    gap: 5px;
}
.logo img {
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 1))
            drop-shadow(0 0 7px rgba(255, 255, 255, 0.9))
            drop-shadow(0 0 10px rgba(255, 255, 255, 0.6));
    width: auto;
}
.logo span img {
    height: 65px;
    width: auto;
    display: block;
}
/* منوی همبرگری */
.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
}
.nav-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: #ffd700;
    border-radius: 3px;
    transition: 0.3s ease;
    z-index: 1001;
    position: relative;
}
.nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px 0 15px;
    background-color: #001b42;
    border-top: 1px solid rgba(255, 215, 0, 0.15);
    margin-top: 12px;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.nav-menu.active {
    display: flex;
}

.nav-menu a {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 400;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: 0.2s ease;
}
.nav-menu a:hover,
.nav-menu a:focus,
.nav-menu a.active {
    color: #ffd700;
    border-bottom-color: #ffd700
}
/* ===== انیمیشن تبدیل به X ===== */
.nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ===== انیمیشن باز شدن منو ===== */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ریسپانسیو ===== */
@media (min-width: 768px) {
    .nav-toggle {
        display: none !important;
    }
    
    .nav-menu {
        display: flex !important;
        flex-direction: row;
        position: static;
        background: none;
        border-top: none;
        box-shadow: none;
        padding: 0;
        margin-top: 0;
        width: auto;
        gap: 25px;
    }
    
    .nav-menu a {
        width: auto;
        padding: 6px 0;
    }
}

/* ---------- دکمه اصلی ---------- */
.btn {
    display: inline-block;
    padding: 14px 36px;
    background-color: #ffd700;
    color: #001b42;
    font-weight: 700;
    border-radius: 50px;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: 0.25s ease;
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.35);
}
.btn:hover,
.btn:focus {
    background-color: #001b42;
    color : #ffd700;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(201, 168, 76, 0.4);
}
.btn-outline {
    background: transparent;
    border: 2px solid #001b42;
    color: #001b42;
    box-shadow: none;
    margin-right: 12px;
}
.btn-outline:hover {
    background: #001b42;
    color: #ffffff;
    border-color: #001b42;
}

/* ---------- عنوان بخش‌ها ---------- */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #001b42;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 0;
    width: 50px;
    height: 4px;
    background-color: #ffd700
    border-radius: 4px;
}
.section-subtitle {
    color: #4a5a72;
    font-size: 1rem;
    margin-bottom: 40px;
    max-width: 600px;
}

/* ---------- صفحه اصلی: هیرو با تصویر بنر ---------- */
.hero {
    padding: 40px 0 60px;
    position: relative;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 500px;
    display: flex;
    align-items: center;
}
/* لایه شفاف طلایی-تیره برای خوانایی نوشته‌ها */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 27, 66, 0.7);
    /* ترکیب با طلایی برای گرما */
    background-image: linear-gradient(135deg, rgba(0, 27, 66, 0.85) 0%, rgba(201, 168, 76, 0.25) 100%);
    z-index: 1;
}
.hero .container {
    position: relative;
    z-index: 2;
}

.hero-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    text-align: center;
}
.hero-content h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero-content h1 .gold {
    color: #ffd700
}
.hero-content p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin: 20px 0 30px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 5px rgba(0,0,0,0.4);
}
.hero .btn {
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.5);
}
.hero .btn-outline {
    border-color: #ffffff;
    color: #ffffff;
}
.hero .btn-outline:hover {
    background: #ffffff;
    color: #001b42;
    border-color: #ffffff;
}

.hero-stat {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}
.stat-item .num {
    font-size: 2rem;
    font-weight: 800;
    color: #ffd700
    display: block;
}
.stat-item .label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

/* ---------- درباره ما ---------- */
.about {
    background-color: #ffffff;
    padding: 60px 0;
}
.about-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.about-text {
    font-size: 1rem;
    color: #2a3a52;
}
.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}
.about-features li {
    background: #f6f9fa;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #001b42;
}
.about-features li i {
    color: #ffd700
    font-size: 1.1rem;
    width: 24px;
}

/* ---------- خدمات ---------- */
.services {
    padding: 60px 0;
    background-color: #f6f9fa;
}
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}
.service-card {
    background: #ffffff;
    padding: 35px 25px;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0, 27, 66, 0.06);
    text-align: center;
    transition: 0.3s ease;
    border-bottom: 4px solid transparent;
}
.service-card:hover {
    transform: translateY(-8px);
    border-bottom-color: #ffd700
    box-shadow: 0 15px 40px rgba(0, 27, 66, 0.08);
}
.service-card .icon {
    font-size: 3rem;
    color: #ffd700
    margin-bottom: 18px;
    display: block;
}
.service-card h3 {
    font-size: 1.3rem;
    color: #001b42;
    margin-bottom: 10px;
}
.service-card p {
    color: #4a5a72;
    font-size: 0.95rem;
}

/* ---------- فرم تماس ---------- */
.contact {
    padding: 60px 0;
    background-color: #ffffff;
}
.contact-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.contact-info .item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1rem;
    color: #1e2a41;
    margin-bottom: 20px;
}
.contact-info .item i {
    width: 44px;
    height: 44px;
    background: #f6f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd700
    font-size: 1.2rem;
    flex-shrink: 0;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.95rem;
    background: #fafcfe;
    transition: 0.2s ease;
    outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #ffd700
    box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.15);
    background: #ffffff;
}
.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}
.contact-form .btn {
    align-self: flex-start;
}

/* ---------- صفحه اخبار (news) ---------- */
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 20px;
}
.news-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 27, 66, 0.05);
    border-right: 4px solid #ffd700
    transition: 0.25s;
}
.news-card:hover {
    transform: translateX(-6px);
    box-shadow: 0 8px 30px rgba(0, 27, 66, 0.1);
}
.news-card .date {
    color: #ffd700
    font-size: 0.85rem;
    font-weight: 600;
}
.news-card h3 {
    font-size: 1.2rem;
    color: #001b42;
    margin: 8px 0;
}
.news-card p {
    color: #4a5a72;
}
.news-card .tag {
    display: inline-block;
    background: #f6f9fa;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: #001b42;
    margin-top: 10px;
}

/* ---------- فوتر (مشترک) ---------- */
footer {
    background-color: #001b42;
    color: #ffd700;
    padding: 40px 0 20px;
    margin-top: auto;
}
.footer-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-align: center;
}
.footer-brand .logo {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 6px;
}
.footer-brand p {
    color: #ffd700;
    font-size: 0.95rem;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 30px;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: 0.2s;
}
.footer-links a:hover {
    color: #ffd700
}
.footer-social {
    display: flex;
    justify-content: center;
    gap: 18px;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    color: #ffd700;
    font-size: 1.2rem;
    transition: 0.25s;
}
.footer-social a:hover {
    background: #ffd700;
    color: #001b42;
    transform: translateY(-4px);
}
.footer-copy {
    border-top: 1px solid rgba(201, 168, 76, 0.15);
    padding-top: 20px;
    margin-top: 20px;
    font-size: 0.85rem;
    color: #ffd700;
    text-align: center;
}

/* ---------- ریسپانسیو (موبایل‌فرست) ---------- */
@media (min-width: 640px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-features {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-form .form-row {
        grid-template-columns: 1fr 1fr;
    }
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .nav-toggle {
        display: none;
    }
    .nav-menu {
        display: flex !important;
        width: auto;
        flex-direction: row;
        gap: 30px;
        padding: 0;
        border-top: none;
        margin-top: 0;
        background: transparent;
    }
    .nav-menu a {
        font-size: 0.95rem;
        padding: 6px 0;
        color: rgba(255, 255, 255, 0.8);
    }
    .nav-menu a:hover,
    .nav-menu a.active {
        color: #ffd700
    }

    .hero-grid {
        flex-direction: row;
        text-align: right;
        justify-content: space-between;
    }
    .hero-content p {
        margin-right: 0;
    }
    .hero-stat {
        justify-content: flex-start;
    }
    .hero {
        min-height: 600px;
    }

    .about-grid {
        flex-direction: row;
        align-items: center;
        gap: 50px;
    }
    .about-grid > * {
        flex: 1;
    }
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .contact-wrapper {
        flex-direction: row;
        align-items: flex-start;
    }
    .contact-wrapper > * {
        flex: 1;
    }
    .footer-grid {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: right;
    }
    .footer-brand {
        text-align: right;
    }
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---------- دسترسی‌پذیری ---------- */
:focus-visible {
    outline: 3px solid #ffd700
    outline-offset: 3px;
}
html {
    scroll-behavior: smooth;
}