/*
 * Globals
 */

:root {
    /** custom **/
    --mc-black: #1A1A1A;
    --mc-white: #fff;
    --mc-bluegrey: #EEF2F6;


    /** bs **/
    /*--bs-body-bg: #EEF2F6;*/
    --bs-dark-rgb: 32, 39, 72;
    --bs-light-rgb: 238, 242, 246;
    --bs-body-color: #212121;
    --bs-heading-color: var(--mc-black);
    --bs-font-sans-serif: "Poppins";
    --bs-body-font-weight: 300;
    --bs-body-line-height: 1.7;
    --bs-link-color: var(--mc-white);
    --bs-secondary-color: #808080;
}

/** variables defined in bs files **/

body {
    -webkit-font-smoothing: antialiased;
}

.h1, .h2, .h3, .h4, .h5, .h6,
h1, h2, h3, h4, h5, h6 {
    color: var(--bs-heading-color);
}

strong {
    font-weight: 500;
}

.lead {
    font-weight: 200;
}

@media screen and (min-width: 769px) {
.display-5 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.4rem;
    line-height: 2.8rem;
}
}

.nav {
    --bs-nav-link-color: #212121;
}
.nav-link:hover, .nav-link:focus {
    color: var(--mc-white);
}
.nav-link {
    color: var(--bs-nav-link-color);
}
.navbar-nav .nav-link.active {
    --bs-navbar-active-color: var(--mc-white);
}

.nav .nav-link.active {
    color: var(--mc-white);
}

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

.bg-light {
    background: var(--mc-bluegrey);
}

.card {
    --bs-card-border-color: #e2e6eb;
    --bs-card-inner-border-radius: calc(var(--bs-border-radius-2xl) - (var(--bs-border-width)));
    --bs-card-border-radius: var(--bs-border-radius-2xl);
    overflow: hidden;
}

/** custom **/

.display-5 {
    font-size: 5rem;
}

.fw-bold {
    font-weight: 400 !important;
}

.card-body {
    background: #fff;
}

.card:hover {
    box-shadow: var(--bs-box-shadow-lg);
    transition: box-shadow 0.3s ease;
}

.subheading {
    color: var(--bs-secondary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;

}

main a {
    color: var(--mc-white);
    text-decoration: none;
}

main a:hover {
    text-decoration: underline;
}

footer nav a {
    background: var(--mc-black);
    border-radius: 30px;
}

footer nav a img {
    width: 36px;
    padding: 6px;
}

/** nav **/

.bg-dark .nav-pills .nav-link.active, .nav-pills .show>.nav-link {
    color: var(--mc-white);
    background: rgba(255, 255, 255, .1);
    font-weight: 500;
}

.bg-white .nav-pills .nav-link.active, .nav-pills .show>.nav-link {
    color: var(--mc-black);
    background: rgba(32, 39, 72, .08);
    font-weight: 500;
}

.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
    background: rgba(238, 242, 246, 0.1);
    font-weight: 500;
}

.nav-pills .nav-link {
    border-radius: 999px;
}

.nav-pills .tabbed .nav-link {
    color: var(--mc-white);
    background: var(--mc-black);
    font-weight: 500;
}

.tabbed .nav-link.active, 
.nav-pills .show>.nav-link {
    color: var(--mc-black);
    background: rgba(255, 255, 255, 1);
    font-weight: 500;
}

.tabbed.nav-pills .nav-link:hover {
    color: var(--mc-black);
    background: rgba(255, 255, 255, .5);
}

