/* --- انتخاب متن (Selection) --- */
/* استفاده از رنگ قرمز برند برای هایلایت، به جای طلایی */
::selection {
    background-color: rgba(200, 16, 46, 0.2); /* قرمز با شفافیت کم */
    color: var(--navy-deep);
}
::-moz-selection {
    background-color: rgba(200, 16, 46, 0.2);
    color: var(--navy-deep);
}

/* --- اسکرول‌بار (Scrollbar) --- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-white); /* پس‌زمینه سفید برای تمیزی بیشتر */
}

::-webkit-scrollbar-thumb {
    /* استفاده از گرادیان سرد به جای طلایی */
    background: linear-gradient(180deg, #c8102e, #a10d25);
    border-radius: 20px;
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--brand-red-dark) var(--bg-white);
}

/* Global reset & typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'IRANSansXFaNum';
}
html, body {
    background: var(--bg-white);
    color: var(--text-primary);
}


/*loading start*/
.loader-container {
    position: fixed;
    display: flex;
    place-items: center;
    height: 100vh;
    background: var(--bg-white);
    left: 0;
    right: 0;
    z-index: 1000;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    opacity: 1;
    visibility: visible;
    transition: 0.4s;
    align-items: center;
}
.loader-container.hidden {
    opacity: 0;
    visibility: hidden;
    z-index: -1;
}
.loader {
    display: grid;
    width: 104px;
    height: 104px;
    position: relative;
}
.loader img {
    position: absolute;
    right: -6px;
    left: 0;
    margin: auto;
    top: -7px;
    bottom: 0;
    width: 32px;
    filter: brightness(0) saturate(100%) invert(12%) sepia(96%) saturate(3872%) hue-rotate(341deg) brightness(88%) contrast(96%);
}
.loader svg {
    width: 100%;
    transform-origin: center;
    animation: rotate4 2s linear infinite;
    position: absolute;
    right: -3px;
    top: -3px;
}
.loader circle {
    fill: none;
    stroke: var(--brand-red-dark);
    stroke-width: 2;
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    animation: dash4 1.5s ease-in-out infinite;
}
@keyframes rotate4 {
    100% {
        transform: rotate(360deg);
    }
}
@keyframes dash4 {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 200;
        stroke-dashoffset: -35px;
    }
    100% {
        stroke-dashoffset: -125px;
    }
}
/*loading end*/
.page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 24px 20px 80px;
}
/* Layout helpers */
.section {
    margin-top: 96px;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-bottom: 40px;
}
.section-kicker {
    font-size: 0.9rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand-red);
}
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--navy-deep);
    margin-top: 8px;
}
.section-subtitle {
    max-width: 460px;
    color: var(--text-secondary);
    font-size: 0.98rem;
    text-align: justify;
}
/*header*/
.header {
    position: sticky;
    top: 24px;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: linear-gradient(120deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0));
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0);
    margin-bottom: 40px;
    transition: var(--transition-med);
}
.header.scrolled {
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95));
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 22px;
    gap: 18px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 6px;
}
.brand-mark img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.brand-name {
    font-weight: 700;
    font-size: 0.98rem;
    text-align: end;
    color: var(--navy-deep);
}
.brand-tagline {
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.nav {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
}
.nav a {
    opacity: 0.8;
    transition: opacity var(--transition-fast), transform var(--transition-fast), color var(--transition-fast);
    position: relative;
    color: var(--text-primary);
    display: flex;
}
.nav a:hover {
    opacity: 1;
    transform: translateY(-1px);
    color: var(--navy-deep);
}
.nav a::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: -6px;
    height: 2px;
    border-radius: 999px;
    background: var(--brand-red);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition-fast);
}
.nav a:hover::after {
    transform: scaleX(1);
}

.nav li {
    position: relative;
}

