/*
Theme Name: مد اپوینتمنت - قالب نوبت دهی درمانی
Theme URI: https://gettime.ir
Author: Dr.Eng.Yazdi 09127640894
Author URI: https://gettime.ir
Description: قالب مینیمال حرفه‌ای نوبت‌دهی درمانی - نسخه فارسی با هدر نازک، فوتر ۵ ستونی، فونت ایران‌سنس
Version: 3.2
License: GPL v2 or later
Text Domain: medappt
*/

/* ========== فونت ایران سنس ========== */
@font-face {
    font-family: 'IRANSans';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/iransans@v33.0/fonts/IRANSansWeb.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSans';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/iransans@v33.0/fonts/IRANSansWeb_Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* ========== تنظیمات پایه ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IRANSans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
    font-size: 16px;
    padding: 0;
    margin: 0;
    width: 100%;
    overflow-x: hidden;
    direction: rtl;
    text-align: right;
}

/* ========== کانتینر و محتوای اصلی ========== */
.container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    width: 100%;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    padding: 2rem;
    box-shadow: none;
}

.site-main {
    margin-top: 0;
    padding-top: 0;
}

/* ========== هدر نازک و کوچک ========== */
.site-header {
    border-bottom: 1px solid #eaeaea;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    padding: 0.5rem 0;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    gap: 1rem;
}

/* عنوان سایت (راست) */
.site-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    order: 1;
}

.site-title a {
    text-decoration: none;
    color: #0a5c5c;
}

/* منوی دسکتاپ (وسط) */
.main-nav-desktop {
    order: 2;
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-nav-desktop .main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.8rem;
}

.main-nav-desktop .main-menu li {
    position: relative;
}

.main-nav-desktop .main-menu a {
    text-decoration: none;
    color: #2d3e50;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
    padding: 0.4rem 0;
    display: inline-block;
}

.main-nav-desktop .main-menu a:hover {
    color: #0a5c5c;
}

/* زیرمنوهای دسکتاپ */
.main-nav-desktop .main-menu .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    background: #fff;
    min-width: 200px;
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 999;
    border: 1px solid #edf2f7;
}

.main-nav-desktop .main-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav-desktop .main-menu .sub-menu li:hover > .sub-menu {
    top: 0;
    right: 100%;
    left: auto;
}

.main-nav-desktop .main-menu .sub-menu a {
    padding: 0.4rem 1.2rem;
    font-size: 0.85rem;
}

/* منوی موبایل - مخفی در دسکتاپ */
.main-nav-mobile {
    display: none;
}

/* دکمه نوبت‌های من (چپ) */
.patient-btn {
    order: 3;
    background: #0a5c5c;
    color: white;
    border: none;
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    font-family: 'IRANSans', sans-serif;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.patient-btn:hover {
    background: #084a4a;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(10,92,92,0.2);
}

/* دکمه همبرگری - مخفی در دسکتاپ */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    order: 0;
}

.hamburger-box {
    width: 28px;
    height: 22px;
    display: inline-block;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 28px;
    height: 2.5px;
    background-color: #2d3e50;
    border-radius: 2px;
    position: absolute;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-inner {
    top: 50%;
    margin-top: -1.25px;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: "";
    display: block;
}

.hamburger-inner::before {
    top: -8px;
}

.hamburger-inner::after {
    bottom: -8px;
}

.hamburger.active .hamburger-inner {
    transform: rotate(45deg);
}

.hamburger.active .hamburger-inner::before {
    top: 0;
    transform: rotate(90deg);
}

.hamburger.active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(90deg);
    opacity: 0;
}

