/*
 * tomgrafix.css — McLaren Labs custom styles
 * Rewritten for Bootstrap 5 compatibility (2026)
 * Preserves visual identity: Titillium Web, colors, animations, layout
 */

/* ==========================================================================
   Typography
   ========================================================================== */

body, p {
    font-family: "Titillium Web", Titillium, sans-serif !important;
    line-height: 1.8;
    color: #07232c;
}

h1 {
    font-family: Titillium Web, Titillium, sans-serif !important;
    font-size: 30px;
    text-transform: uppercase;
    color: #fff;
    font-weight: 400;
    margin-bottom: 36px;
}

h2 {
    font-family: Titillium Web, Titillium, sans-serif !important;
    font-size: 26px;
    text-transform: uppercase;
    color: #fff;
    font-weight: 400;
    margin-bottom: 30px;
}

h3 {
    font-family: Titillium Web, Titillium, sans-serif !important;
    font-size: 20px;
    line-height: 1.375em;
    color: #fff;
    font-weight: 300;
    margin-bottom: 26px;
}

h4 {
    font-size: 20px;
    line-height: 1.375em;
    color: #303030;
    font-weight: 300;
    margin-bottom: 26px;
}

h5 {
    font-size: 18px;
    line-height: 1.15em;
    color: #11576f;
    font-weight: 200;
    margin-bottom: 24px;
}

h6 {
    font-size: 14px;
    line-height: 1em;
    color: #11576f;
    font-weight: 200;
    margin-bottom: 20px;
}

p {
    font-size: 1.2em;
    text-align: left;
}


/* ==========================================================================
   Jumbotron (custom — removed from BS5)
   ========================================================================== */

.jumbotron {
    background-image: url(/static/icons/keyboard2.png);
    background-position: center;
    background-size: cover;
    text-align: center !important;
    letter-spacing: .2em;
    color: #fff;
    margin-bottom: 0px;
    padding: 10px 25px;
    border-radius: 0;
}

.jumbotron .h1,
.jumbotron h1 {
    padding-top: 4em;
    font-weight: 200;
}


/* ==========================================================================
   Sections
   ========================================================================== */

.mclaren-section {
    padding: 60px 50px;
}

.clearfix::after {
    content: "";
    clear: both;
    display: table;
}


/* ==========================================================================
   Brand Colors
   ========================================================================== */

.bg-mclaren-blue {
    background-color: rgba(51, 180, 224, 0.9);
}

/* orange link buttons on blue background */
.bg-mclaren-blue .bg-mclaren-orange {
    color: #fff;
}
a.bg-mclaren-orange:hover {
    color: #000;
}

.bg-mclaren-green {
    background-color: rgba(157, 211, 57, 0.9);
}

.bg-mclaren-orange {
    background-color: rgba(255, 120, 51, 0.9);
}

/* blue link buttons on orange background */
.bg-mclaren-orange .bg-mclaren-blue {
    color: #fff;
}
a.bg-mclaren-blue:hover {
    color: #000;
}

.bg-mclaren-mag {
    background-color: rgba(204, 51, 153, 0.9);
}

.bg-mclaren-yel {
    background-color: rgba(255, 240, 51, 0.9);
}


/* ==========================================================================
   Logo
   ========================================================================== */

.logo-small {
    color: #fff;
    font-size: 50px;
}

.logo {
    color: #11576f;
    font-size: 250px;
}


/* ==========================================================================
   Thumbnails (legacy compat)
   ========================================================================== */

.thumbnail {
    padding: 0 0 15px 0;
    border: none;
    border-radius: 0;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    margin-bottom: 10px;
}


/* ==========================================================================
   Carousel — BS5 updated selectors
   ========================================================================== */

/* Carousel item text (testimonials) */
.carousel-item h4 {
    font-size: 19px;
    line-height: 1.375em;
    font-weight: 400;
    font-style: italic;
    margin: 70px 0;
}

.carousel-item span {
    font-style: normal;
}


/* ==========================================================================
   Cards (replaces BS3 .panel)
   ========================================================================== */

.card {
    border: 1px solid #33b4e0;
    border-radius: 0 !important;
    transition: box-shadow 0.5s;
}

.card:hover {
    box-shadow: 5px 0px 40px rgba(0, 0, 0, .2);
}

.card-footer .btn:hover {
    border: 1px solid #33b4e0;
    background-color: #fff !important;
    color: #f4511e;
}

