@font-face{
  src: url(fonts/Inter_18pt-Regular.ttf);
  font-family: Inter_18pt-Regular;
}

@font-face{
  src: url(fonts/WorkSans-Regular.ttf);
  font-family: Lato;
}

p, h1, h2, h3, h4, h5, h6 {
  font-family: Inter_18pt-Regular, sans-serif;
}

body, html {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family: Inter_18pt-Regular, sans-serif;
  color: black;
}

.he {
  font-size: 16px;
  color: black;
  text-decoration: none;
  margin-left: 20px;
  font-family: Inter_18pt-Regular;
}

.he:hover {
  text-decoration: underline;
}

.nav {
  margin-top: 10px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
}

.center-container{
  display: flex;
  justify-content: center;
  align-items: center;
  height: 150px;
}

.logo {
  height: 300px;
  width: auto;
}

.hero-section {
  position: relative;
  width: 100%;
  height: 480px;
  background-image: url('hs.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white; /* Make text readable */
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: 0.5; /* Adjust darkness here */
  z-index: 1;
}

.hero-section * {
  position: relative;
  z-index: 2; /* Bring text above overlay */
}

.hero-text {
  position: absolute;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

#title {
  font-size: 100px;
  font-weight: bold;
  font-family: Inter_18pt-Regular;
  color: white;
  margin: 0;
}

#subhead {
  font-size: 18px;
  color: white;
  font-family: Inter_18pt-Regular;
}

.hero-btn {
  background-color: #D33545;
  padding: 11px 20px;
  text-decoration: none;
  color: white;
  font-weight: bold;
  border-radius: 5px;
  border: 2px solid #D33545;
  transition: all 0.3s ease;
  font-family: Inter_18pt-Regular;
}

.hero-btn:hover {
  background-color: transparent;
  color: #F73245;
  border-color: #F73245;
}

@media (max-width: 580px) {
  #title {
    font-size: 84px; /* Adjust title size for smaller screens */
  }
}

.icons-section {
  display: flex;
  justify-content: center;
  max-height: 1000px;
  padding: 20px;
}

.icons {
  display: flex;
  flex-wrap: wrap; /* Allow items to wrap */
  justify-content: center;
  gap: 20px; /* Space between icons */
}

/* Optional: Make icons behave nicely */
.icons img {
  flex: 0 1 auto;
  padding: 10px;
}

.logos {
  height: 75px;
  width: auto;
}

.inventory-section {
  max-width: 1600px;
  margin-bottom: 60px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  font-family: 'Segoe UI', sans-serif;
  color: #222;
  background-color: #f9f9f9;
}

.inventory-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
}

.inventory-header h2 {
  font-size: 28px;
  margin-bottom: 5px;
}

.see-all-btn {
  background-color: #D33545;
  padding: 11px 20px;
  text-decoration: none;
  color: white;
  font-weight: bold;
  border-radius: 5px;
  border: 0px solid #D33545;
  transition: all 0.3s ease;
}

.see-all-btn:hover {
  background-color: transparent;
  color: #D33545;
  border: 2px solid  #D33545;
}
/* Inventory grid styles */
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 30px;
  padding-bottom: 50px;
}

.car-bar{
  background-color: #D33545;
  align-items: center;
  display: flex;
  justify-content: center;
  height: auto;
  max-height: 45px;
}

.car-card {
  text-align: center;
  border: 1.5px solid black;
  border-radius: 8px;
  transition: box-shadow 0.3s ease;
  background-color: #fff;
  height: 490px;
}

.car-card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block; /* ✅ Add this line */
}

.car-card:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.car-card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.car-card .price {
  font-size: 20px;
  color: white;
}

.car-card .car-name {
  font-size: 18px;
  margin-top: 20px;
}

.car-card .mileage {
  font-size: 16px;
  color: #555;
  margin-top: 5px;
}

@media (max-width: 420px) {
  .inventory-grid {
    margin-left: 1px;
    margin-right: 1px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .car-card {
    max-width: 100vh;
  }
}

.who-we-are {
  padding: 0px 20px;
  font-family: 'Segoe UI', sans-serif;
  color: #222;
}

.who-container {
  max-width: 1400px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: -44px;
}

.who-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  transform: translate(-50px)
}

.who-content {
  flex: 1;
  min-width: 300px;
  transform: translate(0px, -40px);
}

.who-content .intro {
  font-size: 18px;
  color: black;
  margin-bottom: 10px;
  transform: translate(0px, 45px);
}

.who-content h2 {
  font-size: 72px;
  font-weight: 700;
  margin-bottom: 20px;
  color: black;
}

.who-content p {
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 16px;
  max-width: 900px;
  overflow-wrap: break-word;
  width: 100%;
  text-align: justify;
  color: black;

}

.btn-learn {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid #D33545;
  color: white;
  background-color: #D33545;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-learn:hover {
  background-color: transparent;
  color: #D33545;
  border-color: #D33545;
}

.center-footer{
  text-align: center;
  display: block;
}

