:root {
    --primary-red: #BE3144; /* A standard, bold red */
    --nav-button-hover: #d1d1d1; /* Darker red for hover effects */
    --nav-menu: #09122C; /* Dark red for nav menu background */
    --light-red: #FFCDD2;   /* Light red for backgrounds or subtle borders */
    --text-dark: #333;      /* Dark text color for contrast */
    --background-light: white;
    --margin-spacer: 10px;
}


.mt-6 {
  margin-top: calc(var(--margin-spacer)*5);
}


.tire-texture-bg {
    background-color: #0f172a; 
    background-image: repeating-linear-gradient(45deg, rgba(129, 129, 129, 0.747) 0, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 20px);
    background-size: 20px 20px;
}


.card-hover-effect {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card-hover-effect:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-50px); /* Start slightly off-screen to the left */
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(+50px); /* Start slightly off-screen to the left */
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.animate-left-slide-in {
    animation: slideInFromLeft 1.2s ease-out forwards; 
    opacity: 0; /* Initially hidden */
}

.animate-right-slide-in {
    animation: slideInFromRight 1.2s ease-out forwards; 
    opacity: 0; /* Initially hidden */
}

footer {
    background-color: var(--nav-menu);
    color: white;
    text-align: center;
    padding: 15px 0;
}

.quote-body {
    background-image: url("/img/escavator.jpg");
    background-size: cover;
    background-position: center center;

}



.img-blur {
    filter: blur(10px);
}

.container-fluid{
overflow: hidden;
}


/* 2. FLOATING CARD STYLING */
.floating-card {
  /* Give the card a defined width */
  width: 20rem; 
  
  /* Optional: Add shadow for the "floating" effect */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); 
  
  /* Set margin to move it slightly off the right edge (adjust as needed) */
  margin-right: 2rem; 
  
  /* Optional: Add a light background color to stand out */
  background-color: rgba(255, 255, 255, 0.95); 
}

/* 3. RESPONSIVE ADJUSTMENTS */
/* Ensure full-width on mobile */
@media (max-width: 767.98px) {
  .custom-layout-row {
    /* Change the background position to center it on small screens */
    background-position: center center;
    /* Remove the grid structure so the card is centered or full-width */
    min-height: 600px;
  }
  
  .floating-card {
    /* Center the card on mobile */
    margin-right: 0;
    margin-left: auto;
    width: 90%;
  }
}


@media (min-width: 576px) {
  .mh-300px {
    max-height: 250px;
  }
  .banner-img-cropper-card {
    height: 400px; 
    width: 100%;
    overflow: hidden; 
  }
}

.banner-img-cropper {
    height: 400px; 
    width: 100%;
    overflow: hidden; 
  }


/* --- Quote Form Styles --- */
.quote-form {
    padding: 32px 28px 24px 28px;
    border-radius: 0px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.quote-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.quote-form label {
    font-weight: 600;
    margin-bottom: 2px;
}

.quote-form input,
.quote-form textarea {
    padding: 10px 12px;
    border: 1.5px solid #bfc9d1;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    background: #f8fafc;
    transition: border-color 0.2s;
}

.quote-form input:focus,
.quote-form textarea:focus {
    border-color: #2980b9;
    outline: none;
}

.quote-form textarea {
    min-height: 70px;
    resize: vertical;
}

/* Checkbox list layout inside the quote form */
.quote-form .checkbox-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: flex-start;
}

.quote-form .checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    font-size: 0.95rem;
}

.quote-form .checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    border: 0;
}

/* Hide the whole "Other" checkbox-item by default; JS will toggle this */
#other-item {
    display: flex; /* remains flex so layout is consistent when opened */
    flex-direction: column;
    align-items: stretch;
    max-height: 0; /* collapsed by default */
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 320ms cubic-bezier(.2,.9,.2,1),
                opacity 220ms ease, transform 260ms cubic-bezier(.2,.9,.2,1);
}

.quote-form #other-item label {
    display: block;
    width: 100%;
    margin: 0 0 6px 0;
}

.quote-form #other-item.open {
    max-height: 260px; /* large enough for the content */
    opacity: 1;
    transform: translateY(0);
}

#service-other-text {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #bfc9d1;
    border-radius: 5px;
    background: #fff;
}

