/* ==========================================
   GLOBAL VARIABLES & RESET
   ========================================== */
:root {
    --bg-dark: #2b2727; 
    --text-light: #ffffff;
    --brand-red: #cc0000; 
    --card-overlay: rgba(0, 0, 0, 0.45); 
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

/* THE GLOBAL FADE-IN FIX: This makes every page fade in smoothly */
.main {
    animation: fadeIn 0.8s ease-in-out;
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
.header {
    padding: 1.5rem 2rem 1.5rem 2rem; 
    text-align: center;
}

.header__logo {
    font-size: 4.5rem;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.header__logo a {
    text-decoration: none;
}

.header__logo-img {
    max-height: 120px; 
    width: auto;      
    display: block;
    margin: 0 auto;   
}

.header__nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.header__nav-link {
    text-decoration: none;
    color: var(--text-light);
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease;
}

.header__nav-link:hover {
    border-bottom: 3px solid var(--brand-red);
    transition: color 0.3s ease, border-color 0.3s ease;
}
 
/* ==========================================
   INDEX: MAIN SERVICES GRID (The Image Cards)
   ========================================== */
.services-preview {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.services-preview__header {
    display: none; 
}

.services-preview__grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.service-card {
    position: relative;
    width: 450px;
    height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3rem;
    background-color: #222;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: scale(1.02);
}

.service-card:nth-child(1) {
    background-image: url('images/4seriesfront.jpeg'); 
}

.service-card:nth-child(2) {
    background-image: url('images/jaguar2.JPG');
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--card-overlay);
    z-index: 1;
}

.service-card__title, 
.service-card__desc, 
.service-card .btn {
    position: relative;
    z-index: 2; 
}

.service-card__title {
    display: none; 
}

.service-card__desc {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-light);
    text-shadow: 2px 2px 5px rgba(0,0,0,0.9);
    margin-bottom: 1.5rem;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background-color: rgba(0,0,0,0.5);
    color: var(--text-light);
    border: 2px solid var(--text-light);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--brand-red);
    border-color: var(--brand-red);
}

/* ==========================================
   INNER PAGES (About, Contact, Products)
   ========================================== */
.aboutus, 
.contact-info, 
.products-showcase, 
.services-detailing, 
.services-valeting {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 2rem;
    text-align: center;
}

.aboutus h2, .contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.aboutus p, .contact-info p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.contact-info a {
    color: var(--brand-red);
    font-weight: bold;
}

/* Products Grid Setup */
.products-showcase__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    text-align: left;
}

.product-card {
    background: #333;
    padding: 1.5rem;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.product-card__img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 1rem;
    background-color: #222; 
}

.product-card__brand {
    font-size: 0.85rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-card__name {
    font-size: 1.3rem;
    margin: 0.5rem 0 1rem 0;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    text-align: center;
    padding: 3rem 1rem;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: #aaa;
}

.footer__socials {
    margin-top: 1.5rem;
}

.footer__socials a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 15px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer__socials a:hover {
    color: var(--brand-red);
}

/* ==========================================
   LOGIN FORM
   ========================================== */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
    max-width: 400px;
    margin: 0 auto 2rem auto; 
}

.login-form__group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.login-form__label {
    font-weight: 700;
    color: var(--text-light);
    font-size: 0.95rem;
}

.login-form__input {
    width: 100%;
    padding: 0.8rem;
    background-color: #333;
    border: 1px solid #555;
    color: var(--text-light);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.login-form__input:focus {
    outline: none;
    border-color: var(--brand-red);
}

.login-form__btn,
.login-form__google-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

.login-form__divider {
    text-align: center;
    color: #888;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.login-form__signup-text {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #aaa; 
    text-align: center;
}

.login-form__signup-link {
    color: var(--brand-red);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.login-form__signup-link:hover {
    color: var(--text-light);
    text-decoration: underline;
}

/* ==========================================
   VALETING / DETAILING MENU CARDS
   ========================================== */
.valeting-preview__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 2rem;
    margin-top: 6rem; /* Ensures the grid sits lower down the page */
    margin-bottom: 4rem;
}

.separation {
    margin-top: 15px;
    margin-bottom: 15px;
    font-weight: bold;
}

.menu-card {
    background-color: #2a2a2a; 
    padding: 2rem;
    border-radius: 8px; 
    border: 1px solid #444; 
    text-align: center; /* Centered text to match your second block */
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center; /* Flexbox setup for centered content */
}

.menu-card:hover {
    transform: translateY(-5px); 
    border-color: var(--brand-red); 
}

.menu-card__title {
    color: var(--text-light);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--brand-red); 
    display: inline-block;
    padding-bottom: 5px;
}

.menu-card__desc {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem; 
}

.menu-card__btn {
    margin-top: auto; 
    width: 100%;      
    text-align: center;
}

.return-valeting {
    margin-top: 5rem;
    border-top: 1px solid #444;
    padding-top: 3rem;
    text-align: center;
}

.menu-card--highlight {
    border-color: var(--brand-red);
    background-color: #222;
    margin: 2rem auto 0 auto;
    max-width: 500px;
}

/* ==========================================
   COMING SOON PAGE
   ========================================== */
.coming-soon-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh; 
    text-align: center;
    padding: 2rem;
}

.coming-soon__title {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.coming-soon__title span {
    color: var(--brand-red);
}

.coming-soon__desc {
    font-size: 1.1rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.6;
}

/* ==========================================
   GLOBAL ANIMATIONS
   ========================================== */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   CONTACT FORM
   ========================================== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
    max-width: 600px; /* Slightly wider than the login form to accommodate the message box */
    margin: 2rem auto 4rem auto; 
    background-color: #2a2a2a;
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid #444;
}

.contact-form__group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-form__label {
    font-weight: 700;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* This targets the text inputs, the dropdown menu, and the message box equally */
.contact-form__input {
    width: 100%;
    padding: 1rem;
    background-color: #333;
    border: 1px solid #555;
    color: var(--text-light);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit; /* Ensures the textarea uses your main font */
}

.contact-form__input:focus {
    outline: none;
    border-color: var(--brand-red);
}

/* Specific styling so the dropdown menu looks clean on dark mode */
select.contact-form__input {
    cursor: pointer;
    appearance: none; /* Removes default browser styling arrows */
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23ffffff" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
}

.contact-form__textarea {
    resize: vertical; /* Only allows the user to drag the box taller, not wider */
}

.contact-form__btn {
    margin-top: 1rem;
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}