/* TAJ Visual Redesign — Batch 02
   Surgical corrections based on the user's screenshots + videos 4/5/6/7.
   This layer intentionally touches only the reported visual systems. */

:root {
    --taj-v2-navy: #0b4565;
    --taj-v2-deep: #082f47;
    --taj-v2-orange: #e56a18;
    --taj-v2-ease: cubic-bezier(.2,.72,.26,1);
}

/* =========================================================
   HERO — consolidated correction
   One checker field only, LEFT edge, small and away from faces.
========================================================= */
.hero-area.style-three .hero-bg .shape-two {
    display: none !important;
}

.hero-area.style-three .hero-bg .shape-one {
    display: block !important;
    width: clamp(92px, 6.4vw, 126px) !important;
    height: auto !important;
    left: clamp(6px, .9vw, 16px) !important;
    right: auto !important;
    top: 18% !important;
    bottom: auto !important;
    opacity: .30 !important;
    pointer-events: none !important;
    transform: none !important;
}

@media (max-width: 767px) {
    .hero-area.style-three .hero-bg .shape-one {
        width: clamp(64px, 19vw, 82px) !important;
        left: 4px !important;
        top: 17% !important;
        opacity: .24 !important;
    }
}

/* =========================================================
   HOME — principle heading accents.
========================================================= */
/* Underline must span the whole word «تاج», not a fixed 34px fragment. */
.taj-principles-title span::after {
    right: 0 !important;
    width: 100% !important;
    height: 3px !important;
    bottom: 1px !important;
    opacity: .92 !important;
}

/* Replace the stray horizontal line above «چرا تاج شکل گرفت؟» with a
   compact vertical brand accent tied directly to the heading. */
.taj-principles-story-title {
    padding-top: 0 !important;
    padding-right: 16px !important;
}

.taj-principles-story-title::before {
    top: 50% !important;
    right: 0 !important;
    width: 4px !important;
    height: 28px !important;
    transform: translateY(-50%) !important;
    background: var(--taj-v2-orange) !important;
    border-radius: 999px !important;
}

/* =========================================================
   SERVICE CARDS — exact reference behavior from video 11.
   This intentionally restores the original two-layer vendor transition:
   sharp -> horizontal blur/smear cross-fade -> sharp.
   The card itself is NOT moved by hover; scroll parallax stays independent.
========================================================= */
.taj-service-motion-card {
    position: relative;
    isolation: isolate;
}

.taj-service-motion-card .service-img {
    background: transparent !important;
}

.taj-service-motion-card.img-hover-scale .img-scale {
    position: relative;
    overflow: hidden;
}

.taj-service-motion-card.img-hover-scale .img-scale img {
    transition: all 500ms ease !important;
    will-change: transform, opacity, filter;
    object-fit: cover !important;
}

/* Rest state: real visible layer is the second image; first layer waits blurred/off-axis. */
.taj-service-motion-card.img-hover-scale .img-scale img:first-of-type {
    transform: translateX(-50%) scaleX(2) !important;
    opacity: 0 !important;
    filter: blur(10px) !important;
}

.taj-service-motion-card.img-hover-scale .img-scale img:nth-of-type(2) {
    transform: translateX(0) scaleX(1) !important;
    opacity: 1 !important;
    filter: blur(0) !important;
}

@media (hover:hover) and (pointer:fine) {
    .taj-service-motion-card.img-hover-scale:hover .img-scale img:first-of-type {
        transform: translateX(0) scaleX(1) !important;
        opacity: 1 !important;
        filter: blur(0) !important;
    }

    .taj-service-motion-card.img-hover-scale:hover .img-scale img:nth-of-type(2) {
        transform: translateX(50%) scaleX(2) !important;
        opacity: 0 !important;
        filter: blur(10px) !important;
    }
}

/* Touch devices: no fake/stuck hover state. */
@media (hover:none), (pointer:coarse) {
    .taj-service-motion-card.img-hover-scale .img-scale img:first-of-type {
        display: none !important;
    }

    .taj-service-motion-card.img-hover-scale .img-scale img:nth-of-type(2) {
        transform: none !important;
        opacity: 1 !important;
        filter: none !important;
    }
}

@media (max-width: 767px) {
    .taj-service-motion-card {
        margin-bottom: 28px !important;
        border-radius: 18px !important;
    }

    .taj-service-motion-card .service-img,
    .taj-service-motion-card .service-img img {
        border-radius: 18px 18px 0 0 !important;
    }

    .taj-service-motion-card .service-info {
        padding: 22px 20px 26px !important;
    }
}

/* =========================================================
   INDUSTRIES — refine, don't replace: stronger depth, cleaner icon tile,
   a restrained brand accent and better hover hierarchy.
========================================================= */
.taj-industry-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(11, 69, 101, .08);
    box-shadow: 0 18px 46px -34px rgba(4, 35, 54, .30) !important;
    transition: translate .38s var(--taj-v2-ease), box-shadow .38s ease,
                border-color .3s ease, background-color .3s ease !important;
}

