* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  overscroll-behavior-y: contain;
}

/* General Styles */
body {
  font-family: 'Lato', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #0a0a0a;
  color: #e0e0e0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

section {
  padding: 5rem 2rem;
}

a {
  color: #e0e0e0;
  text-decoration: none;
}

/* Header & Navbar */
.top-bar {
  background-color: #1a1a1a;
  padding: 0.75rem 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid #222;
  flex-wrap: wrap;
  gap: 2rem;
  position: relative;
  z-index: 1001;
}

.short-address {
  display: none;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  font-family: 'Lato', sans-serif;
}

.top-bar-item i {
  color: #dd1527;
  font-size: 1.3rem;
}

.top-bar-item a, .top-bar-item > span {
  color: #e0e0e0;
  transition: color 0.3s ease;
}

.top-bar-item a:hover {
  color: #dd1527;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.1rem 3rem;
  background-color: rgba(10, 10, 10, 0.8);
  border-bottom: 1px solid #222;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

/* To re-enable the mountains, uncomment the following CSS block */
/*
.navbar::after {
  content: '';
  position: absolute;
  top: calc(100% - 35px);
  left: 0;
  width: 100%;
  height: 45px;
  background-image: url('assets/MountainRange.png');
  background-repeat: repeat-x;
  background-position: top;
  background-size: auto 45px;
  pointer-events: none;
}
*/

.logo img {
  height: 130px;
  margin: -15px 0;
}

.logo-link {
  text-decoration: none;
}

.logo-link:hover {
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links li {
  position: relative;
  padding: 0 0.75rem;
}

.nav-links li:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 20px;
  background-color: #dd1527;
  opacity: 0.6;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: #e0e0e0;
  transition: all 0.3s ease;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background-color: #1a1a1a;
  z-index: 999;
  flex-direction: column;
  align-items: flex-start;
  padding: 4rem 2rem 2rem;
  gap: 1.5rem;
  transition: right 0.3s ease-in-out;
  box-shadow: -5px 0 15px rgba(0,0,0,0.2);
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav a {
  font-size: 1.5rem;
  color: #e0e0e0;
  font-weight: bold;
  padding: 0.5rem 0;
  width: 100%;
  text-align: left;
}

.mobile-nav a:first-child {
  padding-top: 2rem;
}

.mobile-nav a.btn {
  margin-top: 1rem;
  text-align: center;
  padding: 1rem 2rem;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.nav-links a {
  font-size: 1.5rem;
  font-weight: bold;
  transition: color 0.3s ease;
  color: #e0e0e0;
}

.nav-links a:hover {
  color: #dd1527;
}

.nav-btn {
  display: block;
}

/* Hero Section */
#hero {
  background: url("assets/open_hoods.jpg") no-repeat center center/cover;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  text-align: center;
  position: relative;
  padding-top: 10rem;
  transition: background-image 0.5s ease;
}

#hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 5rem;
  margin-bottom: 1rem;
  font-weight: 900;
  letter-spacing: 2px;
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  margin-left: auto;
  margin-right: auto;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.btn {
  background-image: linear-gradient(to right, #ff3d3d, #cc0000);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 61, 61, 0.4);
  color: #e0e0e0;
  text-transform: uppercase;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 61, 61, 0.5);
}

/* Why Us Section */
#why-us {
  padding: 4rem 2rem;
  background-color: #111;
  text-align: center;
}

#why-us h2, #services h2, #faq h2, .contact-details h2, #testimonials h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

#about h2 {
  text-align: center;
  width: 100%;
  font-size: 3.5rem;
}

#why-us h2::after, #services h2::after, #about h2::after, #faq h2::after, .contact-details h2::after, #testimonials h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: #dd1527;
}

.about-text p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #fff;
}

.why-us-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.feature {
  flex: 1 1 280px;
  max-width: 350px;
  padding: 2rem;
  background-color: #1a1a1a;
  border-radius: 10px;
  border: 1px solid #2a2a2a;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.feature:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature .fas {
  font-size: 3rem;
  color: #dd1527;
  margin-bottom: 1.5rem;
}

.feature h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature p {
  font-size: 1rem;
  color: #ccc;
}


/* Foundational Message Section */
#foundational-message {
  background-color: #111;
  padding: 4rem 2rem;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
}

#foundational-message .container {
  max-width: 900px;
  margin: 0 auto;
}

.foundational-quote {
  font-size: 2rem;
  font-family: 'Georgia', serif;
  line-height: 1.5;
  color: #e0e0e0;
  padding-left: 2.5rem;
  margin: 0;
  position: relative;
}

.foundational-quote::before {
  content: '“';
  font-size: 8rem;
  color: #dd1527;
  position: absolute;
  left: -20px;
  top: -40px;
  opacity: 0.3;
}

