/* ============================================================
   VFX HUNTERS — Custom layer
   Loaded AFTER style.css + eston-responsive.css on every page.
   1. Header (desktop + mobile) & mobile drawer
   2. Clients marquee ("Our Clients / Worked With")
   3. Global mobile refinements
   4. Section-by-section mobile fixes
   ============================================================ */

:root {
    --vfx-header-h: 76px;
    --vfx-header-h-mobile: 64px;
    --vfx-line: rgba(255, 255, 255, 0.08);
    --vfx-panel: #141414;
}

/* ============================================================
   1. HEADER
   ============================================================ */

.main-header.vfx-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(12, 12, 12, 0.92);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--vfx-line);
}

/* The template ships a duplicated "sticky clone" header. With the real
   header sticky it would show twice, so it is retired here. */
.stricky-header.stricked-menu {
    display: none !important;
}

.vfx-header .main-menu__wrapper {
    padding: 0 clamp(16px, 4vw, 90px);
}

.vfx-header .main-menu__wrapper-inner {
    min-height: var(--vfx-header-h);
    flex-wrap: nowrap;
    gap: 16px;
}

.vfx-header .main-menu__logo {
    padding: 10px 0;
    flex: 0 0 auto;
}

.vfx-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.vfx-brand img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.vfx-brand__name {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1.4px;
    line-height: 1.1;
    white-space: nowrap;
}

.vfx-header .main-menu__list>li {
    padding-top: 26px;
    padding-bottom: 26px;
}

.vfx-header .main-menu__list>li+li {
    margin-left: 34px;
}

.vfx-header .main-menu__list>li>a {
    font-size: 15px;
    letter-spacing: 0.4px;
}

.vfx-header .main-menu__list>li.active>a,
.vfx-header .main-menu__list>li.current>a {
    color: var(--eston-base);
}

.vfx-header .main-menu__right {
    gap: 14px;
    flex: 0 0 auto;
    flex-wrap: nowrap;
}

.vfx-header .main-menu__btn-box {
    margin-left: 0;
}

.vfx-header .main-menu__btn {
    padding: 11px 22px;
    font-size: 13px;
    white-space: nowrap;
}

/* Hamburger — replaces the old <i class="fa fa-bars">.
   Selector matches the template's `.main-menu .mobile-nav__toggler` weight so
   the display rules below actually win. */
.main-menu .mobile-nav__toggler.vfx-burger {
    width: 44px;
    height: 44px;
    border: 1px solid var(--vfx-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.vfx-burger:hover,
.vfx-burger:focus {
    background: rgba(199, 37, 56, 0.16);
    border-color: rgba(199, 37, 56, 0.5);
}

.vfx-burger span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform 0.25s ease;
}

.vfx-burger span:nth-child(2) {
    width: 13px;
    margin-right: 5px;
}

@media (max-width: 1199px) {
    .main-menu .mobile-nav__toggler.vfx-burger {
        display: flex;
    }

    /* The template hides this column below 768px — the burger lives in it now */
    .vfx-header .main-menu__right {
        display: flex !important;
    }
}

@media (max-width: 767px) {
    .vfx-header .main-menu__wrapper {
        padding: 0 16px;
    }

    .vfx-header .main-menu__wrapper-inner {
        min-height: var(--vfx-header-h-mobile);
    }

    .vfx-brand img {
        width: 36px;
        height: 36px;
    }

    .vfx-brand__name {
        font-size: 16px;
        letter-spacing: 1px;
    }

    /* On phones the CTA lives inside the drawer instead */
    .vfx-header .main-menu__btn-box,
    .vfx-header .main-menu__nav-sidebar-icon {
        display: none;
    }
}

@media (max-width: 359px) {
    .vfx-brand__name {
        font-size: 14px;
    }
}

/* ---- Mobile drawer ---- */
.mobile-nav__content {
    width: min(320px, 86vw);
    padding: 26px 22px 40px;
    background: #0d0d0d;
    border-right: 1px solid var(--vfx-line);
}

.mobile-nav__content .logo-box {
    margin-bottom: 28px;
    padding-right: 34px;
}

.mobile-nav__close {
    top: 26px;
    right: 20px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--vfx-line);
    font-size: 15px;
    transition: all 0.25s ease;
}

.mobile-nav__close:hover {
    background: var(--eston-base);
    border-color: var(--eston-base);
}