.taj-industry-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #e56a18 45%, #0b4565 100%);
    transform: scaleX(.22);
    transform-origin: right center;
    opacity: .7;
    transition: transform .38s var(--taj-v2-ease), opacity .3s ease;
}

.taj-industry-card-icon {
    width: 68px !important;
    height: 68px !important;
    border-radius: 18px 18px 7px 18px !important;
    background: linear-gradient(145deg, rgba(229,106,24,.13), rgba(11,69,101,.06)) !important;
    border: 1px solid rgba(229,106,24,.12);
    transition: translate .35s var(--taj-v2-ease), rotate .35s var(--taj-v2-ease),
                background-color .3s ease;
}

@media (hover:hover) and (pointer:fine) {
    .taj-industry-card:hover {
        translate: 0 -7px;
        border-color: rgba(11,69,101,.18);
        box-shadow: 0 28px 62px -34px rgba(4,35,54,.42) !important;
    }

    .taj-industry-card:hover::before {
        transform: scaleX(1);
        opacity: 1;
    }

    .taj-industry-card:hover .taj-industry-card-icon {
        translate: 0 -3px;
        rotate: -2deg;
    }
}

/* =========================================================
   BREADCRUMBS — no blue wash on top/bottom of the photo.
   Keep the full natural image and use text shadow only.
========================================================= */
.taj-breadcrumb-unified,
.taj-breadcrumb-photo-strip {
    background-color: transparent !important;
}

.taj-breadcrumb-caption .taj-breadcrumb-brandbg {
    background: transparent !important;
    background-image: none !important;
}

.taj-breadcrumb-caption .taj-breadcrumb-brandbg::before,
.taj-breadcrumb-caption .taj-breadcrumb-brandbg::after {
    display: none !important;
}

.breadcrumb-area.style-one h1,
.breadcrumb-area.style-one .taj-breadcrumb-trail li,
.breadcrumb-area.style-one .taj-breadcrumb-trail li a {
    text-shadow:
        0 1px 2px rgba(2, 16, 26, .82),
        0 3px 12px rgba(2, 16, 26, .56) !important;
}

/* Keep caption footprint inside the natural panoramic photo on phones. */
@media (max-width: 767px) {
    .taj-breadcrumb-caption {
        padding: 10px 0 8px !important;
    }

    .breadcrumb-area.style-one h1 {
        margin-bottom: 3px !important;
        font-size: clamp(20px, 6.2vw, 26px) !important;
        line-height: 1.25 !important;
    }

    .taj-breadcrumb-trail {
        gap: 5px !important;
    }

    .taj-breadcrumb-trail li,
    .taj-breadcrumb-trail li a {
        font-size: 11px !important;
        line-height: 1.35 !important;
    }
}

/* =========================================================
   ABOUT / WHY CHOOSE US — consolidated correction from videos 9/10.
   The two images stay aligned and move as ONE scroll-linked pair.
   No white/depth backing, no independent image parallax, no tilt.
========================================================= */
.taj-about-why-media-pair {
    --bs-gutter-x: 18px;
    align-items: flex-start !important;
    position: relative;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    filter: none !important;
}

.taj-about-why-media-item {
    display: flex;
    align-items: flex-start;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    filter: none !important;
}

.taj-about-why-media-item::before,
.taj-about-why-media-item::after,
.taj-about-why-media::before,
.taj-about-why-media::after {
    content: none !important;
    display: none !important;
}

.taj-about-why-media {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    filter: none !important;
    overflow: visible !important;
}

.taj-about-why-media img,
.taj-about-why-image {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    filter: none !important;
    transform: none;
    object-fit: contain !important;
    border-radius: 20px !important;
}

@media (max-width: 991px) {
    .taj-about-why-media-pair { --bs-gutter-x: 14px; }
}

@media (max-width: 575px) {
    .taj-about-why-media-pair { --bs-gutter-x: 10px; }
    .taj-about-why-media img,
    .taj-about-why-image { border-radius: 14px !important; }
}

/* =========================================================
   LOGO — keep vector source optically consistent in header/footer.
========================================================= */
.navbar-area.style-three .navbar-brand img,
.taj-footer-logo img {
    height: auto !important;
    image-rendering: auto;
    shape-rendering: geometricPrecision;
}

.navbar-area.style-three .navbar-brand img,
.taj-footer-logo img {
    width: 176px !important;
    max-width: 176px !important;
}

@media (max-width:1199px) {
    .navbar-area.style-three .navbar-brand img,
    .taj-footer-logo img {
        width: 138px !important;
        max-width: 138px !important;
    }
}

