:root {
    --brbr-color-bg: #0d1117;
    --brbr-color-ink: #e8e8ea;
    --brbr-color-muted: #a0a3ab;
    --brbr-color-border: rgba(255, 255, 255, 0.08);
    --brbr-action-color: #ffecc7;

    --brbr-spacer: 1rem;
}

html,
body,
.brbr-page-wrapper,
.brbr-logo,
.brbr-branches,
.brbr-page-wrapper *,
.brbr-logo *,
.brbr-branches * {
    box-sizing: border-box;
    margin: 0;
    font-family: "Rubik", sans-serif;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 300;
    line-height: 1.6;
}

html,
body {
    background-color: var(--brbr-color-bg);
    position: relative;
    width: 100%;
    height: 100%;
    inset: 0;
    scroll-snap-type: y mandatory;
    overflow: hidden;
}

.scrollable {
    overflow-y: scroll;
}

.brbr-no-margin {
    margin: 0 !important;
}

@media (min-width: 768px) {
    :root {
        --brbr-spacer: 1.5rem;
    }
    html,
    body {
        height: 100vh;
        overflow: hidden;
        scroll-snap-type: none;
    }
}

.brbr-animation {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s ease-out;
    will-change: opacity, transform;
}

.brbr-animation.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================
   TYPOGRAPHY
============================ */
.brbr-page-wrapper a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 700;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
}

.brbr-page-wrapper a:hover {
    border-bottom-color: var(--brbr-action-color);
    color: var(--brbr-action-color);
}

.brbr-page-wrapper p {
    margin: 0 0 var(--brbr-spacer) 0;
    text-align: justify;
}

.brbr-page-wrapper strong {
    font-weight: 700;
    color: var(--brbr-action-color);
}

.brbr-page-wrapper i {
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    text-align: justify;
    display: block;
}

.brbr-page-wrapper small {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
}

.brbr-text-left {
    text-align: left;
}

.brbr-text-center {
    text-align: center;
}

.brbr-text-right {
    text-align: right;
}

/* ============================
   HEADINGS
============================ */
.brbr-page-wrapper h1,
.brbr-page-wrapper h2,
.brbr-page-wrapper h3,
.brbr-page-wrapper h4,
.brbr-page-wrapper h5,
.brbr-page-wrapper h6 {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem;
}

.brbr-page-wrapper h1 {
    font-size: 2.5rem;
}
.brbr-page-wrapper h2 {
    font-size: 2em;
}
.brbr-page-wrapper h3 {
    font-size: 1.75rem;
}
.brbr-page-wrapper h4 {
    font-size: 1.1rem;
}
.brbr-page-wrapper h5 {
    font-size: 1rem;
}
.brbr-page-wrapper h6 {
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .brbr-page-wrapper h1 {
        font-size: 3rem;
    }
    .brbr-page-wrapper h2 {
        font-size: 2.25em;
    }
}

/* ============================
   "MAJOR" TITLES
============================ */
h1.brbr-major,
h2.brbr-major,
h3.brbr-major {
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: var(--brbr-spacer);
}

h1.brbr-major::after,
h2.brbr-major::after,
h3.brbr-major::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 3rem;
    height: 0.15rem;
    background-color: var(--brbr-action-color);
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

/* ====================================
  LOGO BG
==================================== */
.brbr-logo {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#brbr-bg-logo {
    max-width: 95%;
    width: 95%;

    /*transition usage only*/
    opacity: 0;
    transform: scale(0.1);
    transition: transform 2s ease-out, opacity 2s ease-out;
}

#brbr-bg-logo.visible {
    opacity: 1;
    transform: scale(1);
}

@media (min-width: 768px) {
    #brbr-bg-logo {
        max-width: 65%;
        width: 65%;
    }
}

/* ====================================
   BRANCHES
==================================== */
.brbr-branches {
    height: 100%;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    z-index: 5;
}

.brbr-branch {
    flex: 1;
    z-index: 8;
    overflow: hidden;
    position: relative;
    cursor: pointer;

    /* animations usage only */
    opacity: 0;
    transition: transform 1.4s ease-out, opacity 1.4s ease-out;
}