@media (max-width: 910px) {
  .who-we-are{
    margin-top: -45px;
    padding-top: 45px;
    padding-bottom: 45px;
  }
  .who-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    margin-top: -150px;
  }

  .who-image img {
    max-width: 100%;
    transform: none;
    height: auto;
    margin-bottom: -95px;
  }

  .who-content {
    transform: none;
    padding: 0 10px;
  }

  .who-content .intro {
    transform: none;
    font-size: 18px;
    margin-bottom: -20px;
  }

  .who-content h2 {
    font-size: 42px;
  }

  .who-content p {
    font-size: 16px;
    text-align: center;
  }

  .btn-learn {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
  }
}

  /*About Us Page*/

.about-hero-section {
  position: relative;
  width: 100%;
  height: 340px;
  background-image: url('abh.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white; /* Make text readable */
  overflow: hidden;
}

.about-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: 0.7; /* Adjust darkness here */
  z-index: 1;
}

.about-hero-section * {
  position: relative;
  z-index: 2; /* Bring text above overlay */
}

.about-about-section {
    background-color: #f9f9f9;
    padding: 60px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 100px;
}

.about-text-container {
    max-width: 766px;
    flex: 1;
    margin-bottom: 50px;
    color: black;
}

.about-about-text p {
  line-height: 1.5;
  color: black;
}

.about-image {
    width: 633px;
    max-width: 633px;
    height: 494px;
}

@media screen and (max-width: 1017px) {
  .about-about-section{
    flex-direction: column;
    padding: 20px;
    text-align: center;
  }

  .about-image {
    max-width: 100%;
    height: auto;
  }

  .about-text-container {
    padding: -0px 10px;
    margin-top: -120px;
    margin-bottom: 10px;
  }

  h1, h2 {
    font-size: 32px;
  }

  .about-text {
    font-size: 16px;
  }
}

.about-values-section {
  background-color: white;
  padding: 0px 20px;
  padding-bottom: 80px;
}

.values-title {
  font-size: 56px;
  font-weight: bold;
  margin-bottom: 60px;
  text-align: center;
}

.values-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}

.values-content {
  flex: 1 1 600px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 100px;
}

.value-block {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
  max-width: 500px;
}

.value-icon-container{
  display: flex; 
  justify-content: center;
}

.value-heading {
  font-size: 24px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
  text-align: center;
}

.value-text {
  text-align: center;
  font-size: 16px;
  line-height: 1.5;
}

@media screen and (max-width: 800px) {
  .about-values-section {
    padding-left: 25px;
  }
  .values-content {
    flex-direction: column;
    align-items: center;
    gap: 75px;
  }

  .values-title {
    font-size: 36px;
    text-align: center;
    padding-left: 0;
  }

  .value-block {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media screen and (max-width: 580px) {
  .values-title {
    font-size: 48px !important;
    padding-left: 0;
  }
  .value-text {
    font-size: 15px;
  }

  .value-heading {
    font-size: 20px;
  }

  .values-side-image {
    max-width: 100%;
    height: auto;
  }
}

/* Inventory Page Styles */
.inventory-hero-section {
  position: relative;
  width: 100%;
  height: 340px;
  background-image: url('iloveimg-converted/pexels-introspectivedsgn-9846046.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white; /* Make text readable */
  overflow: hidden;
}

.inventory-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: 0.5; /* Adjust darkness here */
  z-index: 1;
}

.inventory-hero-section * {
  position: relative;
  z-index: 2; /* Bring text above overlay */
}


.main-inventory {
  display: flex; 
  flex-wrap: wrap; 
  max-width: 1650px; 
  width: 100%;
  justify-content: center;
}

.car-image {
  border-left: 0.5px solid  grey; 
  border-bottom: 0.5px solid  grey; 
  border-top: 0.5px solid  grey; 
  max-width: 450px;
  max-height: 300px; 
  width: 100%; 
  height: auto; 
  object-fit: cover;
  display: block;
}

.info-box {
  flex: 2 1 0; 
  max-width: 1700px;
  width: 100%;
  padding: 20px; 
  display: flex; 
  flex-direction: column; 
  justify-content: space-between; 
  border-right: 0.5px solid  grey; 
  border-bottom: 0.5px solid grey; 
  border-top: 0.5px solid grey;
  box-sizing: border-box;
}

.btn {
  font-weight: bold; 
  text-decoration: none; 
  color:  #D33545; 
  border: 2px solid  #D33545; 
  padding: 8px 16px; 
  width: fit-content;
}

.btn:hover {
  color: white !important;
  background-color: #D33545;
  text-decoration: none;
}

@media (max-width: 1022px) {
  .car-image {
    border-bottom: none;
    border-right: 0.5px solid grey;
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 600px;
  }

  .info-box {
    border-left: 0.5px solid grey;
    border-top: none;
  }
}

@media (max-width: 638px) {
  .main-inventory{
    margin-top: 20px;
  }
  .car-image{
    border-left: none;
    border-top: none;
    border-right: none;
  }
  .info-box {
    border-left: none;
    border-top: none;
    border-right: none;
    border-bottom: none;
    align-items: center;
  }
  .hide-on-mobile {
    display: none !important;
  }

  .car-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .car-header h2,
  .car-header span {
    font-size: 18px !important;
  }

  .btn {
    display: flex;
    justify-content: center;
    font-size: 14px !important;
    margin-top: 15px;
    max-width: 400px;
    width: 100%;
  }
}


/*Inventory CMS*/
/* Full-width main image */
/* Cursor for clickable thumbnails */
.img-container img,
.thumbnail-bar img,
.gallery-content img {
}

.img-one {
  width: 100%;
  max-height: 600px;
  height: auto;
  max-width: 900.1px;
}

.img-one:hover{
  opacity: 70%;
}

/* Container centers the large image */
.section-one {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

/* Responsive image grid */
.img-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  margin-bottom: 30px;
  padding-bottom: 10px;
}

.img-container img {
  width: 100%;
  max-width: 290px;
  height: auto;
  object-fit: cover;
}

/* Titles */
.car-title {
  text-align: center;
  margin-top: 20px;
  font-size: 32px;
}

.car-price {
  text-align: center;
  margin-top: 10px;
  font-size: 26px;
}

.gallery-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0,0,0,0.9);
}

