body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #111;
  color: #fff;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #000;
  padding: 20px;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #e60000;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  color: #e60000;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero-buttons button {
  margin: 10px;
  padding: 15px 30px;
  font-size: 16px;
  border: none;
  background-color: #e60000;
  color: white;
  cursor: pointer;
}

.hero-buttons button:hover {
  background-color: #ff1a1a;
}

.welcome { /* Welcome Section */
  padding: 40px 20px;
  text-align: center;
}

.welcome h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.gallery { /* Gallery */
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 40px 20px;
}

footer { /* Footer */
  text-align: center;
  padding: 20px;
  background-color: #000;
  font-size: 14px;
}

.branding { /* Branding with logo and styled title */
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-img {
  width: 50px;
  height: auto;
}

.site-title {
  font-size: 28px;
  font-weight: bold;
  margin: 0;
}

.site-title .white {
  color: #fff;
}

.site-title .red {
  color: #e60000;
}
.hero {
  position: relative;
  text-align: center;
  padding: 100px 20px;
  background-image: url('../images/background.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5); /* dark overlay */
  z-index: -1;
}
.gallery img {
  width: 300px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
}

.hero-buttons {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.hero-buttons a {
  display: inline-block;
  padding: 15px 35px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background-color: #e60000;
  border: 2px solid #e60000;
  border-radius: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.hero-buttons a:hover {
  background-color: transparent;
  color: #e60000;
  box-shadow: 0 4px 12px rgba(230, 0, 0, 0.6);
}

.about-page header {
  background-color: #000;
  color: white;
}

.about-hero {
  background-image: url('../images/about_background.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  color: white;
  text-align: center;
  min-height: 52vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 20px;
}

.about-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
}

.info-section { /* Info Section Layout */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 20px;
}

.info-content { /* Text Content */
  flex: 1 1 400px;
  max-width: 500px;
}

.info-content h2 {
  font-size: 28px;
  color: #e60000;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.info-content p {
  font-size: 17px;
  line-height: 1.6;
  color: #fff;
}

.info-section img { /* Image Styling */
  flex: 1 1 300px;
  max-width: 350px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.info-section img:hover {
  transform: scale(1.03);
}
.jokes-section {
  background-color: #1a1a1a;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  margin-top: 60px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.jokes-section h2 {
  font-size: 24px;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #e60000;
}

.joke-text {
  font-size: 18px;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.joke-buttons button {
  background-color: #e60000;
  color: #fff;
  border: none;
  padding: 8px 16px;
  margin: 0 5px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 14px;
}

.joke-buttons button:hover {
  background-color: #ff3333;
}

.contact-hero { /* Contact Hero */
  background-color: #111;
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}

.contact-hero h1 {
  font-size: 36px;
  margin-bottom: 10px;
  color: #e60000;
}

.contact-hero p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

.contact-form-section { /* Contact Form */
  max-width: 600px;
  margin: 60px auto;
  padding: 0 20px;
}

.contact-form-section h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #e60000;
  text-align: center;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}

.contact-form button {
  background-color: #e60000;
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #ff3333;
}

.business-info { /* Business Info */
  background-color: #1a1a1a;
  padding: 40px 20px;
  text-align: center;
  color: #ccc; /* Softer text color for readability */
}

.business-info h2 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #e60000;
}

.business-info address {
  font-style: normal;
  line-height: 1.6;
  font-size: 16px;
}

.gallery-hero { /* Gallery Hero */
  background-color: #111;
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}

.gallery-hero h1 {
  font-size: 36px;
  margin-bottom: 10px;
  color: #e60000;
}

.gallery-hero p {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto;
}

.car-gallery { /* Car Gallery Grid */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.car-card { /* Individual Car Card */
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
}

.car-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.car-card:hover {
  transform: scale(1.03);
}

.car-card:hover img {
  transform: scale(1.05);
}

.best-sellers-section { /* Best Sellers Section */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 60px 20px;
  background-color: #f5f5f5;
}

.car-card {
  background-color: #fff;
  border-radius: 8px;
  max-width: 300px;
  text-align: center;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.car-card img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 15px;
}

.car-card h2 {
  font-size: 22px;
  color: #e60000;
  margin-bottom: 10px;
}

.car-card p {
  font-size: 16px;
  color: #333;

}

.confirmation-page {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80vh; /* Centers vertically */
}

.confirmation-message {
  background-color: #1c1c1c; /* Dark grey box */
  color: #fff; /* White text */
  text-align: center;
  padding: 50px 70px;
  border-radius: 15px; /* Curved corners */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  max-width: 700px;
}

.confirmation-message h2 {
  font-size: 3rem;
  color: #e50914; /* Red accent for heading */
  margin-bottom: 25px;
  font-weight: bold;
}

.confirmation-message p {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.confirmation-message .btn {
  display: inline-block;
  background-color: #e50914; /* Red button */
  color: #fff;
  padding: 14px 28px;
  text-decoration: none;
  font-size: 1.1rem;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.confirmation-message .btn:hover {
  background-color: #ff1e2d; /* Slightly lighter red on hover */
}

@media (min-width: 600px) {
  .header {grid-area: 1 / span 6;}
  .menu {grid-area: 2 / span 1;}
  .content {grid-area: 2 / span 4;}
  .facts {grid-area: 2 / span 1;}
  .footer {grid-area: 3 / span 6;}
}

/* Base = Mobile (<600px): stack everything */
.container {
  display: grid;
  grid-template-columns: 1fr;  /* single column on mobile */
  gap: 16px;
  padding: 16px;
}


/* Desktop (>1024px): */
@media (min-width: 1025px) {
  .container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
  }

  /* Back to Top — base styles */
.back-to-top {
  position: fixed;
  right: clamp(12px, 2vw, 20px);
  bottom: calc(20px + env(safe-area-inset-bottom, 0));
  background: #e60000;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: none;              /* hidden by default */
  z-index: 10000;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
  opacity: 0;
  transform: translateY(6px);
}

.back-to-top.is-visible {
  display: inline-block;
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background-color: #ff3333;
  outline: none;
}

.back-to-top:active {
  transform: translateY(1px);
}

.select {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  background-color: #fff;
  color: #000;
  box-sizing: border-box;
}