.nav li .sub-menu {
    position: absolute;
    width: max-content;
    min-width: 200px;
    display: flex;
    gap: 4px;
    padding: var(--radius-sm);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
    background: var(--bg-white);
    transition: var(--transition-med);
    transform: translateY(20px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    z-index: 10;
    flex-direction: column;
}

.nav li:hover > .sub-menu {
    transform: translateY(0px);
    opacity: 1;
    visibility: visible;
}

.nav li .sub-menu .sub-menu {
    top: 0;
    right: 112%;
    transform: translateX(10px);
}

.nav li .sub-menu:hover > .sub-menu {
    transform: translateX(0px);
    opacity: 1;
    visibility: visible;
}
.nav li .sub-menu a{
    width: 100%;
}
.nav li .sub-menu a::after{
    display: none;
}


.header-cta {
    display: flex;
    align-items: center;
    gap: 14px;
}
.lang-switcher {
    display: inline-flex;
    border-radius: 999px;
    background: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    font-size: 0.78rem;
}
.lang-switcher button {
    border: none;
    background: transparent;
    padding: 4px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
    color: var(--text-secondary);
}
.lang-switcher button.active {
    background: var(--navy-deep);
    color: var(--bg-white);
    transform: translateY(-0.5px);
}
.header-contact {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: var(--bg-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--navy-deep);
}
.header-contact span {
    display: inline-flex;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--brand-red);
    position: relative;
}
.header-contact span::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 999px;
    background: rgba(200, 16, 46, 0.35);
    animation: zh-soft-pulse 3.2s ease-out infinite;
}
@keyframes zh-soft-pulse {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    20% {
        opacity: 0.6;
    }
    60% {
        transform: scale(1.6);
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}
/*mobile nav*/

/*mobile nav*/
.nav-panel {
    position: fixed;
    top: 0;
    right: 0%;
    bottom: 0;
    margin: auto;
    width: 280px;
    border-radius: var(--radius-md);
    max-width: 85vw;
    height: 90vh;
    background: var(--bg-light-gray);
    z-index: 300;
    padding: 24px;
    transform: translateX(100%);
    transition: 0.26s;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 18px 40px rgba(15, 18, 26, 0.12);
    opacity: 0;
    visibility: hidden;
}
.nav-panel.is-open {
    transform: translateX(0);
    right: 3%;
    opacity: 1;
    visibility: visible;
}
.nav-panel-close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #232323;
}
.nav-panel .nav-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}
.overlay {
    backdrop-filter: blur(5px);
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 300;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-med), visibility var(--transition-med);
}
.overlay.is-visible {
    opacity: 1;
    visibility: visible;
}
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #0e0e0e;
}
.zhiv-nav-panel-footer {
    position: absolute;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    right: 0;
}
body.ltr .nav-panel {
    right: unset;
    left: 0%;
    transform: translateX(-100%);
}
body.ltr .nav-panel.is-open {
    left: 3%;
    transform: translateX(0%);
}
body.ltr .nav-panel .nav-panel-close {
    left: unset;
    right: 16px;
}
/* Hero */
.hero {
    margin-top: 38px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 38px;
    align-items: center;
}
.hero-copy {
    position: relative;
    padding: 26px 24px 26px 0;
}
.hero-kicker {
    font-size: 0.9rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brand-red);
    margin-bottom: 10px;
}
.hero-heading {
    font-size: 2.7rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
    font-weight: 800;
    color: var(--navy-deep);
    margin-bottom: 14px;
}
.hero-heading span {
    color: var(--brand-red);
}
.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 28px;
    text-align: justify;
}
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.hero-meta-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--brand-red);
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 22px;
}
.btn {
    border-radius: 999px;
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    font-size: 0.96rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform var(--transition-med), box-shadow var(--transition-med), background var(--transition-med), color var(--transition-med), border-color var(--transition-med);
    position: relative;
    overflow: hidden;
    font-family: 'IRANSansXFaNum';
}
.btn-primary {
    background: var(--brand-red);
    color: var(--bg-white);
    box-shadow: 0 10px 20px rgba(200, 16, 46, 0.25);
}
.btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.2), transparent, rgba(255, 255, 255, 0.1));
    transform: translateX(-100%);
    transition: transform 420ms ease-out;
}
.btn-primary:hover::after {
    transform: translateX(100%);
}
.btn-secondary {
    background: var(--bg-white);
    border: 1px solid var(--navy-deep);
    color: var(--navy-deep);
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.btn-icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.05);
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}
.hero-footnote {
    font-size: 0.82rem;
    color: var(--text-secondary);
}
.hero-media {
    position: relative;
}
.hero-media-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(150deg, var(--navy-deep), #001a38);
    box-shadow: var(--shadow-soft);
    min-height: 360px;
    display: flex;
    align-items: flex-end;
}
.hero-media-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 20%, rgba(0, 0, 0, 0.4), transparent 60%);
    mix-blend-mode: soft-light;
    opacity: 0.9;
    pointer-events: none;
}
.hero-media-image {
    position: absolute;
    width: 100%;
    height: 100%;
}
.hero-media-image::before {
    position: absolute;
    content: '';
    inset: 0;
    background-image: linear-gradient(to bottom, rgba(0, 44, 95, 0.2), rgba(0, 0, 0, 0.8));
    background-position: center;
    background-size: cover;
    filter: saturate(1.1) contrast(1.05);
    transform: scale(1.04);
}
.hero-media-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-media-blur {
    position: absolute;
    inset-inline: 10%;
    bottom: -40px;
    height: 80px;
    background: radial-gradient(circle, rgba(0, 44, 95, 0.85), transparent 72%);
    filter: blur(22px);
    opacity: 0.85;
    pointer-events: none;
}
.hero-media-content {
    position: relative;
    padding: 16px;
    z-index: 1;
    color: var(--bg-white);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    width: 100%;
}
.hero-media-heading {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.hero-media-sub {
    font-size: 0.8rem;
    opacity: 0.8;
    max-width: 270px;
}
.hero-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.78rem;
    background: rgba(0, 44, 95, 0.8);
    border-radius: 999px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}
