/* Base Mobile Stack First */
.main-content-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* Desktop Multi-column Layout using named grid lines */
@media (min-width: 768px) {
  .main-content-layout {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Default spans if sidebars don't exist */
  .region--content {
    grid-column: 1 / -1;
  }

  /* Dynamic structural adjusts using CSS pseudo-classes */
  .region--sidebar-first ~ .region--content {
    grid-column: 2 / -1;
  }
  
  .region--content:has(~ .region--sidebar-second) {
    grid-column: 1 / 4;
  }

  .region--sidebar-first ~ .region--content:has(~ .region--sidebar-second) {
    grid-column: 2 / 4;
  }
}
/* ========================================
   MAIN NAVIGATION
======================================== */

.main-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-menu {
  display: flex;
  align-items: center;
  gap: 22px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.main-menu > .menu-item {
  position: relative;
  margin: 0;
  padding: 0;
}

.main-menu > .menu-item > a {
  display: flex;
  align-items: center;
  gap: 7px;

  padding: 34px 0;

  color: #111;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;

  text-decoration: none;

  transition:
    color 0.3s ease,
    background-color 0.3s ease;
}

.main-menu > .menu-item > a:hover,
.main-menu > .menu-item > a.is-active,
.main-menu > .menu-item--active-trail > a {
  color: #e30613;
}

.menu-arrow {
  display: inline-flex;
  align-items: center;

  font-size: 10px;

  transition: transform 0.3s ease;
}

/* ========================================
   DROPDOWN
======================================== */

.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;

  min-width: 230px;

  margin: 0;
  padding: 12px 0;

  list-style: none;

  background: #fff;

  border-top: 3px solid #e30613;

  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease;

  z-index: 999;
}

.menu-item--expanded:hover > .sub-menu,
.menu-item--expanded:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-item--expanded:hover > a .menu-arrow {
  transform: rotate(180deg);
}

.sub-menu .menu-item {
  position: relative;
  margin: 0;
  padding: 0;
}

.sub-menu .menu-item > a {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 12px 20px;

  color: #222;

  font-size: 14px;
  font-weight: 500;

  text-decoration: none;

  transition:
    color 0.25s ease,
    background-color 0.25s ease;
}

.sub-menu .menu-item > a:hover,
.sub-menu .menu-item > a.is-active {
  color: #e30613;
  background: #f7f7f7;
}

/* ========================================
   SECOND LEVEL DROPDOWN
======================================== */

.sub-menu .sub-menu {
  top: -12px;
  left: 100%;
}

.sub-menu .menu-arrow {
  transform: rotate(-90deg);
}

/* ========================================
   HEADER CTA
======================================== */

.header-quote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;
  padding: 0 25px;

  background: #e30613;
  color: #fff;

  font-size: 14px;
  font-weight: 600;

  text-decoration: none;

  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
}

