/**************************************************************
 *                     ❖   CSS by Martyn   ❖                  *
 **************************************************************/


/* ============================================================
   ==>  [ ROOT ]  <==
   ============================================================ */

@font-face {
    font-family: "SF Pro Text";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/sf-pro/SF-Pro.woff2') format('woff2');
}

:root {
    /* ==> color <== */
    --primary: #e4002b;
    --secondary: #262626;
    --success: #198754;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #0dcaf0;
    --light: #f8f9fa;
    --dark: #191919;
    --body-bg: #262626;
    --body-color: #ffffff;
    --bg-red: #e4002b;
    --bg-dark: #191919;
    --bg-dark2: #2e2e2e;
    --bg-dark-t80: #191919cc;
    --txt-red: #e4002b;
    --bg-liquid: rgba(215, 215, 215, 0.05);
    --bg-liquid2: rgba(38, 38, 38, 0.6);

    /* ==> Bootstrap-semantic overrides <== */
    --bs-primary: var(--primary);
    --bs-primary-hover: #c70024;
    --bs-primary-active: #a1001d;
    --nav-active: #c5c5c5;

    /* ==> Typography <== */
    --font-family-base: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-family-sans: var(--font-family-base);
    --font-family-mono: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    --font-size-base: 1rem; /* ≈16px */
    --font-size-sm: 0.875rem; /* ≈14px */
    --font-size-lg: 1.125rem; /* ≈18px */
    --line-height-base: 1.5;
    --text-shadow: 0 0 .5rem rgba(0, 0, 0, 0.7);

    /* ==> Spacing <== */
    --spacer: 1rem;
    --spacer-half: 0.5rem;
    --spacer-2: 2rem;
    --gutter-x: 1rem;
    --gutter-y: 0.5rem;

    /* ==> Border-radius & shadow <== */
    --border-radius: 0.25rem;
    --border-radius-sm: 0.2rem;
    --border-radius-lg: 0.3rem;
    --border-radius-xl: 0.65rem;
    --border-radius-xxl: 2rem;
    --box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);

    /* ==> Buttons & forms <== */
    --btn-padding-y: 0.375rem;
    --btn-padding-x: 0.75rem;
    --btn-border-radius: var(--border-radius);
    --btn-transition: 0.2s ease-in-out;
    --input-padding-y: 0.375rem;
    --input-padding-x: 0.75rem;
    --input-border-color: #ced4da;
    --input-border-radius: var(--border-radius);
    --bs-dropdown-link-hover-bg: rgba(255,255,255,0.15);
}


/* ============================================================
   ==>  [ GENERAL & BOOTSTRAP OVERRIDES ]  <==
   ============================================================ */

html,
body{
    overflow-x: hidden;
}


body {
    font-family: var(--font-family-base);
    font-weight: 200;
    background-color: var(--body-bg);
    color: var(--body-color);
}

main.flex-fill {
    min-height: 0;
    overflow: auto;
}

.col-20 {
    flex: 0 0 20%;
    max-width: 20%;
}

.col-20 .card{
    min-height: 350px;
}

.w-40{
    width: 40% !important;
}

@media (max-width: 991px) {
    .col-20 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (max-width: 575px) {
    .col-20 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .col-20 .card{
        min-height: 260px;
    }
}


.bg-dark {
    background-color: var(--bg-dark) !important;
}

.bg-dark2 {
    background-color: var(--bg-dark2) !important;
}

.bg-dark-t80 {
    background-color: var(--bg-dark-t80) !important;
}


.bg-red {
    background-color: var(--bg-red) !important;
}

.bg-liquid {
    background-color: var(--bg-liquid);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1),
    inset 0 2px 4px rgba(255, 255, 255, 0.6);
    text-shadow: #000 1px 0 4px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: var(--light);
    border-radius: var(--border-radius-xl);
}

.bg-liquid2 {
    background-color: var(--bg-liquid2);
}

