:root {
    --toos-green: #20b85a;
    --toos-green-dark: #128a43;
    --toos-yellow: #ffc400;
    --toos-ink: #202124;
    --toos-line: #dfe5e1;
}

/* The plugin replaces visual output only; old Elementor/UAE records remain recoverable. */
body > header#site-header,
body header.site-header:not(.toos-plugin-header),
body .elementor-location-header,
body header[data-elementor-type="header"],
body .hfe-site-header,
body .ehf-header {
    display: none !important;
}

body.toos-ready-landing-page main#content,
body.toos-ready-landing-page .site-main,
body.toos-ready-landing-page .page-content,
body.toos-ready-landing-page .site-main > article,
body.toos-ready-landing-page .entry-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.toos-ready-landing-page .page-header,
body.toos-ready-landing-page .entry-title {
    display: none !important;
}

.toos-plugin-header,
.toos-plugin-header * {
    box-sizing: border-box;
}

.toos-plugin-header {
    position: relative;
    z-index: 9999;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--toos-line);
    font-family: Vazirmatn, Tahoma, sans-serif;
}

.toos-plugin-header a {
    text-decoration: none;
}

.toos-plugin-header__inner {
    width: min(1200px, calc(100% - 36px));
    height: 92px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.toos-plugin-header__logo {
    flex: 0 0 92px;
    display: flex;
    align-items: center;
}

.toos-plugin-header__logo img {
    display: block;
    width: 88px;
    height: auto;
    max-height: 83px;
    object-fit: contain;
}

.toos-plugin-header__nav {
    flex: 1;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toos-plugin-header__nav a {
    align-self: stretch;
    display: flex;
    align-items: center;
    padding: 0 14px;
    color: var(--toos-ink);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    position: relative;
    transition: color .2s ease;
}

.toos-plugin-header__nav a:hover,
.toos-plugin-header__nav a.active {
    color: var(--toos-green-dark);
}

.toos-plugin-header__nav a:hover::after,
.toos-plugin-header__nav a.active::after {
    content: "";
    position: absolute;
    right: 50%;
    bottom: 0;
    width: 34px;
    height: 4px;
    border-radius: 5px;
    background: var(--toos-green);
    transform: translateX(50%);
}

.toos-plugin-header__actions {
    flex: 0 0 310px;
    display: flex;
    direction: ltr;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

.toos-plugin-header__request {
    height: 44px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--toos-yellow);
    color: var(--toos-ink);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    transition: .2s ease;
}

.toos-plugin-header__request:hover {
    color: #fff;
    background: var(--toos-green);
    transform: translateY(-1px);
}

.toos-plugin-header__icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border: 1px solid #c9ceca;
    border-radius: 50%;
    background: #fff;
    color: var(--toos-ink);
    transition: .2s ease;
}

.toos-plugin-header__icon:hover {
    color: var(--toos-green);
    border-color: var(--toos-green);
}

.toos-plugin-header__icon svg {
    width: 18px;
    height: 18px;
}

.toos-plugin-header__toggle,
.toos-plugin-header__hamburger {
    display: none;
}

@media (max-width: 1050px) {
    .toos-plugin-header__inner { gap: 12px; }
    .toos-plugin-header__nav a { padding: 0 8px; font-size: 13px; }
    .toos-plugin-header__actions { flex-basis: 260px; }
    .toos-plugin-header__request { padding: 0 14px; }
}

@media (max-width: 820px) {
    .toos-plugin-header__inner {
        width: calc(100% - 24px);
        height: 78px;
    }

    .toos-plugin-header__logo { flex-basis: 68px; }
    .toos-plugin-header__logo img { width: 65px; max-height: 70px; }
    .toos-plugin-header__actions { flex: 0 0 auto; margin-right: auto; }
    .toos-plugin-header__actions .toos-plugin-header__icon { display: none; }
    .toos-plugin-header__request { height: 40px; padding: 0 15px; font-size: 12px; }

    .toos-plugin-header__hamburger {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #c9ceca;
        border-radius: 50%;
        cursor: pointer;
    }

    .toos-plugin-header__hamburger span,
    .toos-plugin-header__hamburger span::before,
    .toos-plugin-header__hamburger span::after {
        display: block;
        width: 18px;
        height: 2px;
        position: relative;
        background: var(--toos-ink);
        transition: .2s ease;
    }

    .toos-plugin-header__hamburger span::before,
    .toos-plugin-header__hamburger span::after {
        content: "";
        position: absolute;
        right: 0;
    }

    .toos-plugin-header__hamburger span::before { top: -6px; }
    .toos-plugin-header__hamburger span::after { top: 6px; }

    .toos-plugin-header__nav {
        display: none;
        position: absolute;
        top: 78px;
        right: 12px;
        left: 12px;
        height: auto;
        padding: 10px;
        border: 1px solid var(--toos-line);
        border-radius: 0 0 20px 20px;
        background: #fff;
        box-shadow: 0 18px 40px rgba(21,55,35,.12);
    }

    .toos-plugin-header__nav a {
        height: 46px;
        padding: 0 14px;
        border-radius: 10px;
    }

    .toos-plugin-header__nav a:hover { background: #eff9f1; }
    .toos-plugin-header__nav a::after { display: none !important; }
    .toos-plugin-header__toggle:checked ~ .toos-plugin-header__nav { display: block; }
    .toos-plugin-header__toggle:checked + .toos-plugin-header__hamburger span { background: transparent; }
    .toos-plugin-header__toggle:checked + .toos-plugin-header__hamburger span::before { top: 0; transform: rotate(45deg); }
    .toos-plugin-header__toggle:checked + .toos-plugin-header__hamburger span::after { top: 0; transform: rotate(-45deg); }
}
