/* ==========================================================================
   Precision Auto Repair - Custom Styles
   ========================================================================== */

:root {
  --pr-red: #d21f27;
  --pr-red-dark: #b01920;
  --pr-dark: #1a1a1a;
  --pr-dark-2: #222222;
  --pr-gray: #5b5b5b;
  --pr-light-gray: #f5f5f5;
  --pr-border: #e5e5e5;
  --font-heading: "Plus Jakarta Sans", sans-serif;
  --font-body: "Roboto", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--pr-dark);
}

/* Guards against accidental horizontal overflow in the page content.
   Deliberately excludes <header>, since an overflow-hidden ancestor
   breaks position: sticky. */
.page-wrap {
  overflow-x: hidden;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0.5px;
}

a {
  color: var(--pr-red);
  text-decoration: none !important;
}
a:hover {
  color: var(--pr-red-dark);
  text-decoration: none;
}

a:focus,
a:active,
a:hover {
  outline: none !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
}}

.text-red {
  color: var(--pr-red) !important;
}

.bg-red {
  background-color: var(--pr-red) !important;
}

.section-label {
  display: inline-block;
  color: var(--pr-red);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.section-heading {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  text-transform: uppercase;
  line-height: 1.2;
}

/* Buttons ------------------------------------------------------------- */

.btn {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  padding: 0.85rem 1.75rem;
  border-radius: 2px;
  border-width: 2px;
}

.btn-red {
  background-color: var(--pr-red);
  border-color: var(--pr-red);
  color: #fff;
}

.btn-red:hover,
.btn-red:focus {
  background-color: var(--pr-red-dark);
  border-color: var(--pr-red-dark);
  color: #fff;
}

.btn-outline-light-custom {
  background-color: transparent;
  border-color: #fff;
  color: #fff;
}

.btn-outline-light-custom:hover {
  background-color: #fff;
  color: var(--pr-dark);
}

.btn-dark-custom {
  background-color: var(--pr-dark);
  border-color: var(--pr-dark);
  color: #fff;
}

.btn-dark-custom:hover {
  background-color: #000;
  border-color: #000;
  color: #fff;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  z-index: 1030;
}

.header-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

.header-main {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 0.75rem 0;
}

@media (max-width: 1199.98px) {
  .header-main .navbar-collapse {
    flex-basis: 100%;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-left: 15px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--pr-dark);
  color: var(--pr-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-heading);
  line-height: 1.05;
}

.brand-text .brand-line1 {
  display: block;
  font-weight: 800;
  color: var(--pr-red);
  font-size: 1.15rem;
  letter-spacing: 1px;
}

.brand-text .brand-line2 {
  display: block;
  font-weight: 700;
  color: var(--pr-dark);
  font-size: 0.8rem;
  letter-spacing: 3px;
}

.main-nav .nav-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--pr-dark);
  padding: 0.5rem 1rem;
  position: relative;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: var(--pr-red);
}

.main-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.15rem;
  height: 2px;
  background-color: var(--pr-red);
}

.header-phone {
  background-color: var(--pr-red);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-phone:hover {
  background-color: var(--pr-red-dark);
  color: #fff;
}

.header-phone i {
  font-size: 1.1rem;
}

.header-phone-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--pr-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  margin-right: 0.75rem;
}

.header-phone-icon:hover {
  background-color: var(--pr-red-dark);
  color: #fff;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero-section {
  position: relative;
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/default-hero.jpg");
  background-size: cover;
  background-position: center 25%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 10, 10, 0.92) 15%, rgba(10, 10, 10, 0.75) 45%, rgba(10, 10, 10, 0.35) 75%, rgba(10, 10, 10, 0.15) 100%);
}

.hero-content {
  position: relative;
  padding-top: 5.5rem;
  padding-bottom: 4rem;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero-content .lead {
  font-size: 1.05rem;
  color: #e6e6e6;
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero-buttons {
  margin-bottom: 3.5rem;
}

.hero-trust {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 1.75rem;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-trust-item i {
  font-size: 1.5rem;
  color: var(--pr-red);
  flex-shrink: 0;
}

.hero-trust-divider {
  display: none;
}

@media (min-width: 768px) {
  .hero-trust-divider {
    display: block;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.25);
  }
}

/* ==========================================================================
   Services
   ========================================================================== */

.services-section {
  padding: 5rem 0;
}

.service-grid {
  border-top: 1px solid var(--pr-border);
  border-left: 1px solid var(--pr-border);
}

.service-card {
  border-right: 1px solid var(--pr-border);
  border-bottom: 1px solid var(--pr-border);
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: background-color 0.2s ease;
}

.service-card:hover {
  background-color: var(--pr-light-gray);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--pr-red);
  border-radius: 50%;
  color: var(--pr-red);
  font-size: 1.6rem;
  transition: all 0.2s ease;
}

.service-card:hover .service-icon {
  background-color: var(--pr-red);
  color: #fff;
}

.service-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.service-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--pr-red);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.service-link i {
  transition: transform 0.2s ease;
}

