/* --- CSS RESET & GLOBAL STYLES --- */
:root {
    --primary-red: #E50914;
    --background-dark: #121212;
    --text-light: #F5F5F5;
    --text-muted: #A0A0A0;
    --container-dark: #1E1E1E;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for sticky header */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-dark);
    color: var(--text-light);
    line-height: 1.6;
}

.skip-to-main-content-link {
	position: absolute;
	left: -9999px;
	z-index: 999;
	padding: 1em;
	background-color: var(--colour-theme-blue-dark);
	color: white!important;
	opacity: 0;
}

.skip-to-main-content-link:focus {
	left: 0%;
	opacity: 1;
}        

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 0;
}

h1, h2, h3 {
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
}

h3 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.strapline {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    max-width: 500px;
}

.button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.button:hover {
    transform: scale(1.05);
}

.button-primary {
    background-color: var(--primary-red);
    color: var(--text-light);
}

.button-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--text-light);
}

/* --- FADE-IN ANIMATION --- */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- HEADER --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: padding 0.3s ease, background-color 0.3s ease;
}

.header.scrolled {
    padding: 10px 5%;
    background-color: rgba(18, 18, 18, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-light);
    text-decoration: none;
}

.logo img{height:75px;transition: all 0.3s ease;}
.scrolled .logo img{height:50px;}
footer .logo img{height:75px;}

.logo span {
    color: var(--primary-red);
}

.header-contact {
    display: none; /* Hidden on mobile by default */
}

.header-contact a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.2s;
}
.header-contact a:hover {
    color: var(--text-light);
}

.mobile-contact-btn {
    display: block;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
}

/* --- MOBILE CONTACT PANEL --- */
.mobile-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--container-dark);
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1001;
    padding: 80px 30px 30px;
    display: flex;
    flex-direction: column;
}

.mobile-panel.open {
    transform: translateX(0);
}

.mobile-panel a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.mobile-panel a i {
    margin-right: 15px;
    width: 20px;
    color: var(--primary-red);
}

.close-panel-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    display: flex;
    min-height: 100vh;
    padding-top: 80px; /* Header offset */
    flex-direction: column;
    background-image: url('../img/backgrounds/van.webp');
    background-position:center left;
    background-size:cover;
}

