/* ===================== Base Styling ===================== */
body {
    margin: 0;
    font-family: 'Lora', serif;
    background-color: #f5f1e6;
    background-image: radial-gradient(rgba(0,0,0,0.02) 1px, transparent 1px);
    background-size: 20px 20px;
    color: #2b2b2b;
    line-height: 1.6;
    scroll-behavior: smooth;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
}

/* ===================== Header ===================== */
header {
    background: #0f2a1f;
    color: white;
    padding: 20px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 22px;
    letter-spacing: 1px;
    margin: 0;
}

nav a {
    color: #d4af37;
    text-decoration: none;
    margin-left: 30px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease, border-bottom 0.3s ease;
}

nav a:hover {
    opacity: 0.8;
    border-bottom: 1px solid #d4af37;
}

nav a.active {
    border-bottom: 2px solid #d4af37;
}


/* ===================== Hero ===================== */
.hero {
    background:
        linear-gradient(rgba(15,42,31,0.7), rgba(15,42,31,0.7)),
        url('images/classic-car-hero.jpg') center center/cover no-repeat;
    height: 550px;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 20px;
    animation: fadeIn 1.5s ease-in;
}

.hero h2 {
    font-size: 46px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.hero .button-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.button {
    background: #d4af37;
    color: #0f2a1f;
    padding: 12px 28px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 3px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.button:hover {
    background: #c39b2e;
    transform: translateY(-2px);
}

/* ===================== Trust Band ===================== */
.trust-band {
    background: #ffffff;
    padding: 20px 10%;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.trust-items {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    font-weight: 600;
    color: #0f2a1f;
    text-align: center;
}

.trust-items div {
    flex: 1;
    min-width: 180px;
}


/* ===================== Sections ===================== */
.section {
    padding: 90px 10%;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section h3 {
    font-size: 34px;
    margin-bottom: 25px;
    color: #0f2a1f;
}

/* ===================== Features & Cards ===================== */
.features, .steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: white;
    padding: 30px;
    border: 1px solid #e5e5e5;
    border-top: 4px solid #d4af37;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.card p {
    font-size: 16px;
    line-height: 1.7;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* ===================== Contact Form ===================== */
#contactForm input, #contactForm textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
}

#contactForm button.button {
    margin-top: 10px;
}

.error-message {
    color: #d9534f;
    font-size: 13px;
    margin-top: -5px;
    margin-bottom: 10px;
    display: block;
}

input:invalid, textarea:invalid {
    border-color: #d9534f;
}

/* ===================== CTA ===================== */
.cta {
    background: #0f2a1f;
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.cta h3 {
    font-size: 32px;
    margin-bottom: 15px;
}

.cta p {
    max-width: 700px;
    margin: 0 auto 25px auto;
    font-size: 18px;
}

/* ===================== Footer ===================== */
footer {
    background: #1c1c1c;
    color: #ccc;
    text-align: center;
    padding: 30px 10%;
    font-size: 14px;
}

/* Footer Navigation */
.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 15px;
}

.footer-nav a {
    color: #d4af37;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease, border-bottom 0.3s ease;
}

.footer-nav a:hover {
    opacity: 0.8;
    border-bottom: 1px solid #d4af37;
}


/* ===================== Sticky Footer on Mobile ===================== */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 32px;
    }

    .hero .button-container {
        flex-direction: column;
        align-items: center;
    }

    /* Sticky footer nav for mobile */
    .footer-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(28,28,28,0.95);
        backdrop-filter: blur(4px);
        padding: 10px 0;
        justify-content: space-around;
        z-index: 999;
        border-top: 1px solid #d4af37;
    }

    .footer-nav a {
        color: #d4af37;
        font-size: 14px;
        padding: 5px 10px;
    }

    footer p {
        margin-bottom: 60px; /* prevent overlap with sticky nav */
    }
}

/* ===================== Fade Animation ===================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* Mobile */
@media(max-width:768px){
    .hero h2 { font-size: 32px; }
    .hero .button-container { flex-direction: column; align-items: center; }
}

/* About Page */
.about-image {
    margin: 40px 0;
}

.about-image img {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    font-size: 17px;
}
/* About Hero */
.about-hero {
    background:
        linear-gradient(rgba(15,42,31,0.65), rgba(15,42,31,0.65)),
        url('images/brooklands.jpg') center center/cover no-repeat;
    height: 600px;   /* Taller hero */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.about-hero-content h2 {
    font-size: 48px;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 1px;
    color: #d4af37;  /* Your gold accent */
}

/* About Text */
.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    font-size: 17px;
}
/* Racing line under hero */
.racing-line {
    width: 80%;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #0f2a1f, #d4af37);
    margin: 25px auto 0 auto;
    border-radius: 2px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Improve Section Spacing */
.section {
    padding: 90px 10%;
}

/* Improve Headings */
.section h3 {
    font-size: 34px;
    margin-bottom: 25px;
}

/* Improve Card Typography */
.card h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.card p {
    font-size: 16px;
    line-height: 1.7;
}