.tabbed.nav-pills .nav-item {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.hero p.lead {
    padding-bottom: 1rem;
    margin-bottom: 0;
}

.btn {
    border-radius: var(--bs-border-radius-2xl);
    padding: 12px 28px;
}

.btn-primary {
    background-color: var(--mc-black); /* Custom primary color */
    border-color: var(--mc-black);
    color: white;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-primary:hover, 
.btn-primary:focus {
  background-color: #444; /* Slightly darker tone for hover */
  border-color: #444;
  color: white;
  text-decoration: none;
}

.btn-primary:active {
  background-color: #666666!important; /* Even darker tone for active state */
  border-color: #666666!important;
  color: white;
}

.btn-secondary {
  background-color: #ffffff; /* Custom secondary color */
  border-color: var(--mc-black);
  color: var(--bs-body-color);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-secondary:hover, 
.btn-secondary:focus {
  background: rgba(32, 39, 72, .08); /* Slightly lighter tone for hover */
  border-color: rgba(32, 39, 72, .08);
  color: var(--mc-black);
  text-decoration: none;
}

.btn-secondary:active {
  background-color: #666666; /* Even lighter tone for active state */
  border-color: #666666;
  color: white;
}

.toolkit-layout {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-direction: row;
}
@media only screen and (max-width: 768px) {
    .toolkit-layout {
        flex-direction: column;
    }
}

/* Prevents the page from jumping */
        .carousel-inner {
            min-height: 190px; /* Adjust height based on longest quote */
        }

        /* Make sure each item is centered */
        .carousel-item {
            min-height: 190px; /* Adjust as needed */
        }

        /* Move indicators below the quote */
        .carousel-indicators {
            position: absolute;
            bottom: -30px; /* Moves indicators further down */
        }

        /* Custom indicator colors */
        .carousel-indicators [data-bs-target] {
            background-color: #202748 !important; /* Inactive state */
            width: 10px;
            height: 10px;
            border-radius: 50%;
            border: none;
            opacity: 1;
        }

        /* Active indicator color */
        .carousel-indicators .active {
            background-color: rgba(32, 39, 72, .2) !important; /* Active state */
        }


/* Home page scrolling */
header {
    position: relative;
    z-index: 3;
}
.hero {
    position: fixed;
    inset: 0;
    height: 100vh;
    width: 100%;
    background: #212529;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
#hero {
    will-change: opacity;
}
#heroText {
    transform-origin: center center;
    will-change: transform;
}
.hero-spacer {
    height: 100vh;
}
main,
footer {
    position: relative;
    z-index: 2;
    background: #fff;
}



/* Base card */
.case-card {
  min-height: 520px;
  color: #000;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  will-change: transform;
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.case-card .row {
  min-height: 100%;
}


/* Visual column goes edge-to-edge */
.case-card__visual {
  padding: 0;
  align-self: stretch;
}

/* Visual floats slightly more than content */
.case-card__visual img {
  transition: transform 0.6s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 4px;
}

.case-card:hover .case-card__visual img {
  transform: translateY(4px) scale(1.02);
}

/* Background layer */
.case-card__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: transparent; /* 👈 important */
}

/* Content */
.case-card__content {
  position: relative;
  z-index: 2;
  padding: 4rem;
}

/* Logo */
.case-card__logo img {
  height: 32px;
}

/* Title */
.case-card__title {
  font-weight: 600;
  max-width: 480px;
  -webkit-font-smoothing: antialiased;
}

/* Badges */
.case-card__badges .badge {
  background: rgba(0,0,0,0.1);
  color: #000;
  padding: 0.5rem 0.9rem;
  font-weight: 500;
}

/* Stats */
.case-card__stats .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.case-card__stats strong {
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
  -webkit-font-smoothing: antialiased;
}

.case-card__stats span {
  font-size: 0.875rem;
  opacity: 0.8;
  text-align: center;
}

/* Visual layer */
.case-card__visual {
  position: relative;
  z-index: 1;
  padding: 0; /* important */
  display: flex;
  align-items: stretch;
}

/* Card themes */

/* Heineken */

.theme-heineken .case-card__bg {
  background: linear-gradient(
    135deg,
    #1f5b2c 0%,
    #1b4f27 100%
  );
}

.theme-heineken,
.theme-heineken h2 {
  color: #ffffff;
}

.theme-heineken .case-card__badges .badge {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* Beerwulf */

.theme-beerwulf .case-card__bg {
  background: #333;
}

.theme-beerwulf,
.theme-beerwulf h2 {
  color: #ffffff;
}

.theme-beerwulf .case-card__badges .badge {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.theme-beerwulf .case-card__visual {
    /**padding: 3rem;**/
    align-self: center;
}

.theme-beerwulf .case-card__visual img {
        object-fit: contain;
    height: auto;
    max-height: 420px;
}

.green-bg .case-card__bg {
  background: linear-gradient(237deg, rgb(119 148 35) 0%, rgba(172, 203, 71, 1) 100%);
}

/* Odido */

.theme-odido .case-card__bg {
  background: linear-gradient(
    135deg,
    #9bbcff 0%,
    #c7b6ff 45%,
    #ffb38a 100%
  );
}

.theme-odido {
  color: #000000;
}

.theme-odido .case-card__badges .badge {
  background: rgba(0, 0, 0, 0.1);
  color: #000000;
}

@media (max-width: 991px) {

  .case-card {
    min-height: auto;
  }

  .case-card__content {
    padding: 2rem;
  }

  .case-card__visual {
    order: -1;
    padding: 0;
  }

  .case-card__visual img {
    max-height: 220px;
    object-fit: cover;
    margin: 0;
  }

    .display-5 {
    font-size: 3.5rem;
  }

.profile {
    width: 60%!important;
}

.case-card__stats strong {
    font-size: 1.6rem;
}

}


@media (hover: hover) and (pointer: fine) {

  .case-card__inner {
    transition: transform 0.15s ease-out;
  }

}

@media (prefers-reduced-motion: reduce) {
  .case-card,
  .case-card * {
    transition: none !important;
    transform: none !important;
  }
}

