/*Theme Name: Charekare
Author: Alireza
Description: قالب وبلاگ خدماتی چاره‌کاره
Version: 1.0*/



:root {
    --primary-color: #89CFF0; /* آبی استاندارد وردپرس */
    --dark-color: #1d2327;
    --bg-light: #f6f7f7;
    --white: #ffffff;
    --transition: 0.3s ease-in-out;
    --max-width: 1100px; /* عرض استاندارد برای هم‌راستایی */
}

*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Tahoma', sans-serif;
}

body {
    direction: rtl;
    background-color: var(--white);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 70px; /* به اندازه ارتفاع نوار پایین، به بدنه فاصله */
}

/* --- ظرف اصلی برای هم‌راستا کردن همه بخش‌ها --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- هدر (Header) --- */
.top-nav {
    display: flex;

    background: #89CFF0;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}


.logo-img{
   
    max-width: 6%;
    height: auto;
}


.about-image{


    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 10px 10px;
    margin-left: -10px;
}

.about-text, .about-image {
    flex: 1; /* هر کدام نصف عرض را می‌گیرند */
}





/* دکمه همبرگری */
.hamburger {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--dark-color);
    border-radius: 2px;
    transition: var(--transition);
}


.close-menu {
    position: absolute;
    top: 20px;
    left: 20px; /* چون منو از راست باز می‌شود، ضربدر سمت چپ باشد بهتر است */
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.close-menu:hover {
    color: #ff4d4d; /* قرمز شدن موقع هاور برای حس بستن */
    transform: rotate(90deg);
}

/* --- بخش جستجو (Search Area) --- */
.search-area {
    height: 150px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.search-area .container {
    text-align: center;
}

.search-area h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.wp-search-box {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.wp-search-box input {
    flex: 1;
    border: none;
    padding: 12px 15px;
    outline: none;
    font-size: 0.9rem;
}

.wp-search-box button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0 20px;
    cursor: pointer;
    transition: var(--transition);
}

.wp-search-box button:hover {
    background: #89CFF0;
}

/* --- شبکه خدمات (Services Grid) --- */
.services-wrapper {
    padding: 60px 0;
    flex: 1; /* پر کردن فضای خالی میانی */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 15px;
    height: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.414);
    flex-direction: column-reverse;
}

.matn{
    font-size: 20px;
    margin-top: 8px;


}





.card i {
    font-size: 3.5rem;
    color: #555;
    transition: 0.4s;
}

/* انیمیشن‌های اختصاصی هر کارت */
.card-fridge:hover i { color: #00d2ff; transform: scale(1.1); }
.card-wash:hover i { color: #2ecc71; animation: vibrate 0.3s infinite; }
.card-ac:hover i { color: #3498db; transform: translateY(-10px); }
.card-boiler:hover i { color: #e67e22; transform: rotate(15deg); }

@keyframes vibrate {
    0% { transform: translate(0); }
    25% { transform: translate(2px, -2px); }
    50% { transform: translate(-2px, 2px); }
    75% { transform: translate(2px, 2px); }
    100% { transform: translate(0); }
}

/* --- فوتر (Footer) --- */
.main-footer {
    background: #89CFF0;
    color: #000000;

    padding-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--white);
    font-size: 1.4rem;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
}

/* --- منوی کشویی (Menu Overlay) --- */
.menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background: var(--dark-color);
    z-index: 2000;
    transition: 0.4s ease;
    padding-top: 80px;
}

.menu-overlay.active {
    right: 0;
}

.menu-overlay a {
    display: block;
    padding: 15px 30px;
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid #333;
    transition: 0.3s;
}

.menu-overlay a:hover {
    background: #2c3e50;
    padding-right: 40px;
}


.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    direction: rtl;
}

.nav-item {
    display: flex;
    gap: 200px;
    flex: 1;
    justify-content: center;
}

.nav-item-center {
    flex: 0;
}

.home-btn {
    width: 80px;
    height: 80px;
    background-color: #ffffff; /* رنگ دلخواه خودت */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -30px; /* برای اینکه دکمه کمی بالاتر بایستد */
    border: 5px solid #fff;
    color: white;
    text-decoration: none;
}

.bottom-nav a {
    text-decoration: none;
    color: #333;
    font-size: 30px;
}



/* --- ریسپانسیو موبایل --- */
@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr 1fr; /* دو ستونه در موبایل */
        gap: 15px;
    }
    .card {
        height: 130px;
    }
    .card i {
        font-size: 2.5rem;
    }
    .footer-grid {
        text-align: center;
    }
    .social-icons {
        justify-content: center;
    }

.nav-item {
    display: flex;
    gap: 55px;
    flex: 1;
    justify-content: center;
}

    .about-image{


    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 10px 10px;
    margin-left: -10px;
}
.logo-img{
   
    max-width: 20%;
    height: auto;
}
}