.hero-left {
    position: relative;
    flex: 1;
    width: 100%;
    min-height: 50vh;

    background-image: linear-gradient(45deg, rgba(18,18,18,0.8) 30%, transparent 50%, transparent);
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem 5%;
    transition: background-image 1s ease-in-out;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-right {
    flex: 1;
    width: 100%;
    padding: 2rem 5%;
}

.hero.banner {            
    min-height: 70vh;
    padding-top:0;
}

.hero.motorsports{
    background-position:center left;
    background-image: url('../img/backgrounds/motorsport.webp');
}

.hero.banner.banner-slim {            
    min-height: 25vh;
    padding-top:0;
    background: var(--primary-red);
    color: white;
    align-items: center;
    justify-content: center;
}

.hero.banner.banner-slim.banner-dark {
    background: none;
    color: white;
}

.hero.banner.banner-slim p {color:inherit;}

.hero.banner.banner-slim .hero-left {
    background: transparent;
    justify-content: center;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    height: 100%;
}


        .bento-link {
            position: relative;
            border-radius: 8px;
            overflow: hidden;            
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            min-height: 150px;
            background-size: cover;
            background-position: center;
            color: var(--text-light);
            transition: all 0.3s ease;
            text-decoration: none;
        }
        /* linear-gradient(75deg, rgba(18,18,18,0.8) 5%, transparent),*/
        .bento-link-inner{
            padding: 1rem;
            width:100%; height:100%;
            background:  linear-gradient(to top, rgba(0,0,0,0.5) 30%, transparent 50%, transparent), linear-gradient(45deg, rgba(0, 0, 0, 0.4) 20%, transparent 50%, transparent);
            transition: all 0.3s ease-in-out;
            display:flex; flex-direction:column; justify-content: end;
        }

        .bento-link:hover {
            transform: scale(1.03);
        }

        .bento-link h4 {
            font-size: 1rem;
            font-weight: 600;
            transition: transform 0.3s ease-in-out;
            margin: 0;
        }

        .bento-link p {
            font-size: 0.8rem;
            color: var(--text-muted);
            opacity: 1;            
            margin: 0;
            max-height: 0rem;
            overflow: hidden;
            transition: all 0.3s ease-in-out;
        }



        .bento-link:hover .bento-link-inner p {
            opacity: 1;
            max-height: 3rem;
        }
/*
.bento-link {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 150px;
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    background-color: var(--container-dark);
    background-blend-mode: multiply;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.bento-link:hover {
    transform: scale(1.03);
}

.bento-link h4 {
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.3s ease-in-out;
    margin: 0;
}

.bento-link p {
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0;
    transition: opacity 0.3s ease-in-out, max-height 0.4s ease-in-out;
    margin: 0;
    max-height: 0;
    overflow: hidden;
}

.bento-link:hover h4 {
    transform: translateY(-2.2em); 
}

.bento-link:hover p {
    opacity: 1;
    max-height: 4em;
}
*/
.bento-link i { display: none; } /* Hide icons by default */

/* --- TESTIMONIALS SECTION --- */
.testimonials {
    background-color: var(--container-dark);
    overflow: hidden; /* Important for slider */
}

.testimonial-slider {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-item {
    display: none;
    animation: fadeIn 1s forwards;
}

.testimonial-item.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.testimonial-quote {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: 600;
}

.testimonial-author span {
    display: block;
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- ABOUT SECTION --- */
.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

/* --- SERVICES SECTION --- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.service-card {
    text-align: left;
}

.service-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.service-card:hover img {
    transform: scale(1.03);
}

/* --- FINAL CTA SECTION --- */
.final-cta {
    background-color: var(--container-dark);
    text-align: center;
}

.final-cta h2 {
    margin-bottom: 1.5rem;
}

.final-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --- FOOTER --- */
.footer {
    padding: 40px 0;
    background-color: #000;
    text-align: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.footer-column a, .footer-column p {
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-column a:hover {
    color: var(--primary-red);
}

.social-icons a {
    display: inline-block;
    margin: 0 10px;
    font-size: 1.5rem;
}

.accreditations {
    display:flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
}

.accreditations img {
    height: 50px;
    opacity: 1;
}

.container.footer-rows{
    padding-top:0;
}

.footer-row{
    display:flex; justify-content: center;
}

.footer-row .accreditations img{height:80px;}

h3.strap{font-size:1rem;}

    ul.service-list{
        height: auto;
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin: 0;
        font-size:1.2rem;
        padding-left: 1.5em; 
        color: white;
        list-style: none;
    }

    ul.service-list li::before {
        content: "";
        display: inline-block;
        width: 1em; height: 1em;
        margin-right: 0.5em;
        vertical-align: middle;        
        background-image: url("../icons/icon-check.svg");        
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        fill: white;
        filter: brightness(0) invert(1);
    }    

    ul.service-list li .service-content {display:flex; flex-direction:column; gap:.5rem;}
    ul.service-list li .service-content small{font-size:0.8rem;}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 767px) {

    .footer-row{
        display:flex; justify-content: center;
    }
    .bento-link {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        min-height: 120px;
        background-image: none !important;
        background-color: var(--background-dark);
    }

    .bento-link h4 {
        font-size: 0.9rem;
        transform: none !important; /* Disable hover effect */
    }
    .bento-link i {
        display: block;
        font-size: 2rem;
        margin-bottom: 0.5rem;
        color: var(--primary-red);
    }
    .bento-link p { /* Hide paragraph on mobile */
        display: none;
    }

    .hero-left{min-height: 50vh;}
    .hero-right{display:none;}
    .hero.banner-slim .hero-left{min-height: auto;}
    .hero.banner-slim .hero-right{display:flex;padding-top:0;}
    .hero.banner-slim .hero-left br{display:none;}

    .hero :is(h1,h2){
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
        text-align: start;
    }
}


@media (min-width: 768px) {
    .mobile-contact-btn { display: none; }
    .header-contact { display: block; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(4, 1fr); text-align: left; }
    .footer { text-align: left; }
}

@media (min-width: 992px) {
    .hero {
        flex-direction: row;
    }
    h1 { font-size: 3.5rem; }

    

    .hero :is(h1,h2){
        font-size: 3.5rem;
        margin-bottom: 0.5rem;
        text-align: start;
    }

    .hero-left {
        padding: 4rem;
    }

    .hero-right {
        padding: 6rem;
    }

    .hero.banner .hero-right{padding: 4rem;}
    .hero.banner-slim .hero-right{display:flex;align-items:center;}

    .bento-link h4 {
        font-size: 1.25rem;
    }
    .services-grid { grid-template-columns: repeat(4, 1fr); }
}