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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.8rem);
}

p, a, li {
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
}

a[href^="tel"] {
    color: inherit;
    text-decoration: none;
    cursor: default;
}

.btn-primary,
.btn-quote,
.btn-send {
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

input,textarea {
  outline: none;
}

/* Header */
nav, .logo, .btn-quote {
  font-family: 'Poppins', sans-serif;
}

.bg{
      background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/home.jpg');
      background-size: cover;
      background-repeat: no-repeat;
      background-position: center;
}

header {
    background: transparent;
    color: white;
    padding: 1rem 0;
    width: 100%;
    position: relative;
    z-index: 10;
    padding-top: 30px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo img {
  height: 80px;
  filter: drop-shadow(0 0 4px #ccc) drop-shadow(0 0 8px #ccc) drop-shadow(0 0 12px #ccc);
  transition: transform 0.3s ease, filter 0.3s ease;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.8;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

.btn-quote {
    background: transparent;
    color: #9e002e;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    padding: 0 2rem;
    margin-top: 0;
    position: relative;
}

.hero-content {
  margin-left: 10vw;
  margin-top: 20vh;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.btn-primary {
    background: transparent;
    color: #9e002e;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
    border: 1px solid #9e002e;
}

.btn-primary:hover {
    color: white;
    background: #9e002e;
}

/* Services Section */
.services {
    padding: 4rem 0;
    background: #e6e6e6;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.services-subtitle {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: #666;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #d32f2f;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* Special CTA Card */
.cta-card {
    background: #9e002e;
    color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.cta-card .service-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: white;
}

.cta-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.cta-card p {
    margin-bottom: 1.5rem;
    color: white;
}

.cta-card .btn-primary {
    background: white;
    color: #9e002e;
}


/* About Section */
.about {
    padding: 4rem 0;
    background: white;
}

.about-content {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.6;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: 1rem;
 align-items: center;   /* optional: center vertically */
}

.stats {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #9e002e;
    display: block;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

.about-image {
    background: url('../images/about.jpg');
    background-size: cover;
    background-position: center;
    height: 300px;
    border-radius: 8px;
    max-width: 600px;
    display: block;
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background: #e6e6e6;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.contact-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    color: #666;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;;
    align-items: center;
    text-align: center;
    height: 100%;
    padding: 2rem;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.contact-card .service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info {
    color: #666;
    margin-bottom: 0.5rem;
}

.map-placeholder {
    background: #e0e0e0;
    height: 200px;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.btn-send {
    background: #9e002e;
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    transition: background 0.3s;
}

/* CTA Section */
.final-cta {
    padding: 4rem 0;
    background: white;
    text-align: center;
}

.final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.final-cta p {
    margin-bottom: 2rem;
    color: #666;
}

/* Footer */
footer {
    background: #f8f9fa;
    padding: 3rem 0 1rem;
    border-top: 1px solid #e0e0e0;
}

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

.footer-section h3 {
    color: #333;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #9e002e;
}

.footer-bottom {
    border-top: 1px solid #e0e0e0;
    padding-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
    font-size: 0.9rem;
}

.footer-bottom a{
  font-size: 0.9rem;
   text-decoration:none;
   color:#666;
}

/* Featured Cars Carousel Styles */
.featured-cars {
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 1100px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.carousel-header {
    text-align: center;
    margin-bottom: 2rem;
}

.carousel-header h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.carousel-header p {
    color: #fff;
    font-size: 1rem;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.car-card {
    flex: 0 0 300px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.car-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    flex-shrink: 0;
}

.car-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #9e002e;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.car-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.car-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
    line-height: 1.3;
    min-height: calc(1.3em * 2);
    word-break: break-word;
}

.car-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #9e002e;
    margin-bottom: 1rem;
}

.car-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #666;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-details {
    width: 100%;
    background: #9e002e;
    color: white;
    padding: 0.7rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
    text-decoration: none;
    text-align: center;
    margin-top: auto;
}

.btn-details:hover {
    background: #7d0024;
}

/* Carousel Controls */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(158, 0, 46, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-nav:hover {
    background: rgba(158, 0, 46, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: -25px;
}

.carousel-nav.next {
    right: -25px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #9e002e;
}

.loading-placeholder {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.error-message {
    text-align: center;
    padding: 2rem;
    color: #9e002e;
    background: rgba(158, 0, 46, 0.1);
    border-radius: 8px;
    margin: 1rem 0;
}

/* Medium screens (tablet landscape and below) */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .btn-primary {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-image {
    height: 250px;
  }

  .stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .final-cta h2 {
    font-size: 2rem;
  }

  .final-cta p {
    font-size: 1rem;
  }
}

/* Small screens (phones) */
@media (max-width: 768px) {

  .logo {
    font-size: 1.2rem;
  }

  .logo-icon {
    font-size: 1rem;
    padding: 6px;
  }

  .header-content {
    flex-direction: row;
    justify-content: center;
  }

  nav ul,
  .header-actions {
    display: none !important;
  }
  .btn-quote {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }

  .hero {
    background-size: cover;
    background-position: center;
    padding: 2rem 1rem;
    flex-direction: column;
    justify-content: center;
  }

  .hero-content {
    margin: 0 auto;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }

  .hero-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .btn-primary {
    font-size: 0.95rem;
    padding: 0.8rem 1.5rem;
  }

  .services h2,
  .about-text h2,
  .contact h2,
  .final-cta h2 {
    font-size: 2rem;
  }

  .services-subtitle,
  .contact-subtitle {
    font-size: 0.95rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }

 .featured-cars {
      margin: 1rem;
      padding: 1.5rem;
  }

  .car-card {
      flex: 0 0 280px;
      margin: 0 5px;
  }

  .carousel-nav {
      width: 40px;
      height: 40px;
      font-size: 1rem;
  }

  .carousel-nav.prev {
      left: -20px;
  }

  .carousel-nav.next {
      right: -20px;
  }
}

@media (max-width: 480px) {
    .car-card {
        flex: 0 0 260px;
    }

    .featured-cars {
        padding: 1rem;
    }
}