.gallery-content {
  position: relative;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
}

.gallery-content img {
  max-width: 80%;
  max-height: 80vh;
  border-radius: 10px;
}

.close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 12px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 30px;
  user-select: none;
  transition: 0.3s;
  background-color: rgba(0,0,0,0.3);
}

.prev {
  left: 20px;
}
.next {
  right: 20px;
}

.thumbnail-bar {
  position: fixed;
  bottom: 0px;
  left: 0;
  right: 0;
  padding: 10px 15px;
  background-color: rgba(0, 0, 0, 0.5); /* Optional */
  display: flex;
  flex-wrap: nowrap; /* Prevent wrapping */
  overflow-x: auto; /* Enables horizontal scrolling */
  overflow-y: hidden;
  gap: 10px;
  z-index: 10001;
  scroll-behavior: smooth;
}

.thumbnail-bar::-webkit-scrollbar {
  height: 10px;
}

.thumbnail-bar::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}

.thumbnail-bar img {
  width: 80px;
  height: 60px;
  cursor: pointer;
  border: 2px solid transparent;
  object-fit: cover;
}

.thumbnail-bar img.active {
  border: 2px solid white;
}

@media (max-width: 962px) {
  .img-container img {
    width: auto;
    max-width: 30.2vw;  /* max width relative to viewport */
    height: auto;
    object-fit: cover;
}
}
/* Responsive adjustments */
@media (max-width: 768px) {
  .car-title {
    font-size: 24px;
  }

  .car-price {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .img-one {
    max-height: 400px;
    width: 100%;
    object-fit: contain;
  }
}

@media (max-width: 600px) {
  .img-container{
    gap: 5px;
  }

  .img-container img {
    width: auto;
    max-width: 31.2vw;  /* max width relative to viewport */
    height: auto;
    object-fit: cover;
  }
}

.gallery-content img {
    max-width: 95%;
    max-height: 60vh;
}

.thumbnail-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0px;
    margin-top: 330px;
    position: sticky;
}

.thumbnail-bar img {
    width: 60px;
    height: 45px;
}


.table {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
}

.tables {
  max-width: 1200px; 
  max-height: 6600px; 
  border: 1px solid black;
}

.tables hr {
  width: 100%;
  border: none;
  border-top: 1px solid #ccc;
  margin: 10px 0;
}


.car-fax{
  font-size: 20px;
  text-decoration: none; 
  color: blue;
}

.car-fax:hover{
  text-decoration: underline;
  color: purple;
}

@media (max-width: 1922px){
  .tables{
    margin-left: 10px;
    margin-right: 10px;
  }
}

@media (max-width: 800px) {
  .tables {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* optional, centers vertically inside parent if it has height */
    text-align: center;
  }
}

.footer-global {
  height: auto;
  width: 100%;
  background-color: black;
  padding: 40px 0;
}

.footer-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 44.5px; /* spacing between the 3 sections */
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section,
.foot-sec,
.foot-contact {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  max-width: 300px;
  width: 100%;
  padding: 20px;
}

.heading-footer {
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: bold;
  color: white;
}

/* Links */
.q-l {
  text-decoration: none;
  color: white;
  font-size: 17px;
  font-family: Inter_18pt-Regular;
  margin-bottom: 10px;
}

.q-l:hover {
  text-decoration: underline;
}

/* Hours + Contact Info */
.hours,
.contact-info {
  color: white;
  font-size: 17px;
  margin-bottom: 0px;
}

.vertical-line {
  width: 1px;
  height: 200px; /* Adjust as needed */
  background-color: white;
  opacity: 0.3;
}

@media (max-width: 768px) {
  .vertical-line {
    display: none;
  }
}