.card-header {
    color: #fff !important;
    background-color: rgba(245, 245, 245, 0.2);
    padding: 25px;
    border-bottom: 1px solid transparent;
    border-radius: 3px !important;
}

.card-header-orange {
    color: #fff !important;
    background-color: rgba(231, 131, 101, 0.9);
    padding: 25px;
    border-bottom: 1px solid transparent;
    border-radius: 3px !important;
}

.card-header-mag {
    color: #fff !important;
    background-color: rgba(204, 51, 153, 0.7);
    padding: 25px;
    border-bottom: 1px solid transparent;
    border-radius: 3px !important;
}

.card-footer {
    background-color: white !important;
}

.card-footer h3 {
    font-size: 32px;
}

.card-footer h4 {
    color: #aaa;
    font-size: 14px;
}

.card-footer .btn {
    margin: 15px 0;
    background-color: rgba(157, 211, 57, 0.9);
    color: #fff;
}


/* ==========================================================================
   Navbar — BS5 updated
   ========================================================================== */

.navbar {
    min-height: 2em;
    margin-bottom: 0;
    background-color: rgba(10, 52, 66, 0.50);
    z-index: 9999;
    border: 0;
    font-size: 1.6em !important;
    font-weight: 200;
    line-height: 2em !important;
    letter-spacing: 0.10em;
    border-radius: 0;
    font-family: Titillium Web, sans-serif;
}

/* White text for navbar links */
.navbar .nav-link,
.navbar .navbar-text {
    color: #fff !important;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-item.active .nav-link {
    color: #33b4e0 !important;
}

/* Active link highlight (scrollspy) */
.navbar .nav-item.active .nav-link {
    border-radius: 10px;
    background-color: #e7e7e7;
}

/* Navbar text alignment */
.navbar .navbar-text {
    margin-top: 0px;
    margin-left: 10px;
    line-height: 50px;
}

/* Nav item padding */
.navbar .nav-link {
    padding: 15px 10px 15px 10px;
}

/* Navbar toggler for mobile */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


/* ==========================================================================
   Footer
   ========================================================================== */

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

footer .bi,
footer .fa,
footer i {
    text-align: center;
    font-size: 20px;
    margin-bottom: 20px;
    color: #33b4e0;
}


/* ==========================================================================
   Slide Animation
   ========================================================================== */

.slideanim {
    visibility: hidden;
}

.slide {
    animation-name: slide;
    -webkit-animation-name: slide;
    animation-duration: .35s;
    -webkit-animation-duration: .35s;
    visibility: visible;
}

.slider-text {
    width: 85%;
    padding-left: 15%;
}

@keyframes slide {
    0% {
        opacity: 0;
        transform: translateY(30%);
    }
    100% {
        opacity: 1;
        transform: translateY(0%);
    }
}

@-webkit-keyframes slide {
    0% {
        opacity: 0;
        -webkit-transform: translateY(30%);
    }
    100% {
        opacity: 1;
        -webkit-transform: translateY(0%);
    }
}


/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media screen and (max-width: 768px) {
    .col-sm-4 {
        text-align: center;
        margin: 25px 0;
    }
    .btn-lg {
        width: 100%;
        margin-bottom: 35px;
    }
}


/* ==========================================================================
   Navbar and Logo — Responsive
   ========================================================================== */

@media only screen and (max-width: 767.98px) {
    /* Mobile phones */
    .navbar {
        padding-top: 0px;
        padding-bottom: 0px;
    }
    .mclaren-nav {
        padding-left: 0px;
        padding-top: 80px;
    }
    .icecream {
        margin-top: 10px;
        margin-left: 10px;
        margin-bottom: 10px;
        width: 80px;
        height: 80px;
    }
    .theHowTheWhyCarousel {
        height: 300px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991.98px) {
    /* Tablets */
    .navbar {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .icecream {
        margin-top: 5px;
        margin-left: 5px;
        width: 90px;
        height: 90px;
    }
    .jumbotron h1 {
        font-size: 36px;
    }
    .theHowTheWhyCarousel {
        height: 250px;
    }
}

@media only screen and (min-width: 992px) {
    /* Desktops */
    .navbar {
        padding-top: 20px;
        padding-bottom: 20px;
    }
    .mclaren-nav {
        padding-left: 160px;
        padding-top: 0px;
    }
    .icecream {
        width: 120px;
        height: 120px;
    }
    .jumbotron h1 {
        font-size: 48px;
    }
    .theHowTheWhyCarousel {
        height: 200px;
    }
}