.mobile-nav__content .main-menu__list>li>a {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 14px 0;
    color: #d8d8d8;
    text-transform: uppercase;
}

.mobile-nav__content .main-menu__list>li.active>a,
.mobile-nav__content .main-menu__list>li>a:hover {
    color: var(--eston-base);
}

.mobile-nav__drawer-cta {
    display: block;
    margin: 26px 0 22px;
    text-align: center;
    background: var(--eston-base);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 14px 18px;
    border-radius: 8px;
}

.mobile-nav__drawer-cta:hover {
    background: #a81d2e;
}

.mobile-nav__contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #bbb;
    margin-bottom: 12px;
}

.mobile-nav__contact li a {
    color: #bbb;
    word-break: break-word;
}

.mobile-nav__contact li a:hover {
    color: var(--eston-base);
}

.mobile-nav__drawer-social {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.mobile-nav__drawer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--vfx-line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    transition: all 0.25s ease;
}

.mobile-nav__drawer-social a:hover {
    background: var(--eston-base);
    border-color: var(--eston-base);
}

/* ============================================================
   2. CLIENTS MARQUEE
   ============================================================ */

.clients-marquee {
    position: relative;
    padding: 90px 0 84px;
    background: #101010;
    border-top: 1px solid var(--vfx-line);
    border-bottom: 1px solid var(--vfx-line);
    overflow: hidden;
}

.clients-marquee__head {
    text-align: center;
    margin-bottom: 50px;
}

.clients-marquee__tagline {
    color: var(--eston-base);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.clients-marquee__title {
    color: #fff;
    font-size: 40px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
    max-width: 820px;
    margin: 0 auto;
}

.clients-marquee__title span {
    color: var(--eston-base);
}

.clients-marquee__subtitle {
    color: #999;
    font-size: 16px;
    line-height: 1.7;
    max-width: 640px;
    margin: 16px auto 0;
}

/* Track */
.vfx-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.vfx-marquee+.vfx-marquee {
    margin-top: 34px;
}

.vfx-marquee__track {
    padding: 20px 0 20px 0;
    display: flex;
    width: -webkit-max-content;
    width: max-content;
    animation: vfx-marquee-scroll var(--marquee-duration, 40s) linear infinite;
    will-change: transform;
}

.vfx-marquee[data-direction="right"] .vfx-marquee__track {
    animation-direction: reverse;
}

.vfx-marquee__group {
    display: flex;
    align-items: flex-start;
    flex: 0 0 auto;
}

@keyframes vfx-marquee-scroll {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-50%, 0, 0);
    }
}

.vfx-marquee.is-paused .vfx-marquee__track,
.vfx-marquee[data-pause-on-hover="1"]:hover .vfx-marquee__track {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .vfx-marquee__track {
        animation: none;
    }

    .vfx-marquee {
        overflow-x: auto;
    }
}

/* Client chip */
.client-chip {
    width: 190px;
    flex: 0 0 auto;
    text-align: center;
    padding: 0 12px;
    text-decoration: none;
}

.client-chip.is-linked {
    cursor: pointer;
}

.client-chip.is-linked:focus-visible {
    outline: 2px solid var(--eston-base);
    outline-offset: 6px;
    border-radius: 12px;
}

.client-chip.is-linked:hover .client-chip__name {
    color: var(--eston-base);
}

.client-chip__logo {
    width: 150px;
    height: 150px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.client-chip:hover .client-chip__logo {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.5);
}

