html {
    scroll-behavior: smooth;
}

#home,
#revo_main_wrapper,
#rev_one_page,
#rev_one_page > ul {
    position: relative;
    width: 100%;
    height: clamp(540px, 72vw, 715px);
    min-height: 540px;
    overflow: hidden;
}

#rev_one_page {
    display: block !important;
    background: #26313c;
}

#rev_one_page > ul {
    margin: 0;
    padding: 0;
}

#rev_one_page > ul > li {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 45px;
    text-align: center;
    opacity: 0;
    animation: paperHeroFade 18s infinite;
}

#rev_one_page > ul > li:nth-child(1) { animation-delay: 0s; }
#rev_one_page > ul > li:nth-child(2) { animation-delay: 6s; }
#rev_one_page > ul > li:nth-child(3) { animation-delay: 12s; }

#rev_one_page .rev-slidebg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#rev_one_page .overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, .55);
}

#rev_one_page .tp-caption {
    position: relative;
    z-index: 2;
    max-width: min(95vw, 980px);
    margin: .15em 0;
    color: #fff;
    font-size: clamp(1.85rem, 4.5vw, 3rem) !important;
    line-height: 1.18;
    white-space: normal !important;
}

#rev_one_page .tp-caption[data-type="button"] {
    margin-top: 1.5rem;
    font-size: 1rem !important;
}

@keyframes paperHeroFade {
    0%, 28% { visibility: visible; opacity: 1; }
    33%, 100% { visibility: hidden; opacity: 0; }
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 100000;
    padding: 10px 14px;
    color: #fff;
    background: #111;
    border-radius: 3px;
    transform: translateY(-150%);
    transition: transform .2s ease;
}

.skip-link:focus {
    color: #fff;
    transform: translateY(0);
}

#main-content,
.product-section,
#product-discovery {
    scroll-margin-top: 110px;
}

.product-filters {
    z-index: 10;
}

.filter-item {
    cursor: pointer;
    padding: 10px;
    color: #666;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.filter-item:hover,
.filter-item.active,
.filter-item[aria-pressed="true"] {
    color: #000;
    border-bottom-color: #000;
    font-weight: 700;
}

.filter-item:focus-visible,
.c2-filter-item:focus-visible,
.glightbox:focus-visible {
    outline: 3px solid #000;
    outline-offset: 3px;
}

.section-title {
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.category-detail {
    margin: 0 0 28px;
    padding-top: 6px;
    text-align: center;
}

.category-detail a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: .7rem 1.35rem;
    border: 1px solid #805619;
    border-radius: 999px;
    color: #fff;
    background: #805619;
    font-weight: 700;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.category-detail a:hover,
.category-detail a:focus-visible {
    color: #805619;
    background: transparent;
    transform: translateY(-1px);
}

.hover-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #222;
}

.hover-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.hover-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fff;
    background: rgba(85, 80, 70, .8);
    opacity: 0;
    transition: opacity .3s ease;
}

.hover-wrapper:hover .hover-overlay,
.glightbox:focus-visible .hover-overlay,
.c2-glightbox:focus-visible .hover-overlay {
    opacity: 1;
}

.hover-wrapper:hover img {
    transform: scale(1.1);
}

.icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    color: #333;
    background: #fff;
    border-radius: 50%;
}

.hover-text {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
}

.c2-filter-item {
    padding-bottom: 5px;
    color: #666;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color .3s ease, border-color .3s ease;
}

.c2-filter-item.active {
    color: #000;
    border-bottom-color: #000;
    font-weight: 700;
}

.modal-backdrop.show {
    opacity: .85;
}

.custom-modal-content {
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}

.pdf-container {
    position: relative;
    width: 100%;
    height: 85vh;
    overflow: hidden;
    background: #fff;
    border-radius: 4px;
}

#pdfFrame {
    width: 100%;
    height: 100%;
    border: 0;
}

.btn-close-custom {
    position: absolute;
    top: -40px;
    right: 0;
    z-index: 9999;
    color: #fff;
    background: none;
    border: 0;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.media-lightbox {
    width: min(94vw, 1180px);
    max-width: none;
    height: min(90vh, 820px);
    max-height: none;
    padding: 0;
    overflow: visible;
    background: #111;
    border: 0;
    box-shadow: 0 20px 80px rgba(0, 0, 0, .55);
}

.media-lightbox::backdrop {
    background: rgba(0, 0, 0, .88);
}

.media-lightbox-content,
.media-lightbox-content img,
.media-lightbox-content iframe {
    width: 100%;
    height: 100%;
}

.media-lightbox-content img {
    object-fit: contain;
}

.media-lightbox-content iframe {
    border: 0;
}

.media-lightbox-close {
    position: absolute;
    top: -18px;
    right: -18px;
    z-index: 2;
    width: 44px;
    height: 44px;
    color: #111;
    background: #fff;
    border: 0;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.sidemenu_btn,
.side-menu .btn-close {
    padding: 0;
    background: transparent;
    border: 0;
}

.side-menu .btn-close {
    min-width: 44px;
    min-height: 44px;
}

.product-discovery {
    background: #f7f7f7;
}

.product-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.product-category-card {
    position: relative;
    display: block;
    min-height: 260px;
    overflow: hidden;
    color: #fff;
    background: #26313c;
}

.product-category-card::after {
    position: absolute;
    inset: 0;
    content: '';
    background: linear-gradient(to top, rgba(20, 25, 30, .9), rgba(20, 25, 30, .05) 65%);
}

.product-category-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform .45s ease;
}

.product-category-card span {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    z-index: 1;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: .04em;
}

.product-category-card:hover img,
.product-category-card:focus-visible img {
    transform: scale(1.04);
}

.product-category-card:focus-visible {
    outline: 4px solid #805619;
    outline-offset: 4px;
}

.team-member-title,
.testimonial-name {
    font-size: 1.125rem;
    line-height: 1.35;
}

#testimonial-slider .testimonial-round {
    width: 224px;
    height: 224px;
    border-radius: 50%;
}

#testimonial-slider .testimonial-round > img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}

#testimonial-slider .testi-box > .row {
    min-height: 340px;
}

#contact a,
footer a,
.social-icons-simple a {
    display: inline-flex;
    align-items: center;
    min-width: 24px;
    min-height: 24px;
}

.single-feature .image img,
.navbar-brand img {
    height: auto;
}

.footer_logo img {
    height: auto;
}

@media (max-width: 991px) {
    .product-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #testimonial-slider .testimonial-round {
        width: 190px;
        height: 190px;
    }

    #testimonial-slider .testi-box > .row {
        min-height: 0;
    }

    #testimonial-slider .testi-box .top90 {
        margin-top: 30px;
    }
}

@media (max-width: 575px) {
    .product-category-grid {
        grid-template-columns: 1fr;
    }

    .product-category-card,
    .product-category-card img {
        min-height: 220px;
        height: 220px;
    }
}

@media (max-width: 768px) {
    .product-filters {
        position: static !important;
    }

    .modal-dialog {
        margin: 10px;
    }

    .pdf-container {
        height: 80vh;
    }

    .btn-close-custom {
        top: -35px;
        right: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }

    #rev_one_page > ul > li {
        visibility: hidden;
        opacity: 0;
        animation: none !important;
    }

    #rev_one_page > ul > li:first-child {
        visibility: visible;
        opacity: 1;
    }
}