.border-radius-xl {
    border-radius: var(--border-radius-xl);
}

figure.image{
    width: 100%;
    text-align: center;
}

figure.image img{
    max-width: 100%;
    height: auto !important;
}

.grecaptcha-badge{
    display: none;
}

/* ============================================================
   ==>  [ TEXT ]  <==
   ============================================================ */

.lead {
    font-size: 1.5rem;
    font-weight: 200;
}

.fs-tiny {
    font-size: 0.65rem;
}

.text-muted {
    color: var(--light) !important;
}

.text-shadow{
    text-shadow: 0 0px 5px rgba(0,0,0,9), 0 1px 2px rgba(0,0,0,0.6);
}

@media (max-width: 1281px) {
    #hero-content p.lead{
        font-size: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    #hero-content p.lead{
        font-size: 1rem;
    }
}


/* ============================================================
   ==>  [ BTNs ]  <==
   ============================================================ */

.btn {
    --bs-btn-font-weight: 100;
}

.btn-lg {
    --bs-btn-padding-y: 1rem;
    --bs-btn-padding-x: 2.25rem;
    --bs-btn-font-size: 1.1rem;
}

.btn-primary {
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
}

.btn-primary:hover {
    --bs-btn-hover-bg: var(--bs-primary-hover);
    --bs-btn-hover-border-color: var(--bs-primary-hover);
}

.btn-check:checked + .btn,
.btn.active, .btn.show,
.btn:first-child:active,
:not(.btn-check) + .btn:active,
.btn-primary:active {
    --bs-btn-active-bg: var(--bs-primary-active);
    --bs-btn-active-border-color: var(--bs-primary-active);
}

.text-primary,
.btn.text-red {
    color: var(--txt-red) !important;
}

.btn-link {
    --bs-btn-font-weight: 300;
    --bs-btn-color: var(--txt-red);
    --bs-btn-hover-color: var(--light);
    text-decoration: none;
}

.btn-link:hover {
    text-decoration: underline;
}

.btn-line-animation {
    position: relative;
}

.btn-line-animation:hover:before {
    width: 100%;
}

.btn-line-animation:before {
    content: "";
    position: absolute;
    width: 0;
    height: 1.25pt;
    bottom: 0;
    left: 0;
    background-color: var(--light);
    transition: width 0.3s ease;
}

.btn-line-animation.text-primary:before {
    background-color: var(--primary);
}

.btn-wipe {
    border: none;
    background-color: var(--primary);
    background-image: linear-gradient(
            to right,
            var(--secondary) 50%,
            var(--primary) 50%
    );
    background-size: 200% 100%;
    background-position: 100% 0;
    color: #fff;
    transition: background-position 0.6s ease-in-out;
}

.btn-wipe.btn-hover-bg-dark,
#content-builder .btn-wipe {
    background-image: linear-gradient(
            to right,
            var(--dark) 50%,
            var(--primary) 50%
    );
}

.btn-wipe:hover {
    animation: wipe-bounce-in 0.6s forwards;
}

.btn-wipe:not(:hover) {
    animation: wipe-bounce-out 0.6s forwards;
}

@keyframes wipe-bounce-in {
    0% {
        background-position: 100% 0;
    }
    30% {
        background-position: 0% 0;
    }
    60% {
        background-position: 10% 0;
    }
    100% {
        background-position: 0% 0;
    }
}

@keyframes wipe-bounce-out {
    0% {
        background-position: 0% 0;
    }
    100% {
        background-position: 100% 0;
    }
}


/* ============================================================
   ==>  [ CARD ]  <==
   ============================================================ */

.card {
    --bs-card-border-radius: var(--bs-border-radius-xl);
    --bs-card-border-width: 0;
}

.card-header {
    background-color: var(--bg-dark2);
}

.card-header:first-child {
    border-radius: var(--bs-border-radius-xl) var(--bs-border-radius-xl) 0 0;
}

