:root {
    --racing-red: #dc3545;
    --racing-red-dark: #c01d2e;
    --racing-black: #000000;
    --racing-gray-dark: #222222;
    --racing-gray: #333333;
    --racing-gray-light: #f1f1f1;
    --racing-light: #ffffff;
}

/* Global Styles */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: var(--racing-gray-light);
    color: var(--racing-black);
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--racing-black);
}

/* Topbar Styling */
.topbar {
    background-color: var(--racing-gray) !important;
    color: var(--racing-light);
    padding: 8px 0;
}

.topbar a {
    color: var(--racing-light);
}

.topbar a:hover {
    color: var(--racing-red);
}

.nav-item {
    margin: 0;
    display: flex;
    align-items: center;
}

/* Header/Banner Styling */
.page-header {
    position: relative;
    overflow: hidden;
    background-color: var(--racing-black);
    padding: 100px 0;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, var(--racing-black) 0%, rgba(220, 53, 69, 0.9) 100%);
    z-index: 1;
}

.page-header-inner {
    position: relative;
    z-index: 2;
}

.page-header--image .page-header__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

/* Title and breadcrumbs carry their own contrast (text-shadow, dark pill),
   so the overlay only has to take the edge off the photo. */
.page-header--image::before {
    background: rgba(0, 0, 0, 0.35);
}

/* style.css darkens the inner block by 70% for the gradient variant; stacked on
   top of a photo that leaves the banner almost black. */
.page-header--image .page-header-inner {
    background: transparent;
}

.page-header h1 {
    font-size: 4.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    color: var(--racing-light);
}

.banner-carousel .carousel-item {
    position: relative;
    min-height: 600px;
}

.banner-carousel__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.banner-carousel__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.banner-carousel__caption {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    min-height: 600px;
}

/* As a flex item the row would shrink to its content and sit left of centre. */
.banner-carousel__caption > .row {
    flex: 1;
}

@media (prefers-reduced-motion: reduce) {
    .banner-carousel .carousel-item {
        transition: none;
    }
}

@media (max-width: 767px) {
    .banner-carousel .carousel-item,
    .banner-carousel__caption {
        min-height: 420px;
    }
}

/* Breadcrumb Styling */
.breadcrumb {
    background: var(--racing-gray-dark);
    display: inline-flex;
    padding: 15px 30px;
    border-radius: 0;
    margin: 0;
    border-left: 4px solid var(--racing-red);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--racing-red);
}

.breadcrumb-item a {
    color: var(--racing-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--racing-red);
}

.breadcrumb-item.active {
    color: var(--racing-red);
    font-weight: 700;
}

/* Content Section Styling */
.container-xxl {
    background-color: var(--racing-gray-light);
    padding: 80px 0;
}

.container-xxl h2,
.container-xxl h3,
.container-xxl h4,
.container-xxl h5,
.container-xxl h6 {
    color: var(--racing-black);
}

.container-xxl p {
    color: var(--racing-gray-dark);
}

/* Card Styling */
.card {
    background-color: var(--racing-light);
    border: none;
    border-radius: 0;
    border-bottom: 4px solid var(--racing-red);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.3);
}

/* Footer Enhancements */
.footer {
    background-color: var(--racing-black);
    color: var(--racing-light);
    padding: 80px 0;
    border-top: 4px solid var(--racing-red);
}

/* WhatsApp Button */
.back-to-top {
    position: fixed;
    background-color: #25D366; /* WhatsApp green */
    border-radius: 50%; /* Make it circular */
    width: 60px;
    height: 60px;
    line-height: 60px;
    right: 30px;
    bottom: 30px;
    transition: all 0.3s ease;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Ensure visibility */
    opacity: 1;
    visibility: visible;
}

.back-to-top i {
    font-size: 24px; /* Larger icon */
}

.back-to-top:hover {
    background-color: #128C7E; /* Darker WhatsApp green */
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}


/* Social Icons */
.social-icons a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--racing-light);
    border: 2px solid var(--racing-red);
    margin: 0 5px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--racing-red);
    color: var(--racing-light);
    transform: translateY(-3px) rotate(360deg);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

