/* font importing */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;700&family=Roboto:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500&display=swap'); /* Importando a fonte Montserrat */

/* reseting css rules */
*{
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    outline: none;
    font-family: "Roboto", sans-serif;
}

:root{
    --blue: #2F54A3;
    --gray: #ededed;
    --hoover: #FF6B00;
    --black: #000;
    --blue_hoover: #1e3c82;
    --cars_desc: #333;
    --blue_dark: #0056b3;
}

html,
body{
    width: 100%;
    overflow-x: hidden;
    font-family: 'Roboto', sans-serif;
}

.breadcrumb {
    padding: 1rem;
    font-size: 14px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.breadcrumb a {
    text-decoration: none;
    color: #007bff;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #555;
}

main{
    max-width: 1550px;
    min-width: 300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.back-button {
    position: fixed; 
    top: 60px; 
    left: 50px; 
    background-color: none;
    color: #007bff; 
    padding: 8px 12px; 
    font-size: 14px; 
    border: none; 
    border-radius: 5px; 
    cursor: pointer; 
    z-index: 1000; 
}

.back-button:hover {
    text-decoration: underline;
}

.first{
    width: 100%;
    justify-content: space-around;
    margin-bottom: 0px;
}
.car-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
    width: 100%;
    justify-content: space-around;
    height: 670px;
}

.car-swiper {
    width: 75%;
    max-width: 1000px;
    height: 600px;
    border: 2px solid #ccc; 
    border-radius: 12px;     
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); 
    background-color: var(--gray); 
}
  

.swiper-slide img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    padding: 0 60px; /* ← padding lateral (podes ajustar) */
    box-sizing: border-box;
    display: block;
    margin: 0 auto;
}  
  
.car-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-top: 8px;
}
  
.car-info h1 {
    margin-bottom: 0.5rem;
    font-size: 32px;
    color: var(--blue);
}
  
.car-info p {
    margin: 0.5rem 0;
}

.car-info img{
    margin-top: 90px;
    width: 90%;
    height: 70%;
}
  
.contact-info{
    margin-top: 20px;
}

/* Second */

.second {
    padding: 1rem 0;
    background-color: #f9f9f9;
}

.car-details {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
}

.detail-item {
    min-width: 150px;
    max-width: 200px;
    text-align: center;
}

.car-details .detail-item i {
    font-size: 27px;
    margin-bottom: 11px;
    color: var(--blue); 
}

.detail-item h4 {
    margin-top: 3px;
    font-size: 1.3rem;
    color: #555;
}

.detail-item p {
    margin-top: 0.6rem;
    font-weight: bold;
    font-size: 1rem;
    color: #333;
}

.third {
    padding: 40px 20px;
    background-color: #f9f9f9;
    border-top: 1px solid #ddd;
}
  
.car-description {
    max-width: 1450px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
  
.car-description h3 {
    font-size: 28px;
    margin-bottom: 16px;
    color: var(--blue);
}
  
.car-description p {
    font-size: 17px;
    line-height: 1.6;
    color: #555;
    white-space: pre-line;
}

.fourth {
    padding: 40px 20px;
    background-color: #fff;
    border-top: 1px solid #ddd;
}
  
.car-detalhes {
    max-width: 1450px;
    margin: 0 auto;
    font-family: 'Segoe UI', sans-serif;
}
  
.car-detalhes h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--blue);
}
  
.car-detalhes h3 {
    font-size: 22px;
    margin: 20px 0 10px;
    color: var(--blue_dark);
}
  
.basic-info div,
.collapse-content div {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    font-size: 16px;
    color: #333;
}
  
.basic-info div span:first-child,
.collapse-content div span:first-child {
    font-weight: 600;
}
  
details.collapse {
    margin-top: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 0 16px;
    background-color: #f8f8f8;
}
  
details.collapse summary {
    cursor: pointer;
    padding: 14px 0;
    font-weight: 600;
    font-size: 17px;
    color: var(--blue_dark);
}
  
.collapse-content {
    padding-bottom: 16px;
}

.fifth {
    padding: 40px 20px;
    border-top: 1px solid #ddd;
}
  
.car-equipamentos {
    max-width: 1450px;
    margin: 0 auto;
    font-family: 'Segoe UI', sans-serif;
}
  
.car-equipamentos h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--blue);
}
  
.collapse-content {
    padding: 10px 0 16px;
}
  
.collapse-content li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    list-style-type: none;
    font-size: 16px;
    color: #333;
}
  

/* Footer */

footer{
    width: 100%;
    background: var(--blue);
    color: white;
}

footer .footer_main{
    width: 100%;
    padding: 30px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links > div {
    flex: 1;
    margin: 0 20px;
}

.footer-contact{
    min-width: 200px;
}

.footer-links h4{
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 1.2em;
}

.footer-links h6{
    margin-bottom: 8px;
    font-size: 1em;
}

.main .footer-social img{
    width: 32px;
    height: 32px;
}

footer .last{
    width: 100%;
    height: 50px;
    background: var(--blue_dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    text-align: center;
}

footer .last h6 {
    margin: 0 15px;
}
  

/* ===========================
   MOBILE RESPONSIVE VIEW 
   =========================== */

   @media screen and (max-width: 768px) {

    .main, main {
      padding: 10px;
    }
  
    .car-container {
      flex-direction: column;
      align-items: center;
      padding: 1rem;
      height: auto;
    }
  
    .car-swiper {
      width: 100%;
      height: 300px;
      padding: 0;
    }
  
    .swiper-slide img {
      padding: 0 20px;
      max-height: 280px;
    }
  
    .car-info {
      margin-top: 20px;
      width: 100%;
      padding: 0 10px;
    }
  
    .car-info h1 {
      font-size: 24px;
      text-align: center;
    }
  
    .car-info img {
      margin-top: 20px;
      width: 100%;
      height: auto;
    }
  
    .back-button {
      top: 20px;
      left: 15px;
      padding: 6px 10px;
      font-size: 12px;
    }
  
    .car-details {
      flex-direction: column;
      align-items: center;
    }
  
    .detail-item {
      max-width: 100%;
      min-width: auto;
      width: 100%;
      text-align: center;
    }
  
    .third,
    .fourth,
    .fifth {
      padding: 20px 10px;
    }
  
    .car-description h3,
    .car-detalhes h2,
    .car-detalhes h3,
    .car-equipamentos h2 {
      font-size: 22px;
      text-align: center;
    }
  
    .car-description p,
    .collapse-content li,
    .collapse-content div {
      font-size: 15px;
    }
  
    .collapse-content div {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .basic-info div,
    .collapse-content div {
      font-size: 15px;
      padding: 8px 0;
    }
  
    .footer-links {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
  
    .footer-links > div {
      margin: 10px 0;
    }
  
    .footer-contact {
      text-align: center;
    }
  
    footer .last h6 {
      font-size: 0.8em;
      margin: 0 5px;
    }
  }
  