body {
    font-family: 'Roboto', sans-serif;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Montserrat', sans-serif;
}

.hero-section {
    background: url('https://rwsgarageservices.co.uk/wp-content/uploads/2023/07/277750682-381181704019086-5661094954351623967-n.jpg') no-repeat center center;
    background-size: cover;
    height: 60vh;
    position: relative;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.page-header-section {
    background-size: cover;
    background-position: center center;
    height: 40vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-header-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.page-header-section .container {
    position: relative;
    z-index: 2;
}

.page-header-section .icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

/* Specific Page Headers */
.mot-header {
    background-image: url('../images/manundercar.jpg');
}

.bodyshop-header {
    background-image: url('../images/bodyshop.webp');
}

.repairs-header {
    background-image: url('../images/brakesandpads.webp');
}

.servicing-header {
    background-image: url('../images/manundercar.jpg');
}

.tyres-header {
    background-image: url('../images/tyres.webp');
}

.aircon-header {
    background-image: url('../images/aircon.jpg');
}

.horsebox-header {
    background-image: url('../images/horsebox.webp');
}

.cambelt-header {
    background-image: url('../images/cambelt.webp');
}


.navbar .nav-link {
    transition: color 0.3s ease;
}

.navbar .nav-link:hover {
    color: #0d6efd !important;
}

.navbar.scrolled {
  padding-top: 5px !important;
  padding-bottom: 5px !important;
  transition: padding 0.3s;
}

.card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
}

.testimonial-card {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
    font-style: italic;
}

.testimonial-card cite {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
    color: #333;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #333;
    border-radius: 50%;
}

footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Image rendering optimization */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -moz-crisp-edges;
    image-rendering: pixelated;
    max-width: 100%;
    height: auto;
}

@media (min-width: 992px) {
  .nav-item.dropdown:hover>.dropdown-menu {
    display: block !important;
  }
  .nav-item.dropdown:hover>.nav-link {
    color: #0d6efd !important;
  }
}
