/* Homepage responsive layout & image aspect-ratio fixes */

/* Override style.css — keep nav visible & styled while scrolling */
.home-page .header-area.header--fixed.header--sticky {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.home-page .header-area.header--fixed.header--sticky.sticky {
    background: #0e1525 !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    animation: none !important;
}

.home-page .header-area.header--fixed.header--sticky.sticky .header-wrapper {
    padding: 12px 0;
}

.home-page .header-area.header--fixed.header--sticky.sticky .header-wrapper .logo a img.logo-1 {
    display: block !important;
}

.home-page .header-area.header--fixed.header--sticky.sticky .header-wrapper .logo a img.logo-2 {
    display: none !important;
}

.home-page .header-area.header--fixed.header--sticky.sticky .mainmenunav ul.mainmenu > li > a,
.home-page .header-area.header--fixed.header--sticky.sticky .mainmenunav ul.mainmenu .nav-link {
    color: rgba(255, 255, 255, 0.92) !important;
}

.home-page .header-area.header--fixed.header--sticky.sticky .mainmenunav ul.mainmenu.onepagenav li.current a,
.home-page .header-area.header--fixed.header--sticky.sticky .mainmenunav ul.mainmenu.onepagenav li.current .nav-link,
.home-page .header-area.header--fixed.header--sticky.sticky .mainmenunav ul.mainmenu.onepagenav li:hover a,
.home-page .header-area.header--fixed.header--sticky.sticky .mainmenunav ul.mainmenu.onepagenav li:hover .nav-link {
    color: #7ec8ff !important;
}

.home-page .fz-site-header .mainmenunav ul.mainmenu.onepagenav > li > a.nav-link::after,
.home-page .fz-site-header .fz-nav-groups.onepagenav > .nav-item > .nav-link::after,
.home-page .fz-site-header .fz-nav-groups.onepagenav > .fz-nav-cart > .nav-link::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
}

.home-page .header-area.header--fixed.header--sticky.sticky .humberger-menu span,
.home-page .header-area.header--fixed.header--sticky.sticky .humberger-menu span.text-white {
    color: #fff !important;
}

.home-page img {
    max-width: 100%;
}

/* Shared media frame — prevents squashed / stretched images */
.home-media-cover {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 10px;
    background-color: #0f0f0f;
}

.home-media-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.home-media-cover--landscape {
    aspect-ratio: 4 / 3;
}

/* Header logo */
.header-area .logo a {
    display: inline-flex;
    align-items: center;
}

.header-area .logo .logo-1,
.header-area .logo .logo-2 {
    width: auto !important;
    height: auto !important;
    max-height: 46px;
    max-width: min(160px, 42vw);
    object-fit: contain;
}

.header-area .logo .logo-2 {
    max-height: 40px;
}

.rn-popup-mobile-menu .logo img {
    max-height: 44px;
    width: auto;
    object-fit: contain;
}

/* Mobile popup menu — tap targets & stacking above hero/preloader remnants */
.home-page .header-area {
    z-index: 1000;
}

.home-page .rn-popup-mobile-menu {
    z-index: 100060;
}

.home-page .rn-popup-mobile-menu:not(.menu-open) {
    pointer-events: none;
}

.home-page .rn-popup-mobile-menu.menu-open {
    pointer-events: auto;
}

.home-page .rn-popup-mobile-menu .inner {
    z-index: 2;
    pointer-events: auto;
    -webkit-overflow-scrolling: touch;
}

