/* ===== FONTS ===== */
@font-face {
    font-family: iransans;
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/IRANSansXFaNum-Bold.woff') format('woff'),
         url('../fonts/IRANSansXFaNum-Bold.woff2') format('woff2');
}

@font-face {
    font-family: iransans;
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/IRANSansXFaNum-Regular.woff') format('woff'),
         url('../fonts/IRANSansXFaNum-Regular.woff2') format('woff2');
}

/* ===== RESET & BASE ===== */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

[x-cloak] {
    display: none !important;
}

body {
    font-family: iransans, Tahoma, sans-serif;
    direction: rtl;
    overflow-x: hidden;
    background-color: #f8f9fa; /* رنگ پس‌زمینه محتوای سایت */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
}

/* ===== LAYOUT WRAPPER ===== */
.page-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
}

/* ===== NAVIGATION - DESKTOP (FULL WIDTH & CUSTOM COLOR) ===== */
.nav-sticky {
    position: sticky;
    top: 0;
    z-index: 300;
    padding: 0;
}

.nav-desktop {
    display: none;
    width: 100%;
    height: 75px;
    background: #1d2128;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 120;
    direction: rtl;
    transition: all 0.3s ease;
}

.nav-container {
    width: 100%;
    padding: 0 4%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* هل دادن ترکیب لوگو و منو به سمت راست */
    flex-direction: row-reverse; /* قرار دادن لوگو قبل از منوها */
    gap: 1.5rem; /* فاصله بین لوگو و اولین آیتم منو */
}

.nav-links {
    display: flex;
    align-items: center;
    flex-grow: 1; /* پر کردن فضای باقی‌مانده سمت چپ */
}

.nav-links > div {
    width: 100%;
}

.nav-links ul {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex-direction: row; 
    width: 100%;
}

.nav-links ul li a {
    color: #fff;
    font-size: 15px;
    position: relative;
    padding-bottom: 6px;
    transition: color 0.3s ease;
}

.nav-links ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #eab308;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 2px;
}

.nav-links ul li a:hover {
    color: #eab308;
}

.nav-links ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links .nav-sep {
    color: rgba(255, 255, 255, 0.2);
    padding: 0 0.5rem;
    margin-right: auto; /* جدا کردن بخش زبان و هل دادن آن به انتهای سمت چپ */
}

.nav-lang a {
    color: #aaa;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-lang a:hover {
    color: #fff;
}

.nav-lang span {
    color: rgba(255,255,255,0.2);
    margin: 0 6px;
}

#logo img {
    height: 55px;
    width: auto;
    transition: transform 0.3s;
}

#logo img:hover {
    transform: scale(1.05);
}

/* ===== NAVIGATION - MOBILE ===== */
.nav-mobile {
    z-index: 150;
    position: sticky;
    top: 0;
    padding: 0;
}

.nav-mobile-bar {
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1d2128;
}

.nav-mobile-bar img {
    width: 70px;
}

.nav-mobile-bar button {
    background: none;
    border: none;
    cursor: pointer;
}

.nav-mobile-bar button svg {
    width: 32px;
    height: 32px;
    color: #fff;
}

.mobile-menu {
    position: fixed;
    left: -280px;
    top: 0;
    bottom: 0;
    z-index: 550;
    width: 280px;
    background: rgba(29, 33, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-menu.open {
    left: 0;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 540;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.mobile-menu-overlay.open {
    display: block;
}

.mobile-menu-inner {
    text-align: center;
}

.mobile-menu-inner > div {
    margin-bottom: 3rem;
}

.mobile-menu-inner img {
    margin: 0 auto;
}

.mobile-menu-inner ul {
    text-align: center;
}

.mobile-menu-inner ul li {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu-inner ul li a {
    color: #fff;
    font-size: 15px;
}

/* ===== MODERN FOOTER ===== */
footer {
    width: 100%;
    background: #050505;
    color: #fff;
    position: relative;
    z-index: 50;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: -75px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 150px;
    background: radial-gradient(ellipse at center, rgba(234, 179, 8, 0.15) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
    z-index: 0;
}

.footer-container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links li a {
    color: #a1a1aa;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links li a:hover {
    color: #eab308;
    transform: translateX(-8px);
}

.footer-address {
    color: #a1a1aa;
    font-size: 14px;
    line-height: 1.8;
}

.footer-address ul {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-address p {
    margin-bottom: 0.5rem;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-logos img.logo-paeen {
    height: 140px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

.footer-enamad {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    transition: transform 0.3s, background 0.3s;
}

.footer-enamad:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 1);
}

.footer-enamad img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ===== RESPONSIVE SETTINGS ===== */
@media screen and (min-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 1024px) {
    .nav-desktop {
        display: flex;
    }
    
    .nav-mobile {
        display: none;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1.5fr 1fr;
        align-items: center;
    }
    
    .footer-logos {
        justify-content: flex-end;
    }
}

/* ===== FORCE FULL WIDTH FOR MAIN CONTENT ===== */
main.site-main {
    width: 100vw !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow-x: hidden;
}

/* رفع مشکل فضای خالی احتمالی زیر هدر */
.page-wrapper {
    overflow-x: hidden;
}

/* ===== CONTACT FORM MODERN STYLES ===== */
.shana-contact-wrapper {
    width: 100%;
    padding: 4rem 4%;
    background-color: #f8f9fa;
}

.shana-contact-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    overflow: hidden;
}

@media(min-width: 992px) {
    .shana-contact-grid { grid-template-columns: 1fr 1fr; }
}

/* نقشه */
.shana-contact-map {
    width: 100%;
    min-height: 400px;
    background: #e2e8f0;
}

/* فرم */
.shana-contact-form-box {
    padding: 3rem 2rem;
    direction: rtl;
}

.shana-contact-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #1d2128;
    position: relative;
    padding-bottom: 10px;
}
.shana-contact-title::after {
    content: ''; position: absolute; bottom: 0; right: 0;
    width: 50px; height: 3px; background: #eab308; border-radius: 2px;
}

.shana-row-inputs {
    display: flex; gap: 1rem; flex-wrap: wrap;
}
.shana-row-inputs .w-50 {
    flex: 1 1 calc(50% - 1rem); min-width: 200px;
}

.shana-input-group {
    margin-bottom: 1.5rem;
    width: 100%;
}
.shana-input-group label {
    display: block; font-size: 14px; margin-bottom: 8px; color: #475569; font-weight: 500;
}
.shana-input-group label .req { color: #ef4444; }

.shana-input-group input, 
.shana-input-group select, 
.shana-input-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    font-family: inherit;
    font-size: 14px;
    color: #1e293b;
    transition: all 0.3s ease;
    outline: none;
}

.shana-input-group input:focus, 
.shana-input-group select:focus, 
.shana-input-group textarea:focus {
    border-color: #eab308;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(234, 179, 8, 0.1);
}

.shana-submit-btn {
    background: #1d2128; color: #fff; border: none;
    padding: 14px 32px; border-radius: 12px; font-size: 15px;
    font-weight: 600; font-family: inherit; cursor: pointer;
    transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
}
@media(min-width: 768px) { .shana-submit-btn { width: auto; min-width: 200px; } }

.shana-submit-btn:hover { background: #eab308; color: #1d2128; }
.shana-submit-btn:disabled { opacity: 0.7; cursor: not-allowed; }

/* اسپینر لودینگ */
.shana-spinner {
    width: 20px; height: 20px; border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%; border-top-color: #fff; animation: spin 1s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }