/*
 * Mosab Pooya public UI layer
 *
 * This file refines the existing Misto components without replacing their
 * markup, data contracts, routes, or interaction hooks.
 */
:root {
    --mosab-orange: #f9a305;
    --mosab-orange-dark: #d98200;
    --mosab-navy: #121628;
    --mosab-ink: #23244a;
    --mosab-text: #4f5363;
    --mosab-surface: #ffffff;
    --mosab-muted: #f6f7fa;
    --mosab-line: rgba(35, 36, 74, 0.10);
    --mosab-shadow: 0 18px 50px rgba(18, 22, 40, 0.10);
    --mosab-shadow-soft: 0 10px 30px rgba(18, 22, 40, 0.08);
    --mosab-radius: 16px;
    --mosab-container: 1200px;

    /* Gohar Zamin style header colors */
    --ghz-header-bg: #101E4F;
    --ghz-header-text: #FFFFFF;
    --ghz-header-hover: #B3B3B3;
    --ghz-header-active: #f9a305;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--mosab-muted);
    color: var(--mosab-text);
}

/* ===== IranSans font for the Persian public site only ===== */
html:lang(fa) body,
html:lang(fa) body .h1, html:lang(fa) body .h2, html:lang(fa) body .h3,
html:lang(fa) body .h4, html:lang(fa) body .h5, html:lang(fa) body .h6,
html:lang(fa) body h1, html:lang(fa) body h2, html:lang(fa) body h3,
html:lang(fa) body h4, html:lang(fa) body h5, html:lang(fa) body h6,
html:lang(fa) body p, html:lang(fa) body li, html:lang(fa) body a,
html:lang(fa) body span, html:lang(fa) body div,
html:lang(fa) body input, html:lang(fa) body select,
html:lang(fa) body textarea, html:lang(fa) body button,
html:lang(fa) body .btn, html:lang(fa) body .nav-link,
html:lang(fa) body .menu-label,
html:lang(fa) body .section-title, html:lang(fa) body .title,
html:lang(fa) body .lead {
    font-family: "iransans", "Vazirmatn RD FD", sans-serif;
}

html:lang(fa) body {
    font-weight: 500;
}

html:lang(fa) body h1, html:lang(fa) body h2, html:lang(fa) body h3,
html:lang(fa) body h4, html:lang(fa) body h5, html:lang(fa) body h6,
html:lang(fa) body .h1, html:lang(fa) body .h2, html:lang(fa) body .h3,
html:lang(fa) body .h4, html:lang(fa) body .h5, html:lang(fa) body .h6,
html:lang(fa) body .section-title .title, html:lang(fa) body .title {
    font-weight: 600;
}

html:lang(fa) body .btn, html:lang(fa) body .nav-link,
html:lang(fa) body .menu-label {
    font-weight: 500;
}

.page-wrapper {
    overflow: hidden;
}

.container {
    max-width: var(--mosab-container);
}

/* Shared header / navigation */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

#site-header .top-bar {
    background: var(--mosab-navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    padding: 9px 0;
}

#site-header .top-bar a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
}

#site-header .top-bar a:hover {
    color: var(--mosab-orange);
}

#site-header .top-bar i {
    color: var(--mosab-orange);
    margin-inline-end: 7px;
}

#header-wrap.fixed-header {
    background: transparent !important;
    box-shadow: none;
    position: static;
}

#header-wrap {
    background: transparent;
    border-bottom: none;
    padding: 12px 0;
}

/* ===== Gohar Zamin style pill header ===== */
.ghz-navbar {
    min-height: 60px;
    align-items: center;
    justify-content: space-between;
}

/* Round action buttons (search + language) on the left side */
.ghz-actions {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ghz-action-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--ghz-header-bg);
    color: var(--ghz-header-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background-color .25s ease, color .25s ease;
    cursor: pointer;
}

.ghz-action-btn:hover {
    background: var(--mosab-orange);
    color: #ffffff;
}

/* Search dropdown (like the projects page filter) */
.ghz-search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: #ffffff;
    border: 1px solid var(--mosab-line);
    border-radius: 14px;
    box-shadow: var(--mosab-shadow);
    padding: 16px;
    min-width: 320px;
    z-index: 100;
    display: none;
}

.ghz-search-dropdown.show {
    display: block;
}

.ghz-search-dropdown .ghz-search-field {
    margin-bottom: 10px;
}

.ghz-search-dropdown .form-control {
    background: var(--mosab-muted);
    border: 1px solid var(--mosab-line);
    border-radius: 9px;
    height: 44px !important;
    padding: 8px 12px;
}

.ghz-search-dropdown .btn {
    margin-top: 4px;
    width: 100%;
}

.ghz-lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    z-index: 100;
    display: none;
}

.ghz-lang-dropdown.show {
    display: block;
}

.ghz-lang-dropdown .locale-switcher {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Inside the header language dropdown, show only the select (no white box, no label) */
.ghz-lang-dropdown .locale-switcher-label {
    display: none;
}

.ghz-lang-dropdown .locale-switcher-box {
    display: inline-flex;
    align-items: center;
    gap: 0;
    height: auto;
    margin: 0;
}

.ghz-lang-dropdown .locale-switcher-field {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 36px;
}

.ghz-lang-dropdown .locale-switcher-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    height: 36px;
    min-width: 120px;
    padding: 0 28px 0 12px;
    font-size: 13px;
    font-weight: 500;
    line-height: 36px;
    color: var(--ghz-header-text);
    background: var(--ghz-header-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ghz-lang-dropdown .locale-switcher-select:hover,
.ghz-lang-dropdown .locale-switcher-select:focus {
    background: var(--mosab-orange);
    border-color: var(--mosab-orange);
    color: #ffffff;
    outline: none;
}

.ghz-lang-dropdown .locale-switcher-select option {
    color: #23244a;
    background: #ffffff;
}

.ghz-lang-dropdown .locale-switcher-chevron {
    position: absolute;
    inset-inline-end: 10px;
    pointer-events: none;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1;
}

.ghz-header-pill {
    display: flex;
    align-items: center;
    gap: 0;
    border-radius: 100px;
    background: transparent;
    box-shadow: -3px 8px 10px -6px rgba(92, 92, 92, 0.72);
    width: fit-content;
    margin: 0;
}

/* Logo on white with rounded (curved) edge, like Gohar Zamin.
   The LEFT edge (facing the transparent gap) is slanted. */
.ghz-logo-box {
    background: #ffffff;
    border-radius: 0 200px 200px 0;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    clip-path: polygon(26px 0, 100% 0, 100% 100%, 0 100%);
}

.ghz-logo-box .logo img {
    width: auto;
    max-width: 150px;
    height: auto;
    max-height: 38px;
}

/* Keep the logo the same size when the header gets the fixed-header class
   on scroll (theme base.css/responsive.css shrink it via an ID selector). */
#header-wrap.fixed-header .ghz-logo-box .logo img {
    width: auto;
    max-width: 150px;
    height: auto;
    max-height: 38px;
}

/* Transparent diagonal gap between the white logo and the navy menu */
.ghz-slant {
    width: 5px;
    align-self: stretch;
    background: transparent;
}

/* Menu on navy background with rounded (curved) edge.
   The RIGHT edge (facing the transparent gap) is slanted.
   A negative margin pulls the navy box slightly over the white logo
   so the two boxes sit closer together. */
.ghz-menu-box {
    background: var(--ghz-header-bg);
    border-radius: 200px 0 0 200px;
    min-height: 60px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    margin-right: -28px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 26px) 100%, 0 100%);
}

/* ===== LTR (English) overrides: flip the slant so it stays between logo and menu ===== */
html:lang(en) .ghz-logo-box,
[dir="ltr"] .ghz-logo-box {
    border-radius: 200px 0 0 200px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 26px) 100%, 0 100%);
}

html:lang(en) .ghz-menu-box,
[dir="ltr"] .ghz-menu-box {
    border-radius: 0 200px 200px 0;
    margin-right: 0;
    margin-left: -28px;
    clip-path: polygon(26px 0, 100% 0, 100% 100%, 0 100%);
}

.ghz-menu-box .navbar-nav .nav-link,
.ghz-menu-box .navbar-nav .nav-link {
    border-radius: 10px;
    color: var(--ghz-header-text);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 2px;
    padding: 5px 12px !important;
    position: relative;
    transition: color .25s ease, background-color .25s ease, transform .25s ease;
}

.ghz-menu-box .navbar-nav .nav-link::after {
    background: var(--mosab-orange);
    bottom: 3px;
    content: "";
    height: 2px;
    left: 12px;
    position: absolute;
    right: 12px;
    transform: scaleX(0);
    transition: transform .25s ease;
}

.ghz-menu-box .navbar-nav .nav-link:hover,
.ghz-menu-box .navbar-nav .nav-link.active,
.ghz-menu-box .navbar-nav .nav-link:hover,
.ghz-menu-box .navbar-nav .nav-link.active {
    background: rgba(249, 163, 5, 0.12);
    color: var(--mosab-orange) !important;
}

.ghz-menu-box .navbar-nav .nav-link:hover::after,
.ghz-menu-box .navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.ghz-menu-box .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    padding: 8px 11px;
    background: transparent;
}

.ghz-menu-box .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(249, 163, 5, 0.18);
}

.ghz-menu-box .navbar-toggler-icon::before {
    color: var(--mosab-orange);
}

/* Hamburger toggler moved out of the menu box, styled as a circular
   action button (like search/language) and placed to their left. */
.ghz-nav-toggler {
    display: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--ghz-header-bg);
    color: var(--ghz-header-text);
    align-items: center;
    justify-content: center;
    border: none;
    padding: 0;
    margin: 0;
    transition: background-color .25s ease, color .25s ease;
}

.ghz-nav-toggler:hover {
    background: var(--mosab-orange);
    color: #ffffff;
}

.ghz-nav-toggler .navbar-toggler-icon {
    width: auto;
    height: auto;
    line-height: 1;
}

.ghz-nav-toggler .navbar-toggler-icon::before {
    color: inherit;
    content: "\e68e";
    font-family: "themify";
    font-size: 21px;
    font-style: normal;
    font-weight: normal;
    text-decoration: inherit;
}

.ghz-menu-box .nav-item:focus-within > .hover-search,
.ghz-menu-box .nav-item:hover > .hover-search {
    display: block;
}

.ghz-menu-box .hover-search {
    background: var(--mosab-surface);
    border: 1px solid var(--mosab-line);
    border-radius: 14px;
    box-shadow: var(--mosab-shadow);
    left: auto;
    min-width: 340px;
    padding: 8px;
    right: 0;
    top: calc(100% + 10px);
    transform: none;
}

.ghz-menu-box .nav-item:last-child {
    position: relative;
}

.ghz-menu-box .nav-item:last-child .hover-search {
    display: none;
    position: absolute;
}

.ghz-menu-box .nav-item:last-child:hover .hover-search,
.ghz-menu-box .nav-item:last-child:focus-within .hover-search {
    display: block;
}

.ghz-menu-box .hover-search::before {
    background: var(--mosab-surface);
    border-left: 1px solid var(--mosab-line);
    border-top: 1px solid var(--mosab-line);
    content: "";
    height: 12px;
    position: absolute;
    right: 24px;
    top: -7px;
    transform: rotate(45deg);
    width: 12px;
}