@media (max-width: 768px) {
  .foundational-quote {
    font-size: 1.5rem;
    padding-left: 2rem;
  }
  .foundational-quote::before {
    font-size: 6rem;
    left: -15px;
    top: -30px;
  }
}

/* Services Section - Accordion */
#services {
  padding: 4rem 2rem;
  background-color: #000;
  text-align: center;
}

#services h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.accordion-container {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  border: 1px solid #333;
  border-radius: 10px;
  margin-bottom: 1rem;
  background-image: linear-gradient(to right, #1c1c1c, #111111);
}

.accordion-header {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1.5rem;
  background-color: transparent;
  border: none;
  color: #e0e0e0;
  font-size: 1.3rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.accordion-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-grow: 1;
  text-align: left;
  font-size: 1.2rem;
}

.accordion-title .fas {
  color: #dd1527;
  width: 25px;
  text-align: center;
}

.accordion-icon {
  transition: transform 0.3s ease;
  color: #dd1527;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.5rem;
}

.accordion-content p {
  padding: 1.5rem 0;
  color: #ccc;
  text-align: left;
  font-size: 1.2rem;
}

/* About Section */
#about {
  padding: 4rem 2rem;
  background-color: #000;
  text-align: center;
}

.about-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
  border: 3px solid #dd1527;
  padding: 2rem;
  border-radius: 10px;
}

.about-text {
  text-align: center;
}

.about-text p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #e0e0e0;
  text-align: left;
}

#read-more-btn {
  margin-top: 1.5rem;
}

#read-more-btn .fas {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.more-text-container {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
}

.more-text-container.show {
  /* max-height is now set by JS */
}

#read-more-btn.open .fas {
  transform: rotate(180deg);
}

.about-image {
  max-width: 700px;
  width: 100%;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 50%;
}

.about-image iframe {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

/* Testimonials Section */
#testimonials {
  padding: 5rem 2rem;
  background-color: #0a0a0a;
  text-align: center;
}

.testimonial-carousel-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 0 4rem;
}

.testimonial-card {
  background-color: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.testimonial-icon svg {
  width: 40px;
  height: 40px;
}

.testimonial-author h3 {
  margin: 0;
  font-size: 1.2rem;
  text-align: left;
}

.stars {
  color: #ffc107;
  text-align: left;
}

.testimonial-card blockquote {
  margin: 0;
  font-style: italic;
  color: #b0b0b0;
  border-left: 3px solid #dd1527;
  padding-left: 1rem;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

.carousel-arrow {
  background-color: transparent;
  color: #fff;
  border: 1px solid #fff;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-arrow:hover {
  background-color: #dd1527;
  border-color: #dd1527;
}

.carousel-arrow.prev {
  left: 10px;
}

.carousel-arrow.next {
  right: 10px;
}

.carousel-dots {
  display: flex;
  gap: 10px;
  margin: 0 1rem;
}

.carousel-dots .dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.carousel-dots .dot.active {
  background-color: #dd1527;
}

/* Location and Contact Section */
#location-contact {
  padding: 4rem 2rem;
  background-color: #000;
}

.location-contact-container {
  display: flex;
  align-items: center;
  gap: 5rem;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center;
}

.location-map {
  width: 500px;
  max-width: 500px;
  min-height: auto;
  aspect-ratio: 1 / 1;
}

.location-map iframe {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.location-details {
  text-align: center;
}

.location-details h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #e0e0e0;
}

.location-details p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #e0e0e0;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.location-details p a {
    color: #e0e0e0;
    transition: color 0.3s ease;
}

.location-details p a:hover {
    color: #dd1527;
}

.location-details .fas, .location-details .far {
  color: #dd1527;
  width: 20px;
  text-align: center;
}


/* FAQ Section */
#faq {
  padding: 4rem 2rem;
  background-color: #111;
  text-align: center;
}

#testimonials h2,
#faq h2 {
  text-align: center;
  font-size: 3rem;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: #222;
  border-radius: 10px;
  margin-bottom: 1rem;
  padding: 1.5rem;
}

.faq-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #dd1527;
}

[data-faq-hidden] {
  display: none;
}

#show-more-faq {
  margin-top: 2rem;
}

/* Contact Section */
#contact {
  padding: 6rem 2rem;
  background-color: #000;
}

.contact-container {
  display: flex;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-form {
  flex: 2;
  background-color: #1a1a1a;
  padding: 3rem;
  border-radius: 10px;
  border: 1px solid #2a2a2a;
}

.form-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.input-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.input-group label {
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.input-group input,
.input-group textarea {
  background-color: #222;
  border: 1px solid #444;
  color: #e0e0e0;
  padding: 0.8rem;
  border-radius: 5px;
  font-size: 1rem;
  font-family: 'Lato', sans-serif;
}

.input-group textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form .btn {
  width: 100%;
  margin-top: 1rem;
}

.contact-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
  align-items: center;
}

.contact-details h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.social-icons a {
  color: #e0e0e0;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #dd1527;
}

.contact-details p {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.2rem;
}

#address-line {
  white-space: nowrap;
}

