/* 1stMotor.co.uk - Main Stylesheet */

:root {
  --color-red: #c92a2a;
  --color-red-hover: #b02323;
  --color-blue: #2563eb;
  --color-blue-hover: #1d4ed8;
  --color-dark-grey: #212529;
  --color-mid-grey: #dee2e6;
  --color-light-grey: #f8f9fa;
  --color-white: #ffffff;
  
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --border-radius: 6px;
  --box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  --box-shadow-hover: 0 8px 15px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--color-light-grey);
  color: var(--color-dark-grey);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: var(--color-blue);
  transition: var(--transition);
}

a:hover {
  color: var(--color-blue-hover);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* Header & Navigation */
header {
  background-color: var(--color-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-dark-grey);
}

.logo span {
  color: var(--color-red);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links li a {
  color: var(--color-dark-grey);
  font-weight: 600;
  font-size: 1.05rem;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--color-red);
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-dark-grey);
}

/* Typography & Utilities */
.section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--color-dark-grey);
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 10px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--color-red);
  border-radius: 2px;
}

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

.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.py-5 { padding-top: 4rem; padding-bottom: 4rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--color-blue);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-blue-hover);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

.btn-secondary {
  background-color: var(--color-red);
  color: var(--color-white);
}

.btn-secondary:hover {
  background-color: var(--color-red-hover);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-dark-grey);
  border: 2px solid var(--color-dark-grey);
}

.btn-outline:hover {
  background-color: var(--color-dark-grey);
  color: var(--color-white);
}

.btn-block {
  display: block;
  width: 100%;
}

/* Footer */
footer {
  background-color: var(--color-dark-grey);
  color: var(--color-white);
  padding: 50px 0 20px;
  margin-top: 60px;
}

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

.footer-col h3 {
  margin-bottom: 20px;
  font-size: 1.3rem;
  color: var(--color-white);
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--color-red);
  border-radius: 2px;
}

.footer-col p, .footer-col a {
  color: #cccccc;
  margin-bottom: 12px;
  display: block;
}

.footer-col a:hover {
  color: var(--color-white);
  padding-left: 5px;
}

.footer-col i {
  color: var(--color-red);
  width: 20px;
  margin-right: 10px;
  text-align: center;
}

.footer-bottom {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid #444;
  color: #999;
  font-size: 0.95rem;
}

/* --- Home Page Styles --- */
.hero {
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://placehold.co/1920x1080/333333/555555?text=Car+Dealership+Hero') center/cover;
  color: var(--color-white);
  text-align: center;
  padding: 100px 20px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.trust-section {
  padding: 60px 0;
  background-color: var(--color-white);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: center;
}

.trust-card {
  padding: 30px;
  border-radius: var(--border-radius);
  background-color: var(--color-light-grey);
  box-shadow: var(--box-shadow);
}

.trust-card i {
  font-size: 2.5rem;
  color: var(--color-blue);
  margin-bottom: 20px;
}

.trust-card h3 {
  margin-bottom: 15px;
  color: var(--color-dark-grey);
}

.featured-cars, .about-snippet, .cta-section {
  padding: 80px 0;
}

.featured-cars {
  background-color: var(--color-light-grey);
}

.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.car-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.car-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.car-image {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.car-details {
  padding: 20px;
  flex-grow: 1;
}

.car-make-model {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-dark-grey);
}

.car-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-red);
  margin-bottom: 15px;
}

.car-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 20px;
}

.car-specs div {
  display: flex;
  align-items: center;
  gap: 5px;
}

.about-snippet {
  background-color: var(--color-white);
  text-align: center;
}

.about-snippet p {
  max-width: 800px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
}

.cta-section {
  background-color: var(--color-blue);
  color: var(--color-white);
  text-align: center;
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.cta-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--color-white);
  border-radius: 2px;
}

