/*
 * Base styles for the Bankrol Camel EV website
 *
 * This stylesheet defines a simple, modern look using a light colour
 * palette with dark accent colours. It provides consistent spacing,
 * typography and responsive layouts across all pages. Utility classes
 * such as .container help control width and margins, while nav and
 * footer elements share matching backgrounds for cohesion.
 */

/* Reset some default browser styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
}

/* Container limits the width of content and centres it on the page */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header and navigation */
.header {
  background-color: #003366; /* dark blue */
  color: #fff;
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo a {
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
}

nav {
  margin-top: 0.5rem;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-list li a {
  color: #ffffff;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  font-weight: 500;
}

.nav-list li a:hover,
.nav-list li a.active {
  background-color: #0055a5;
}

/* Hero section on the home page */
.hero {
  background: linear-gradient(to right, #0077cc, #00aaff);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  max-width: 700px;
  margin: 0 auto 1.5rem auto;
  font-size: 1.1rem;
  line-height: 1.5;
}

.btn {
  display: inline-block;
  background-color: #ff9900;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #e68a00;
}

/* About section */
.about {
  padding: 3rem 0;
  background-color: #ffffff;
}

.about h3 {
  margin-bottom: 1rem;
  font-size: 2rem;
  color: #003366;
}

.about p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.6;
}

/* Sales page vehicle sections */
.vehicle {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e0e0e0;
}

.vehicle h3 {
  color: #003366;
  margin-bottom: 0.75rem;
}

.vehicle-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.vehicle-img {
  flex: 1 1 280px;
  max-width: 360px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vehicle-info {
  flex: 2 1 400px;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Unordered lists in maintenance page */
ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background-color: #003366;
  color: #fff;
  padding: 1rem 0;
  text-align: center;
  margin-top: 2rem;
}

.footer-content p {
  font-size: 0.9rem;
}

/* Gallery page grid (overrides inline in gallery.html) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 4px;
  transition: transform 0.2s ease-in-out;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

/* Modal lightbox for gallery */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 4px;
}

/* FAQ page styles */
.faq-section {
  margin-bottom: 2rem;
}

.faq-section h3 {
  color: #003366;
  margin-bottom: 0.5rem;
}

.faq-section p {
  margin-left: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Responsive design */
@media (max-width: 768px) {
  .vehicle-flex {
    flex-direction: column;
  }
  .nav-list {
    gap: 0.5rem;
  }
  .hero h2 {
    font-size: 2rem;
  }
}