.ghz-menu-box .hover-search .contact-main {
    border-bottom: 0;
    box-shadow: none;
    padding: 18px;
}

.ghz-menu-box .hover-search .form-control {
    background: var(--mosab-muted);
    border: 1px solid var(--mosab-line);
    border-radius: 9px;
    height: 44px !important;
    margin-bottom: 10px;
    padding: 8px 12px;
}

.ghz-menu-box .hover-search .btn {
    margin-top: 4px;
    width: 100%;
}

#header-wrap .row,
#header-wrap .navbar {
    height: auto;
}

#main-menu {
    align-items: center;
    height: auto;
}

#main-menu > .nav-item {
    height: auto;
}

.mosab-site-header + .mosab-home-hero {
    margin-top: 0;
}

/* Mobile-only search + language controls inside the collapsed menu.
   Hidden on desktop; shown inside the hamburger dropdown on mobile. */
.ghz-mobile-section,
.ghz-mobile-pages-title {
    display: none;
}

/* ===== Mobile (collapsed) menu — keep readable on white dropdown ===== */
@media (max-width: 1029.98px) {
    .ghz-navbar {
        flex-wrap: wrap;
    }
    .ghz-header-pill {
        width: auto;
        border-radius: 0;
        overflow: visible;
    }
    .ghz-logo-box {
        border-radius: 25px;
        clip-path: none;
        height: 60px;
        padding: 0 12px;
    }
    .ghz-logo-box .logo img {
        max-height: 60px;
    }
    .ghz-logo-box .navbar-brand {
        position: static;
        transform: none;
        margin-right: 0;
    }
    .ghz-slant {
        display: none;
    }
    .ghz-menu-box {
        background: transparent;
        border-radius: 0;
        clip-path: none;
        flex: 0;
        margin-right: 0;
        margin-left: 0;
        min-height: 0;
        padding: 0;
        width: 0;
    }
    html:lang(en) .ghz-logo-box,
    [dir="ltr"] .ghz-logo-box {
        border-radius: 25px;
        clip-path: none;
    }
    html:lang(en) .ghz-menu-box,
    [dir="ltr"] .ghz-menu-box {
        background: transparent;
        border-radius: 0;
        clip-path: none;
        flex: 0;
        margin-right: 0;
        margin-left: 0;
        min-height: 0;
        padding: 0;
        width: 0;
    }
    .ghz-menu-box .navbar-collapse {
        background: #ffffff;
        border-radius: 25px;
        padding: 10px;
    }
    .ghz-menu-box .navbar-nav .nav-link {
        color: var(--mosab-ink);
    }
    .ghz-menu-box .navbar-nav .nav-link:hover,
    .ghz-menu-box .navbar-nav .nav-link.active {
        background: var(--mosab-orange);
        color: #ffffff !important;
    }
    .ghz-menu-box .navbar-toggler {
        background: #ffffff;
        border-color: rgba(255, 255, 255, 0.25);
    }
    .ghz-nav-toggler {
        display: inline-flex;
    }
    .ghz-menu-box .navbar-toggler {
        display: none;
    }
    .ghz-actions .ghz-action-btn {
        display: none;
    }
    .ghz-actions .ghz-search-dropdown,
    .ghz-actions .ghz-lang-dropdown {
        display: none !important;
    }
    .ghz-mobile-section {
        border-top: 1px solid var(--mosab-line);
        display: block;
        margin-top: 14px;
        padding-top: 14px;
    }
    .ghz-mobile-pages-title {
        display: block;
        margin-bottom: 10px;
    }
    .ghz-mobile-section-title,
    .ghz-mobile-pages-title {
        color: var(--mosab-orange);
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.5px;
        text-transform: uppercase;
    }
    .ghz-mobile-pages {
        display: block;
        padding: 0;
    }
    .ghz-mobile-pages .nav-item {
        margin: 0;
    }
    .ghz-mobile-pages .nav-link {
        border-radius: 10px;
        margin: 2px 0;
        padding: 10px 14px !important;
    }
    .ghz-mobile-search .ghz-search-field {
        margin-bottom: 10px;
    }
    .ghz-mobile-search .form-control {
        background: var(--mosab-muted);
        border: 1px solid var(--mosab-line);
        border-radius: 9px;
        height: 44px !important;
        padding: 8px 12px;
    }
    .ghz-mobile-search .btn {
        margin-top: 4px;
        width: 100%;
    }
    .ghz-mobile-lang .locale-switcher-box {
        height: auto;
    }
    .ghz-mobile-lang .locale-switcher-label {
        color: var(--mosab-ink);
    }
    .ghz-mobile-lang .locale-switcher-select {
        color: var(--mosab-ink);
        background: var(--mosab-muted);
        border: 1px solid var(--mosab-line);
    }
    .ghz-mobile-lang .locale-switcher-chevron {
        color: var(--mosab-ink);
    }
}

/* Force the collapsed (hamburger) state between Bootstrap's lg breakpoint
   (992px) and our custom 1030px breakpoint. */
@media (min-width: 992px) and (max-width: 1029.98px) {
    .ghz-navbar .ghz-nav-toggler {
        display: inline-flex !important;
    }
    .ghz-navbar .ghz-menu-box .navbar-collapse {
        display: none !important;
    }
    .ghz-navbar .ghz-menu-box .navbar-collapse.show {
        display: block !important;
    }
    .ghz-navbar .ghz-menu-box .navbar-nav {
        display: none;
    }
}