.home-page .rn-popup-mobile-menu ul.mainmenu.nav.nav-pills .nav-link {
    display: block;
    padding: 0.85rem 0;
    min-height: 44px;
    line-height: 1.35;
    touch-action: manipulation;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.home-page .rn-popup-mobile-menu ul.mainmenu.nav.nav-pills .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.home-page .rn-popup-mobile-menu ul.mainmenu.nav.nav-pills .nav-item:last-child {
    border-bottom: 0;
}

.home-page .humberger-menu span {
    touch-action: manipulation;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.home-page .header-area .header-wrapper .close-menu {
    pointer-events: none;
}

.home-page .header-area .header-wrapper.menu-open .close-menu {
    opacity: 1;
    visibility: visible;
    z-index: 100070;
    pointer-events: auto;
}

.home-page .header-area .header-wrapper.menu-open .close-menu span {
    cursor: pointer;
    touch-action: manipulation;
}

/* Hero / slider */
.slider-activation.with-particles .slide.slide-style-2 {
    min-height: clamp(420px, 72vh, 720px);
}

.slider-activation.with-particles .home-hero,
.slider-activation.with-particles .home-hero .slide.slide-style-2 {
    min-height: 100vh;
    min-height: 100dvh;
}

.slider-activation.with-particles .slide.slide-style-2 .inner h1.title {
    font-size: clamp(1.75rem, 4.2vw, 3.25rem);
    line-height: 1.2;
    padding-left: clamp(0.5rem, 2vw, 1rem);
    padding-right: clamp(0.5rem, 2vw, 1rem);
}

.slider-activation.with-particles .slide.slide-style-2 .inner p.description_style-2 {
    font-size: clamp(0.9375rem, 2.2vw, 1.1875rem);
    line-height: clamp(1.5rem, 4.5vw, 2.5rem);
    max-width: min(57rem, 100%);
    margin: clamp(0.75rem, 2vw, 1.25rem) auto 0;
    padding: 0 clamp(1rem, 6vw, 8rem);
    letter-spacing: 0.02em;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

/* About */
.about-area .thumbnail.home-media-cover {
    margin-bottom: 2rem;
}

/* Portfolio cards */
.im_portfolio .thumbnail {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #111;
}

.im_portfolio .thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

.im_portfolio .thumbnail a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.im_portfolio .content .inner .portfolio_heading .title {
    font-size: clamp(1.125rem, 2.5vw, 1.875rem);
}

/* Contact image */
.rn-contact-us .thumbnail.home-media-cover {
    margin-bottom: 0;
}

/* Testimonial thumbs — keep square crop on all states */
ul.testimonial-thumb-wrapper li .thumb {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

ul.testimonial-thumb-wrapper li .thumb img,
ul.testimonial-thumb-wrapper li a.active .thumb img {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    object-fit: cover;
    object-position: center center;
}

/* Brand logos */
ul.brand-style-2 li a,
ul.brand-style-2 li {
    display: flex;
    align-items: center;
    justify-content: center;
}

ul.brand-style-2 img {
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Map */
#map {
    height: clamp(260px, 52vw, 400px) !important;
    width: 100%;
}

/* Section spacing & typography */
@media (max-width: 991px) {
    .about-area.ptb--120,
    .portfolio-area.pt--120,
    .rn-product-photos-area.ptb--120,
    .rn-testimonial-area.ptb--120,
    .rn-contact-us.ptb--120,
    .rn-map-area.ptb--120,
    .rn-brand-area.ptb--120,
    .rn-counterup-area.pt--140 {
        padding-top: 80px !important;
        padding-bottom: 80px !important;
    }

    .portfolio-area.pb--140 {
        padding-bottom: 90px !important;
    }

    .rn-counterup-area.pb--110 {
        padding-bottom: 70px !important;
    }
}

@media (max-width: 767px) {
    .slider-activation.with-particles .slide.slide-style-2 {
        padding-top: 120px;
        padding-bottom: 100px;
        min-height: clamp(380px, 68vh, 560px);
    }

    .slider-activation.with-particles .slide.slide-style-2 .inner p.description_style-2 {
        font-size: clamp(0.875rem, 3.8vw, 1.0625rem);
        line-height: 1.65;
        padding: 0 clamp(0.75rem, 4vw, 1.5rem);
    }

    .section-title .title {
        font-size: clamp(1.5rem, 6vw, 2.25rem);
    }

    .section-title .description br {
        display: none;
    }

    .about-area .thumbnail.home-media-cover {
        aspect-ratio: 16 / 11;
        margin-bottom: 1.5rem;
    }

    .rn-contact-us .thumbnail.home-media-cover {
        aspect-ratio: 16 / 11;
        margin-bottom: 1.75rem;
    }

    .counterup_style--2 .counter {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }

    .counterup_style--2 .description {
        font-size: 0.75rem;
        letter-spacing: 0.04em;
    }

    ul.brand-style-2 li {
        flex-basis: 50%;
    }

    ul.brand-style-2 img {
        max-height: 56px;
        max-width: 120px;
    }
}

@media (max-width: 575px) {
    .header-area .logo .logo-1,
    .header-area .logo .logo-2 {
        max-height: 36px;
        max-width: min(130px, 48vw);
    }

    .im_portfolio .thumbnail {
        aspect-ratio: 1 / 1;
    }

    ul.testimonial-thumb-wrapper li {
        flex-basis: 25%;
    }
}
