/*colours*/
/*green b5f411*/
/*light green e7f0ce*/
/*teal 0ccf7a*/
/*orange f48304*/
/*sky blue 21c7ff*/


/* webkit auto complete fields formatting */
:-webkit-autofill,
:-webkit-autofill:hover,
:-webkit-autofill:focus {
    border: none;
    -webkit-text-fill-color: #000;
    -webkit-box-shadow: 0 0 0px 1000px rgba(0,0,0,0) inset;
    transition: background-color 5000s ease-in-out 0s;
}

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Instrument Sans", sans-serif !important;
    width: 100%;
    overflow-x: hidden;
}

/*nav*/
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1.5rem;
    position: fixed;
    z-index: 999;
    width: 100%;
    transition: background-color 0.3s ease-in-out;
    background-color: rgba(0,0,0,0)
}

.navbar.scrolled {
    background-color: rgba(255,255,255,0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.5);
    }

.logo img {max-width: 140px;
    cursor: pointer;
}

.nav {
    color: #000;
    font-size: 1.5em;
    cursor: pointer;
}

.sidenav .unstyled, .unstyled {list-style-type: none;}

.sidenav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 99999;
  left: 0;
  background-color: #000;
  overflow-x: hidden;
  padding-top: 60px;
  transition: 0.3s;
  text-transform: uppercase;
  font-family: "Instrument Sans", sans-serif !important;
  font-size: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sidenav a i {font-size: 1.2rem; margin-left: 1.2rem; position: absolute; margin-top: 0.6rem;}

.nav-details {display: flex; flex-direction: row; padding-left: 32px; gap: 1rem; padding-bottom: 32px;}
.nav-details a i {font-size: 1rem; margin-left: 0; position: relative;}
.nav-details a {padding: 0px !important;}

.nav-details .tooltip {
    position: relative;
    display: inline-block;
}

/* The actual tooltip box (hidden by default) */
.nav-details .tooltip::after {
    content: attr(data-tooltip); /* Grabs the text from HTML */
    position: absolute;
    bottom: 100%; /* Positions it above the icon */
    left: 0%;
    transform: translateX(-0%);

    /* Styling */
    background-color: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    white-space: nowrap; /* Prevents text wrapping */
    font-size: 14px;
    z-index: 100;

    /* Animation settings */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

/* Show tooltip on hover */
.nav-details .tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* The navigation menu links */
.sidenav a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  display: block;
  transition: 0.3s;
  color: #fff;
}

.sidenav a:visited, .sidenav a:active {color: #fff !important;}

/* When you mouse over the navigation links, change their color */
.sidenav a:hover {
  color: rgba(255, 255, 255, .85);
}

.sidenav .content {margin-left: 2rem;}
.sidenav .content a {font-size: 1.8rem;}

/* Position and style the close button (top right corner) */
.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}


/*scroll to top*/
#scrollToTopBtn {
      position: fixed;
      bottom: 10px;
      right: 20px;
      display: none;
      background-color: rgba(0,0,0,0.35);
      color: #fff;
      border: none;
      border-radius: 5px;
      padding: 5px;
      cursor: pointer;
      font-size: 10px;
      width: 20px !important;
      height: 20px !important;
      min-width: 0;
      z-index: 999;
      transition: background-color 0.3s ease-in-out;
}

/*collapsible*/
.collapsible {
    cursor: pointer;
}

.content {
    display: none;
}

/*typefaces fonts*/
p, strong, em {line-height: 1.2rem; margin-bottom: 0.5rem; margin-top: 0.5rem; font-size: 18px; font-family: "Instrument Sans", sans-serif !important;}
h1 {line-height: 3.5rem; margin-bottom: 2rem; margin-top: 2rem; text-transform: uppercase; font-size: 4rem; font-family: "Instrument Sans", sans-serif !important;}
h2 {line-height: 2.5rem; margin-bottom: 1.5rem; margin-top: 1.5rem; font-size: 3rem; font-family: "Instrument Sans", sans-serif !important;}
h3, h4 {line-height: 120%; margin-bottom: 1rem; margin-top: 1rem; font-family: "Instrument Sans", sans-serif !important;}
h3 {font-size: 2rem;}
h4 {font-size: 1.8rem; font-weight: 400;}