.service-card:hover .service-link i {
  transform: translateX(4px);
}

/* ==========================================================================
   About
   ========================================================================== */

.about-section {
  padding: 0 0 5rem;
}

.about-img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.about-section p {
  color: var(--pr-gray);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}

/* ==========================================================================
   Why Choose Us
   ========================================================================== */

.why-section {
  position: relative;
  padding: 5.5rem 0;
  color: #fff;
}

.why-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/car-inspection.jpg");
  background-size: cover;
  background-position: center 20%;
}

.why-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 10, 10, 0.95) 40%, rgba(10, 10, 10, 0.75) 100%);
}

.why-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.why-item {
  text-align: center;
  padding: 0 1rem;
  height: 100%;
}

.why-item i {
  font-size: 2.25rem;
  color: var(--pr-red);
  margin-bottom: 1.25rem;
}

.why-item h3 {
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.why-item p {
  color: #cfcfcf;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.why-divider {
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

@media (max-width: 767.98px) {
  .why-divider {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 2rem;
    margin-top: 1rem;
  }
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials-section {
  padding: 5.5rem 0;
  text-align: center;
}

.testimonials-section .stars {
  color: var(--pr-red);
  font-size: 1.25rem;
  letter-spacing: 4px;
  margin-bottom: 2rem;
}

.testimonial-carousel {
  max-width: 760px;
  margin: 0 auto;
}

.testimonial-quote {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 500;
  line-height: 1.6;
  color: var(--pr-dark);
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--pr-gray);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.testimonial-carousel .carousel-control-prev,
.testimonial-carousel .carousel-control-next {
  position: static;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--pr-border);
  color: var(--pr-dark);
  opacity: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0.75rem;
}

.testimonial-carousel .carousel-control-prev:hover,
.testimonial-carousel .carousel-control-next:hover {
  background-color: var(--pr-red);
  border-color: var(--pr-red);
  color: #fff;
}

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

/* ==========================================================================
   CTA Banner
   ========================================================================== */

.cta-banner {
  position: relative;
  color: #fff;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/tire-wheel-service.jpg");
  background-size: cover;
  background-position: center;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, var(--pr-red) 42%, var(--pr-red) 100%);
}

.cta-content {
  position: relative;
  padding: 2.75rem 0;
}

.cta-content .eyebrow {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.35rem;
}

.cta-content .sub {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

/* Start HP Map Styles */
.map-hero {
  position: relative;
  overflow: hidden;
  min-height: auto;
}

.map-hero iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 1;
}

.map-hero .overlay-content {
  padding: 4em 10% 4em 0;
  position: relative;
  display: flex;
  justify-content: end;
  z-index: 2;
  background: rgba(0,0,0,0);
}

.map-hero .hours-card {
  background-color: #fff;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  padding: 35px 50px;
  border-radius: 20px;
  text-align: left;
  position: relative;
  text-align: center;
}

.map-hero .text-accent {
    color: var(--pr-red);
}

.hours-card ul {
    list-style: none;
    padding-left: 0;
    font-weight: 600;
}

.hours-card li {
    margin-bottom: 6px;
    text-align: left;
}

.hours-card .txt-r {
    float: right;
}

.map-hero .hours-card i {
    color: var(--main-color);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: var(--pr-dark-2);
  color: #cfcfcf;
}

.site-footer h5 {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
}

.site-footer .brand-text .brand-line2 {
  color: #cfcfcf;
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #a8a8a8;
  margin: 1rem 0 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background-color: var(--pr-red);
  border-color: var(--pr-red);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: #cfcfcf;
  font-size: 0.92rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
  color: var(--pr-red);
  padding-left: 4px;
}

.footer-links i {
  color: var(--pr-red);
  font-size: 0.7rem;
  margin-right: 0.5rem;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  color: #cfcfcf;
}

.footer-contact a {
  color: #cfcfcf;
}

.footer-contact a:hover {
  color: var(--pr-red);
}

.footer-contact i {
  color: var(--pr-red);
  width: 16px;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 0.85rem;
  color: #a8a8a8;
  margin: 0;
}

.footer-bottom a {
  color: #a8a8a8;
}

.footer-bottom a:hover {
  color: var(--pr-red);
}

.footer-legal a {
  font-size: 0.85rem;
  margin-left: 1.25rem;
}

@media (max-width: 991px) {
  .map-hero {
    min-height: auto;
  }
  .map-hero .overlay-content {
    padding: 2em 0;
    justify-content: center;
    margin-right: auto;
  }
  .map-hero .hours-card {
    margin-top: 0;
  }
}

@media (max-width: 575.98px) {
  .footer-legal {
    margin-top: 0.5rem;
  }
  .footer-legal a {
    margin-left: 0;
    margin-right: 1.25rem;
  }
}