.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-15px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-video-hover {
    border: none;
    overflow: hidden;
}

.card-video-hover img {
    transition: opacity 0.3s ease;
}

.card-video-hover video {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-video-hover:hover img {
    opacity: 0;
}

.card-video-hover:hover video {
    opacity: 1;
}

.card-masonry {
    column-count: 3;
    column-gap: 1.5rem;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
}

.card-masonry > div {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

@media (max-width: 991px) {
    .card-masonry {
        column-count: 2;
    }
}

@media (max-width: 575px) {
    .card-masonry {
        column-count: 1;
    }
}

/* ============================================================
   ==>  [ CAROUSEL ]  <==
   ============================================================ */

.carousel {
    border-radius: var(--border-radius-xl);
    overflow: hidden;
}

.carousel .card {
    background-color: transparent;
    border: none;
}

.carousel-control-next, .carousel-control-prev {
    width: 6%;
    color: var(--primary);
    filter: brightness(0) saturate(100%) invert(12%) sepia(98%) saturate(4645%) hue-rotate(344deg) brightness(96%) contrast(103%);
}


#news-carousel .carousel-item .carousel-item-inner {
    position: relative;
    z-index: 0;
    overflow: hidden;
    padding: 3rem 6rem !important;
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 60% auto;
    background-color: var(--bg-dark);
    color: var(--light);
    border-radius: var(--border-radius-xl);
}

#news-carousel .carousel-item .carousel-item-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
            to right,
            rgba(25, 25, 25, 1) 0%,
            rgba(25, 25, 25, 1) 45%,
            rgba(25, 25, 25, 0.3) 75%,
            rgba(25, 25, 25, 0.3) 100%
    );
}

#news-carousel .carousel-item .carousel-item-inner > * {
    position: relative;
    z-index: 2;
}

#logo-carousel .carousel-inner {
    padding: 3rem 6rem !important;
}

@media (max-width: 1281px) {
    #news-carousel .carousel-item .carousel-item-inner {
        background-size: auto 100%;
    }
}

@media (max-width: 575.98px) {
    #news-carousel .carousel-item .carousel-item-inner{
        padding: 0 !important;
    }
    #news-carousel .carousel-item .carousel-item-inner .card-text,
    #news-carousel .carousel-item .carousel-item-inner h5{
        text-shadow: var(--text-shadow);
    }

    #news-carousel .carousel-item .carousel-item-inner::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        background: rgba(25, 25, 25, 0.3);
    }
}


/* ============================================================
   ==>  [ HEADER ]  <==
   ============================================================ */

.navbar-brand img{
    height: 45px;
}

#mainNav .dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 200;
    border-radius: var(--border-radius);
    width: 90%;
    margin: 5px;
}

#mainNav .dropdown-menu .dropdown-item .nav-icon {
    height: 2.5rem;
    width: auto;
    object-fit: contain;
    opacity: 75%;
}
.dropdown-item.active, .dropdown-item:active,
.nav-pills .nav-link.active, .nav-pills .show>.nav-link{
    background-color: var(--bs-dropdown-link-hover-bg);
}
header {
    background: linear-gradient(rgba(0, 0, 0, 0.8), transparent);
    transition: background-color 0.3s ease, background-image 0.3s ease;
}

@media (max-width: 1200px) {

    .navbar-collapse {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 80%;
        max-width: 300px;
        background: var(--dark);
        padding: 6rem 1.5rem 1.5rem;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1050;
    }

    .navbar-collapse.show {
        transform: translateX(0);
    }

    .navbar-toggler {
        border: none;
        display: block;
    }

    .navbar-nav {
        flex-direction: column;
    }

    .navbar-nav.align-items-center {
        display: block;
        position: absolute;
        Top: 3rem;
    }

    .navbar-nav.align-items-center .nav-item:nth-child(2),
    .navbar-nav.align-items-center .nav-item:nth-child(3) {
        display: inline;
    }

    .dropdown-menu .dropdown-item,
    .dropdown-menu .dropdown-item a {
        white-space: normal !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
        hyphens: auto;
    }

}

