/* ============================================================
   Mina Header — Styles
   Fixed top navigation with shrink-on-scroll, mobile drawer,
   and CTA button. RTL Persian layout.
   ============================================================ */

.mina-header-shell, .mina-header-shell * { box-sizing: border-box !important; font-family: 'IRANSans','Vazirmatn',Tahoma,sans-serif !important; }
.mina-header-shell { width: 100%; max-width: 100%; overflow-x: hidden; }

/* Remove spacing around the fixed header widget. */
.elementor-widget-mina_header {
    order: -1 !important;
    margin-block-end: 0 !important;
    margin-bottom: 0 !important;
}

/*
 * Legacy Elementor sections use column-gap padding on populated columns.
 * That adds 10px above and below the header spacer, while the hero column
 * already has zero padding.
 */
.elementor-section:has(.elementor-widget-mina_header)
> .elementor-container
> .elementor-column
> .elementor-element-populated {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.mina-skip-link {
    position: fixed;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
.mina-skip-link:focus {
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    clip-path: none;
    left: 16px;
    top: 16px;
    background: #16392f;
    color: #fff;
    padding: 10px 16px;
    z-index: 99999;
}

.mina-header {
    --header-h: 86px;
    --header-h-small: 70px;
    position: fixed; top: 0; right: 0; left: 0; z-index: 9999;
    transition: .3s ease;
    direction: rtl !important;
}

.mina-nav {
    height: var(--header-h);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 0 30px;
    background: #fff;
    border-bottom: 1px solid #eee;
    transition: .3s ease;
    direction: rtl !important;
}

.mina-header.shrink .mina-nav { height: var(--header-h-small); padding: 0 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, .05); }

.mina-logo { display: flex !important; align-items: center !important; }
.mina-logo img { height: 42px; width: auto; max-width: 100%; filter: brightness(0); display: block; transition: .3s ease; }
.mina-header.shrink .mina-logo img { height: 36px; }

.mina-menu {
    display: flex !important; justify-content: center !important; align-items: center !important;
    gap: 28px !important; list-style: none !important; margin: 0 !important; padding: 0 !important;
}
.mina-menu li { list-style: none !important; }
.mina-menu a {
    color: #1f1a17 !important; font-weight: 700 !important; font-size: 14px !important;
    position: relative; display: inline-block !important; padding: 8px 0 !important;
    line-height: 1.2 !important; transition: .25s ease; text-decoration: none !important;
}
.mina-menu a::after {
    content: ""; position: absolute; right: 0; bottom: -8px;
    width: 0; height: 2px; background: #486352; transition: .25s ease;
}
.mina-menu a:hover, .mina-menu a.active { color: #486352 !important; }
.mina-menu a:hover::after, .mina-menu a.active::after { width: 100%; }

.mina-header-cta { display: flex !important; align-items: center !important; justify-content: flex-end !important; }

.mina-header .mina-btn {
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    gap: 8px !important; background: #486352 !important; color: #fff !important;
    padding: 12px 22px !important; min-height: 48px !important;
    font-weight: 700 !important; font-size: 14px !important; line-height: 1 !important;
    border: none !important; border-radius: 0 !important; box-shadow: none !important;
    white-space: nowrap !important; text-decoration: none !important;
}
.mina-header .mina-btn:hover { background: #587465 !important; color: #fff !important; }

.mina-header-shell button.mina-mobile-toggle {
    display: none !important;
    width: 44px !important; height: 44px !important; min-width: 44px !important;
    border: 1px solid rgba(0, 0, 0, .08) !important;
    border-radius: 0 !important;
    background: #fff !important; color: #1f1a17 !important;
    box-shadow: none !important; outline: none;
    cursor: pointer; align-items: center; justify-content: center; padding: 0 !important;
    appearance: none;
}
.mina-mobile-toggle span { display: block; width: 22px; height: 2px; background: #1f1a17; position: relative; }
.mina-mobile-toggle span::before, .mina-mobile-toggle span::after {
    content: ""; position: absolute; right: 0; width: 22px; height: 2px; background: #1f1a17;
}
.mina-mobile-toggle span::before { top: -7px; }
.mina-mobile-toggle span::after  { top:  7px; }
.mina-header-shell button.mina-mobile-toggle:hover,
.mina-header-shell button.mina-mobile-toggle:focus {
    border-color: rgba(0, 0, 0, .14) !important;
    background: #fff !important; color: #1f1a17 !important;
    box-shadow: none !important;
}
.mina-header-shell button.mina-mobile-toggle:focus-visible {
    outline: 2px solid rgba(72, 99, 82, .5);
    outline-offset: 2px;
}

.mina-drawer-overlay {
    position: fixed; inset: 0; background: rgba(0, 0, 0, .28);
    opacity: 0; visibility: hidden; transition: .25s ease; z-index: 9998;
}
.mina-drawer-overlay.open { opacity: 1; visibility: visible; }

.mina-drawer {
    position: fixed; top: 0; right: 0;
    width: min(88vw, 340px); height: 100vh;
    background: #fff; z-index: 9999;
    transform: translateX(110%); transition: .28s ease;
    padding: 22px; box-shadow: -20px 0 50px rgba(0, 0, 0, .12);
    direction: rtl !important;
}
.mina-drawer.open { transform: translateX(0); }

.mina-drawer-top {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 16px; margin-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.mina-drawer-top img { height: 38px; width: auto; max-width: 100%; filter: brightness(0); }
.mina-header-shell button.mina-drawer-close {
    width: 40px !important; height: 40px !important; min-width: 40px !important;
    border: 1px solid rgba(0, 0, 0, .08) !important;
    border-radius: 0 !important;
    background: #fff !important; color: #1f1a17 !important;
    box-shadow: none !important; outline: none;
    padding: 0 !important; cursor: pointer; font-size: 20px; line-height: 1;
    appearance: none;
}
.mina-header-shell button.mina-drawer-close:hover,
.mina-header-shell button.mina-drawer-close:focus {
    border-color: rgba(0, 0, 0, .14) !important;
    background: #fff !important; color: #1f1a17 !important;
    box-shadow: none !important;
}
.mina-header-shell button.mina-drawer-close:focus-visible {
    outline: 2px solid rgba(72, 99, 82, .5);
    outline-offset: 2px;
}
.mina-drawer-menu { list-style: none; padding: 0; margin: 0; }
.mina-drawer-menu a {
    display: block; padding: 14px 10px;
    color: #1f1a17 !important; font-weight: 700; text-decoration: none !important;
}
.mina-drawer-menu a.active,
.mina-drawer-menu a:hover { color: #486352 !important; background: rgba(72, 99, 82, .05); }
.mina-drawer-cta { margin-top: 18px; }
.mina-drawer-cta .mina-btn {
    width: 100%;
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    min-height: 48px !important; padding: 12px 22px !important;
    border: none !important; border-radius: 0 !important;
    background: #486352 !important; color: #fff !important;
    box-shadow: none !important; text-decoration: none !important;
    font-size: 14px !important; font-weight: 700 !important; line-height: 1 !important;
}
.mina-drawer-cta .mina-btn:hover,
.mina-drawer-cta .mina-btn:focus {
    background: #587465 !important; color: #fff !important;
}

/* Spacer so page content doesn't sit under the fixed header */
.mina-header-spacer { height: var(--header-h, 86px); }

@media (max-width: 992px) {
    .mina-nav { grid-template-columns: auto 1fr auto !important; padding: 0 16px !important; }
    .mina-logo { grid-column: 1 !important; justify-self: start !important; }
    .mina-header-shell button.mina-mobile-toggle { display: flex !important; grid-column: 3 !important; justify-self: end !important; }
    .mina-menu, .mina-header-cta { display: none !important; }
    .mina-logo img { height: 36px !important; }
}

@media (max-width: 640px) {
    .mina-nav { height: 74px; padding: 0 12px !important; }
    .mina-logo img { height: 34px !important; }
    .mina-header-spacer { height: 74px; }
    .mina-header-shell button.mina-drawer-close { width: 44px !important; height: 44px !important; min-width: 44px !important; }
    .mina-drawer-cta .mina-btn {
        max-width: 100% !important;
        min-height: 48px !important;
        white-space: normal !important;
        overflow-wrap: break-word;
    }
}

@media (max-width: 380px) {
    .mina-nav { padding: 0 10px !important; }
    .mina-logo img { max-width: 60vw !important; }
    .mina-drawer { padding: 18px; }
    .mina-drawer-top img { max-width: 60vw; }
}
