/* ===== style.css ===== */
@font-face {
    font-family: "Vazir-regulare";
    src: url(../font/ttf/regulare/Vazirmatn-Regular.ttf) format("TrueType");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

body {
    font-family: "Vazir-regulare", Tahoma, sans-serif;
    background-color: #f8f9fc;
    color: #1a1a2e;
    line-height: 1.6;
}

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

/* ===== HEADER ===== */
.header {
    background: linear-gradient(135deg, #243b64, #1a2d4a);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(36, 59, 100, 0.3);
}

.main-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(142, 64, 87, 0.4);
}
.logo h2 {
    color: #fff;
    font-size: 1.3rem;
    background: linear-gradient(90deg, #f8f9fc, #8e4057);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.3s ease;
    order: 0;
}
.menu-toggle:hover { transform: scale(1.1); }
.menu-toggle.active { transform: rotate(90deg); }

nav { order: 1; }
nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
}
nav ul li a {
    color: #d0d8e8;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background: #8e4057;
    transition: width 0.3s ease;
}
nav ul li a:hover::after,
nav ul li a.active::after { width: 100%; }
nav ul li a:hover,
nav ul li a.active { color: #8e4057; }

.dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 180px;
    background: #1a2d4a;
    border-radius: 10px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    border: 1px solid rgba(142, 64, 87, 0.2);
}
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu li a {
    display: block;
    padding: 8px 20px;
    color: #d0d8e8;
    font-size: 0.85rem;
    border-right: 2px solid transparent;
}
.dropdown-menu li a::after { display: none; }
.dropdown-menu li a:hover {
    color: #8e4057;
    background: rgba(142, 64, 87, 0.05);
    border-right-color: #8e4057;
}

.mobile-sign-in { display: none; }
.sign-in-mobile {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #8e4057 !important;
    font-weight: 600;
    background: rgba(142, 64, 87, 0.1);
    border-radius: 8px;
    margin-top: 10px;
    border: 1px solid rgba(142, 64, 87, 0.2);
    padding: 10px 15px;
}
.sign-in-mobile:hover {
    background: rgba(142, 64, 87, 0.2);
}

.sign-shop {
    display: flex;
    align-items: center;
    gap: 15px;
    order: 2;
}
.cart-icon { transition: transform 0.3s ease; }
.cart-icon:hover { transform: scale(1.1); }
.sign-in-btn {
    background: #8e4057;
    border: none;
    padding: 8px 22px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.sign-in-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(142, 64, 87, 0.4);
}
.sign-in-btn a {
    color: #f8f9fc;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(135deg, #243b64, #1a2d4a);
    padding: 50px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(142, 64, 87, 0.15) 0%, transparent 70%);
    animation: pulseGlow 8s ease-in-out infinite;
}
@keyframes pulseGlow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
.page-header .container { position: relative; z-index: 1; }
.breadcrumb { color: rgba(255,255,255,0.4); font-size: 0.85rem; }
.page-title {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 10px 0;
}
.page-subtitle { color: #b0c4de; font-size: 1.1rem; }

/* ===== CONTACT ===== */
.contact-section { padding: 50px 0 60px; }
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    background: #fff;
    border-radius: 16px;
    padding: 35px 30px;
    box-shadow: 0 4px 25px rgba(36, 59, 100, 0.08);
}
.contact-info h2 { color: #243b64; font-size: 1.5rem; margin-bottom: 8px; }
.info-desc { color: #666; font-size: 0.95rem; margin-bottom: 25px; }

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f5;
}
.contact-item:last-child { border-bottom: none; }
.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(142, 64, 87, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.contact-item:hover .contact-icon {
    background: rgba(142, 64, 87, 0.18);
    transform: scale(1.05);
}
.contact-detail h3 { color: #243b64; font-size: 0.95rem; }
.contact-detail p { color: #555; font-size: 0.9rem; }

.contact-form {
    background: #fff;
    border-radius: 16px;
    padding: 35px 30px;
    box-shadow: 0 4px 25px rgba(36, 59, 100, 0.08);
}
.form-header { margin-bottom: 25px; }
.form-header h2 { color: #243b64; font-size: 1.5rem; }
.form-header p { color: #666; font-size: 0.95rem; }

.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    color: #243b64;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8ecf2;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fafbfc;
    color: #1a1a2e;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: #8e4057;
    outline: none;
    box-shadow: 0 0 0 4px rgba(142, 64, 87, 0.1);
    background: #fff;
}
.form-group textarea { resize: vertical; min-height: 120px; }

.submit-btn {
    width: 100%;
    padding: 14px;
    background: #8e4057;
    border: none;
    border-radius: 10px;
    color: #f8f9fc;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}
.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(142, 64, 87, 0.35);
}

/* ===== FOOTER ===== */
.footer {
    background: #0f1c30;
    color: #d0d8e8;
    padding: 40px 0 20px;
}
.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    padding-bottom: 30px;
}
.footer-brand img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 2px solid rgba(142, 64, 87, 0.3);
}
.footer-brand h2 { color: #fff; font-size: 1.2rem; margin: 8px 0 5px; }
.footer-brand p { color: #8a9bb5; font-size: 0.9rem; line-height: 1.8; max-width: 280px; }
.footer-links h3,
.footer-social h3 { color: #fff; font-size: 1.1rem; margin-bottom: 15px; }
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links ul li {
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-links ul li a {
    color: #aabbd0;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}
.footer-links ul li a:hover { color: #8e4057; }
.social-icons {
    display: flex;
    gap: 15px;
}
.social-icons a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aabbd0;
    transition: all 0.3s ease;
}
.social-icons a:hover {
    background: rgba(142, 64, 87, 0.2);
    color: #8e4057;
    transform: translateY(-3px);
}
.social-icons a svg { width: 22px; height: 22px; }
.footer-bottom { padding-top: 20px; }
.footer-bottom > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #667a94;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .contact-wrapper { grid-template-columns: 1fr; gap: 30px; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 768px) {
    .main-bar { justify-content: space-between; flex-wrap: nowrap; gap: 0; padding: 0 15px; }
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        order: 0;
        margin-left: 10px;
    }
    .logo {
        order: 1;
        flex: 1;
        justify-content: center;
        gap: 8px;
        margin: 0 5px;
    }
    .logo img { width: 35px; height: 35px; }
    .logo h2 { font-size: 1rem; }
    .sign-shop { order: 2; gap: 8px; }
    .sign-shop .cart-icon svg { width: 22px; height: 22px; }
    .sign-shop .sign-in-btn { display: none; }
    .mobile-sign-in { display: block; margin-top: 15px; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 15px; }

    /* ===== منو از راست باز می‌شود ===== */
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        left: auto;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: linear-gradient(180deg, #243b64, #0f1c30);
        padding: 70px 25px 30px;
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 999;
        box-shadow: 4px 0 30px rgba(0,0,0,0.5);
        overflow-y: auto;
    }
    nav.active { right: 0; }

    nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
        width: 100%;
    }
    nav ul li { width: 100%; }
    nav ul li a {
        display: block;
        padding: 12px 15px;
        font-size: 1rem;
        color: #d0d8e8;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    nav ul li a::after { display: none; }
    nav ul li a:hover,
    nav ul li a.active {
        background: rgba(142, 64, 87, 0.15);
        color: #8e4057;
    }
    .dropdown > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .dropdown > a::after {
        content: '▾';
        display: inline-block;
        font-size: 0.8rem;
        color: #8a9bb5;
        transition: transform 0.3s ease;
    }
    .dropdown.open > a::after { transform: rotate(180deg); }
    .dropdown-menu {
        position: static;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none;
        border: none;
        background: rgba(255,255,255,0.03);
        padding: 0 0 0 15px;
        margin-top: 5px;
        border-radius: 8px;
        display: none;
    }
    .dropdown.open .dropdown-menu { display: block; }
    .dropdown-menu li a {
        padding: 10px 15px;
        font-size: 0.9rem;
        border-right: 2px solid transparent;
        color: #aabbd0;
    }
    .dropdown-menu li a:hover {
        background: rgba(142, 64, 87, 0.05);
        border-right-color: #8e4057;
        color: #8e4057;
    }

    .page-title { font-size: 1.8rem; }
    .contact-info,
    .contact-form { padding: 25px 20px; }
    .footer-top { grid-template-columns: 1fr; text-align: center; }
    .footer-brand p { max-width: 100%; margin: 0 auto; }
    .footer-links ul li { justify-content: center; }
    .social-icons { justify-content: center; }
    .footer-bottom > div { flex-direction: column; gap: 5px; }
}

@media (max-width: 480px) {
    .logo img { width: 30px; height: 30px; }
    .logo h2 { font-size: 0.85rem; }
    .menu-toggle svg { width: 24px; height: 24px; }
    .sign-shop .cart-icon svg { width: 20px; height: 20px; }
    .page-title { font-size: 1.4rem; }
    .page-subtitle { font-size: 0.95rem; }
    .contact-item { flex-direction: column; align-items: center; text-align: center; }
    .submit-btn { font-size: 0.9rem; padding: 12px; }
    nav { width: 85%; max-width: 280px; }
}