/* Very small screens: keep the pill and the hamburger button in one row */
@media (max-width: 479.98px) {
    .ghz-navbar {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
    .ghz-header-pill {
        width: auto;
        flex: 1;
    }
    .ghz-actions {
        margin-top: 0;
    }
}

/* Shared page hierarchy */
section {
    padding: 92px 0;
}

.page-content {
    background: var(--mosab-muted);
}

.section-title {
    margin-bottom: 42px;
    position: relative;
}

.section-title::before {
    background: var(--mosab-orange);
    border-radius: 99px;
    content: "";
    display: block;
    height: 4px;
    margin: 0 auto 15px;
    width: 42px;
}

.section-title h2,
.section-title .title {
    color: var(--mosab-ink);
    font-weight: 700;
    line-height: 1.35;
}

.section-title h2 span,
.section-title .title span {
    color: var(--mosab-orange);
}

.section-title p {
    color: var(--mosab-text);
    line-height: 2;
    margin: 14px auto 0;
    max-width: 780px;
}

.dark-bg .section-title h2,
.dark-bg .section-title .title,
.theme-bg .section-title h2,
.theme-bg .section-title .title {
    color: #fff;
}

.dark-bg .section-title p,
.theme-bg .section-title p {
    color: rgba(255, 255, 255, 0.78);
}

.page-title {
    background-position: center;
    min-height: 360px;
    padding: 190px 0 110px;
    position: relative;
}

.page-title::after {
    background: linear-gradient(90deg, rgba(18, 22, 40, .82), rgba(18, 22, 40, .54));
    content: "";
    inset: 0;
    position: absolute;
    z-index: 0;
}

.page-title > .container {
    position: relative;
    z-index: 1;
}

.page-title h1 {
    color: #fff;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.3;
}

.page-title h1 span {
    color: var(--mosab-orange);
}

.page-breadcrumb {
    position: relative;
    left: auto;
    transform: none;
    margin-top: 28px;
}

.page-breadcrumb .breadcrumb {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 99px;
    display: inline-flex;
    padding: 10px 20px;
}

.page-breadcrumb .breadcrumb-item,
.page-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.90);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.page-breadcrumb .breadcrumb-item a:hover {
    color: var(--mosab-orange, #f9a305);
    transition: color 0.2s ease;
}

/* Hero and content surfaces */
.fullscreen-banner {
    min-height: 0;
}

.fullscreen-banner .item::after {
    background: linear-gradient(90deg, rgba(18, 22, 40, .55), rgba(18, 22, 40, .12));
    content: "";
    inset: 0;
    position: absolute;
}

.fullscreen-banner .align-center,
.fullscreen-banner .banner-1 {
    z-index: 2;
}

/* Gohar Zamin style hero: clean content directly on the image,
   no card box, right-aligned (RTL) and vertically centered. */
.fullscreen-banner .banner-1 {
    background: transparent !important;
    border: none;
    border-radius: 0;
    box-shadow: none;
    max-width: 720px;
    padding: 0 !important;
    text-align: right;
}

.fullscreen-banner .banner-1::before {
    display: none;
}

.mosab-home-hero .banner-slider,
.mosab-home-hero .item {
    min-height: 0;
}

.mosab-media-frame {
    background: var(--mosab-surface);
    border: 1px solid var(--mosab-line);
    border-radius: 14px;
    box-shadow: var(--mosab-shadow-soft);
    overflow: hidden;
}

.mosab-media-frame img {
    display: block;
    width: 100%;
}

.mosab-history-gallery .item {
    border-radius: var(--mosab-radius);
    overflow: hidden;
}

.mosab-history-gallery img {
    border-radius: var(--mosab-radius);
    box-shadow: var(--mosab-shadow-soft);
}

.mosab-content-card {
    color: var(--mosab-text);
    line-height: 2;
}

.mosab-content-card h1,
.mosab-content-card h2,
.mosab-content-card h3,
.mosab-content-card h4,
.mosab-content-card h5,
.mosab-content-card h6,
.service-details h1,
.service-details h2,
.service-details h3,
.service-details h4,
.service-details h5,
.service-details h6 {
    color: var(--mosab-ink);
}

.mosab-section-projects .service-item,
.mosab-section-features .featured-item {
    height: 100%;
}

/* Add a clean, logical gap between the 4 "why choose us" cards */
.mosab-section-features .featured-item {
    margin: 0 6px;
}

.mosab-section-features .row.no-gutters > [class*='col-'] {
    padding: 0 6px;
}

.mosab-home-hero .owl-carousel,
.mosab-home-hero .owl-stage-outer,
.mosab-home-hero .owl-stage,
.mosab-home-hero .owl-item,
.mosab-home-hero .item {
    height: 100%;
}

.mosab-home-hero {
    height: min(760px, 88vh);
}

.mosab-home-hero .banner-slider,
.mosab-home-hero .owl-stage-outer,
.mosab-home-hero .owl-stage,
.mosab-home-hero .owl-item,
.mosab-home-hero .item {
    height: 100%;
}

.mosab-home-hero .banner-1 {
    margin-inline: 0;
    max-width: 720px;
}

/* ===== Video hero (looping background video) ===== */
.mosab-video-hero {
    height: min(760px, 88vh);
    min-height: 520px;
    overflow: hidden;
    position: relative;
}

.mosab-hero-video {
    background: #000;
    inset: 0;
    position: absolute;
    z-index: 0;
}

.mosab-hero-video__media {
    height: 100%;
    left: 50%;
    min-height: 100%;
    min-width: 100%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

.mosab-hero-video__overlay {
    background: linear-gradient(90deg, rgba(18, 22, 40, .62), rgba(18, 22, 40, .20));
    inset: 0;
    position: absolute;
}

/* Subtle dot pattern over the video for a refined industrial look */
.mosab-hero-video__pattern {
    background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px);
    background-size: 14px 14px;
    inset: 0;
    opacity: .5;
    pointer-events: none;
    position: absolute;
    z-index: 1;
}

.mosab-hero-video__content {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    position: absolute;
    z-index: 2;
}

.mosab-hero-video__content .banner-1 {
    margin-inline: 0;
    max-width: none;
    text-align: right;
}

html:lang(en) .mosab-hero-video__content .banner-1,
[dir="ltr"] .mosab-hero-video__content .banner-1 {
    text-align: left;
}

/* ===== Text slider over the looping video ===== */
.mosab-text-slider {
    min-height: 260px;
    position: relative;
}

.mosab-text-slide {
    display: none;
}

.mosab-text-slide.active,
.mosab-text-slide.leaving {
    display: block;
    left: 0;
    padding-top: 120px;
    position: absolute;
    right: 0;
    top: 0;
}

.mosab-text-slide.active {
    animation: mosabSlideIn .7s ease both;
}

.mosab-text-slide.leaving {
    animation: mosabSlideOut .7s ease both;
}

.mosab-text-slide h1 {
    color: #fff !important;
    font-size: clamp(28px, 3.5vw, 50px);
    font-weight: 800;
    letter-spacing: -.5px;
    line-height: 1.2;
    margin-bottom: 18px !important;
    text-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}

.mosab-text-slide h5 {
    color: rgba(255, 255, 255, .92) !important;
    font-size: clamp(15px, 1.6vw, 20px);
    font-weight: 400;
    line-height: 2;
    margin: 0 0 28px !important;
    max-width: 640px;
}

.mosab-text-slide .btn {
    margin: 5px 3px 5px 0;
    min-width: 150px;
}

html:lang(en) .mosab-text-slide .btn,
[dir="ltr"] .mosab-text-slide .btn {
    margin: 5px 0 5px 3px;
}

/* Dots and buttons sit on the opposite side of the text.
   In RTL the text is right-aligned, so dots/buttons go to the left.
   They are offset from the edge by the same amount the text block
   (max-width 640px) is offset inside the 720px banner (80px). */
.mosab-text-slide .btn {
    float: inline-end;
    margin-left: 80px !important;
    margin-top: 20px !important;
}

html:lang(en) .mosab-text-slide .btn,
[dir="ltr"] .mosab-text-slide .btn {
    margin-left: 0 !important;
    margin-right: 80px !important;
    margin-top: 20px !important;
}

.mosab-text-dots {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-inline-end: 80px;
    margin-top: 180px;
}

html:lang(en) .mosab-text-dots,
[dir="ltr"] .mosab-text-dots {
    justify-content: flex-end;
}

.mosab-text-dot {
    background: rgba(255, 255, 255, .45);
    border: 2px solid rgba(255, 255, 255, .6);
    border-radius: 50%;
    cursor: pointer;
    height: 14px;
    padding: 0;
    transition: background-color .25s ease, transform .25s ease, border-color .25s ease;
    width: 14px;
}

.mosab-text-dot:hover {
    transform: scale(1.15);
}

.mosab-text-dot.active {
    background: var(--mosab-orange);
    border-color: var(--mosab-orange);
    transform: scale(1.15);
}

/* ===== Scroll-down button at the bottom of the hero ===== */
.mosab-scroll-down {
    align-items: center;
    background: rgba(255, 255, 255, .18);
    border: 2px solid rgba(255, 255, 255, .65);
    border-radius: 50%;
    bottom: 24px;
    color: #fff;
    display: flex;
    height: 46px;
    justify-content: center;
    position: absolute;
    right: 24px;
    transition: background-color .25s ease, transform .25s ease;
    width: 46px;
    z-index: 3;
}

.mosab-scroll-down:hover {
    background: var(--mosab-orange);
    transform: scale(1.1);
}

html:lang(en) .mosab-scroll-down,
[dir="ltr"] .mosab-scroll-down {
    left: 24px;
    right: auto;
}

.mosab-scroll-down svg,
.mosab-scroll-down svg path {
    fill: #fff;
    stroke: #fff;
}

.mosab-scroll-down svg {
    height: 22px;
    width: 22px;
}

/* Bouncing loop: arrow moves down then returns from the top */
.mosab-scroll-down svg {
    animation: mosabScrollBounce 1.6s ease-in-out infinite;
}

@keyframes mosabScrollBounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

@keyframes mosabSlideIn {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes mosabSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-60px);
    }
}

