/* Apex Driver Training - Styles */

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background: #ffffff;
}

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

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo img {
  height: 220px;
  width: auto;
  max-width: 90vw;
}

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

.nav-links a {
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #d32f2f;
}

.cta-button {
  background: #d32f2f;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

.cta-button:hover {
  background: #b71c1c;
}

/* Hero */
.hero {
  background: url('car-logo.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 10rem 2rem 8rem;
  position: relative;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.55) 0%, rgba(183, 28, 28, 0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

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

.hero-content p {
  font-size: 1.4rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.btn-primary {
  display: inline-block;
  background: #ffffff;
  color: #1a1a1a;
  padding: 0.9rem 1.8rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: 2px solid #ffffff;
  transition: background 0.2s, color 0.2s;
}

.btn-primary:hover {
  background: transparent;
  color: #ffffff;
}

/* Services */
.services {
  padding: 5rem 0;
  background: #f8f9fa;
}

.services h2,
.about h2,
.contact h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #1a1a1a;
}

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

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

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

.icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  margin-bottom: 0.8rem;
  color: #d32f2f;
}

/* About */
.about {
  padding: 5rem 0;
  background: #ffffff;
}

.about-flex {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  text-align: left;
  margin-bottom: 1.5rem;
}

.about-text ul {
  list-style: none;
  margin: 1.5rem 0;
}

.about-text li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.8rem;
}

.about-text li::before {
  content: "✓";
  color: #d32f2f;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Contact */
.contact {
  padding: 5rem 0;
  background: #f8f9fa;
  color: #1a1a1a;
  text-align: center;
}

.contact h2 {
  color: #1a1a1a;
}

.contact-box {
  background: #ffffff;
  max-width: 500px;
  margin: 0 auto;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  border: 1px solid #e0e0e0;
}

.contact a {
  color: #d32f2f;
  text-decoration: none;
  font-weight: 600;
}

.contact a:hover {
  text-decoration: underline;
}

.email-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  font-size: 1.15rem;
}

.email-icon {
  flex-shrink: 0;
  color: #d32f2f;
}

.phone-icon {
  font-size: 2.5rem;
}

.phone-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ff5252;
  text-decoration: none;
}

.phone-number:hover {
  color: #ff8a80;
}

.hours {
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

/* Footer */
footer {
  background: #111;
  color: #ccc;
  text-align: center;
  padding: 2.5rem 0;
}

.footer-logo {
  height: 70px;
  margin-bottom: 1rem;
}

footer p {
  margin: 0.4rem 0;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    gap: 1.2rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero {
    padding: 6rem 1.5rem 5rem;
  }

  .about-flex {
    flex-direction: column;
    gap: 2rem;
  }

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