@media ( min-width: 1201px) {



    header.scrolled {
        background: var(--dark) !important;
    }

    .navbar {
        --bs-navbar-padding-y: 0;
    }

    #navbarContent a.nav-link {
        line-height: 80px;
        color: var(--body-color);
        transition: color 500ms ease-in-out;
    }

    #navbarContent li.nav-item > a.nav-link.active,
    #navbarContent li.nav-item > a.nav-link:hover {
        color: var(--primary);
    }

    .dropdown-menu {
        --bs-dropdown-min-width: 0;
    }

    .nav-item.dropdown > .dropdown-menu {
        display: none;
        margin-top: -35px;
        margin-left: -20px;
    }

    .nav-item.dropdown > .dropdown-menu .flag-icon {
        margin-right: 8px;
    }

    .nav-item.dropdown:hover > .dropdown-menu {
        display: grid;
    }

    header .bg-liquid{
        box-shadow: 0 -6px 15px rgba(0, 0, 0, 0.1), inset 0 -2px 4px rgba(255, 255, 255, 0.6);
    }

    header.scrolled .bg-liquid {
        border-top-right-radius: 0;
        border-top-left-radius: 0;
    }

    header .container {
        position: relative;
    }

    #mainNav .nav-item.dropdown {
        position: static;
    }

    #mainNav .dropdown-menu {
        position: absolute;
        grid-template-columns: repeat(2, 1fr);
        top: 100%;
        left: 0;
        width: 100%;
        margin: 0;
        z-index: 999;
        padding: 30px 50px;
    }


    .nav-pills .nav-link.active,
    .nav-pills .show > .nav-link {
        background-color: transparent;
        color: var(--nav-active);
    }

    .dropdown-item.active {
        color: var(--bs-dropdown-link-hover-color);
        background-color: var(--bs-dropdown-link-hover-bg);
    }
}

@media (max-width: 575.98px) {
    .navbar-brand img{
        height: 35px;
    }
}

/* ============================================================
   ==>  [ VIDEO HERO ]  <==
   ============================================================ */
.hero .bg-cover,
.hero.image-banner {
    background-size: cover;
    background-position: center center;
}

.hero .bg-cover{
    background-position: center right;
}

.video-banner #hero-content {
    height: 60vh;
    min-height: 50rem;
}

.image-banner #hero-content {
    min-height: 25rem;
    padding-top: 150px;
    padding-bottom: 100px;
}

.hero.boxed .boxed-inner{
    margin: 5rem 0 5rem 5rem;
}

#hero-content h1 {
    text-transform: uppercase;
    font-weight: 400;
}

.slanted-bottom {
    transform: skewY(-3deg);
    transform-origin: top left;
    overflow: hidden;
}

.slanted-bottom > * {
    transform: skewY(3deg);
    transform-origin: top left;
}

.video-banner {
    position: relative;
    overflow: hidden;
}

.video-banner video,
.video-banner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.red-bar {
    width: 100%;
    height: 50px;
    background-color: var(--primary);
    transform: skewY(-3deg);
    transform-origin: top left;
    margin-top: -25px;
}


@media (max-width: 767.98px) {
    .hero.boxed .boxed-inner{
        margin: 0;
    }
}
/* ============================================================
   ==>  [ CONTENT BUILDER ]  <==
   ============================================================ */

.heading-underline {
    display: inline-block;
    position: relative;
    margin-bottom: 5rem;
}

.heading-underline::after {
    content: "";
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 4px;
    background-color: var(--primary);
}

#content-builder .container.img-border-radius-xxl .align-items-stretch > div:first-child {
    border-radius: var(--border-radius-xxl);
    overflow: hidden;
}