.caps {text-transform: uppercase;}

a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
}
a:hover {
    color: #21c7ff;
}

/*general theme styling*/
.hidden {display: none !important;}
.active {display: block;}





.container {
    display: flex;
    flex-direction: column;
}

.row {
    width: 100%;
    box-sizing: border-box;
    display: flex;
}


.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.centered-text {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 8rem 0 8rem 0;
    flex-direction: column;
}

.two-columns {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.column-half {
    flex: 0 0 50%;
}

.full-screen-hero {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.two-columns.centered-text {justify-content: space-around; flex-direction: row;}
.two-columns.centered-text .column-half {flex: 0 0 36%; justify-content: center; display: flex; }

.contact-form {display: flex; flex-direction: column;}
.contact-form .row {display: flex; flex-direction: row; justify-content: space-between;}
.contact-form input[type="email"], .contact-form textarea, .contact-form input[type="text"], .contact-form input[type="tel"] {width: 100%; font-family: "Instrument Sans", sans-serif !important; border-bottom: solid 2px #000; border-top: solid 0px; border-left: solid 0px; border-right: solid 0px; padding: 8px; margin-bottom: 12px; background-color: rgba(0,0,0,0); font-size: 18px;}
.contact-form input[type="email"], .contact-form input[type="text"], .contact-form input[type="tel"] {height: 40px;}
.contact-form h4 {margin-bottom: 12px;}
.contact-form .row .column-half {flex: 0 0 49%;}
.response-message {margin-top: 1rem;}
.grecaptcha-badge {
    visibility: hidden !important;
}
.g-recaptcha {display: none;}
.spinner-row {display: flex; justify-content: flex-start !important; align-content: center; flex-wrap: wrap;}
.spinner.active {width: 30px; height: 30px; margin-left: 30px; align-self: flex-end;}
.spinner img {width: 100%; height: auto;}

#hero-top i {font-size: 1.5rem; margin-top: 1rem;}

#hero-top, #contact {background-size: cover;}

.full-screen {height: 100vh; width: 100%;}

/*sliders*/
/* Reset default margins and paddings for all elements */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#slider-row {
    background-color: rgba(0,0,0,0.05);
    padding-top: 2rem;
    padding-bottom: 2rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Style the slider container to control the slider's visibility and positioning */
.slider-container {
    position: relative;
    overflow: hidden;
    width: 100%;
/*    padding: 0 1rem;*/
}

/* Format the slider element to align the slides properly */
.slider {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
}

/* Style the slide elements to make them responsive and visually appealing */
.slide {
    flex: 0 0 calc((100%)  / 3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0,0,0,0);
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Style the images and headers within the slide elements */
.slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 1rem;
}

.slide h3 {
    margin-top: 1rem;
    font-size: 1.25rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #000;
}

.slide p {color: #000}

.slide-text {padding-left: 1rem; padding-right: 1rem;}



#two-col .extra-padding {
    margin-top: 2.5rem;
}

#contact .column-half {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

form {
    margin-top: 1rem;
}

#map iframe {
    height: 100%;
}

#contact {
    gap: 4rem;
    height: 50vh;
    margin-bottom: 4rem;
}

/*About page*/
.about-text {
    gap: 4rem;
}

.about-text p {
    font-size: 1.4rem;
    line-height: 100%;
    margin-bottom: 1rem;
}

.pullquote {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.pullquote::before {
    content: "\201C";
    font-size: 5rem;
    position: absolute;
    margin-top: -2rem;
    opacity: 0.4;
}

.pullquote p {
    font-weight: 700;
    font-size: 1.8rem;
    margin-left: 2rem;
}

/* The container for the grid */
.masonry-grid {
    column-count: 3; /* Number of columns on desktop */
    column-gap: 1rem; /* Space between columns */
    width: 100%;
}

/* Individual items */
.masonry-item {
    display: block;
    margin-bottom: 1rem; /* Space between rows */
    break-inside: avoid; /* Prevents images from splitting across columns */
    transition: transform 0.3s ease;
}

.masonry-item:hover {
    transform: scale(1.01);
}

.masonry-item img {
    width: 100%;
    display: block;
    border-radius: 0.5rem;
    height: auto;
}

/* Hero Video */
 .video-container {
            position: relative;
            width: 100%;
            height: 100vh;
            overflow: hidden; /* clean edges */
            background: black;
        }

        video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: 1; /* Lowest layer */
        }

      /* Pinned to the bottom-right of .video-wrapper */
        .controls-container {
            position: absolute;
            bottom: 20px;
            right: 20px;
            z-index: 3; /* Sits above video AND content */
            display: flex;
            gap: 15px;
        }

        /* --- Button & Icon Styling (Same as before) --- */
        .control-btn {
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.2);
            cursor: pointer;
            border-radius: 50%;
            width: 45px;
            height: 45px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            transition: background 0.2s;
            -webkit-tap-highlight-color: transparent;
            min-width: 45px;
        }
    .control-btn:hover { background: rgba(0, 0, 0, 0.7); }
    .icon { width: 20px; height: 20px; fill: white; }
    .hidden { display: none; }