html:lang(en) .mosab-text-slide.active,
[dir="ltr"] .mosab-text-slide.active {
    animation-name: mosabSlideInLtr;
}

html:lang(en) .mosab-text-slide.leaving,
[dir="ltr"] .mosab-text-slide.leaving {
    animation-name: mosabSlideOutLtr;
}

@keyframes mosabSlideInLtr {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes mosabSlideOutLtr {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(60px);
    }
}

/* Gohar Zamin style hero typography */
.mosab-home-hero .banner-1 h1 {
    color: #fff !important;
    font-size: clamp(28px, 3.5vw, 50px);
    font-weight: 800;
    letter-spacing: -.5px;
    line-height: 1.2;
    margin-bottom: 18px !important;
    text-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}

.mosab-home-hero .banner-1 h5 {
    color: rgba(255, 255, 255, .92) !important;
    font-size: clamp(15px, 1.6vw, 20px);
    font-weight: 400;
    line-height: 2;
    margin: 0 0 28px !important;
    max-width: 640px;
}

.mosab-home-hero .banner-1 .btn {
    margin: 5px 3px 5px 0;
    min-width: 150px;
}

html:lang(en) .mosab-home-hero .banner-1,
[dir="ltr"] .mosab-home-hero .banner-1 {
    text-align: left;
}

html:lang(en) .mosab-home-hero .banner-1 .btn,
[dir="ltr"] .mosab-home-hero .banner-1 .btn {
    margin: 5px 0 5px 3px;
}