/* Custom Divider */
.section-divider {
    height: 4px;
    background: linear-gradient(to right, var(--racing-red), var(--racing-black));
    margin: 40px 0;
}

/* Text Highlights */
.text-highlight {
    color: var(--racing-red);
    font-weight: 700;
}

/* Container Background */
.container {
    position: relative;
    z-index: 2;
}

/* Link Styling */
a {
    color: var(--racing-red);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--racing-red-dark);
    text-decoration: none;
}

/* Button Typography */
.btn {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Section Headings */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    word-break: break-word;
    overflow-wrap: break-word;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    height: 4px;
    background: var(--racing-red);
}

@media (max-width: 991.98px) {
    .nav-item {
        width: 100%;
        display: block;
        margin: 5px 0;
    }
}

/* Main Navigation */
.main-nav {
    background-color: var(--racing-black);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 110px;
}

/* Logo */
.nav-logo {
    display: block;
    height: 100%;
}

.nav-logo img {
    height: 100%;
    width: auto;
}

/* Main Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-link {
    color: var(--racing-light);
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--racing-red);
}

/* Disabled link styles - for Pimcore Link document types */
.nav-link-disabled {
    cursor: default;
    pointer-events: none;
    color: var(--racing-light);
}

.nav-link-disabled:hover {
    color: var(--racing-light);
}

/* On mobile, make disabled links in submenus clickable to toggle submenu */
@media (max-width: 991px) {
    .has-submenu .nav-link-disabled {
        pointer-events: auto;
        cursor: pointer;
        flex: 1;
    }
}

/* Submenu Toggle Button */
.submenu-toggle {
    background: none;
    border: none;
    padding: 0;
    margin-left: 6px;
    color: var(--racing-red);
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.submenu-toggle i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

/* Submenu */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--racing-black);
    min-width: 200px;
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    border-top: 2px solid var(--racing-red);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.has-submenu:hover .submenu-toggle i,
.has-submenu:focus-within .submenu-toggle i {
    transform: rotate(90deg);
}

.submenu-link {
    display: block;
    color: var(--racing-light);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.submenu-link:hover,
.submenu-link.active {
    color: var(--racing-light);
    background-color: var(--racing-red);
}

/* Disabled submenu link styles - for Pimcore Link document types */
.submenu-link-disabled {
    cursor: default;
    pointer-events: none;
    color: var(--racing-light);
}

.submenu-link-disabled:hover {
    color: var(--racing-light);
    background-color: transparent;
}

/* CTA Button */
.cta-button {
    background-color: var(--racing-red);
    color: var(--racing-light);
    text-decoration: none;
    padding: 1rem 2rem;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--racing-red-dark);
    color: var(--racing-light);
}

/* Mobile Toggle Button */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.mobile-toggle span,
.mobile-toggle span::before,
.mobile-toggle span::after {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--racing-red);
    transition: all 0.3s ease;
}

.mobile-toggle span::before,
.mobile-toggle span::after {
    content: '';
    position: absolute;
}

.mobile-toggle span::before {
    transform: translateY(-8px);
}

.mobile-toggle span::after {
    transform: translateY(8px);
}

/* Mobile Menu */
@media (max-width: 991px) {
    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        right: -300px;
        width: 300px;
        height: calc(100vh - 80px);
        background-color: var(--racing-black);
        flex-direction: column;
        align-items: stretch;
        padding: 2rem;
        transition: right 0.3s ease;
        gap: 1rem;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 1rem 0;
        display: block;
    }

    .submenu {
        position: static;
        background-color: transparent;
        border-top: none;
        border-left: 2px solid var(--racing-red);
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        margin-left: 1rem;
    }

    .has-submenu.active .submenu {
        display: block;
    }

    .has-submenu.active .submenu-toggle i {
        transform: rotate(90deg);
    }
}

/* Prevent horizontal scroll/whitespace */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Responsive fix for big titles */
.big-title, .display-3 {
    word-break: break-word;
    line-height: 1.1;
}