.contact-details .fas {
  color: #dd1527;
}

/* Quote Form Section */
.quote-section {
  padding: 6rem 2rem;
  background-color: #000;
}

.quote-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: #1a1a1a;
  padding: 3rem;
  border-radius: 10px;
  border: 1px solid #2a2a2a;
}

.quote-container h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.form-intro, .form-outro {
  text-align: center;
  color: #b0b0b0;
  margin-bottom: 2rem;
}

.quote-form fieldset {
  border: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.quote-form legend {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #dd1527;
  margin-bottom: 1.5rem;
  width: 100%;
  border-bottom: 1px solid #333;
  padding-bottom: 0.5rem;
}

.form-helper-text {
  font-size: 0.9rem;
  color: #b0b0b0;
  margin-bottom: 1.5rem;
  font-style: italic;
  text-align: center;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.input-group {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
}

.form-row .input-group {
  flex-basis: calc(50% - 0.75rem);
}

.vehicle-info .form-row .input-group {
  flex-basis: calc(33.333% - 1rem);
}

.input-group.full-width {
  flex-basis: 100%;
}

.input-group label {
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.input-group label:after {
  content: " *";
  color: #dd1527;
}

.input-group label[for="vin"]:after,
.input-group label[for="engine-serial"]:after,
.input-group label[for="other"]:after {
  content: "";
}

.input-group input,
.input-group textarea {
  background-color: #222;
  border: 1px solid #444;
  color: #e0e0e0;
  padding: 0.8rem;
  border-radius: 5px;
  font-size: 1rem;
  font-family: 'Lato', sans-serif;
}

.input-group textarea {
  resize: vertical;
  min-height: 100px;
}

.quote-form .btn {
  width: 100%;
  margin-top: 1rem;
}

/* Footer */
footer {
  padding: 1.5rem 2rem;
  background-color: #000;
  border-top: 1px solid #222;
  text-align: center;
  font-size: 0.9rem;
}

@media (max-width: 992px) {
    .testimonial-slide {
        display: contents;
    }
    
    .testimonial-card {
        flex: 0 0 100%;
        width: 100%;
        box-sizing: border-box;
        padding: 1.5rem 4rem;
    }

    #hero {
        padding-top: 7rem;
    }

    .full-address {
        display: none;
    }

    .short-address {
        display: inline;
    }

    .top-bar {
        justify-content: center;
        padding: 0.5rem 1rem;
        flex-wrap: nowrap;
        gap: 1rem;
    }

    .top-bar-item {
        margin: 0;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .top-bar-item i {
        font-size: 1rem;
    }

    .navbar {
        padding: 1.5rem 1.5rem;
    }

    .logo-link {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .logo img {
        height: 100px;
    }

    .hamburger {
        display: block;
        position: absolute;
        right: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-content p {
        white-space: normal;
    }

    .about-text {
        text-align: center;
    }

    .about-text p {
        text-align: left;
    }

    .about-text h2 {
        text-align: center;
    }

    .accordion-header {
        font-size: 1rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-nav {
        display: flex;
    }

    #why-us h2, #services h2, #about h2, #faq h2, .contact-details h2, #testimonials h2 {
        font-size: 2.2rem;
    }

    .why-us-container {
      flex-direction: column;
      align-items: center;
    }

    .feature {
      width: 100%;
      max-width: 350px;
    }

    .contact-container {
      flex-direction: column;
    }

    .location-contact-container {
      flex-direction: column;
    }

    .location-map {
      width: 100%;
      max-width: 450px;
    }

    .about-container {
      flex-direction: column;
    }

    .nav-btn {
      display: none;
    }

    .form-row .input-group,
    .vehicle-info .form-row .input-group {
        flex-basis: 100%;
    }
}

/* Reveal Animation */
.reveal {
  position: relative;
  transform: translateY(150px);
  opacity: 0;
  transition: 1s all ease;
}

.reveal.active {
  transform: translateY(0);
  opacity: 1;
}

.input-group label.required {
  position: relative;
  display: inline-block;
}

.input-group label.required::after {
  content: '*';
  color: #dd1527;
  margin-left: 5px;
  cursor: help;
}

.input-group label.required::before {
  content: 'This field is required';
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #e0e0e0;
  padding: 8px 12px;
  border-radius: 5px;
  white-space: nowrap;
  font-size: 0.9rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 10;
}

.input-group label.required:hover::before {
  opacity: 1;
  visibility: visible;
}

/* Back to Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #dd1527;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: 1.5rem;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, background-color 0.3s;
  box-shadow: 0 4px 15px rgba(221, 21, 39, 0.4);
}

.back-to-top-btn.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top-btn:hover {
  background-color: #b80020;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(221, 21, 39, 0.5);
}
