/* ============================================
   Rock Bridge Automotive - Responsive Styles
   ============================================ */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: url('../../img/body-bg.jpg') repeat;
  background-color: #1a1a1a;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #e74c3c;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #c0392b;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navigation Styles */
.navbar {
  background: rgba(26, 26, 26, 0.95);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  width: 50px;
  height: 50px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  flex-wrap: wrap;
}

.nav-menu li {
  display: inline-block;
}

.nav-menu a {
  color: white;
  padding: 0.5rem 1rem;
  transition: color 0.3s;
  display: block;
}

.nav-menu a:hover {
  color: #e74c3c;
}

/* Hero Section */
.hero {
  background: url('../../img/body-bg.jpg') repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 1rem 3rem;
  color: white;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 0;
}

/* Breadcrumbs */
.align-left {
  text-align: left;
  width: 100%;
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.breadcrumb-nav {
  padding: 1rem 0;
}

.breadcrumb-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
}

.breadcrumb-nav li {
  display: inline-flex;
  align-items: center;
}

.breadcrumb-nav a {
  color: white;
  text-decoration: none;
  padding: 0.5rem;
  transition: color 0.3s;
}

.breadcrumb-nav a:hover {
  color: #e74c3c;
}

.breadcrumb-nav i {
  font-size: 1.2rem;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
}

.phone-link {
  display: inline-block;
  margin-bottom: 2rem;
}

.phone-link img {
  max-width: 300px;
  margin: 0 auto;
}

/* Section Backgrounds */
.section-top-padding {
  padding-top: 6rem;
}

.background-image {
  background-image: url('../../img/body-bg.jpg');
  background-size: auto;
  background-position: center;
  background-repeat: repeat;
}

.background-dark {
  background: #0d0d0d;
}

.background-grey {
  background: #f5f5f5;
}

.background-white {
  background: white;
}

.background-primary {
  background: #e74c3c;
}

.section-small-padding {
  padding: 3rem 1rem;
}

/* Typography */
h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 300;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.text-white {
  color: white;
align: left;
}

.text-primary {
  color: #e74c3c;
}

.text-dark {
  color: #1a1a1a;
}

.text-size-12 {
  font-size: 0.75rem;
}

.text-size-20 {
  font-size: 1.25rem;
}

.text-size-30 {
  font-size: 1.875rem;
}

.text-size-40 {
  font-size: 2.5rem;
}

.text-size-50 {
  font-size: 3.125rem;
}

.text-strong {
  font-weight: 700;
}

.text-extra-thin {
  font-weight: 200;
}

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

.text-line-height-1 {
  line-height: 1.2;
}

/* Margins and Padding */
.margin {
  margin: 1rem;
}

.margin2x {
  margin: 2rem;
}

.margin-bottom {
  margin-bottom: 1rem;
}

.margin-bottom-20 {
  margin-bottom: 1.25rem;
}

.margin-bottom-40 {
  margin-bottom: 2.5rem;
}

.margin-bottom-50 {
  margin-bottom: 3.125rem;
}

.margin-bottom-60 {
  margin-bottom: 3.75rem;
}

.margin-top-20 {
  margin-top: 1.25rem;
}

.margin-top-130 {
  margin-top: 8.125rem;
}

.margin-top-bottom-40 {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

.margin-left-60 {
  margin-left: 3.75rem;
}

.margin-right-50 {
  margin-right: 3.125rem;
}

.padding {
  padding: 1rem;
}

.padding-2x {
  padding: 2rem;
}

/* Grid System */
.line {
  display: flex;
  flex-wrap: wrap;
  margin: -0.5rem;
}

.line > * {
  padding: 0.5rem;
}

/* Column Sizing */
.s-12 {
  width: 100%;
}

.center {
  margin-left: auto;
  margin-right: auto;
}

/* Float utilities */
.float-left {
  float: left;
  margin-right: 1rem;
}

.full-img {
  width: 100%;
  height: auto;
}

/* Section Title */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title hr,
.break {
  border: none;
  height: 3px;
  background: #e74c3c;
}

.break-small {
  width: 100px;
  margin: 1rem auto;
}

.break-center {
  margin-left: auto;
  margin-right: auto;
}

/* Specials Grid */
.specials-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
}

.special-card {
  background: #1a1a1a;
  padding: 1.5rem;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.special-card:hover {
  transform: translateY(-5px);
}

.special-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* Text Links */
.text-more-info {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 500;
}

.text-primary-hover:hover {
  color: #c0392b;
}

/* Content Area */
.content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1rem;
}

.content-area p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* Carousel/Slider */
.carousel-default {
  max-width: 100%;
  margin: 2rem auto;
}