/* ========== حالت موبایل و تبلت ========== */
@media (max-width: 992px) {
    .header-inner {
        justify-content: space-between;
    }
    
    /* مخفی کردن منوی دسکتاپ */
    .main-nav-desktop {
        display: none;
    }
    
    /* نمایش دکمه همبرگری */
    .hamburger {
        display: inline-block;
        order: 0;
    }
    
    /* عنوان سایت در وسط */
    .site-title {
        order: 1;
        flex: 1;
        text-align: center;
    }
    
    /* دکمه نوبت‌های من در چپ */
    .patient-btn {
        order: 2;
    }
    
    /* منوی موبایل - اسلاید از راست */
    .main-nav-mobile {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        left: auto;
        width: 280px;
        height: 100vh;
        background: #fff;
        box-shadow: -2px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        padding: 70px 1.5rem 2rem;
        overflow-y: auto;
    }
    
    .main-nav-mobile.active {
        right: 0;
        left: auto;
    }
    
    .main-nav-mobile .main-menu {
        flex-direction: column;
        gap: 0;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .main-nav-mobile .main-menu li {
        border-bottom: 1px solid #edf2f7;
        position: relative;
    }
    
    .main-nav-mobile .main-menu a {
        display: block;
        padding: 0.8rem 0;
        text-decoration: none;
        color: #2d3e50;
        font-weight: 500;
    }
    
    /* زیرمنوها در موبایل */
    .main-nav-mobile .main-menu .sub-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding-right: 1rem;
        background: #f9fafb;
        margin: 0.3rem 0;
        list-style: none;
    }
    
    .main-nav-mobile .main-menu .sub-menu.active {
        display: block;
    }
    
    .dropdown-toggle {
        display: inline-block;
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 40px;
        background: none;
        border: none;
        cursor: pointer;
    }
    
    .dropdown-icon {
        display: inline-block;
        transition: transform 0.2s;
    }
    
    .dropdown-toggle.active .dropdown-icon {
        transform: rotate(180deg);
    }
    
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        display: none;
    }
    
    .menu-overlay.active {
        display: block;
    }
}

/* ========== فوتر ۵ ستونی ========== */
.site-footer {
    border-top: 1px solid #eaeaea;
    margin-top: 3rem;
    background: #fafafa;
}

.footer-widgets {
    padding: 2.5rem 1.5rem 1.5rem;
    border-bottom: 1px solid #eaeaea;
}

.footer-widgets-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.footer-column {
    min-width: 0;
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid #0a5c5c;
    display: inline-block;
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 0.4rem;
}

.footer-menu a {
    text-decoration: none;
    color: #4a5568;
    font-size: 0.8rem;
    transition: color 0.2s, padding-right 0.2s;
    display: inline-block;
}

.footer-menu a:hover {
    color: #0a5c5c;
    padding-right: 5px;
}

.footer-contact p {
    font-size: 0.8rem;
    color: #4a5568;
    margin-bottom: 0.6rem;
    line-height: 1.5;
}

.footer-contact strong {
    color: #1a1a1a;
}

/* ستون ۴: نمادهای اعتماد */
.footer-trust-seals {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
}

.trust-seal-item img {
    max-width: 80px;
    height: auto;
    transition: transform 0.2s ease;
}

.trust-seal-item img:hover {
    transform: scale(1.05);
}

/* ستون ۵: شبکه‌های اجتماعی */
.social-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.social-menu li {
    display: block;
}

.social-menu a {
    text-decoration: none;
    color: #4a5568;
    font-size: 0.85rem;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.social-menu a::before {
    content: "•";
    color: #0a5c5c;
    font-weight: bold;
}

.social-menu a:hover {
    color: #0a5c5c;
    padding-right: 3px;
}

/* فوتر پایین */
.footer-bottom {
    padding: 1rem;
    background: #f5f5f5;
    text-align: center;
}

.footer-copyright p {
    font-size: 0.75rem;
    color: #6c757d;
    margin: 0;
}

.menu-placeholder {
    font-size: 0.7rem;
    color: #cbd5e0;
    font-style: italic;
}

/* ========== ریسپانسیو فوتر ========== */
@media (max-width: 992px) {
    .footer-widgets-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .footer-widgets-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-widgets {
        padding: 1.5rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .trust-seal-item img {
        max-width: 70px;
    }
}

/* ========== فرم‌ها و سایر عناصر ========== */
form input,
form select,
form textarea,
.wpcf7-form input,
.wpcf7-form select,
.wpcf7-form textarea {
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 0.9rem;
    font-family: 'IRANSans', sans-serif;
    text-align: right;
}

form input:focus,
form select:focus {
    outline: none;
    border-color: #0a5c5c;
    box-shadow: 0 0 0 3px rgba(10,92,92,0.1);
}

button,
input[type="submit"],
.booking-button {
    background: #0a5c5c;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'IRANSans', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover {
    background: #084a4a;
}

/* تایپوگرافی */
h1, h2, h3 {
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2rem;
}

/* کارت‌ها */
.card {
    background: #f9fafb;
    border-radius: 20px;
    padding: 1.2rem;
    margin-bottom: 1.2rem;
    border: 1px solid #edf2f7;
}

/* تنظیمات راست‌چینی */
ul, ol {
    padding-right: 1.5rem;
    padding-left: 0;
}

blockquote {
    border-right: 3px solid #0a5c5c;
    border-left: none;
    padding-right: 1rem;
    padding-left: 0;
}