.hero-badge-main {
    font-size: 0.94rem;
    font-weight: 600;
}
.hero-badge-sub {
    opacity: 0.8;
}
.hero-floating-card {
    position: absolute;
    left: 16px;
    top: 16px;
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.76rem;
    color: var(--text-primary);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-width: 170px;
    backdrop-filter: blur(14px);
}
.hero-floating-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
}
.hero-floating-value {
    font-weight: 700;
}
.hero-floating-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}
.hero-floating-badge {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(200, 16, 46, 0.1);
    color: var(--brand-red);
    font-size: 0.7rem;
    font-weight: 600;
}
/* Stats section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.stat-card {
    padding: 18px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-white);
    /* استفاده از حاشیه بسیار ظریف برای تفکیک در پس‌زمینه‌های روشن */
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-med), box-shadow var(--transition-med);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 44, 95, 0.1);
}

.stat-card::after {
    content: "";
    position: absolute;
    inset: 0;
    /* جایگزینی درخشش طلایی با افکت ملایم سرمه‌ای */
    background: radial-gradient(circle at 0% 0%, rgba(0, 44, 95, 0.05), transparent 65%);
    opacity: 0;
    transition: opacity var(--transition-med);
    pointer-events: none;
}
.stat-card:hover::after {
    opacity: 1;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy-deep);
}