.carousel-default img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Icon Styles */
[class^="icon-"],
[class*=" icon-"] {
  display: inline-block;
  line-height: 1;
}

/* Logo Grid (Manufacturer Logos) */
.logos-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  align-items: center;
  padding: 0 1rem;
}

.logos-grid img {
  margin: 0 auto;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.logos-grid img:hover {
  opacity: 1;
}

/* Certifications */
.cert-logos {
  max-width: 600px;
  margin: 2rem auto;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cert-logos img {
  max-width: 200px;
}

/* Split Section */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.split-image {
  min-height: 400px;
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-content {
  padding: 3rem;
  color: white;
}

/* Social Icons */
.social {
  background: #e74c3c;
  padding: 2rem;
  text-align: center;
}

.social a {
  color: #1a1a1a;
  font-size: 2rem;
  margin: 0 1rem;
  transition: opacity 0.3s;
}

.social a:hover {
  opacity: 0.7;
}

/* Footer */
footer {
  background: #0d0d0d;
  color: #ccc;
  padding: 3rem 1rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

footer h4 {
  color: white;
  margin-bottom: 1rem;
}

footer a {
  color: #ccc;
  display: block;
  margin-bottom: 0.5rem;
}

footer a:hover {
  color: #e74c3c;
}

.copyright {
  background: #000;
  padding: 1.5rem;
  text-align: center;
  color: #888;
  font-size: 0.9rem;
}

/* Responsive Breakpoints */

/* Medium screens (tablets) */
@media (min-width: 768px) {
  .m-6 {
    width: 50%;
  }
  
  .m-10 {
    width: 83.333%;
  }
  
  .m-12 {
    width: 100%;
  }
  
  .margin-m-bottom-60 {
    margin-bottom: 3.75rem;
  }
  
  .margin-m-top-bottom-50 {
    margin-top: 3.125rem;
    margin-bottom: 3.125rem;
  }
}

/* Large screens (desktops) */
@media (min-width: 992px) {
  .l-1 {
    width: 8.333%;
  }
  
  .l-3 {
    width: 25%;
  }
  
  .l-4 {
    width: 33.333%;
  }
  
  .l-6 {
    width: 50%;
  }
  
  .l-7 {
    width: 58.333%;
  }
  
  .l-11 {
    width: 91.666%;
  }
  
  .l-12 {
    width: 100%;
  }
  
  .hide-l {
    display: none !important;
  }
}

/* Extra Large screens */
@media (min-width: 1200px) {
  .xl-2 {
    width: 16.666%;
  }
  
  .xl-3 {
    width: 25%;
  }
  
  .xl-4 {
    width: 33.333%;
  }
  
  .xl-5 {
    width: 41.666%;
  }
  
  .xl-7 {
    width: 58.333%;
  }
  
  .xl-8 {
    width: 66.666%;
  }
  
  .xl-11 {
    width: 91.666%;
  }
  
  .hide-xl {
    display: none !important;
  }
}

/* XXL screens */
@media (min-width: 1600px) {
  .xxl-4 {
    width: 33.333%;
  }
  
  .xxl-5 {
    width: 41.666%;
  }
  
  .xxl-8 {
    width: 66.666%;
  }
  
  .hide-xxl {
    display: none !important;
  }
}

/* Mobile Responsive (max-width) */
@media (max-width: 767px) {
  .nav-toggle {
    display: block;
  }
  
  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    text-align: center;
    padding: 1rem 0;
    gap: 0;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .nav-menu a {
    padding: 1rem;
  }
  
  .hero {
    padding-top: 5rem;
  }
  
  .margin-top-130 {
    margin-top: 2rem;
  }
  
  .float-left {
    float: none;
    margin: 1rem auto;
  }
  
  .margin-left-60 {
    margin-left: 0;
  }
  
  .margin-right-50 {
    margin-right: 0;
  }
  
  .split-section {
    grid-template-columns: 1fr;
  }
  
  .split-image {
    min-height: 300px;
  }
  
  .split-content {
    padding: 2rem 1rem;
  }
  
  .specials-grid {
    grid-template-columns: 1fr;
  }
  
  .logos-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
  }
  
  .text-s-size-30 {
    font-size: 1.875rem;
  }
  
  .text-m-size-30,
  .text-m-size-40 {
    font-size: 1.875rem;
  }
  
  h1, h2 {
    word-wrap: break-word;
  }
  
  .margin2x {
    margin: 1rem;
  }
  
  .padding-2x {
    padding: 1rem;
  }
}

/* Very small screens */
@media (max-width: 480px) {
  .phone-link img {
    max-width: 250px;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .special-card {
    padding: 1rem;
  }
  
  .cert-logos {
    flex-direction: column;
    align-items: center;
  }
}