.header-quote-btn:hover {
  background: #111;
  color: #fff;
  transform: translateY(-2px);
}
@media (max-width: 991px) {

  .main-navigation {
    display: none;

    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    width: 100%;

    padding: 15px 20px;

    background: #fff;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }

  .main-navigation.is-open {
    display: block;
  }

  .main-menu {
    display: block;
  }

  .main-menu > .menu-item {
    border-bottom: 1px solid #eee;
  }

  .main-menu > .menu-item > a {
    justify-content: space-between;
    padding: 15px 5px;
  }

  .sub-menu {
    position: static;

    display: none;

    min-width: auto;

    padding: 0;

    border-top: 0;

    box-shadow: none;

    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .menu-item--expanded.is-open > .sub-menu {
    display: block;
  }

  .sub-menu .menu-item > a {
    padding: 12px 20px;
  }

  .header-action {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }
}

/* ******************************************** Responsive CSS ***************************************************** */

@media only screen and (max-width: 767px) {

    .top-bar {
        display: none;
    }

    .site-header {
        position: relative;
        z-index: 9999;
    }

    .header-sect {
        position: relative;
        min-height: 80px;
        padding: 15px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .header-logo {
        position: relative;
        z-index: 10002;
    }

    .header-logo img {
        max-width: 170px;
        height: auto;
    }

    .mobile-menu-toggle {
        position: absolute;
        top: 15px;
        right: 0px;
        width: 60px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        background: transparent;
        color: #000000;
        font-size: 30px;
        z-index: 10003;
        transition: all 0.3s ease;
    }

    /* .mobile-menu-toggle:hover {
        background: #a9181e;
    } */

    .main-nav {
        display: none;
        position: absolute;
        top: 83px;
        left: 0;
        width: 100%;
        padding: 0px 0px 0px;
        background: #000000;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
        box-sizing: border-box;
        z-index: 10001;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
        gap: 0px;

    }

    .main-nav ul li {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .main-nav ul li a {
        display: block;
        width: 100%;
        padding: 12px 15px;
        border-bottom: 1px solid #a3a0a0;
        color: #ffffff;
        font-family: var(--secondary-font-family);
        font-size: 15px;
        font-weight: 400;
        text-decoration: none;
        box-sizing: border-box;
    }

    /* .main-nav ul li a.active {
        color: var(--primary-color);
    } */

    .header-buttons {
        display: none;
    }

    .main-nav ul li:last-child a {
        border-bottom: none;
    }

    .main-nav a.active {
        color: var(--primary-color);
    }

    .main-nav a:hover,
    .main-nav a.active {
        color: #ffffff;
    }





    .rpt-banner .hero-content h1 {
        font-size: 35px;
    }

    .hero-content {
        width: 100%;
    }

    .rpt-banner {
        min-height: 400px;
    }

    .deff-row {
        flex-direction: column;
        gap: 15px;
    }

    .left-car {
        width: 100%;
    }

    .right-cnt {
        width: 100%;
    }

    .rpt-hdg h2 {
        margin: 0 0 15px;
        font-size: 25px;
    }

    .services-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .footer-sect {
        gap: 20px;
        display: flex;
        flex-direction: column;
        padding: 55px 0 25px;
    }

    .footer-menu li {
        margin-bottom: 5px;
    }

    .footer-bottom-inner {
        display: flex;
        gap: 15px;
        flex-direction: column;
    }

    .footer-bottom-links {
        gap: 15px;
    }

    .footer-contact .footer-title {
        margin-bottom: 20px;
    }

    .newsletter-wrapper {
        gap: 20px;
        padding: 20px;
        margin: auto 0%;
        display: flex;
        flex-direction: column;
    }

    .newsletter-content h2 {
        font-size: 25px;
    }

    .newsletter-section {
        padding: 60px 0;
    }

    .newsletter-content p {
        font-size: 15px;
    }

    .appointment-section {
        flex-direction: column;
    }

    .appointment-left {
        width: 100%;
    }

    .appointment-right {
        width: 100%;
    }

    .appointment-form {
        padding: 35px 15px;
    }

    .appointment-form h2 {
        margin: 0 0 20px;
    }

    .appointment-content {
        padding: 42px 15px;
    }

    .newsletter-form {
        margin-bottom: 15px;
        padding: 0 0% 0 0;
    }

    .services-heading h2 {
        font-size: 25px;
    }

    .services-header {
        align-items: center;
        margin-bottom: 30px;
        flex-direction: column;
        gap: 15px;
    }

    .testimonial-card {
        gap: 10px;
        flex-direction: column;
        flex: 0 0 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .testimonial-slider {
        width: 100%;
        overflow: hidden;
    }

    .testimonial-track {
        display: flex;
        width: 100%;
    }

    .testimonial-profile {
        flex-shrink: 0;
    }

    .estimate-section .client-box {
        padding: 70px 0%;
    }

    .services-view-btn span {
        padding: 13px 40px;
    }

    .team-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .busns-partner .certifications-logos {
        grid-template-columns: repeat(3, 1fr);
    }

    .busns-partner .certifications-logos img {
        width: 110px;
        height: 80px;
        padding: 8px;
    }

    .warranty .deff-row {
        flex-direction: column;
    }

    .certified .left-car {
        width: 55%;
    }

    .certified .right-cnt {
        width: 100%;
    }

    .core-values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .core-value-icon {
        height: 65px;
        margin-bottom: 15px;
    }

    .core-value-icon i {
        font-size: 40px;
    }

    .core-value-item h3 {
        margin: 0;
        font-size: 18px;
    }

    .core-values-section {
        padding: 60px 0;
    }

    .faq-section {
        margin: 0px 0% 70px;
    }

    .faq-question h6 {
        font-size: 18px;
        line-height: 25px;
    }


    .appointment-box {
        width: 95%;
        padding: 20px 15px;
        box-sizing: border-box;
    }

    .appointment-box h2 {
        font-size: 26px;
        line-height: 1.3;
    }

    /* Stack all rows */
    .appointment-box .row,
    .appointment-box .vehicle-row {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .appointment-box .field {
        width: 100%;
    }

    /* Inputs */
    .appointment-box input[type="text"],
    .appointment-box input[type="email"],
    .appointment-box input[type="tel"],
    .appointment-box select,
    .appointment-box textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .appointment-box textarea {
        min-height: 120px;
    }

    /* Preferred contact buttons */
    .appointment-box .contact-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .appointment-box .contact-btn {
        flex: 1 1 calc(33.333% - 8px);
        min-width: 85px;
        padding: 10px 6px;
        font-size: 14px;
    }

    /* VIN section */
    .appointment-box .vin-row {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .appointment-box .vin-row input {
        width: 100%;
    }

    .appointment-box .decode-btn {
        width: 100%;
    }

    /* Schedule buttons */
    .appointment-box .schedule-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .appointment-box .schedule-btn {
        width: 100%;
        text-align: left;
    }

    /* Selected appointment date */
    .appointment-box #selectedDate {
        width: 100%;
        box-sizing: border-box;
    }

    /* Calendar */
    .appointment-box .calendar {
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .appointment-box .calendar-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .appointment-box .weekdays,
    .appointment-box .days {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        width: 100%;
    }

    .appointment-box .weekdays span {
        text-align: center;
        font-size: 12px;
    }

    .appointment-box .days .day,
    .appointment-box .days>div {
        min-width: 0;
        text-align: center;
    }

    /* Photo upload */
    .appointment-box .photo-upload {
        width: 100%;
        box-sizing: border-box;
    }

    .appointment-box .photo-count {
        font-size: 12px;
        line-height: 1.5;
    }

    /* Submit */
    .appointment-box .submit-btn {
        width: 100%;
    }

    .appointment-box .disclaimer {
        font-size: 12px;
        line-height: 1.6;
    }




}


@media (min-width: 1200px) and (max-width: 1440px) {

    .container {
        width: 90% !important;
    }

   


}


@media (min-width: 992px) and (max-width: 1199px) {

    .container {
        width: 100% !important;
    }

   




}


@media (min-width: 768px) and (max-width: 991px) {

    .container {
        width: 100% !important;
    }

}

@media (min-width: 1200px) and (max-width: 1440px) {

    .container {
        width: 90% !important;
    }

    .header-sect {
        padding: 12px 20px;
    }

   /* .header-logo {
        width: 14%;
    }*/

    .main-nav {
        width: 57%;
    }

    .main-nav ul {
        gap: 25px;
    }

    .main-nav a {
        font-size: 16px;
    }

    .header-btn {
        padding: 12px 12px;
        font-size: 12px;
    }

    .top-social {
        gap: 16px;
    }

    .top-bar-inner {
        padding: 7px 22px;
    }

    .service-card {
        height: 280px;
    }

    .our-services-section .service-btn a {
        font-size: 15px;
    }

    .services-heading h2 {
        font-size: 25px;
    }

    .services-heading h2 {
        font-size: 25px;
    }

    .rpt-hdg h2 {
        font-size: 25px;
    }

    .newsletter-content h2 {
        font-size: 28px;
    }

    .appointment-form {
        padding: 35px 20px;
    }

    .newsletter-section {
        padding: 55px 0;
    }

    .rpt-banner .hero-content h1 {
        font-size: 38px;
    }

    .newsletter-form {
        padding: 0 12% 0 0;
    }

    .footer-sect {
        padding: 70px 0 35px;
        gap: 30px;
    }

    .contact-item {
        margin-bottom: 15px;
    }

}


@media (min-width: 992px) and (max-width: 1199px) {

    .container {
        width: 100% !important;
    }

    .rpt-banner .hero-content h1 {
        font-size: 35px;
    }

    .deff-row {
        flex-direction: column;
        gap: 20px;
    }

    .left-car {
        width: 100%;
    }

    .right-cnt {
        width: 100%;
    }

    .left-car img {
        height: 500px;
    }

    .service-card {
        height: 250px;
    }

    .our-services-section .service-btn a {
        font-size: 14px;
    }

    .services-heading h2 {
        font-size: 25px;
    }

    .newsletter-content h2 {
        font-size: 27px;
    }

    .appointment-form h2 {
        margin: 0 0 15px;
        font-size: 24px;
    }

    .newsletter-form {
        padding: 0 0% 0 0;
    }

    .newsletter-section {
        padding: 50px 0;
    }

    .appointment-left {
        width: 60%;
    }

    .appointment-right {
        width: 40%;
    }

    .appointment-form {
        padding: 35px 15px;
    }

    .footer-title h3 {
        font-size: 16px;
    }

    .footer-title {
        margin-bottom: 15px;
    }

    .footer-sect {
        padding: 60px 0 30px;
        gap: 35px;
    }

    .footer-bottom-inner {
        gap: 10px;
    }



    .top-bar-inner {
        padding: 7px 12px;
    }

    .header-sect {
        padding: 10px 14px;
    }

    .top-social a {
        font-size: 13px;
    }

    .top-social {
        gap: 12px;
    }

    .top-info i {
        font-size: 13px;
    }

    .top-info {
        gap: 14px;
        font-size: 13px;
    }

    .header-logo {
        width: 12%;
    }

    .main-nav ul {
        gap: 15px;
    }

    .main-nav {
        width: 54%;
    }

    .main-nav a {
        font-size: 14px;
    }

    .header-buttons {
        gap: 5px;
        width: 33%;
    }

    .header-btn {
        padding: 10px 10px;
        font-size: 13px;
    }

    .services-view-btn span {
        padding: 13px 35px;
    }



}


@media (min-width: 768px) and (max-width: 991px) {

    .container {
        width: 100% !important;
    }

    .top-bar-inner {
        padding: 7px 12px;
    }

    .header-sect {
        padding: 10px 10px;
    }

    .top-social a {
        font-size: 10px;
    }

    .top-social {
        gap: 8px;
    }

    .top-info i {
        font-size: 10px;
    }

    .top-info {
        gap: 8px;
        font-size: 10px;
    }

    .header-logo {
        width: 12%;
    }

    .main-nav ul {
        gap: 8px;
    }

    .main-nav {
        width: 54%;
    }

    .main-nav a {
        font-size: 11px;
    }

    .header-buttons {
        gap: 5px;
        width: 33%;
    }

    .header-btn {
        padding: 10px 6px;
        font-size: 10px;
    }

    .rpt-banner .hero-content h1 {
        font-size: 30px;
    }

    .rpt-banner {
        min-height: 350px;
    }

    .deff-row {
        flex-direction: column;
        gap: 15px;
    }

    .left-car {
        width: 100%;
    }

    .right-cnt {
        width: 100%;
    }

    .rpt-hdg h2 {
        font-size: 20px;
    }

    .service-card {
        height: 200px;
    }

    .our-services-section .service-btn a {
        font-size: 10px;
    }

    .services-heading h2 {
        font-size: 20px;
    }

    .footer-title h3 {
        font-size: 13px;
    }

    .footer-sect {
        padding: 50px 0 30px;
        gap: 25px;
    }

    .footer-menu a {
        font-size: 11px;
    }

    .footer-menu li {
        margin-bottom: 5px;
        position: relative;
        padding-left: 15px;
    }

    .footer-about p {
        font-size: 13px;
    }

    .footer-bottom-inner {
        gap: 8px;
        padding: 12px 0;
    }

    .copyright {
        font-size: 11px;
    }

    .translate-btn a {
        padding: 9px 6px;
        font-size: 11px;
    }

    .footer-bottom-links {
        gap: 5px;
    }

    .footer-bottom-links a {
        font-size: 11px;
    }

    .footer-social a {
        width: 25px;
        height: 25px;
        font-size: 10px;
    }

    .footer-social {
        gap: 5px;
    }

    .footer-title {
        margin-bottom: 10px;
    }

    .newsletter-section {
        padding: 45px 0;
    }

    .newsletter-content h2 {
        font-size: 23px;
    }

    .newsletter-content p {
        font-size: 14px;
    }

    .contact-phone {
        font-size: 12px;
    }

    .contact-label {
        font-size: 9px;
    }

    .appointment-form h2 {
        margin: 0 0 15px;
        font-size: 20px;
    }

    .appointment-content {
        padding: 42px 18px;
    }

    .appointment-form {
        padding: 35px 8px;
    }

    .form-group label {
        font-size: 9px;
    }

    .appointment-left {
        width: 58%;
    }

    .appointment-right {
        width: 42%;
    }

    .newsletter-form {
        margin-bottom: 15px;
        padding: 0 0% 0 0;
    }

    .services-header {
        align-items: center;
        flex-direction: column;
        gap: 18px;
    }

    .services-heading {
        text-align: center;
    }




}