.cta-section p {
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.cta-section .btn-outline {
  border-color: var(--color-white);
  color: var(--color-white);
}

.cta-section .btn-outline:hover {
  background-color: var(--color-white);
  color: var(--color-blue);
}

/* --- Internal Pages Styles --- */
.page-header {
  background-color: var(--color-dark-grey);
  color: var(--color-white);
  padding: 60px 20px;
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://placehold.co/1920x400/333333/555555?text=Inventory') center/cover;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.inventory-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

.filters-sidebar {
  background-color: var(--color-white);
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 90px;
}

.filters-sidebar h3 {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-red);
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-dark-grey);
}

.filter-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: var(--font-main);
  font-size: 1rem;
}

.filter-input:focus {
  outline: none;
  border-color: var(--color-blue);
}

.results-header {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

.results-header h2 {
  font-size: 1.5rem;
  color: var(--color-dark-grey);
}

/* About Page */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-list {
  margin-top: 20px;
}

.about-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.about-list i {
  color: var(--color-blue);
  margin-top: 4px;
}

/* Contact Page */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
}

.contact-info-panel {
  background-color: var(--color-light-grey);
  padding: 40px;
  border-radius: var(--border-radius);
}

.contact-info-panel h2 {
  margin-bottom: 20px;
  color: var(--color-dark-grey);
}

.info-item {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.info-item i {
  font-size: 1.5rem;
  color: var(--color-red);
  margin-top: 3px;
}

.contact-form-panel {
  padding: 20px 0;
}

.contact-form-panel h2 {
  margin-bottom: 25px;
  color: var(--color-dark-grey);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--color-dark-grey);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.form-control[readonly] {
  background-color: #f1f1f1;
  color: #666;
}

/* Responsive */
@media (max-width: 768px) {
  .about-content, .contact-layout {
    grid-template-columns: 1fr;
  }
  .inventory-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .filters-sidebar {
    position: static;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    flex-direction: column;
    gap: 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: none;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links li {
    text-align: center;
    border-bottom: 1px solid var(--color-mid-grey);
  }
  
  .nav-links li:last-child {
    border-bottom: none;
  }
  
  .nav-links li a {
    display: block;
    padding: 15px;
  }
  
  .hamburger {
    display: block;
  }
}

/* --- New Utility & Section Classes --- */
.bg-white { background-color: var(--color-white); }
.bg-light-blue { background-color: #f0f7ff; }
.bg-vibrant-blue { background-color: var(--color-blue); }
.bg-subtle-grey { background-color: var(--color-light-grey); }
.bg-rich-red { background-color: var(--color-red); }

.text-white { color: var(--color-white); }
.text-dark { color: var(--color-dark-grey); }
.text-blue { color: var(--color-blue); }
.text-red { color: var(--color-red); }

.fw-bold { font-weight: 700; }
.fs-large { font-size: 1.5rem; }

/* Announcement Banner */
.announcement-banner {
  background-color: var(--color-red);
  color: var(--color-white);
  text-align: center;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Intro Text */
.intro-text p {
  font-size: 1.15rem;
  margin-bottom: 20px;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
}

/* Features Grid */
.features-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
}
.features-grid.centered-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 800px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.1rem;
  background: var(--color-white);
  padding: 15px 20px;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.why-choose-us .feature-item, .first-time-driver .feature-item {
  background-color: var(--color-white);
  border: 1px solid var(--color-mid-grey);
}
.feature-item.justify-center {
  justify-content: center;
  background: var(--color-light-grey);
}
.feature-item i {
  font-size: 1.3rem;
}

/* Hero Modifications */
.homepage-hero {
  padding: 120px 20px;
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.5)), url('../data/1.jpg') center/cover;
}
.trust-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  font-size: 1.1rem;
  font-weight: 500;
}
.trust-line span {
  display: flex;
  align-items: center;
  background: rgba(0,0,0,0.5);
  padding: 8px 18px;
  border-radius: 20px;
}

/* Misc */
.subtitle-text {
  font-size: 1.1rem;
  color: #555;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.btn-outline-white {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}
.btn-outline-white:hover {
  background-color: var(--color-white);
  color: var(--color-red);
}