.stat-footnote {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* About / Values */


.split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}
.about-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: var(--radius-md);
    padding: 22px 22px 18px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 18px 40px rgba(16, 18, 26, 0.14);
}
.about-body {
    font-size: 0.95rem;
    color: var(--soft-gray);
    margin-bottom: 18px;
}
.about-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    font-size: 0.86rem;
}
.about-pill {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: var(--bg-white);
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.value-card {
    padding: 16px 14px;
    border-radius: var(--radius-md);
    background: var(--navy-deep);
    color: var(--bg-section);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.87rem;
}
.value-title {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.96rem;
}
.value-tag {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(250, 244, 234, 0.12);
    font-size: 0.7rem;
    margin-bottom: 8px;
}

/* video player */
.ac-atawp-video-box-card {
    width: 50%;
    height: 240px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: var(--radius-md);
    box-shadow: 0 18px 40px rgba(16, 18, 26, 0.14);
    display: none;
}
.ac-atawp-video-box-card-cover {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}
.ac-atawp-video-box-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.ac-atawp-video-box-card-cover svg {
    width: 48px;
    height: 48px;
    position: absolute;
    right: 0;
    top: 0;
    left: 0;
    bottom: 0;
    margin: auto;
    color: var(--bg-beige);
}
.ac-atawp-video-box-card-video-box {
    position: fixed;
    z-index: 9999;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    background: rgba(43, 55, 66, .25);
    transition: 0.4s;
    opacity: 0;
    visibility: hidden;
}
.ac-atawp-video-box-card-video-box.active {
    opacity: 1;
    visibility: visible;
}
.ac-atawp-video-box-card-video-box video {
    width: 90% !important;
    max-width: 450px;
    height: 80% !important;
    border-radius: 12px!important;
    object-fit: cover!important;
    transition: 0.4s;
    transform: scale(0);
}
.ac-atawp-video-box-card-video-box.active video {
    transform: scale(1);
}

.ac-atawp-video-close {
    position: fixed;
    top: 0;
    z-index: 0;
    background: transparent;
    border: none;
    width: 100%;
    height: 100%;
    transform: scale(0);
}

.ac-atawp-video-box-card-video-box.active .ac-atawp-video-close {
    transform: scale(1);
}

/* Practice Areas */
.practice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.practice-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-soft);
    padding: 20px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med), background var(--transition-med);
    position: relative;
    overflow: hidden;
}
.practice-card::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(200, 16, 46, 0), var(--brand-red), rgba(200, 16, 46, 0));
    opacity: 0;
    transform: translateY(4px);
    transition: opacity var(--transition-med), transform var(--transition-med);
}
.practice-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 44, 95, 0.12);
    border-color: var(--brand-red);
    background: #ffffff;
}
.practice-card:hover::before {
    opacity: 1;
    transform: translateY(0);
}
.practice-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(200, 16, 46, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--brand-red);
}
.practice-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--navy-deep);
}
.practice-body {
    font-size: 0.86rem;
    color: var(--text-secondary);
}
.practice-meta {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 6px;
}

/* Why Choose Us */
.why-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 28px;
}
.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.pill {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.9);
}
.timeline {
    border-radius: var(--radius-md);
    padding: 18px 18px 12px;
    background: rgba(7, 11, 19, 0.98);
    color: #f7f3ec;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.86rem;
}
.timeline-item {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}
.timeline-item div:last-child{
    width: 100%;
}
.timeline-dot {
    margin-top: 6px;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--gold-accent);
}
.timeline-title {
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 2px;
}
/* Team */.team-grid {
              display: grid;
              grid-template-columns: repeat(4, minmax(0, 1fr));
              gap: 16px;
          }
