/*
Theme Name: Boom Child
Theme URI: https://mazanosta.com/
Author: sm studio
Template: Boom
Version: 1.0.0
*/

/* =================================================================
              Boom/fonts
   ================================================================= */
@font-face {
    font-family: 'IRANYekan';
    src: url('../Boom/fonts/IRANYekanRegular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANYekan';
    src: url('../Boom/fonts/IRANYekanMedium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANYekan';
    src: url('../Boom/fonts/IRANYekanBold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Font Awesome 6 Free';
    src: url('../Boom/assets/webfonts/fa-solid-900.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

body.page-template-local-seo-template, 
body.page-template-local-seo-template * {
    font-family: 'IRANYekan', Tahoma, sans-serif !important;
}

body.page-template-local-seo-template { background-color: #fafafa; color: #333; line-height: 1.8; margin: 0; padding: 0; direction: rtl; }
.avasa-local-container { max-width: 1100px; margin: 40px auto; padding: 0 20px; box-sizing: border-box; }


/* بخش محتوا و سایدبار */
.avasa-hero-section { background: #fff; border-radius: 12px; padding: 40px; text-align: center; margin-bottom: 40px; border: 1px solid #eee; }
.avasa-hero-section h1 { font-size: 2.2rem; color: #111; margin-bottom: 15px; }
.avasa-content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
.avasa-main-text { background: #fff; padding: 30px; border-radius: 12px; border: 1px solid #eee; }
.avasa-sidebar-cta { background: #fff; padding: 25px; border-radius: 12px; border: 2px solid #d85b49; height: fit-content; position: sticky; top: 100px; }
.avasa-btn-call { display: block; background: #d85b49; color: #fff; text-align: center; padding: 14px; border-radius: 8px; text-decoration: none; font-weight: bold; margin-top: 20px; transition: 0.3s; }
.avasa-btn-call:hover { background: #b84636; }

/* بازسازی فوتر مستقل بدون نیاز به کلاس‌های تیلویند */
.main-footer { background-color: #000; color: #fff; padding: 40px 20px 20px; border-top: 2px solid #222; font-size: 14px; margin-top: 60px; }
.footer-wrapper { max-width: 1100px; margin: 0 auto; }

.footer-status-bar { background-color: #1c252c; display: flex; justify-content: space-between; align-items: center; padding: 15px 25px; border-radius: 16px; margin-bottom: 40px; flex-wrap: wrap; gap: 15px; }
.footer-status-bar .phone-box { display: flex; align-items: center; gap: 10px; }
.footer-status-bar .phone-num { font-size: 1.1rem; font-weight: bold; color: #fff; }
.footer-status-bar .divider { height: 20px; width: 1px; background-color: #444; }
.footer-status-bar .support-text { color: #f7f8fa; font-size: 0.95rem; }

.footer-links-grid { display: grid; grid-template-columns: 1.2fr 1.8fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand-col img { max-height: 40px; object-fit: contain; margin-bottom: 15px; }
.footer-brand-col p { color: #f7f8fa; line-height: 1.7; font-size: 0.9rem; }

.social-holder { display: flex; gap: 10px; margin-top: 20px; }
.social-icon-btn { background: #1c252c; padding: 10px; border-radius: 12px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; box-sizing: border-box; transition: 0.3s; }
.social-icon-btn:hover { transform: translateY(-3px); background: #d85b49; }
.social-icon-btn a { color: #fff; display: flex; align-items: center; }

.footer-menu-cols { display: flex; gap: 60px; }
.menu-col-title { font-size: 1rem; font-weight: bold; margin-bottom: 20px; color: #fff; }
.menu-col-links { display: flex; flex-direction: column; list-style: none; padding: 0; margin: 0; gap: 12px; }
.menu-col-links a { color: #f7f8fa; text-decoration: none; transition: 0.2s; display: block; }
.menu-col-links a:hover { color: #d85b49; transform: translateX(-5px); }

.enamad-holder { display: flex; justify-content: flex-end; align-items: center; }
.enamad-box { background: transparent; border: 1px solid #333; padding: 10px; border-radius: 20px; width: 100px; height: 90px; display: flex; align-items: center; justify-content: center; }
.enamad-box img { max-width: 100%; max-height: 100%; }

.footer-bottom-bar { border-top: 1px dashed #444; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.copyright-text { color: #aaa; font-size: 0.8rem; }
.designer-box { text-align: left; }
.designer-box p { margin: 0; color: #aaa; font-size: 0.75rem; }
.designer-box a { color: #fff; text-decoration: none; font-size: 0.8rem; font-weight: bold; }


/* =================================================================
   ساختار استایل‌دهی هدر مدرن و بومی آواصا (جایگزین هدر قدیمی)
   ================================================================= */
.avasa-main-header {
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.header-top-bar { width: 100%; height: 4px; background: transparent; }
.header-content-wrapper { width: 100%; background: #fff; color: #1B1F22; }
.header-container { max-width: 1200px; margin: 0 auto; padding: 0 15px; box-sizing: border-box; flex-direction: column;}

/* ردیف بالایی هدر */
.header-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: -webkit-fill-available;
    gap: 24px;
    padding: 16px 0;
}

/* مدیریت ریسپانسیو لوگوها */
.header-logo-col .logo-shine { display: flex; align-items: center; text-decoration: none; }
.logo-desktop { height: 3rem; display: block; object-fit: contain; }
.logo-mobile { display: none; width: 4rem; height: 3rem; object-fit: cover; }

/* باکس سرچ اصلی */
.header-search-col { width: 100%; max-width: 550px; }
.search-form-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 12px;
    height: 52px;
    border-radius: 16px;
    border: 1px solid #d1d5db;
    background: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.search-form-wrapper:focus-within { border-color: #d85b49; }
.search-input-container { display: flex; align-items: center; flex: 1; height: 100%; }
.search-icon-btn { background: none; border: none; color: #6b7280; cursor: pointer; display: flex; align-items: center; padding: 0; }
.search-field { width: 100%; padding: 0 12px; border: none; outline: none; font-size: 14px; color: #1B1F22; background: transparent; }
.search-submit-btn {
    background: #1B1F22;
    color: #fff;
    border: none;
    height: 40px;
    width: 100px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
}
.search-submit-btn:hover { background: #d85b49; }

/* بخش حساب کاربری و سبد خرید */
.user-profile-box, .cart-box-wrapper {
    padding: 8px 12px;
    border-radius: 16px;
    transition: background 0.2s;
}
.user-profile-box:hover, .cart-box-wrapper:hover { background: #f9fafb; }
.user-link, .cart-link { display: flex; gap: 12px; align-items: center; text-decoration: none; color: #1B1F22; }

.avatar-circle {
    width: 40px;
    height: 40px;
    background: #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #4b5563;
}
.user-info-text, .cart-info-text { display: flex; flex-direction: column; }
.user-role-label, .cart-label { font-size: 11px; color: #9ca3af; margin: 0; font-weight: 300; }
.user-info-text p, .cart-info-text p { margin: 0; font-size: 14px; font-weight: 500; }

.cart-icon-container { position: relative; display: flex; align-items: center; color: #1B1F22; }
.cart-badge-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #1B1F22;
    color: #fff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

/* ردیف دوم منو و مگامنو */
.header-navigation-row { display: flex; align-items: center; padding-bottom: 16px; border-top: 1px solid #f3f4f6; padding-top: 12px; }
.category-dropdown-container { position: relative; width: 200px; }
.category-trigger-btn {
    width: 100%;
    padding: 12px 16px;
    background: #f9fafb;
    border: none;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #1B1F22;
    cursor: pointer;
    transition: all 0.2s;
}
.category-dropdown-container:hover .category-trigger-btn {
    border-radius: 16px 16px 0 0;
    background: #f3f4f6;
}

/* پاپ آپ مگامنو زمان هاور */
.megamenu-dropdown-box {
    position: absolute;
    right: 0;
    top: 100%;
    width: 900px;
    background: #F9FAFB;
    border: 1px solid #e5e7eb;
    border-radius: 0 15px 15px 15px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 2000;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.category-dropdown-container:hover .megamenu-dropdown-box { opacity: 1; visibility: visible; }
.megamenu-flex-container { display: flex; min-h: 380px; }

.megamenu-sidebar { width: 220px; border-left: 1px solid #e5e7eb; background: #F9FAFB; }
.megamenu-padding { padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.megamenu-side-btn {
    width: 100%;
    text-align: right;
    padding: 12px 16px;
    border-radius: 12px;
    border: none;
    background: transparent;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: #4b5563;
}
.megamenu-side-btn.active-item, .megamenu-side-btn:hover {
    background: #fff;
    color: #1B1F22;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.arrow-svg { width: 16px; height: 16px; color: #9ca3af; }

.megamenu-content-area { width: 220px; border-left: 1px solid #f3f4f6; background: #fff; }
.view-all-link { text-align: right; padding: 10px 16px; font-size: 12px; font-weight: 500; color: #d85b49; text-decoration: none; display: block; }
.menu-divider-line { h: 1px; background: #f3f4f6; margin: 4px 12px; }
.submenu-item-link { text-align: right; padding: 10px 16px; border-radius: 8px; font-size: 13px; color: #4b5563; text-decoration: none; display: block; transition: all 0.2s; }
.submenu-item-link:hover { background: #f9fafb; color: #1B1F22; }
.megamenu-empty-space { flex: 1; background: #fff; }

.megamenu-footer-action { border-top: 1px solid #e5e7eb; padding: 16px; background: #fff; border-radius: 0 0 15px 15px; }
.all-cats-btn {
    width: 100%;
    padding: 12px;
    background: #1B1F22;
    color: #fff;
    border-radius: 12px;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: bold;
}
.all-cats-btn:hover { background: #d85b49; }

/* منوی ساده سمت چپ */
.main-menu-links-holder { display: flex; gap: 20px; padding-right: 48px; align-items: center; }
.nav-menu-item { font-size: 14px; color: #4b5563; text-decoration: none; transition: color 0.2s; padding: 6px 0; }
.nav-menu-item:hover { color: #d85b49; }

.mz-swap-wrap {
  display: inline-block;
  position: relative;
  min-width: 180px;
  height: 1.3em;
  vertical-align: middle;
  overflow: hidden;
}

.mz-swap {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  text-align: center;
  opacity: 0;
  transform: translateY(14px);
  animation: mzWord 10.8s infinite;
  animation-fill-mode: both;
}

.mz-swap:nth-child(1) { animation-delay: 0s; }
.mz-swap:nth-child(2) { animation-delay: 1.8s; }
.mz-swap:nth-child(3) { animation-delay: 3.6s; }
.mz-swap:nth-child(4) { animation-delay: 5.4s; }
.mz-swap:nth-child(5) { animation-delay: 7.2s; }
.mz-swap:nth-child(6) { animation-delay: 9s; }

@keyframes mzWord {
  0%     { opacity: 0; transform: translateY(14px); }
  3%     { opacity: 1; transform: translateY(0); }
  13%    { opacity: 1; transform: translateY(0); }
  16.67% { opacity: 0; transform: translateY(-14px); }
  100%   { opacity: 0; transform: translateY(14px); }
}



/* =================================================================
   📱 ریسپانسیو فوق‌العاده دقیق برای حالت موبایل (Max-Width: 768px)
   ================================================================= */
@media (max-width: 768px) {
    .hide-on-mobile { display: none !important; }
    .logo-desktop { display: none !important; }
    .logo-mobile { display: block !important; }
    
    .header-main-row {
        gap: 12px;
        padding: 10px 0;
    }
    .header-search-col {
        flex: 1;
    }
    .search-form-wrapper {
        height: 44px;
        border-radius: 12px;
        padding: 0 8px;
    }
    .search-submit-btn {
        display: none !important; /* دکمه متنی جستجو در موبایل غیب می‌شود */
    }
    .header-navigation-row {
        display: none !important; /* پنهان شدن منوی دسکتاپ در لندینگ پیج نسخه موبایل */
    }
}



/* ریسپانسیو اختصاصی */



@media (max-width: 992px) {
    .footer-links-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-menu-cols { justify-content: space-between; gap: 20px; }
    .enamad-holder { justify-content: center; margin-top: 10px; }
}
@media (max-width: 768px) {
    .avasa-content-grid { grid-template-columns: 1fr; }
    .avasa-hero-section h1 { font-size: 1.7rem; }
    .footer-status-bar { flex-direction: column; text-align: center; justify-content: center; }
    .footer-bottom-bar { flex-direction: column-reverse; text-align: center; }
}

/* =================================================================
              مازن اوستا - گرید خدمات
   ================================================================= */
.mz-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding-bottom: 2rem;
}

@media (min-width: 768px) {
    .mz-services-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 16px;
    }
}

.mz-service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.mz-service-box {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease;
}

.mz-service-box svg {
    width: 38px;
    height: 38px;
}

@media (min-width: 768px) {
    .mz-service-box {
        width: 96px;
        height: 96px;
        border-radius: 26px;
    }
    .mz-service-box svg {
        width: 52px;
        height: 52px;
    }
}

.mz-service-item:hover .mz-service-box {
    transform: translateY(-4px);
}

.mz-service-label {
    font-size: 12px;
    font-weight: 700;
    color: #1B1F22;
    text-align: center;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .mz-service-label {
        font-size: 14px;
    }
}

/* dark mode */
.dark .mz-service-label {
    color: #f1f5f9;
}

/* =================================================================
              مازن اوستا - انیمیشن rotating text
   ================================================================= */
.mz-swap-wrap {
    display: inline-block;
    position: relative;
    min-width: 180px;
    height: 1.3em;
    vertical-align: middle;
    overflow: hidden;
}

.mz-swap {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    text-align: center;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.mz-swap.pending {
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
}

.mz-swap.active {
    opacity: 1;
    transform: translateY(0);
}

.mz-swap.exit {
    opacity: 0;
    transform: translateY(-14px);
    pointer-events: none;
}

/* =================================================================
   Cities Marquee Section — مازن اوستا در شهر شما
   ================================================================= */
.mz-cities-track-outer {
    width: 100%;
    overflow: hidden;
    position: relative;
    /* fade لبه‌ها */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.mz-cities-track {
    overflow: hidden;
    cursor: grab;
    user-select: none;
}
.mz-cities-track.mz-dragging { cursor: grabbing; }
.mz-cities-inner {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 8px 0;
    animation: mz-cities-loop 55s linear infinite;
    will-change: transform;
}
.mz-cities-inner.mz-paused {
    animation-play-state: paused;
}
@keyframes mz-cities-loop {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.mz-city-item {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 8px 18px;
    border-radius: 100px;
    background: #f3f4f6;
    color: #1B1F22;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid #e5e7eb;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    flex-shrink: 0;
}
.mz-city-item:hover {
    background: #1B6B4E;
    color: #fff;
    border-color: #1B6B4E;
}

/* =================================================================
   Steps Section — مراحل دریافت سرویس
   ================================================================= */
.mz-steps-section {
    background: linear-gradient(135deg, #f0faf5 0%, #e8f5ef 60%, #f5fbf8 100%);
    padding: 3rem 1.25rem;
    border-radius: 24px;
    margin: 0.5rem 0;
}
.mz-steps-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 0;
}
.mz-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}
.mz-step-icon-wrap {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}
.mz-step-num {
    align-self: flex-end;
    margin-left: -10px;
    margin-bottom: -10px;
    z-index: 1;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #1B6B4E;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mz-step-icon {
    width: 84px;
    height: 84px;
    border-radius: 24px;
    background: #E8F5EF;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mz-step-label {
    font-size: 15px;
    font-weight: 700;
    color: inherit;
    margin: 0;
    letter-spacing: -0.02em;
}
.mz-step-sub {
    font-size: 13px;
    color: #6b7280;
    margin: -6px 0 0;
}
.mz-step-arrow {
    padding: 0 8px;
    opacity: 0.35;
    color: #1B6B4E;
}

/* موبایل: یک ردیف، آیکون و متن کوچک‌تر */
@media (max-width: 767px) {
    .mz-steps-section {
        padding: 2rem 1rem;
        border-radius: 16px;
    }
    .mz-step-icon {
        width: 56px;
        height: 56px;
        border-radius: 16px;
    }
    .mz-step-icon svg {
        width: 28px;
        height: 28px;
    }
    .mz-step-label {
        font-size: 12px;
    }
    .mz-step-sub {
        display: none;
    }
    .mz-step-arrow svg {
        width: 18px;
        height: 18px;
    }
    .mz-step-num {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
}