@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
  --primary: #007cc2;
  --primary-dark: #0063a0;
  --accent: #66a045;
  --text-main: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f3f4f6;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  padding: 1rem;
  margin: 0;
  width: 100vw;
  overflow-x: hidden;
}

h1, h2, h3 {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.logo {
  width: 150%;
  max-width: 300px;
  display: block;
  margin: 20px auto 0;
}

header {
  background-color: var(--white);
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 6px var(--shadow);
}

header img {
  max-width: 200px;
  height: auto;
}

.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: contain;
  background-color: #000;
}

.carousel img.active {
  opacity: 1;
  position: relative;
  z-index: 1;
}

.section-description {
  margin: 2rem 0;
  text-align: center;
  color: var(--text-light);
}

/* Layout */
.container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  width: 100%;
}

.vehicle-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  width: 100%;
}

.vehicle-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vehicle-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.vehicle-box img {
  width: 100%;
  display: block;
}

.vehicle-box h3 {
  margin: 1rem;
  font-size: 1.2rem;
  color: var(--primary);
}

.vehicle-box p {
  margin: 0 1rem 1rem;
  font-size: 0.95rem;
  color: var(--text-light);
}

.vehicle-box .btn {
  margin: 1rem;
  margin-top: auto;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary);
  color: var(--white);
  text-align: center;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--primary-dark);
}

/* CTA section */
.cta-section {
  background: url('../img/cta.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.cta-section > * {
  position: relative;
  z-index: 1;
}

.cta-services {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.cta-services li {
  color: var(--white);
}

.cta-services li::before {
  content: '?';
  color: var(--accent);
  margin-right: 0.5rem;
}

/* Footer */
footer {
  background-color: var(--text-main);
  color: var(--white);
  padding: 2rem;
  text-align: center;
}

footer a {
  color: var(--accent);
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 2rem auto 0;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
}

.contact-form button {
  background-color: var(--primary);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: var(--accent);
}

.map-embed {
  margin-top: 2rem;
  border: 0;
  width: 100%;
  height: 300px;
}

/* Responsive Layout */
@media (min-width: 600px) {
  .vehicle-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .vehicle-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  body {
    padding: 2rem;
  }
}