.client-chip__logo img {
    max-width: 72%;
    max-height: 62%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.client-chip__initials {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #1a1a1a;
    font-family: var(--eston-font);
}

.client-chip__name {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    line-height: 1.4;
}

.client-chip__meta {
    display: block;
    color: #8d8d8d;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 5px;
}

.client-chip__meta b {
    color: var(--eston-base);
    font-weight: 700;
}

/* Client-type pills under the marquee */
.client-types {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 56px;
}

.client-types span {
    background: #1c1c1c;
    border: 1px solid #2c2c2c;
    color: #ddd;
    border-radius: 30px;
    padding: 9px 20px;
    font-size: 13px;
    letter-spacing: 0.4px;
}

@media (max-width: 991px) {
    .clients-marquee {
        padding: 70px 0 64px;
    }

    .clients-marquee__title {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .clients-marquee {
        padding: 56px 0 52px;
    }

    .clients-marquee__head {
        margin-bottom: 34px;
    }

    .clients-marquee__title {
        font-size: 26px;
        line-height: 1.3;
    }

    .clients-marquee__subtitle {
        font-size: 14px;
    }

    .client-chip {
        width: 132px;
        padding: 0 8px;
    }

    .client-chip__logo {
        width: 104px;
        height: 104px;
        margin-bottom: 12px;
    }

    .client-chip__initials {
        font-size: 25px;
    }

    .client-chip__name {
        font-size: 11px;
        letter-spacing: 1px;
    }

    .client-chip__meta {
        font-size: 10px;
    }

    .client-types {
        margin-top: 38px;
        gap: 8px;
    }

    .client-types span {
        font-size: 12px;
        padding: 7px 15px;
    }
}

/* ============================================================
   3. GLOBAL MOBILE REFINEMENTS
   ============================================================ */

@media (max-width: 767px) {

    html,
    body {
        overflow-x: hidden;
        max-width: 100%;
    }

    .page-wrapper {
        overflow-x: hidden;
    }

    img,
    video,
    iframe {
        max-width: 100%;
    }

    .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    /* Template section headings */
    .section-title {
        margin-bottom: 32px;
    }

    .section-title__title {
        font-size: 27px !important;
        line-height: 1.28 !important;
        letter-spacing: -0.01em;
    }

    .section-title__title br {
        display: none;
    }

    /* The watermark label sits behind the heading on desktop and collided
       with it on phones — flip it above the title as a small eyebrow. */
    .section-title__title-box {
        display: flex;
        flex-direction: column-reverse;
        margin-top: 12px;
    }

    .section-title__title-box p {
        position: static !important;
        top: auto !important;
        left: auto !important;
        font-size: 12px !important;
        line-height: 1.4 !important;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.4) !important;
        margin-bottom: 10px;
        z-index: 1;
    }

    .section-title__tagline {
        margin-left: 0 !important;
        font-size: 13px;
    }

    /* Inline-styled headings across the custom sections */
    .page-wrapper section h2[style] {
        font-size: 26px !important;
        line-height: 1.28 !important;
    }

    .page-wrapper section h3[style] {
        font-size: 20px !important;
        line-height: 1.35 !important;
    }

    .page-wrapper section h4[style] {
        font-size: 18px !important;
        line-height: 1.4 !important;
    }

    .page-wrapper section h2[style] br,
    .page-wrapper section h3[style] br {
        display: none;
    }

    /* Inline-styled body copy: only scale down the oversized values */
    .page-wrapper [style*="font-size: 18px"],
    .page-wrapper [style*="font-size: 20px"],
    .page-wrapper [style*="font-size: 22px"],
    .page-wrapper [style*="font-size: 24px"],
    .page-wrapper [style*="font-size: 26px"],
    .page-wrapper [style*="font-size: 28px"] {
        font-size: 15px !important;
        line-height: 1.7 !important;
    }

    .page-wrapper blockquote[style] {
        padding-left: 15px !important;
        font-size: 15px !important;
    }

    /* Buttons: never let a CTA overflow the viewport */
    .thm-btn,
    .btn-lg {
        font-size: 12px !important;
        padding: 13px 20px !important;
        white-space: normal;
    }

    .d-flex.justify-content-center.gap-3 {
        gap: 10px !important;
    }
}

/* ============================================================
   4. SECTION-BY-SECTION MOBILE FIXES
   ============================================================ */

/* ---- Hero slider ---- */
@media (max-width: 991px) {
    .main-slider__social-box {
        display: none;
    }
}

@media (max-width: 767px) {
    .main-slider .item {
        padding-top: 110px;
        padding-bottom: 90px;
    }

    .main-slider__content {
        padding: 0;
    }

    .main-slider__sub-title {
        font-size: 12px !important;
        letter-spacing: 2px;
        line-height: 1.5;
    }

    .main-slider__title {
        font-size: 30px !important;
        line-height: 1.2 !important;
        letter-spacing: -0.01em;
    }

    .main-slider__title br {
        display: none;
    }

    .main-slider__btn-box {
        margin-top: 24px;
    }

    .main-slider__carousel.owl-theme .owl-dots {
        display: none;
    }
}

/* ---- Page header (inner pages) ---- */
@media (max-width: 767px) {
    .page-header {
        padding: 120px 0 60px;
    }

    .page-header__inner h2 {
        font-size: 28px !important;
        line-height: 1.25 !important;
    }

    .page-header__inner p {
        font-size: 12px !important;
        letter-spacing: 1.5px;
    }
}

/* ---- About (image stack + copy) ---- */
@media (max-width: 767px) {
    .about-one {
        padding: 60px 0 60px !important;
    }

    .about-one__left,
    .about-one__img-box {
        min-height: 0 !important;
    }

    .about-one__img>img {
        border-radius: 8px;
    }

    .about-one__right {
        margin: 34px 0 0 !important;
    }

    .about-one__text {
        font-size: 15px;
        line-height: 1.75;
    }

    .about-one__btn-box {
        margin-top: 26px;
    }
}

/* ---- Leadership / CEO block ---- */
@media (max-width: 767px) {
    .ceo-card {
        flex-direction: column;
        text-align: center;
        gap: 18px !important;
        padding: 22px !important;
    }

    .ceo-card img {
        margin: 0 auto;
    }

    .ps-lg-4 {
        padding-left: 0 !important;
    }
}

/* ---- Counters ---- */
@media (max-width: 767px) {
    .counter-one {
        padding: 40px 0 !important;
    }

    .counter-one .row>[class*="col-"] {
        margin-bottom: 26px;
    }

    .counter-one .row>[class*="col-"]:last-child {
        margin-bottom: 0;
    }

    .counter-one h2[style] {
        font-size: 34px !important;
        line-height: 1.1 !important;
    }

    .counter-one p[style] {
        font-size: 11px !important;
        letter-spacing: 1.4px !important;
        line-height: 1.5 !important;
    }
}

/* ---- Services cards ---- */
@media (max-width: 767px) {
    .services-one {
        padding-top: 60px !important;
        padding-bottom: 20px;
    }

    .services-one__single {
        padding: 24px !important;
        border-radius: 10px;
    }

    .services-one__title {
        font-size: 19px;
    }

    .services-one__text {
        font-size: 14px;
        line-height: 1.7;
    }
}

/* ---- Project / portfolio grids & tabs ---- */
@media (max-width: 767px) {
    .project-one {
        padding: 56px 0 !important;
    }

    .custom-vfx-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start !important;
        padding-bottom: 6px;
    }

    .custom-vfx-tabs::-webkit-scrollbar {
        display: none;
    }

    .custom-vfx-tabs .nav-link {
        white-space: nowrap;
        font-size: 12px !important;
        padding: 9px 16px !important;
    }

    /* Filter bubbles on the portfolio page */
    .portfolio-filter-wrapper,
    #portfolio-filters,
    #graphics-filters {
        flex-wrap: wrap;
        gap: 8px !important;
    }

    #portfolio-filters button,
    #graphics-filters button,
    .filter-bubble {
        font-size: 11px !important;
        padding: 7px 14px !important;
    }
}

