@charset "utf-8";
/* =========================================================
   RotaiMax - استایل مشترک سربرگ و فوتر همه صفحات
   این فایل باید بعد از استایل داخلی هر صفحه و قبل از
   rotaimax-global.css فراخوانی شود.
   ========================================================= */

:root {
    --navy:      #16233d;
    --navy-2:    #1d2c49;
    --gold:      #c9a44c;
    --gold-dark: #b08e39;
    --gold-soft: #f3e7cd;
    --rmx-line:  #e6e8ee;
}

body { padding-top: 78px !important; }

/* ---------------- سربرگ ---------------- */
.header-wrapper {
    position: fixed !important; top: 0; left: 0; right: 0; z-index: 1000;
    background: var(--navy) !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
    box-shadow: 0 2px 14px rgba(0,0,0,.18);
    display: block !important;
    height: auto !important;
    padding: 0 !important;
}
.header-inner {
    max-width: 1240px; margin: 0 auto; padding: 0 18px;
    height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.hd-phone { display: flex; align-items: center; gap: 10px; color: #fff; }
.hd-phone a { color: #fff; text-decoration: none; }
.hd-phone .hd-phone-ic {
    width: 40px; height: 40px; border-radius: 10px; background: var(--gold);
    display: flex; align-items: center; justify-content: center; color: #16233d; font-size: 17px;
}
.hd-phone-num { font-size: 16px; font-weight: 700; letter-spacing: .3px; direction: ltr; line-height: 1.6; }
.hd-phone-sub { font-size: 11px; color: #b9c1d2; line-height: 1.6; }

.nav-menu {
    display: flex !important; align-items: center; gap: 4px; margin: 0 !important;
    padding: 0 !important; list-style: none; position: static !important;
    background: none !important; border: 0 !important; width: auto !important;
    height: auto !important; box-shadow: none !important;
}
.nav-menu > li { position: relative; float: none !important; border: 0 !important; }
.nav-menu > li > a {
    display: block; padding: 8px 12px; color: #e7ebf3 !important; font-size: 14px;
    border-radius: 8px; transition: .2s; text-decoration: none; background: none !important;
    border: 0 !important;
}
.nav-menu > li > a:hover { color: var(--gold) !important; background: rgba(255,255,255,.06) !important; }
.nav-menu .nav-dropdown {
    display: none; position: absolute; top: 100%; right: 0; left: auto; min-width: 210px;
    background: #fff !important; border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.16);
    padding: 8px; z-index: 30;
}
.nav-menu > li:hover .nav-dropdown { display: block; }
.nav-menu .nav-dropdown a { display: block; padding: 9px 12px; font-size: 13px; color: #35405a !important; border-radius: 8px; border: 0 !important; }
.nav-menu .nav-dropdown a:hover { background: #f4f6f9 !important; color: var(--gold-dark) !important; }
.search-link { font-size: 15px; }

.header-wrapper .logo { display: flex; align-items: center; margin: 0 !important; padding: 0 !important; }
.header-wrapper .logo img { max-height: 52px; border: 0; width: auto; }

.hamburger-menu {
    display: none; background: transparent !important; border: 0 !important; cursor: pointer;
    width: 42px; height: 42px; border-radius: 10px; padding: 9px 8px;
}
.hamburger-menu span { display: block; height: 2px; background: #fff; margin: 4px 0; border-radius: 2px; transition: .25s; width: 100%; }
.hamburger-menu.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav-menu {
    display: none; position: fixed; top: 78px; right: 0; left: 0; bottom: 0;
    background: var(--navy); overflow-y: auto; padding: 10px 0 40px; z-index: 999;
    list-style: none; margin: 0;
}
.mobile-nav-menu.active { display: block; }
.mobile-nav-menu > li > a { display: block; padding: 14px 22px; color: #e7ebf3 !important; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 15px; text-decoration: none; }
.mobile-nav-menu .nav-dropdown { display: none; position: static; box-shadow: none; background: rgba(255,255,255,.04); border-radius: 0; padding: 0; }
.mobile-nav-menu .nav-dropdown.open { display: block; }
.mobile-nav-menu .nav-dropdown a { color: #c8cfdd !important; padding: 12px 38px; border-bottom: 1px solid rgba(255,255,255,.05); display: block; text-decoration: none; }

/* ---------------- مودال جستجو ---------------- */
.search-modal { display: none; position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(10,15,25,.65); z-index: 2000; }
.search-modal.active { display: block; }
.search-modal-content { background: #fff; width: 92%; max-width: 640px; margin: 12% auto; padding: 30px; border-radius: 16px; position: relative; }
.search-modal-close { position: absolute; top: 12px; left: 18px; right: auto; font-size: 28px; cursor: pointer; color: #8d95a6; line-height: 1; }
.search-modal-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; color: var(--navy); }
.search-modal-form { display: flex; gap: 10px; }
.search-modal-input { flex: 1; padding: 12px 14px; border: 1px solid var(--rmx-line); border-radius: 10px; font-size: 14px; outline: none; }
.search-modal-input:focus { border-color: var(--gold); }
.search-modal-button { padding: 12px 26px; background: var(--gold); color: #16233d; border: 0; border-radius: 10px; font-weight: 700; cursor: pointer; }

/* ---------------- فوتر ---------------- */
.footer { background: var(--navy) !important; color: #cfd6e4; margin-top: 54px; padding: 46px 0 0 !important; }
.footer .rmx-container { max-width: 1240px; margin: 0 auto; padding: 0 18px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 28px; }
.footer .footer-title { font-size: 17px !important; font-weight: 700; color: #fff !important; margin-bottom: 16px; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 10px; }
.footer-list a { font-size: 13px; color: #b6bfd0 !important; transition: .2s; text-decoration: none; }
.footer-list a:hover { color: var(--gold) !important; padding-right: 4px; }
.footer-about-text { font-size: 13px; line-height: 2.1; color: #b6bfd0; text-align: justify; }
.footer-logo { margin-top: 16px; opacity: .9; }
.footer-logo img { max-height: 52px; }
.footer-contact { font-size: 13px; line-height: 2.2; color: #b6bfd0; }
.footer-contact a { color: #b6bfd0 !important; text-decoration: none; }
.footer-contact a:hover { color: var(--gold) !important; }
.footer-contact-row { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 9px; }
.footer-contact-row i { color: var(--gold); margin-top: 7px; }
.footer-bottom {
    margin-top: 34px; border-top: 1px solid rgba(255,255,255,.09); padding: 16px 0;
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    background: none !important;
}
.footer-copyright { font-size: 12.5px; color: #99a3b6 !important; }
.footer-social { display: flex; gap: 9px; }
.footer-social a {
    width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: center; color: #cfd6e4 !important; transition: .2s; font-size: 15px;
}
.footer-social a:hover { background: var(--gold); color: #16233d !important; }
.footer-credit { font-size: 12.5px; color: #99a3b6; }
.footer-credit a { color: var(--gold) !important; text-decoration: none; }

/* ---------------- واکنش گرا ---------------- */
@media (max-width: 1100px) {
    .nav-menu > li > a { padding: 8px 8px; font-size: 13px; }
    .hd-phone-sub { display: none; }
}
@media (max-width: 992px) {
    body { padding-top: 70px !important; }
    .header-inner { height: 70px; }
    .mobile-nav-menu { top: 70px; }
    .nav-menu { display: none !important; }
    .hamburger-menu { display: block; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
    .header-wrapper .logo img { max-height: 42px; }
    .hd-phone-num { font-size: 14px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { justify-content: center; text-align: center; }
}