.team-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-size: 0.86rem;
    transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med);
    cursor: pointer;
}
.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 42px rgba(0, 44, 95, 0.15);
    border-color: var(--brand-red);
}
.team-photo {
    position: relative;
    height: 180px;
    background-position: center;
    background-size: cover;
}
.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.team-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 44, 95, 0.8));
}
.team-info {
    padding: 10px 12px 12px;
}
.team-name {
    font-weight: 600;
    color: var(--navy-deep);
    margin-bottom: 2px;
}
.team-role {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 6px;
}
.team-meta {
    font-size: 0.76rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Case highlights */.case-grid {
                         display: grid;
                         grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
                         gap: 24px;
                         align-items: start;
                     }
.case-main {
    border-radius: var(--radius-md);
    background: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-soft);
    padding: 18px 18px 14px;
    font-size: 0.9rem;
}
.case-tag {
    display: inline-flex;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(200, 16, 46, 0.1);
    color: var(--brand-red);
    font-size: 0.78rem;
    margin-bottom: 6px;
}
.case-title {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--navy-deep);
    margin-bottom: 6px;
}
.case-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.metric {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(0, 44, 95, 0.05);
}
.metric span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--brand-red);
}
.case-list {
    display: grid;
    gap: 10px;
    font-size: 0.86rem;
}
.case-list-item {
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.case-list-item-right {
    width: 70%;
}
.case-list-item-left {
    text-align: left;
}
.case-list-title {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--navy-deep);
}
.case-list-meta {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* Logos / Trust */
.logos-strip {
    border-radius: var(--radius-md);
    padding: 16px 18px;
    background: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.78rem;
    color: var(--text-secondary);
}
.logos-list {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}
.logo-pill {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(0, 44, 95, 0.03);
    color: var(--navy-deep);
    font-weight: 500;
    font-size: 0.84rem;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}
.testimonial-card {
    border-radius: var(--radius-sm);
    background: var(--navy-deep);
    color: var(--bg-white);
    padding: 20px 18px 16px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}
.testimonial-card::after {
    content: "“";
    position: absolute;
    font-size: 120px;
    opacity: 0.1;
    left: 16px;
    bottom: -104px;
}
.testimonial-body {
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
    text-align: justify;
}
.testimonial-author {
    font-weight: 600;
    font-size: 0.9rem;
}
.testimonial-meta {
    font-size: 0.78rem;
    opacity: 0.8;
}
.cred-metrics {
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    padding: 16px 16px 12px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.86rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.cred-item {
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 8px 10px;
}
.cred-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.cred-value {
    font-weight: 600;
    color: var(--navy-deep);
}

/* CTA section */
.cta {
    border-radius: var(--radius-sm);
    background: var(--navy-deep);
    color: var(--bg-white);
    padding: 26px 24px 22px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}
.cta::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 0% 0%, rgba(200, 16, 46, 0.4), transparent 50%), radial-gradient(circle at 100% 100%, rgba(0, 44, 95, 0.6), transparent 60%);
    opacity: 0.3;
    mix-blend-mode: soft-light;
}
.cta-main, .cta-side {
    position: relative;
    z-index: 1;
}
.cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--bg-white);
}
.cta-subtitle {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 16px;
}
.cta-note {
    font-size: 0.78rem;
    opacity: 0.7;
    margin-top: 8px;
}
.cta-side {
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    padding: 14px 14px 10px;
    font-size: 0.86rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 14px;
}
.cta-side-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    gap: 24px;
    text-align: justify;
}
.cta-label {
    font-size: 0.8rem;
    opacity: 0.8;
}
.cta-value {
    font-weight: 600;
    font-size: 0.92rem;
}

/* Footer */
.footer {
    margin-top: 80px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 26px;
    font-size: 0.86rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-bottom: 18px;
}
.footer-col-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--navy-deep);
}
.footer-grid-1 p {
    color: var(--text-secondary);
    font-size: 0.84rem;
}
.footer-links {
    display: grid;
    gap: 4px;
    font-size: 0.84rem;
    color: var(--text-secondary);
}
.footer-links a {
    transition: color var(--transition-fast), transform var(--transition-fast);
}
.footer-links a:hover {
    color: var(--brand-red);
    transform: translateY(-1px);
}
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--text-secondary);
    border-top: 1px dashed rgba(0, 0, 0, 0.06);
    padding-top: 10px;
    font-size: 0.78rem;
}