.fullscreen-banner .btn,
.btn.btn-theme,
.btn.btn-border {
    border-radius: 10px;
    font-weight: 600;
    min-height: 44px;
    padding: 11px 20px;
}

.btn.btn-theme {
    background: var(--mosab-orange);
    border-color: var(--mosab-orange);
}

.btn.btn-theme:hover {
    background: var(--mosab-orange-dark);
    border-color: var(--mosab-orange-dark);
}

.btn.btn-border {
    border-color: var(--mosab-orange);
    color: var(--mosab-orange);
}

.btn.btn-border:hover {
    background: var(--mosab-orange);
    color: #fff;
}

.contact-main,
.service-details,
.blog-details,
.tab-content,
.white-bg.box-shadow {
    border: 1px solid var(--mosab-line);
    border-radius: var(--mosab-radius);
    box-shadow: var(--mosab-shadow-soft);
}

.contact-main {
    border-bottom: 3px solid var(--mosab-orange);
    padding: 34px;
}

.contact-main h2,
.contact-main h3 {
    color: var(--mosab-ink);
    font-weight: 700;
}

.contact-main .fa-info-circle {
    color: var(--mosab-orange);
}

.form-control {
    border: 1px solid var(--mosab-line);
    border-radius: 9px;
    color: var(--mosab-ink);
    min-height: 48px;
    padding: 10px 14px;
}

.form-control:focus {
    border-color: var(--mosab-orange);
    box-shadow: 0 0 0 3px rgba(249, 163, 5, .12);
}

/* Cards and grids: preserve existing Misto component names */
.post,
.service-item,
.featured-item,
.team-member,
.portfolio-item {
    border: 1px solid var(--mosab-line);
    border-radius: var(--mosab-radius);
    box-shadow: var(--mosab-shadow-soft);
}