#content-builder .container.img-border-radius-xl .align-items-stretch > div:first-child {
    border-radius: var(--border-radius-xl);
    overflow: hidden;
}

#content-builder .container-fluid.img-border-radius-xxl .align-items-stretch > div:first-child {
    border-radius: 0 var(--border-radius-xxl) var(--border-radius-xxl) 0;
    overflow: hidden;
}
#content-builder .container-fluid.img-border-radius-xl .align-items-stretch > div:first-child {
    border-radius: 0 var(--border-radius-xl) var(--border-radius-xl) 0;
    overflow: hidden;
}

#content-builder .container-fluid.img-border-radius-xxl .align-items-stretch.flex-md-row-reverse > div:first-child {
    border-radius: var(--border-radius-xxl) 0 0 var(--border-radius-xxl);
}

#content-builder .container-fluid.img-border-radius-xl .align-items-stretch.flex-md-row-reverse > div:first-child {
    border-radius: var(--border-radius-xl) 0 0 var(--border-radius-xl);
}
#content-builder .container-fluid .content {
    padding-left: 3rem !important;
}
#content-builder .container-fluid .flex-md-row-reverse .content {
    padding-right: 3rem !important;
}

#content-builder .container-fluid .flex-md-row-reverse .content {
    padding-right: 3rem !important;
}

#content-builder .container .content{
    padding-right: 0 !important;
}

#content-builder .container .flex-md-row-reverse .content{
    padding-right: 3rem !important;
    padding-left: 0 !important;
}

@media (max-width: 575.98px) {

    #content-builder .container .flex-md-row-reverse .content,
    #content-builder .container .content{
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    #content-builder .container-fluid.img-border-radius-xxl .align-items-stretch.flex-md-row-reverse > div:first-child,
    #content-builder .container-fluid.img-border-radius-xxl .align-items-stretch > div:first-child {
        border-radius: 0;
    }

    #content-builder .content h2{
        margin-top: 2rem;
    }
}

/* ============================================================
   ==>  [ SHOWCASES ]  <==
   ============================================================ */

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(25%, 1fr));
    grid-auto-rows: auto;
    gap: 1rem;
    grid-auto-flow: dense;
}

.masonry-item {
    grid-column: span 1;
    grid-row: span 1;
    background-color: var(--dark);
    background-size: 108%;
    background-position: center;
    transition: background-size 1s ease-in-out;
    border-radius: var(--border-radius-xl);
}

.masonry-item:hover {
    background-size: 120%;
}

.masonry-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.masonry-item.full {
    grid-column: span 4;
    grid-row: span 4;
}

.masonry-item a {
    text-decoration: none;
}

@media (max-width: 575.98px) {
    .masonry-grid {
        grid-template-columns: auto;
    }

    #showcase-detail #showcase-item-3{
        display: none;
    }
}


/* ============================================================
   ==>  [ footer ]  <==
   ============================================================ */

footer {
    position: relative;
    background-color: var(--bg-red);
    overflow: visible;
}

footer a {
    text-decoration: none;
}

footer ul li:before {
    content: '\00BB ';
}

footer ul li a.text-white:hover {
    color: var(--dark);
!important;
}

footer .footer-logo {
    max-width: 240px;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background-color: var(--bg-red);
    transform: skewY(-3deg);
    transform-origin: top left;
}


footer .footer-content {
    position: relative;
    padding-top: 50px;
}

@media (max-width: 575.98px) {
    #footer-logos img{
        width: 100%;
    }

    #colofon .d-flex{
        display: block !important;
    }

    #colofon > div > span:first-child {
        display: block;
        width: 100%;
        text-align: center;
    }

    #colofon > div > span:nth-child(2){
        display: none;
    }
    #colofon > div > .me-3{
        margin-right: 0.5rem !important;
    }
    #colofon > div > a.me-3{
        margin-right: 0 !important;
    }

}