/* Responsive adjustments */
@media (max-width: 1024px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .masonry-grid {
        column-count: 1;
    }
}

/*footer*/
footer {
    background-color: #000;
    padding: 2rem 2rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    margin-top: 4rem;
}

footer a {
    color: #fff;
}

footer a:hover {
    color: rgba(255, 255, 255, 0.85);
}

.footer {
    gap: 8rem;
}

.space-between {
    justify-content: space-between;
}

.copyright {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border-top: solid 1px #fff;
    margin-top: 2rem;
    padding-top: 1rem;
}

.copyright p {
    margin-right: 2rem;
}

.divider.dark {}

    margin-bottom: 2rem;
}


.column {
    flex: 1;
}

button, .contact-form input[type="submit"] {
    background-color: #000;
    padding: 0.5rem 1rem;
    text-transform: uppercase;
    color: #fff;
    border-radius: 0.5rem;
    font-size: 1.4rem;
    margin-top: 1rem;
    cursor: pointer;
    min-width: 220px;
}

button:hover, .contact-form input[type="submit"]:hover {
    background-color: rgba(0,0,0,0.15);
    color: #000;
}


.btn-fixed {
    margin-top: 1rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-transform: uppercase;

    /* Visuals */
    background: #000;
    color: #fff;
    border: 1px solid #000;
    border-radius: 0.5rem;
    font-size: 1rem;

    /* Fixed Dimensions (Optional but ensures stability) */
    padding: 1rem;
    min-width: 220px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* The Text Wrapper */
.btn-fixed span {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smooth slide */
}

/* The Arrow (Initially hidden off-screen) */
.btn-fixed::after {
    content: '→';
    position: absolute;
    right: 0;
    font-weight: 600;

    /* Move it 100% to the right (invisible) plus a little extra buffer */
    transform: translateX(150%);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-fixed:hover {
    background-color: rgba(0,0,0,0.05);
    color: #000;
}

/* Slide the text to the left */
.btn-fixed:hover span {
    transform: translateX(-15px);
}

/* Slide the arrow in from the right */
.btn-fixed:hover::after {
    transform: translateX(-25px); /* Slide it into view */
}

.btn-fixed-submit {
    /* 1. Layout & Size */
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;

    /* 2. Remove default browser button styles */
    border: solid 1px #000;
    cursor: pointer;

    /* 3. Your Design (Match your other buttons) */
    background: #000; /* Default black for submit buttons often looks best */
    color: #fff !important;
    border-radius: 0.5rem !important;
    font-size: 1.4rem; /* Ensure readable font size */

    /* 4. Dimensions */
    padding: 0.5rem 1rem;
    min-width: 200px; /* Locks the width */
}

/* The Text Wrapper */
.btn-fixed-submit span {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* The Arrow (Hidden right) */
.btn-fixed-submit::after {
    content: '→';
    position: absolute;
    right: 0;
    transform: translateX(150%);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    color: #fff; /* Ensure arrow matches text color */
}

/* --- Hover Effects --- */

.btn-fixed-submit:hover {
    background-color: rbga(0,0,0,0.05);
}

.btn-fixed-submit:hover span {
    color: #000;
}

.btn-fixed-submit:hover::after {
    transform: translateX(-25px); /* Move arrow in */
    color: #000;
}

.button-row {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
}

.slider-card {
    aspect-ratio: 1;
    background-position: center;
    background-size: cover;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    object-fit: cover;
    width: 100%;
}

.home-section {
    height: 60vh;
    width: 100%;
    padding-left: 25%;
    padding-right: 25%;
}

.home-section .column {
    align-content: center;
    justify-content: center;
    text-align: center;
}

/*brand cards*/
#brands-hero {
    min-height: 80vh;
    width: 100%;
    background-size: cover;
    margin-bottom: 4rem;
    background-position:  center;
}

.padding20 {
    padding-left: 10%;
    padding-right: 10%;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.card {
    background-color: rgba(0,0,0,0.05);
    border-radius: 1rem 1rem 0rem 0rem;
    width: 100%;
}

.card-inner {
    width: 100%;
    padding: 1rem 2rem 2rem 2rem;
}

.card-hero {
    aspect-ratio: 1;
    background-size: cover;      /* Ensures image fills the div without stretching */
    background-position: center;  /* Centers the image within the container */
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem 1rem 0rem 0rem;
}

.brand-logo img {
    width: 40%;
    margin-left: 30%;
}

.brand-geo, .brand-socials {
    display: flex;
}

.brand-socials {
    gap: 0.5rem;
}

.brand-socials a:hover {
    color: rgba(0,0,0,0.5);
}

.brand-geo img {
    max-width: 50px;
}

.slider-card img, .brand-logo img {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.slider-card img:hover, .brand-logo img:hover {
    scale: 1.1;
}

#nitrodealers {margin-top: 4rem; gap: 4rem;}
#b2b {gap: 4rem;}
.nitrodealersimg {width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 0.5rem;}

@media (max-width: 1440px) and (min-width: 1025px) {
    #contact {background-position: center !important;}
}

/* Media queries to adjust the slider's layout based on the viewport width */
@media (max-width: 1024px) {
    .slide {
        flex: 0 0 calc(100% / 2);
    }

    #contact {background-position: bottom center;}
}

@media (max-width: 768px) {
    html {
        scroll-behavior: smooth;
    }

    .logo img {max-width: 80px;}

    h1 {font-size: 2.5rem}
    h2 {font-size: 2rem;}
    h4 {font-size: 1.2rem}
    h1, h2, h3, h4 {line-height: 120%;}

    #brands .padding20 {padding-left: 0; padding-right: 0;}

    #hero-top {background-position: center !important;}
    #brands-hero {margin-bottom: 2rem;}
    .row, .padding20 {padding-left: 5%; padding-right: 5%;}
    .hero-video {padding-left: 0; padding-right: 0;}



    .video-container, #brands-hero {height: auto; aspect-ratio: 1; min-height: 0;}

    .card-grid {grid-template-columns: repeat(1, 1fr); margin-top: 2rem; margin-bottom: 0rem;}

    .mobile-hide {display: none;}

    .centered-text {text-align: left; align-items: flex-start;}

    .slide {
        flex: 1 0 100%;
    }
    .two-columns, .two-columns.centered-text {flex-direction: column;}
    .two-columns.centered-text .column-half, .column-half {
        flex: 1;
        }

    #two-col .column-half:nth-child(2) {
        margin-top: 1.5rem;
    }

    #contact {height: auto; margin-bottom: 0;}

    .contact-form .row {padding-left: 0px; padding-right: 0px;}

    .contact-form input, .contact-form button, .contact-form textarea {border-radius: 0px; color: #000;}
    .contact-form input::placeholder, .contact-form textarea::placeholder {color: rgba(0,0,0,0.6)}

    #map {width: 100%;}
    #contact form .column-half {padding-left: 0; padding-right: 0;}

    #nitrodealers, #b2b {flex-direction: column;}

    .footer.row {
        flex-direction: column;
        gap: 2rem;
    }

    .copyright, .about-text, .button-row {
        flex-direction: column;
    }

    .button-row {
        flex-wrap: wrap;
        align-content: center;
        margin-top: 1rem;
    }

    .button-row .btn-fixed {
        min-width: 180px;
        max-width: 220px;
        margin-top: 0rem;
    }

    .btn-fixed-submit {
        font-size: 1.2rem;
        padding: 1rem;
    }
}