.post,
.service-item,
.featured-item {
    background: var(--mosab-surface);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.post:hover,
.service-item:hover,
.featured-item:hover {
    border-color: rgba(249, 163, 5, .45);
    box-shadow: var(--mosab-shadow);
    transform: translateY(-6px);
}

.post-image,
.service-images,
.team-images,
.portfolio-item {
    border-radius: var(--mosab-radius) var(--mosab-radius) 0 0;
    overflow: hidden;
}

.post-image img,
.service-images img {
    height: 250px;
    object-fit: cover;
    transition: transform .45s ease;
}

.post:hover .post-image img,
.service-item:hover .service-images img {
    transform: scale(1.04);
}

.post .post-desc,
.service-item .service-description {
    padding: 24px;
}

.post .post-desc h5,
.service-item .service-description h4 {
    color: var(--mosab-ink);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.7;
}

.post .post-desc p,
.service-item .service-description p,
.featured-item .featured-desc {
    color: var(--mosab-text);
    line-height: 1.9;
}

/* Center the "why choose us" card text instead of justify */
.mosab-section-features .featured-desc,
.mosab-section-features .featured-desc p {
    text-align: center !important;
}

.post .post-bottom {
    border-top: 1px solid var(--mosab-line);
    padding: 15px 24px;
}

.blog-classic {
    height: 100%;
}

.blog-classic .post {
    height: 100%;
}

.post .post-title a,
.service-item a {
    color: inherit;
}

.post-date {
    background: var(--mosab-orange);
    border-radius: 8px;
    font-size: 12px;
    padding: 8px 13px;
}

.featured-item,
.featured-item.bottom-icon {
    border: 1px solid var(--mosab-line);
    border-radius: var(--mosab-radius);
    min-height: 220px;
    padding: 30px 24px;
}

.featured-item.bottom-icon:hover {
    background: var(--mosab-orange);
}

.featured-item .featured-icon i,
.featured-item.bottom-icon .featured-icon i {
    color: var(--mosab-orange);
}

.featured-item:hover .featured-icon i,
.featured-item.bottom-icon:hover .featured-icon i {
    color: #fff;
}

/* Tabs, filters, galleries */
.tab .nav-tabs,
.tab.style-2 .nav-tabs {
    background: var(--mosab-surface);
    border: 1px solid var(--mosab-line);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(18, 22, 40, .06);
    max-width: 100%;
}

.tab .nav-tabs .nav-link,
.tab.style-2 .nav-tabs .nav-link {
    border: 0;
    border-radius: 9px;
    color: var(--mosab-ink);
    float: none;
    font-weight: 600;
    margin: 4px;
    padding: 12px 22px;
}

.tab .nav-tabs .nav-link.active,
.tab .nav-tabs .nav-link:hover,
.tab.style-2 .nav-tabs .nav-link.active,
.tab.style-2 .nav-tabs .nav-link:hover {
    background: var(--mosab-orange);
    color: #fff;
}

.tab .tab-content,
.tab.style-2 .tab-content {
    margin-top: 14px;
    padding: 32px;
}

.portfolio-filter button {
    background: var(--mosab-surface);
    border: 1px solid var(--mosab-line);
    border-radius: 99px;
    color: var(--mosab-ink);
    margin: 4px;
    padding: 9px 17px;
}

.portfolio-filter button.is-checked,
.portfolio-filter button:hover {
    background: var(--mosab-orange);
    border-color: var(--mosab-orange);
    color: #fff;
}

.portfolio-item {
    background: var(--mosab-surface);
    overflow: hidden;
}

.portfolio-item > img {
    display: block;
    width: 100%;
}

.companies-section .company-card,
.partner-card {
    border-radius: 12px;
}

.companies-section .company-card .post-desc {
    min-height: 110px;
}

.pagination .page-link {
    border-color: var(--mosab-line);
    color: var(--mosab-ink);
}

.pagination .page-item.active .page-link,
.pagination .page-link:hover {
    background: var(--mosab-orange);
    border-color: var(--mosab-orange);
    color: #fff;
}

/* Inner-page navigation and project detail surfaces */
.sidebar-links {
    background: var(--mosab-surface);
    border: 1px solid var(--mosab-line);
    border-radius: var(--mosab-radius);
    box-shadow: var(--mosab-shadow-soft);
    overflow: hidden;
}

.sidebar-links li {
    border-bottom: 1px solid var(--mosab-line);
}

.sidebar-links li:last-child {
    border-bottom: 0;
}

.sidebar-links li a {
    color: var(--mosab-ink);
    display: block;
    padding: 13px 18px;
    transition: background-color .25s ease, color .25s ease;
}

.sidebar-links li.active a,
.sidebar-links li a:hover {
    background: rgba(249, 163, 5, .10);
    color: var(--mosab-orange);
}

.brochure {
    align-items: center;
    background: var(--mosab-navy);
    border-radius: 12px;
    box-shadow: var(--mosab-shadow-soft);
    color: #fff;
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 18px 20px;
    transition: background-color .25s ease, transform .25s ease;
}

.brochure:hover {
    background: var(--mosab-orange);
    color: #fff;
    transform: translateY(-3px);
}

.project-gallery-heading,
.project-hero-heading {
    color: var(--mosab-ink) !important;
}

.project-gallery-frame,
.project-detail-sidebar .project-hero-media {
    border-radius: var(--mosab-radius);
    box-shadow: var(--mosab-shadow-soft);
}

.service-details {
    background: var(--mosab-surface);
    padding: 34px;
}

.service-details > p,
.service-details .tab-pane {
    line-height: 2;
}

.service-details table {
    background: var(--mosab-surface);
    border: 1px solid var(--mosab-line);
    border-radius: 10px;
    overflow: hidden;
}

.service-details th {
    background: var(--mosab-navy);
    color: #fff;
}

.service-details td,
.service-details th {
    border-color: var(--mosab-line);
}

.service-details tbody tr:hover {
    background: rgba(249, 163, 5, .06);
}

/* Contact and footer */
.contact-2 {
    background: linear-gradient(135deg, var(--mosab-navy), #1d2440) !important;
}

.contact-2 .contact-info li {
    border-bottom: 1px solid rgba(255, 255, 255, .10);
    padding-bottom: 18px;
    padding-top: 4px;
}

.contact-2 .contact-info li:last-child {
    border-bottom: 0;
}

.mosab-contact-section .contact-info li,
.form-info .contact-info li {
    line-height: 1.9;
}

.mosab-contact-section .contact-info li > i,
.form-info .contact-info li > i {
    color: var(--mosab-orange);
    margin-inline-end: 8px;
}

.mosab-contact-section .contact-info a,
.form-info .contact-info a {
    color: inherit;
}

.mosab-contact-section .contact-info a:hover,
.form-info .contact-info a:hover {
    color: var(--mosab-orange);
}

.mosab-filter-card {
    position: relative;
    z-index: 2;
}

.mosab-project-results-section .post,
.mosab-project-results-section .blog-classic {
    height: 100%;
}

.mosab-project-results-section .post .post-image img {
    height: 220px;
    object-fit: cover;
}

.mosab-about-intro .tab-content img,
.mosab-equipment-section .tab-content img {
    border-radius: 12px;
}

.mosab-permissions-section .portfolio-item img {
    min-height: 180px;
    object-fit: contain;
}

.mosab-history-gallery img {
    background: var(--mosab-surface);
    object-fit: cover;
}

.mosab-history-gallery .mosab-media-frame {
    max-height: 430px;
}

.footer {
    background-color: var(--mosab-navy);
}

.footer-contact,
.contact-media {
    z-index: 2;
}

.footer-contact > .container > .row > .col > .theme-bg,
.contact-media .media-icon {
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: var(--mosab-radius);
    box-shadow: var(--mosab-shadow);
}

.footer-contact .footer-media,
.contact-media .media-icon li {
    min-height: 145px;
    padding: 28px 24px !important;
}

.icon-circle {
    background: var(--mosab-navy);
    color: var(--mosab-orange);
    margin-inline-end: 10px;
}

.primary-footer {
    padding-top: 90px;
}

.primary-footer h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 20px;
}

.primary-footer p,
.primary-footer li,
.primary-footer a {
    color: rgba(255, 255, 255, .72);
    line-height: 1.9;
}

.primary-footer a:hover {
    color: var(--mosab-orange);
}

.secondary-footer {
    border-top: 1px solid rgba(255, 255, 255, .10);
    margin-top: 45px;
}

/* ===== Redesigned clean footer ===== */
.mosab-footer {
    background-color: var(--mosab-navy);
    overflow: hidden;
    position: relative;
}

/* ===== Layered mountain parallax (goharzamin style) ===== */
.mosab-footer-mountains {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background-color: #f8f8f8;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.mosab-mountain-layer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 200px;
    background-repeat: repeat-x;
    background-position: center bottom;
    background-size: auto 100px;
    will-change: background-position;
}

.mosab-mountain-a1 {
    background-image: url('/assets-misto/images/bg/footer-industrial2.png');
    z-index: 3;
}

.mosab-mountain-a2 {
    background-image: url('/assets-misto/images/bg/a2.png');
    z-index: 2;
}

.mosab-mountain-a3 {
    background-image: url('/assets-misto/images/bg/a3.png');
    z-index: 1;
}

.mosab-footer .primary-footer,
.mosab-footer .secondary-footer {
    position: relative;
    z-index: 1;
}

.mosab-footer .primary-footer {
    padding-top: 150px;
    padding-bottom: 30px;
}

.mosab-footer .primary-footer .col-xl-4 {
    padding-left: 30px;
    padding-right: 30px;
}

.mosab-footer .primary-footer h5 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .3px;
    margin-bottom: 22px;
}