/* Back-to-top button */
.back-to-top {
    position: fixed;
    inset-inline-end: 20px;
    bottom: 22px;
    z-index: 30;
    width: 72px;
    height: 42px;
    border-radius: 999px;
    border: none;
    background: var(--navy-deep);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity var(--transition-fast), transform var(--transition-fast), background var(--transition-fast);
}

.back-to-top:hover {
    background: var(--brand-red);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: 800ms;
    filter: blur(2px);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
}


/* consult form */
.zhiv-consult-form {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: var(--transition-med);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
}
.zhiv-consult-form.active{
    opacity: 1;
    visibility: visible;
}
.zhiv-consult-form-close {
    position: absolute;
    width: 100%;
    height: 100%;
}
.form-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 42px;
    box-shadow: var(--shadow-card);
    z-index: 2;
    transition: var(--transition-med);
    opacity: 0;
    visibility: hidden;
    transform: scale(0);
}
.zhiv-consult-form.active .form-card{
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}
.form-card h2 {
    color: var(--navy-deep);
    font-size: 28px;
    margin-bottom: 10px;
}
.form-sub {
    color: var(--text-secondary);
    margin-bottom: 32px;
}
.form-group {
    margin-bottom: 22px;
}
.form-group label {
    display: block;
    color: var(--navy-deep);
    margin-bottom: 6px;
}
.form-group br {
    display: none;
}
.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid #d9e1ea;
    background: var(--bg-white);
    padding: 15px 18px;
    border-radius: var(--radius-md);
    font-size: 15px;
    color: var(--text-primary);
    transition: var(--transition-med);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9aa6b2;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--navy-medium);
    box-shadow: 0 0 0 4px rgba(0, 74, 153, 0.12);
    outline: none;
}
.zhiv-btn {
    width: 100%;
    background: var(--brand-red);
    color: var(--bg-white);
    padding: 16px 28px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    letter-spacing: 0.2px;
}
.zhiv-btn:hover {
    background: var(--brand-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(200, 16, 46, 0.18);
}
.wpcf7-response-output {
    display: none !important;
}
.wpcf7-not-valid-tip {
    color: var(--brand-red);
    font-size: 13px;
    margin-top: 6px;
}

.form-card .wpcf7 form.invalid .wpcf7-form-control.wpcf7-not-valid {
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.wpcf7-spinner {
    margin-top: 12px;
}


/* پاپ‌آپ */
.zhiv-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 20, 45, 0.62);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-med);
}

.zhiv-popup.active{
    opacity: 1;
    visibility: visible;
}

.popup-card {
    background: var(--bg-light-gray);
    padding: 40px;
    border-radius: var(--radius-lg);
    max-width: 400px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.popup-card h3 {
    margin-bottom: 10px;
    color: var(--text-primary);
}

.popup-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.zhiv-consult-form .zhiv-btn br{
    display: none!important;
}


/*404 page start*/


.hiv-404-hero {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    z-index: 99999;
    background: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hiv-404-hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.4;
    pointer-events: none;
}


.hiv-404-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}
.hiv-404-shape-1 {
    width: 400px;
    height: 400px;
    background: var(--navy-deep);
    top: -100px;
    left: -150px;
}
.hiv-404-shape-2 {
    width: 300px;
    height: 300px;
    background: var(--brand-red);
    bottom: -80px;
    right: -100px;
}
.hiv-404-shape-3 {
    width: 250px;
    height: 250px;
    background: var(--navy-medium);
    top: 50%;
    right: -80px;
    transform: translateY(-50%);
}
.hiv-404-hero-content {
    position: relative;
    z-index: 2;
}
.hiv-404-error-code {

}
.hiv-404-error-code img {
    width: 100%;
    height: 350px;
    object-fit: contain;
}
.hiv-404-title {
    font-size: clamp(28px, 6vw, 48px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.hiv-404-description {
    font-size: clamp(16px, 4vw, 18px);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.8;
}
.hiv-404-cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
/*404 page end*/