/* Global Styles */

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: white; /* Creamy retro background NOT anymore */
    color: #333;
}

/* Header */
header {
    background: radial-gradient(circle, white 50%, #003478 100%);
    color: #fff;
    text-align: center;
    padding: 120px 20px 50px; /* Increase top padding for extra space */
    border-bottom: 5px solid #2A6BAC; /* Medium Blue */
    position: relative; /* Allows for absolute positioning of the logo */
    box-sizing: border-box; /* Ensure padding is calculated correctly */
}

header h1 {
    font-family: 'Pacifico', cursive; /* Retro font for the title */
    font-size: 3rem;
    margin: 0;
}
.store-link {
    display: inline-block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #2A6BAC; /* Medium Blue */
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    border-radius: 25px;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Optional shadow */
    text-align: center;
}

.store-link:hover {
    background-color: #003478; /* Dark Blue */
    color: #f4efe9; /* Light cream */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3); /* Hover effect */
}

/* Logo Styles */
.logo-container {
    text-align: center;
    position: absolute; /* Position the logo relative to the header */
    top: 10px; /* Move the logo higher in the header */
    left: 50%; /* Center the logo horizontally */
    transform: translate(-50%, 0); /* Correct horizontal alignment */
}

.logo {
    width: 150px;
    height: auto;
    display: block;
    margin: 0 auto;
    box-shadow: none; /* Optional shadow for depth */
    border-radius: 50%; /* Circular appearance */
    background-color: white; /* White background around the logo */
    padding: 5px; /* Add spacing inside the logo */
}

/* Style for lists */
ul {
    list-style-position: inside; /* Keeps bullets aligned with text */
    padding: 0; /* Removes unnecessary padding around the list */
    margin: 10px 0; /* Adds consistent spacing */
}

ul li {
    margin: 5px 0; /* Reduces spacing between list items */
    line-height: 1.6; /* Improves readability */
    font-weight: 400; /* Ensures text weight is consistent */
}

/* Navigation Menu */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    background-color: #2A6BAC; /* Medium Blue */
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 10px 20px;
    display: inline-block;
    border-radius: 25px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #47A8E5; /* Light Blue */ /* Highlight link */
    color: #333;
}

/* Sections */
section {
    padding: 40px 20px;
    text-align: center;
}

section h2 {
    font-family: 'Pacifico', cursive; /* Ensure Pacifico is applied to sections */
    color: #2A6BAC; /* Medium Blue */
    font-size: 2.5rem;
    margin-bottom: 20px;
}

section p {
    font-size: 1.2rem;
    line-height: 1.6;
}

/* homepage images */
.homepage-image {
    width: 100%; /* Make it responsive and take up full container width */
    max-width: 1000px; /* Adjust the maximum width as needed */
    height: auto; /* Maintain aspect ratio */
    margin: 20px auto; /* Add spacing around the image */
    display: block;
    border: 8px solid #003478; /* Thick blue border */
    border-radius: 15px; /* Optional: Rounded corners */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Optional: Add a subtle shadow for depth */
}

/* Gallery */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.gallery img {
    width: 250px;
    border: 5px solid #003478; /* Dark Blue */
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}
/* Cars For Sale Sections */
#cars-for-sale {
  margin-top: 20px;
}

.car-section {
  margin-bottom: 40px;
}
.details-link {
    display: inline-block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #2A6BAC; /* Medium Blue */
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    border-radius: 25px;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Optional shadow */
    text-align: center;
}

.details-link:hover {
  background-color: #003478; /* Dark Blue */
  color: #f4efe9; /* Light cream */
}

.car-section h3 {
    font-family: 'Raleway', sans-serif; /* Ensure Pacifico is applied to sections */
    color: #2A6BAC; /* Medium Blue */
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

/* Container to hold image + banner */
.car-image-container {
  position: relative;
  display: inline-block;
}

.car-image-container img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 5px solid #003478; /* Optional: match gallery border */
  border-radius: 10px;
}

/* The FOR SALE banner */
.car-image-container .banner {
  position: absolute;
  top: 20px;
  right: -40px; /* Adjust if needed */
  background: red;
  color: white;
  padding: 5px 40px;
  font-weight: bold;
  transform: rotate(45deg);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  font-size: 0.9rem;
}
/* Car Details Bullet List */
#car-details ul {
  list-style: none;
  margin: 30px auto;
  padding: 0;
  max-width: 800px;
  text-align: left;
}

#car-details ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  line-height: 1.6;
  font-size: 1.1rem;
}

#car-details ul li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: #2A6BAC;
  font-size: 1.2rem;
}

/* Footer */
footer {
    background-color: #003478; /* Dark Blue */
    color: #fff;
    text-align: center;
    padding: 10px 0;
    margin-top: 30px;
    font-size: 0.9rem;
}

/* Retro Font Styles */
/*@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Poppins:wght@300;400;700&display=swap');*/
@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Poppins:wght@300;400;700&family=Raleway:wght@400;700&display=swap');
/* Buttons */
button {
    font-family: 'Poppins', sans-serif;
    background-color: #2A6BAC; /* Medium Blue */
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #003478; /* Dark Blue */
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Header Gradient */
    header {
        background: radial-gradient(circle at 50% 20%, white 18%, #003478 90%);
        padding: 70px 20px 20px; /* Adjust padding for better height 60 -> 80 first number*/
    }

    /* Logo Position */
    .logo-container {
        top: 50px; /* Move the logo slightly lower */
        transform: translate(-50%, 0);
    }

    .logo {
        width: 100px; /* Adjust size */
    }

    /* Header Text */
    header h1 {
        font-family: 'Poppins', sans-serif; /* Ensure consistent font */
        font-size: 1.5rem; /* Reduce text size */
        margin-top: 100px; /* Add space below the logo */
        color: #003478; /* Ensure visibility */
    }

    /* Navigation Menu */
    nav ul {
        flex-direction: column; /* Stack buttons */
        gap: 8px; /* Space between buttons */
    }

    nav ul li a {
        font-size: 0.9rem; /* Smaller buttons */
        padding: 6px 10px; /* Adjust padding */
        border-radius: 10px; /* Smaller rounded corners */
    }

    /* Fonts for Mobile */
    body {
        font-family: 'Poppins', Arial, sans-serif; /* Ensure consistent font */
    }

    section h2 {
         font-family: 'Poppins', Arial, sans-serif;  /* Ensure heading fonts match */
         font-size: 1.5rem;
    }
    .car-section h3{
        font-size: 1.2rem;
    }
}