.mosab-footer-about {
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
    line-height: 1.9;
    max-height: 150px;
    overflow: hidden;
    text-align: justify;
}

.mosab-footer .social-icons {
    margin-top: 26px;
}

.mosab-footer .social-icons ul {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-start;
}

.mosab-footer-contact {
    list-style: none;
    padding: 0;
}

.mosab-footer-contact li {
    color: rgba(255, 255, 255, .82);
    line-height: 1.8;
    margin-bottom: 14px;
    padding-inline-start: 0;
    text-align: justify;
}

.mosab-footer-contact li i {
    color: var(--mosab-orange);
    display: inline-block;
    margin-inline-end: 10px;
    width: 22px;
}

.mosab-footer-contact li span {
    color: rgba(255, 255, 255, .55);
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    margin-inline-end: 4px;
}

.mosab-footer-contact li a {
    color: rgba(255, 255, 255, .82);
    transition: color .25s ease;
    word-break: break-word;
}

.mosab-footer-contact li a:hover {
    color: var(--mosab-orange);
}

.mosab-footer .secondary-footer {
    background-color: transparent;
    margin-top: 40px;
    padding-top: 0;
    padding-bottom: 60px;
    border-top: none;
}

.mosab-footer .secondary-footer::before {
    content: '';
    display: block;
    width: 480px;
    height: 1px;
    background: rgba(255, 255, 255, .35);

    margin: 0 auto 30px;
}

.mosab-footer .secondary-footer .copyright {
    padding-top: 15px;
}

.mosab-footer .secondary-footer .copyright span {
    color: rgba(255, 255, 255, .6);
    font-size: 13px;
}

.mosab-footer .secondary-footer .copyright a {
    color: #fff;
}

.mosab-footer .secondary-footer .copyright a:hover {
    color: var(--mosab-orange);
}

.scroll-top a {
    background: var(--mosab-orange);
    border-radius: 10px;
}

/* Responsive behavior */
@media (max-width: 1029.98px) {
    #header-wrap .navbar {
        min-height: 68px;
    }

    #header-wrap .navbar-collapse {
        border: 1px solid var(--mosab-line);
        border-radius: 25px;
        box-shadow: var(--mosab-shadow);
        right: 0;
        top: 68px;
        width: 100%;
    }

    #header-wrap .navbar-nav {
        padding: 10px;
    }

    #header-wrap .navbar-nav .nav-link {
        margin: 2px 0;
    }

    #header-wrap .hover-search {
        border-radius: 12px;
        box-shadow: none;
        display: none;
        margin: 6px 0 8px;
        min-width: 0;
        position: relative;
        right: auto;
        top: auto;
        width: 100%;
    }

    #header-wrap .nav-item:focus-within > .hover-search {
        display: block;
    }

    #header-wrap .hover-search::before {
        display: none;
    }

    .page-title {
        min-height: 300px;
        padding: 155px 0 85px;
    }

    section {
        padding: 72px 0;
    }
}

@media (max-width: 767.98px) {
    #site-header .top-bar {
        display: none;
    }

    #header-wrap .navbar {
        min-height: 64px;
    }

    #header-wrap .logo img,
    #header-wrap.fixed-header .logo img,
    #header-wrap.fixed-header .ghz-logo-box .logo img {
        max-height: 40px;
        max-width: 155px;
    }

    #header-wrap .navbar-collapse {
        top: 64px;
    }

    .fullscreen-banner {
        min-height: 0;
    }

    .mosab-home-hero {
        height: 620px;
    }

    .mosab-video-hero {
        height: 620px;
        min-height: 480px;
    }

    .mosab-home-hero .banner-1 h1 {
        font-size: 26px;
    }

    .mosab-home-hero .banner-1 {
        max-width: 100%;
    }

    .mosab-home-hero .banner-1 h5 {
        font-size: 14px;
        line-height: 1.85;
    }

    .mosab-home-hero .banner-1 .btn {
        display: block;
        margin: 8px 0;
        max-width: 260px;
        width: 100%;
    }

    .mosab-text-slider {
        min-height: 300px;
    }

    .mosab-text-slide h1 {
        font-size: 26px;
    }

    .mosab-text-slide h5 {
        font-size: 14px;
        line-height: 1.85;
    }

    .mosab-text-slide .btn {
        display: block;
        margin: 8px 0;
        max-width: 260px;
        width: 100%;
    }

    .mosab-text-dots {
        justify-content: flex-end;
        margin-top: 60px;
    }

    .section-title {
        margin-bottom: 30px;
    }

    .section-title h2,
    .section-title .title {
        font-size: 28px;
    }

    .page-title {
        min-height: 250px;
        padding: 130px 0 70px;
    }

    .page-title h1 {
        font-size: 28px;
    }

    .contact-main,
    .service-details,
    .tab .tab-content,
    .tab.style-2 .tab-content {
        padding: 22px 18px;
    }

    .tab .nav-tabs,
    .tab.style-2 .nav-tabs {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .tab .nav-tabs .nav-link,
    .tab.style-2 .nav-tabs .nav-link {
        margin: 3px;
        width: calc(100% - 6px);
    }

    .post-image img,
    .service-images img {
        height: 220px;
    }

    .footer-contact .footer-media,
    .contact-media .media-icon li {
        border-bottom: 1px solid rgba(255, 255, 255, .15);
        min-height: 0;
    }

    .footer-contact .footer-media:last-child,
    .contact-media .media-icon li:last-child {
        border-bottom: 0;
    }

    .primary-footer {
        padding-top: 55px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