/* ---- CTA banner ---- */
@media (max-width: 767px) {
    .cta-one {
        padding: 46px 0 !important;
    }

    .cta-one .d-flex {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-one .btn {
        width: 100%;
    }
}

/* ---- Contact / forms ---- */
@media (max-width: 767px) {

    .contact-form input,
    .contact-form textarea,
    .form-control {
        font-size: 15px !important;
    }

    .contact-info-card {
        padding: 22px !important;
    }
}

/* ---- Footer ---- */
@media (max-width: 767px) {
    .site-footer__top {
        padding-top: 54px;
        padding-bottom: 20px !important;
    }

    .footer-widget__title {
        font-size: 18px;
        margin-bottom: 14px;
    }

    .footer-widget__about-text {
        font-size: 14px;
        line-height: 1.75;
    }

    .footer-widget__contact p,
    .footer-widget__services-list li,
    .footer-widget__pages-list li {
        font-size: 14px;
        line-height: 2;
        word-break: break-word;
    }

    .site-footer__social {
        display: flex;
        gap: 10px;
    }

    .site-footer__bottom-text {
        font-size: 12px;
        line-height: 1.7;
    }
}

/* ---- Scroll-to-top button: keep clear of thumbs ---- */
@media (max-width: 767px) {
    .scroll-to-top {
        width: 42px;
        height: 42px;
        line-height: 42px;
        right: 14px;
        bottom: 14px;
        font-size: 14px;
    }
}