.brbr-branch.left {
    left: 0;
    transform: translateX(-100%);
}

.brbr-branch.right {
    right: 0;
    transform: translateX(100%);
}

.brbr-branch.visible {
    opacity: 1;
    transform: translateX(0);
}

.brbr-branch::after {
    position: absolute;
    content: "";
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
    transition: background-color 1s ease;
    z-index: 9;
}

.brbr-branch > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 0.6s ease;
}

.brbr-branch > button {
    position: absolute;
    bottom: var(--brbr-spacer);
    padding: var(--brbr-spacer);
    border: 0;
    cursor: pointer;
    z-index: 5;
    border-radius: 0 8px 8px 0;
    font-size: 20px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(2px);
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.05));
}

.brbr-branch > button:hover {
    backdrop-filter: blur(6px);
    color: white;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.05));
}

.brbr-branch:hover img {
    transform: scale(1.2);
}

.brbr-branch:hover::after {
    background-color: rgba(0, 0, 0, 0);
}

.brbr-branch.right > button {
    top: var(--brbr-spacer);
    bottom: unset;
}

@media (min-width: 768px) {
    .brbr-branches {
        flex-direction: row;
    }
    .brbr-branch.right > button {
        top: unset;
        bottom: var(--brbr-spacer);
    }
    .brbr-branch > button {
        font-size: 24px;
    }
}

/* ====================================
   PAGE SCROLL WRAPPER
==================================== */
.brbr-page-wrapper {
    position: absolute;
    top: 0;
    z-index: 0;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    scroll-snap-type: y mandatory;

    /* animations usage only */
    opacity: 0;
    transition: opacity 1.3s ease-out;
}

.brbr-page-wrapper.visible {
    opacity: 1;
    z-index: 10;
}

.brbr-page-wrapper::-webkit-scrollbar {
    display: none;
}

.brbr-page-track {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100dvh;
    width: 100%;
    max-width: 500px;
    margin: auto;
}

.brbr-panel {
    position: relative;
    height: 100dvh;
    min-height: 100dvh;
    width: 100%;
    background-color: transparent;
    scroll-snap-align: start;
    padding: 32px;
    overflow: hidden;
}

.brbr-panel-row {
    display: flex;
    flex-direction: column;
    align-content: center;
    width: 100%;
    height: 100%;
}