@media (max-width: 767.98px) {
    .big-title {
        font-size: 2.2rem !important;
        text-align: left;
    }
    .display-3 {
        font-size: 2rem !important;
        text-align: left;
    }
    .container, .container-xxl {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    .service-section .section-title {
        max-width: 90vw;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        font-size: 2rem !important;
        word-break: break-word;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.container,
.container-xxl,
.row,
[class*="col-"] {
    box-sizing: border-box;
}

img,
video {
    max-width: 100vw;
    height: auto;
    display: block;
}

.divider-area-brick {
    background: var(--racing-black);
    border-top: 2px solid var(--racing-red);
    border-bottom: 2px solid var(--racing-red);
    margin: 2.2rem 0;
    padding: 1.2rem 0 1.2rem 0;
    /* border-radius: 6px; */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
}

.divider-area-brick .divider-text {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    font-family: 'Oswald', 'Roboto', sans-serif;
    position: relative;
    display: inline-block;
    letter-spacing: 0.5px;
    margin: 0 auto;
    padding-bottom: 0.2rem;
}

.divider-area-brick .divider-text::after {
    content: '';
    display: block;
    margin: 0.3rem auto 0 auto;
    width: 32%;
    height: 2px;
    background: var(--racing-red);
    border-radius: 1px;
}

/* Content Block Styling */
.content-block {
    padding: 80px 0;
}

.content-block .big-title {
    margin-bottom: 2rem;
    font-size: 2.5rem;
    line-height: 1.2;
}

.content-block .intro-text {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--racing-gray-dark);
}

.content-block .content {
    margin-bottom: 2rem;
}

.content-block .content, .content-block .content *, .content-block .content p {
    color: #fff !important;
}

/* Ensure all text within the content block is white */
.content-block .content * {
    color: #fff !important;
}

/* Remove any conflicting rules */
.content-block .content p {
    margin-bottom: 1rem;
    /* color: var(--racing-gray-dark); */ /* Removed to ensure white text */
}

.content-block .cta-button-wrapper {
    margin-top: 2rem;
}

@media (max-width: 767.98px) {
    .content-block {
        padding: 40px 0;
    }

    .content-block .big-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .content-block .intro-text {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
}

/* Feature Block Styling */
.feature-block {
    padding: 80px 0;
}

.feature-block .section-title {
    margin-bottom: 1.5rem;
}

.feature-block .intro-text {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--racing-gray-dark);
}

.feature-block .feature-item {
    margin-bottom: 1rem;
}

.feature-block .feature-item i {
    font-size: 1.2rem;
}

.feature-block .feature-item h6 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.feature-block .cta-button-wrapper {
    margin-top: 2rem;
}

@media (max-width: 767.98px) {
    .feature-block {
        padding: 40px 0;
    }

    .feature-block .section-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .feature-block .intro-text {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .feature-block .feature-item {
        margin-bottom: 0.75rem;
    }
}

.service-section .content, .service-section .content *, .service-section .content p {
    color: #fff !important;
}

.service-section .content *,
.service-section .intro-text * {
    color: #fff !important;
}

.content-service {
    /* Copy all styles from .content except text color */
    padding-top: 25px;
    /* Add any other styles you want to copy */
}

/* Ensure the text color is not overridden */
.content-service, .content-service *, .content-service p {
    color: inherit !important;
}

/* Content Block Center Styling */
.content-block-center {
    padding: 80px 0;
    background-color: var(--racing-black);
}

.content-block-center .section-title {
    color: var(--racing-light);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.content-block-center .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 4px;
    background: var(--racing-red);
}

.content-block-center .section-subtitle {
    color: var(--racing-light);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.content-block-center .content {
    color: var(--racing-light);
    max-width: 800px;
    margin: 0 auto;
}

.content-block-center .content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

@media (max-width: 767.98px) {
    .content-block-center {
        padding: 40px 0;
    }

    .content-block-center .section-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .content-block-center .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
}

/* Footer fade-in (replaces animate.css/wow.js) */
.wow {
    opacity: 0;
    transition: opacity 0.6s ease;
}
.wow.is-visible {
    opacity: 1;
}