@media (max-width:767px) {
    .navbar-area.style-three .navbar-brand img,
    .taj-footer-logo img {
        width: 132px !important;
        max-width: 132px !important;
    }
}

@media (max-width:360px) {
    .navbar-area.style-three .navbar-brand img,
    .taj-footer-logo img {
        width: 124px !important;
        max-width: 124px !important;
    }
}

/* =========================================================
   MOBILE DRAWER — retain Batch01 polish, isolated from content sections.
========================================================= */
@media (max-width:1199px) {
    .navbar-area.style-three #main-menu {
        width: min(88vw, 370px) !important;
        max-width: 370px !important;
        background:
            radial-gradient(circle at 82% 8%, rgba(229,106,24,.13), transparent 30%),
            linear-gradient(180deg, #0b4565 0%, #082f47 100%) !important;
        border-left: 1px solid rgba(255,255,255,.10);
        box-shadow: -26px 0 70px rgba(0,17,28,.28) !important;
    }

    .navbar-area.style-three .menu-area > .overlay {
        background-color: rgba(1,19,31,.56) !important;
        -webkit-backdrop-filter: blur(3px);
        backdrop-filter: blur(3px);
    }

    .navbar-area.style-three #main-menu .menu-section > li > a:not(.taj-mobile-cta) {
        min-height: 52px !important;
        display: flex !important;
        align-items: center;
        border-radius: 12px !important;
        transition: background-color .25s ease, color .25s ease, padding .25s ease !important;
    }

    .navbar-area.style-three #main-menu .menu-section > li > a:hover,
    .navbar-area.style-three #main-menu .menu-section > li > a.active,
    .navbar-area.style-three #main-menu .menu-section > li > a[aria-current="page"] {
        background: rgba(255,255,255,.075) !important;
        padding-inline: 12px !important;
    }

    .navbar-area.style-three .menu-mobile-close {
        border-radius: 50% !important;
        background: rgba(255,255,255,.08) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .taj-service-motion-card,
    .taj-service-motion-card .service-img img,
    .taj-about-why-media-pair,
    .taj-industry-card,
    .taj-industry-card-icon {
        transition: none !important;
        transform: none !important;
    }
}

/* =========================================================
   TAJ TODAY CORRECTION v1 — source: WorkingCopy_CURRENT
   Scope is intentionally surgical:
   1) one visible checker at the far LEFT of the hero,
   2) exact transient service-image blur pulse on pointer enter/leave,
   3) remove only the unwanted outer backing/tilt from the two reported
      home visuals while preserving their scroll-linked block motion.
========================================================= */

/* HERO CHECKER — the PNG itself is already semi-transparent (alpha <= ~44%).
   Do not multiply it by another tiny opacity or it disappears. */
.hero-area.style-three .hero-bg .shape-two {
    display: none !important;
}

.hero-area.style-three .hero-bg .shape-one {
    display: block !important;
    width: clamp(228px, 14.6vw, 296px) !important;
    height: auto !important;
    left: clamp(-30px, -1.2vw, -14px) !important;
    right: auto !important;
    top: 11.5% !important;
    bottom: auto !important;
    opacity: .58 !important;
    visibility: visible !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

@media (max-width: 767px) {
    .hero-area.style-three .hero-bg .shape-one {
        width: clamp(158px, 42vw, 196px) !important;
        left: -20px !important;
        top: 12.5% !important;
        opacity: .46 !important;
    }
}

/* HOME VISUALS — keep the approved transparent/no-backing state.
   Scroll motion stays on the outer wrapper; hover/tilt stays on the inner visual. */
.taj-context-showcase-visual.taj-clean-scroll-visual,
.taj-execution-visual.taj-clean-scroll-visual {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    filter: none !important;
}

.taj-context-showcase-visual.taj-clean-scroll-visual:hover,
.taj-execution-visual.taj-clean-scroll-visual:hover {
    box-shadow: none !important;
}

@media (hover: hover) and (pointer: fine) {
    /* `translate` composes with GSAP's rotateX/rotateY transform; this restores
       the old hover lift without restoring the removed white/depth backing. */
    .taj-context-showcase-visual.taj-clean-scroll-visual .taj-context-visual-card,
    .taj-execution-visual.taj-clean-scroll-visual .taj-execution-media {
        transition: translate .38s cubic-bezier(.2,.65,.3,1);
        will-change: transform, translate;
    }

    .taj-context-showcase-visual.taj-clean-scroll-visual:hover .taj-context-visual-card,
    .taj-execution-visual.taj-clean-scroll-visual:hover .taj-execution-media {
        translate: 0 -7px;
    }
}

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
    .taj-context-showcase-visual.taj-clean-scroll-visual .taj-context-visual-card,
    .taj-execution-visual.taj-clean-scroll-visual .taj-execution-media {
        translate: none !important;
    }
}