.quote-form button[type="submit"] {
    margin-top: 10px;
    padding: 12px 0;
    background: linear-gradient(90deg, #2980b9 60%, #6dd5fa 100%);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(44,62,80,0.08);
    transition: background 0.2s;
}


.quote-form button[type="submit"]:hover {
    background: linear-gradient(90deg, #2471a3 60%, #48c6ef 100%);
}

.quote-form .form-error {
    display: none;
    color: #e74c3c;
    font-size: 0.93em;
    margin-top: 2px;
}

.quote-form input:invalid:focus ~ .form-error,
.quote-form textarea:invalid:focus ~ .form-error {
    display: block;
}

@media (max-width: 600px) {
    .quote-form {
        padding: 18px 6vw 16px 6vw;
        max-width: 98vw;
    }

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    
    height: 100%;
    margin: 0; 
    padding: 0;
}

.navbar-elements {
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-red);
    color: white;
}

.nav-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 20px; 
}


@media (min-width: 768px) {
    .navbar-elements {
        flex-wrap: nowrap; 
    }

    .nav-header-content {
        width: auto;
        padding: 10px 20px;
        order: 1; 
    }

    #navbarSupportedContent li a {
        font-size: 1.05rem;
        padding: 12px 20px;
    }

}



/* On small screens, keep the navbar height fixed and make the collapse overlay so the brand doesn't move when the menu opens */
@media (max-width: 767.98px) {
  nav.navbar {
    position: relative;
    height: 56px; /* fixed navbar height on mobile */
  }

  /* Keep the brand anchored to the same vertical spot regardless of collapse state */
  nav.navbar .navbar-brand {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
  }

  /* Make the collapse overlay the content below the fixed navbar so it doesn't push on open */
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--nav-menu); /* keep same background as footer/nav area */
    z-index: 2;
  }

  /* Slightly space the collapse menu items so they don't touch the nav */
  .navbar-collapse .navbar-nav {
    padding: 0.75rem 1rem 1.25rem 1rem;
  }

  .navbar-logo {
    max-height: 100px; 
    height: auto;
    width: auto;
    display: block;
    margin-top: 50px;
  }

  .navbar-brand {
    display: inline-flex; 
    position: absolute; 
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
  }
}


  .navbar-brand {
    display: inline-flex; 
    position: absolute; 
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
  }

  .navbar-logo {
    max-height: 80px; 
    height: auto;
    width: auto;
    display: block;
    margin-top: 50px;
  }


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#navbar-logo.navbar-logo-hidden {
  display: none !important;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit; /* Use this if you want links to match their parent text color */
}


.fullscreen-video-container {

  position: relative;

  height: 400px; 

  width: auto;

  overflow: hidden;
  
  display: flex;

  justify-content: center;

  align-items: center;

}

.fullscreen-video-container img {

  position: absolute;

  width: auto;

  height: auto;

  min-width: 100%;

  min-height: 100%;

  top: 50%;

  left: 50%;

  transform: translate(-50%,-50%);

  z-index : -1;

}

.fullscreen-video-content {

  background-color: rgba(255,255,255,0.8);

  padding: 30px;

  border-radius: 5px;

} 

.fullscreen-video-content h1 {

  font-size: 3rem;

  font-weight: 700;

  margin: 0;

  color: #333;

  
}


.fullscreen-video-content h1 a {
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: #333;
}





#success-message {
    display: none; 
    padding: 15px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    margin-top: 20px;
}

.bg-card {
    backdrop-filter: blur(10px);
    padding-bottom: 10px;
    padding-top: 10px;
}

.bg-red {
    background-color: #dc2626;
}

.btn-red {
    background-color: #dc2626;
}

.btn-red:hover {
    background-color: #8a1919;
}

.text-red {
  color: #dc2626;
}

.custom-layout-row {
    display: flex; /* Use Flexbox for side-by-side alignment */
    height: 400px; /* Fixed container height on desktop */
    max-height: 400px; /* Keep a max for safety */
  overflow: hidden; /* Ensures nothing spills over the height limit */
  border-radius: 8px;
}

.index-banner-row {
    display: flex; 
    height: 600px; 
    max-height: 600px;
    overflow: hidden;
    border-radius: 8px;
}

/* 2. Image Container & Cropping */
.image-container {
  /* Takes 60% of the row width on desktop */
  flex: 0 0 60%;
  position: relative;
  overflow: hidden; 
}

/* Image Cropping */
.cropped-image {
  /* Image fills the container's space */
  width: 100%;
  height: 100%;
  
  /* Use object-fit to cover the area and crop excess */
  object-fit: cover; 
  
  /* **Crucial for the "cut off" effect:** Positions the image 
     to ensure the right side is visible and the left side is cropped */
  object-position: 70% center; 
}