.brbr-panel-centered {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brbr-desktop-panel {
    display: none !important;
}

.brbr-mobile-panel {
    display: flex !important;
}

.brbr-menu-panel {
    display: none !important;
}

@media (min-width: 768px) {
    .brbr-page-wrapper {
        padding-inline: 10vw;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-padding-inline: 10vw;
    }

    .brbr-page-track {
        flex-direction: row;
        height: 60vh;
        min-height: 500px;
        max-height: 600px;
        width: max-content;
        max-width: max-content;
    }

    .brbr-panel {
        height: 100%;
        min-height: 100%;
        scroll-snap-align: none;
        overflow: hidden;
    }

    .brbr-desktop-panel {
        display: flex !important;
    }

    .brbr-mobile-panel {
        display: none !important;
    }

    .brbr-menu-panel {
        display: flex !important;
        position: sticky !important;
        left: -10vw;
        z-index: 401;
    }

    .brbr-panel-row {
        flex-direction: row;
        overflow: visible;
        gap: 32px;
    }
    .brbr-panel-centered {
        align-items: start;
    }

    .brbr-page-track > section:first-child {
        border-radius: 16px 0 0 16px;
    }

    .brbr-page-track > section:last-child {
        border-radius: 0 16px 16px 0;
    }
}

/* ====================================
   BRBR-PANEL COLORS WRAPPER
==================================== */
.color0 {
    background-image: url("../img/overlay.png"), linear-gradient(45deg, #726193 20%, #e37b7c 60%, #ffe4b4);
    background-size: 128px 128px, auto;
}
.color1 {
    background-image: url("../img/overlay.png"), linear-gradient(45deg, rgba(114, 97, 147, 0.25) 25%, rgba(227, 123, 124, 0.25) 50%, rgba(255, 228, 180, 0.25));
    background-size: 128px 128px, auto;
    background-color: #726193;
}
.color2 {
    background-image: url("../img/overlay.png"), linear-gradient(45deg, rgba(74, 128, 135, 0.3) 25%, rgba(114, 97, 147, 0.25) 50%, rgba(227, 123, 124, 0.25));
    background-size: 128px 128px, auto;
    background-color: #4a8087; /* new teal-blue tone */
}
.color3 {
    background-image: url("../img/overlay.png"), linear-gradient(45deg, rgba(115, 153, 81, 0.25) 25%, rgba(0, 70, 127, 0.25) 50%);
    background-size: 128px 128px, auto;
    background-color: #00467f;
}
.color4 {
    background-image: url("../img/overlay.png"), linear-gradient(45deg, rgba(120, 133, 82, 0.25) 25%, rgba(179, 118, 75, 0.25) 55%, rgba(228, 196, 148, 0.25));
    background-size: 128px 128px, auto;
    background-color: #788552;
}
.color5 {
    background-image: url("../img/overlay.png"), linear-gradient(45deg, rgba(82, 102, 133, 0.25) 25%, rgba(78, 132, 145, 0.25) 55%, rgba(185, 201, 214, 0.25));
    background-size: 128px 128px, auto;
    background-color: #526685;
}
.color6 {
    background-image: url("../img/overlay.png"), linear-gradient(45deg, rgba(90, 59, 79, 0.3) 20%, rgba(140, 82, 101, 0.25) 55%, rgba(214, 157, 130, 0.25));
    background-size: 128px 128px, auto;
    background-color: #5a3b4f;
}
.color7 {
    background-image: url("../img/overlay.png"), linear-gradient(45deg, rgba(40, 82, 76, 0.3) 20%, rgba(60, 120, 110, 0.25) 55%, rgba(163, 196, 180, 0.25));
    background-size: 128px 128px, auto;
    background-color: #28524c;
}
.color8 {
    background-image: url("../img/overlay.png"), linear-gradient(45deg, rgba(50, 54, 72, 0.3) 20%, rgba(86, 92, 120, 0.25) 55%, rgba(162, 170, 196, 0.25));
    background-size: 128px 128px, auto;
    background-color: #323648;
}
.color9 {
    background-image: url("../img/overlay.png"), linear-gradient(45deg, rgba(114, 97, 147, 0.25) 25%, rgba(227, 123, 124, 0.25) 50%, rgba(255, 228, 180, 0.25));
    background-size: 128px 128px, auto;
    background-color: #e37b7c;
}

.brbr-panel.main {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url("../img/mistek-photo.webp");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* ====================================
   BRBR-PANEL WIDTHS
==================================== */
.w-0-25,
.w-0-5,
.w-0-75,
.w-1,
.w-1-25,
.w-1-5,
.w-1-75,
.w-2,
.w-2-25,
.w-2-5,
.w-2-75,
.w-3,
.w-3-25,
.w-3-5,
.w-3-75,
.w-4,
.w-4-25,
.w-4-5,
.w-4-75,
.w-5,
.w-5-25,
.w-5-5,
.w-5-75,
.w-6,
.w-6-25,
.w-6-5,
.w-6-75,
.w-7,
.w-7-25,
.w-7-5,
.w-7-75,
.w-8,
.w-8-25,
.w-8-5,
.w-8-75,
.w-9,
.w-9-25,
.w-9-5,
.w-9-75,
.w-10 {
    min-width: 100%;
    max-width: 100%;
}
@media (min-width: 768px) {
    .w-0-25 {
        min-width: 25px;
        max-width: 25px;
    }
    .w-0-5 {
        min-width: 50px;
        max-width: 50px;
    }
    .w-0-75 {
        min-width: 75px;
        max-width: 75px;
    }
    .w-1 {
        min-width: 100px;
        max-width: 100px;
    }
    .w-1-25 {
        min-width: 125px;
        max-width: 125px;
    }
    .w-1-5 {
        min-width: 150px;
        max-width: 150px;
    }
    .w-1-75 {
        min-width: 175px;
        max-width: 175px;
    }
    .w-2 {
        min-width: 200px;
        max-width: 200px;
    }
    .w-2-25 {
        min-width: 225px;
        max-width: 225px;
    }
    .w-2-5 {
        min-width: 250px;
        max-width: 250px;
    }
    .w-2-75 {
        min-width: 275px;
        max-width: 275px;
    }
    .w-3 {
        min-width: 300px;
        max-width: 300px;
    }
    .w-3-25 {
        min-width: 325px;
        max-width: 325px;
    }
    .w-3-5 {
        min-width: 350px;
        max-width: 350px;
    }
    .w-3-75 {
        min-width: 375px;
        max-width: 375px;
    }
    .w-4 {
        min-width: 400px;
        max-width: 400px;
    }
    .w-4-25 {
        min-width: 425px;
        max-width: 425px;
    }
    .w-4-5 {
        min-width: 450px;
        max-width: 450px;
    }
    .w-4-75 {
        min-width: 475px;
        max-width: 475px;
    }
    .w-5 {
        min-width: 500px;
        max-width: 500px;
    }
    .w-5-25 {
        min-width: 525px;
        max-width: 525px;
    }
    .w-5-5 {
        min-width: 550px;
        max-width: 550px;
    }
    .w-5-75 {
        min-width: 575px;
        max-width: 575px;
    }
    .w-6 {
        min-width: 600px;
        max-width: 600px;
    }
    .w-6-25 {
        min-width: 625px;
        max-width: 625px;
    }
    .w-6-5 {
        min-width: 650px;
        max-width: 650px;
    }
    .w-6-75 {
        min-width: 675px;
        max-width: 675px;
    }
    .w-7 {
        min-width: 700px;
        max-width: 700px;
    }
    .w-7-25 {
        min-width: 725px;
        max-width: 725px;
    }
    .w-7-5 {
        min-width: 750px;
        max-width: 750px;
    }
    .w-7-75 {
        min-width: 775px;
        max-width: 775px;
    }
    .w-8 {
        min-width: 800px;
        max-width: 800px;
    }
    .w-8-25 {
        min-width: 825px;
        max-width: 825px;
    }
    .w-8-5 {
        min-width: 850px;
        max-width: 850px;
    }
    .w-8-75 {
        min-width: 875px;
        max-width: 875px;
    }
    .w-9 {
        min-width: 900px;
        max-width: 900px;
    }
    .w-9-25 {
        min-width: 925px;
        max-width: 925px;
    }
    .w-9-5 {
        min-width: 950px;
        max-width: 950px;
    }
    .w-9-75 {
        min-width: 975px;
        max-width: 975px;
    }
    .w-10 {
        min-width: 1000px;
        max-width: 1000px;
    }
}

/* ====================================
   BRBR SLIDER
==================================== */
.brbr-slider {
    position: relative;
    width: 100%;
    height: calc(100% - 137px);
    overflow: hidden;
}

.brbr-slider-item {
    opacity: 0;
    position: absolute;
    transition: opacity 0.6s ease-out;
    top: 0;
    pointer-events: none;
    padding: 0 4px;
}

.brbr-slider-item.active {
    opacity: 1;
    pointer-events: auto;
}

.brbr-dots {
    position: absolute;
    bottom: calc(var(--brbr-spacer) / 2);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: calc(var(--brbr-spacer) / 2);
    justify-content: center;
    align-items: center;
}

.brbr-dot {
    width: 1rem;
    height: 1rem;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    cursor: pointer;
    transition: width 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

.brbr-dot:hover {
    transform: scale(1.2);
}

.brbr-dot.active {
    width: 3rem;
    background-color: var(--brbr-action-color);
}

/* ====================================
   BRBR-PANEL TEAM
==================================== */
#brbr-team-photos {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--brbr-spacer);
    height: 100%;
}

.brbr-team-img-wrapper {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.brbr-team-img-wrapper > img {
    height: calc(100% - 60px);
    width: auto;
    object-fit: contain;
    display: block;
    transform: scale(1);
    transition: transform 0.5s ease;
}

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

.brbr-team-img-wrapper > p {
    padding: 16px;
    border-radius: 4px;
    margin: 0;
    text-align: center;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 18px;
    color: var(--brbr-action-color) !important;

    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px) brightness(1.2);
    -webkit-backdrop-filter: blur(8px) brightness(1.2);
}

@media (min-width: 768px) {
    .brbr-team-img-wrapper > img {
        height: calc(100% - 38px);
    }
    .brbr-team-img-wrapper > p {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* ====================================
   BRBR-PANEL CONTACTS
==================================== */
.brbr-contact-panel {
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.brbr-contact-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--brbr-color-border);
}

.brbr-contact-wrapper:last-child {
    border: none;
}

.brbr-contact-wrapper > small {
    text-transform: uppercase;
}

.brbr-contact-wrapper > p,
.brbr-contact-wrapper > a {
    font-size: 20px;
    margin: 0;
}

/* ====================================
   BRBR STACK
==================================== */
.brbr-stack {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.brbr-stack > div {
    position: absolute;
    width: 90%;
    border-radius: 8px;
    overflow: hidden;
    padding: var(--brbr-spacer);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(40px) scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.brbr-stack > div.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    z-index: 3;
}

.brbr-stack > div.prev {
    opacity: 0.5;
    transform: translateY(-60%) scale(0.9);
    z-index: 2;
    cursor: pointer;
}

.brbr-stack > div.next {
    opacity: 0.5;
    transform: translateY(60%) scale(0.9);
    z-index: 1;
    cursor: pointer;
}

/* ====================================
   BRBR-PANEL SERVICES
==================================== */
.brbr-service-card {
    background-image: url("../img/overlay.png"), linear-gradient(45deg, rgba(74, 128, 135, 0.3) 25%, rgba(114, 97, 147, 0.25) 50%, rgba(227, 123, 124, 0.25));
    background-size: 128px 128px, auto;
    background-color: #4a8087;
}

.brbr-service-card * {
    margin: 0;
}

.brbr-service-card > div {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--brbr-spacer);
}

/* ====================================
   BRBR-PANEL PRODUCTS
==================================== */
.brbr-product-card {
    height: 400px;
    padding: 0 !important;
}

.brbr-product-card > img,
.brbr-panel-product > img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 0.5s ease;
}

.brbr-product-card > h5 {
    position: absolute;
    top: var(--brbr-spacer);
    right: var(--brbr-spacer);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--brbr-action-color);
}

.brbr-panel-product {
    padding: 0;
}

/* ====================================
   BRBR-PANEL MENU DESKTOP
==================================== */
.brbr-menu-panel {
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

#brbr-mobile-back {
    position: fixed;
    top: var(--brbr-spacer);
    right: 0;
    border: 0;
    z-index: 401;
    display: flex;
    padding: 12px;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(6px);
    border-radius: 100% 0 0 100%;
}

#brbr-mobile-back:hover {
    background-color: white;
    cursor: pointer;
}

#brbr-menu-back {
    display: flex;
    padding: 12px;
    align-items: center;
    border-radius: 100%;
    border: 0;
    transition: transform 0.3s ease;
}

#brbr-menu-back:hover {
    background-color: white;
    cursor: pointer;
    transform: rotate(45deg);
}

#brbr-menu-back > img,
#brbr-mobile-back > img {
    height: 30px;
    width: 30px;
}

#brbr-branch-menu {
    height: 100%;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

@media (min-width: 768px) {
    #brbr-mobile-back {
        display: none;
    }
}

/* ====================================
   BRBR-PANEL STEP INDICATOR
==================================== */
.brbr-step-indicator {
    position: absolute;
    top: var(--brbr-spacer);
    left: var(--brbr-spacer);
    z-index: 15;
    font-weight: 700;
    color: #ffecc7;
    transform: rotate(-12deg);
    transform-origin: left top;
    display: flex;
    align-items: baseline;
    gap: 4px;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}
.brbr-step-indicator:hover {
    opacity: 1;
}
.brbr-step-indicator .current {
    font-size: 42px;
    line-height: 1;
}
.brbr-step-indicator .slash,
.brbr-step-indicator .total {
    font-size: 18px;
    opacity: 0.7;
}