/* 3. Card Container Positioning */
.card-container {
  /* Takes the remaining 40% of the row width */
  flex: 0 0 40%;
  position: relative; 
  /* Ensure the card container sits above the image */
  z-index: 10; 
}

/* 4. Hovering Card Styling */
.hovering-card {
  margin-left: -80px; /* Adjust this value to control overlap */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Floating effect */
  background-color: white; 
  width: 30rem !important; /* Ensure width is maintained */
}

/* --- Responsive Adjustments (Mobile Stacking) --- */
@media (max-width: 767.98px) {


  .image-container,
  .card-container {
    flex: none; /* Remove desktop flex sizing */
    width: 100%;
  }
  
  .image-container {
    height: 250px; /* Give image a fixed height on mobile */
  }
  
  .hovering-card {
    margin-left: 0; /* Remove negative margin */
    margin-top: -50px; /* Pull card up for slight visual overlap on mobile */
    align-self: center; /* Center the card */
    width: 90% !important; 
  }
}

.auto-detailing-banner {
  min-height: 400px;
  overflow: hidden; 
  position: relative;
}



.banner-img-cropper-indexed {
   height: 600px; 
  width: 100%;
  overflow: hidden; 
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-content-wrapper {
  z-index: 1;
}

.banner-container {
  max-height: 90%;
}

.banner-content-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-height: 400px;
  z-index: 2; 
}

@media (min-width: 992px) {
  .card.text-white.bg-dark.h-100 .card-body {
    overflow-y: auto;
  }
}

.banner-right-offset {
  margin-left: auto; 
  margin-right: 10%;
  width: 100%;
}

.banner-text-box {
  position: relative; 
  z-index: 3;
}

.banner-text-box h2 {
  font-size: 2.5rem;
  font-weight: bold;
}

.banner-text-box h6 {
  color: #fff;
  opacity: 0.7;
}


div.m1-message {
    font-size: 1.2rem;
}

.card-min-height-400 {
    min-height: 320px;
}

.service-text-size {
  height: 150px;
  width: auto;
}

.service-text-size {
  height: 150px;
  width: auto;
}

.text-green {
  color:#33ff00;
}

.text-blue {
  color:#00c3ff;
}

.boldonse-regular {
  font-family: "Boldonse", system-ui;
  font-weight: 400;
  font-style: normal;
}

.roboto-regular {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}

.cal-sans-regular {
  font-family: "Cal Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
}


#map {
  min-height: 400px;
  min-width: 400px;
  order:1;
}

.mapAddress {
    
    text-align: left;
    font-size: 13px;
    margin-top: 10px;
    background-color: #333;
    padding: 20px 100px;
}

.mapAddressBlock {
    color: white;
    font-weight: 600;
    order: 2;
}

@media (max-width: 767px) {
    .mapAddress {
        flex-direction: column;
        padding: 14px 16px;
        gap: 12px;
    }

    .mapAddressBlock {
        order: 1;
        text-align: center;
    }

    #map {
        order: 2;
        min-width: auto;
        min-height: 260px;
        width: 100%;
    }
}

.colorText{
    color: white;
}

@media (max-width: 768px) {
  .auto-detailing-banner {
    min-height: 630px; 
  }

  .auto-detailing-banner .card {
    margin-top: 350px;
}

}

.auto-detailing-banner .card {
  max-width: 450px; 
}



@keyframes scrollLeftToRight {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0%);
  }
}

.scrolling-banner {
  width: 100%; 
  overflow: hidden; 
  height: 300px; 
}

.image-strip {
  display: flex;
  width: max-content; 
  transform: translateX(-50%);
  animation: scrollLeftToRight 20s linear infinite; 
}

.image-strip img { 
  flex-shrink: 0;
  height: 300px; 
  object-fit: cover; 
}

@keyframes imageEntrance {
  /* Start State: The image is fully transparent and slightly smaller (0.8 scale) */
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  
  /* End State: The image is fully opaque and at its natural size (1.0 scale) */
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* --- The Animation Class --- */
.image-to-animate {
  /* Ensure the image is initially invisible until the animation starts */
  opacity: 0; 
  
  /* Apply the animation */
  animation-name: imageEntrance;
  animation-duration: 1.5s;        /* How long the animation takes */
  animation-timing-function: ease-out; /* Controls the speed curve */
  animation-delay: 0.5s;           /* Wait half a second after page load to start */
  animation-fill-mode: forwards;   /* CRITICAL: Keeps the final 100% state after it finishes */
}

.large-font {
  font-size: 60px;
  margin-top:60px;
}

.index-banner {
  background-image: url('img/index-banner.png');
  height: auto;
  width: auto;
}