/* ===================== Base Styling ===================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;

    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;
}

.section {
    flex: 1;
}

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-links a {
    color: #d4af37;
    text-decoration: none;
    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;
}

.navbar { 
  width: 100%;	
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: #111;
  color: white;
  position: relative;
  z-index: 10000;	
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}


.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

/* MOBILE VERSION */
@media (max-width: 768px) {

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #111;

    display: flex;
    flex-direction: column;
    gap: 0;                /* 👈 important */

    overflow: hidden;
    max-height: 0;
    opacity: 0;

    transition: 
      max-height 0.4s ease,
      opacity 0.3s ease;
  }

  .nav-links.active {
    max-height: 400px;     /* slightly reduced */
    opacity: 1;
  }

  .nav-links a {
    display: block;
    padding: 9px 25px;     /* tighter spacing */
  }

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
    .section {
        padding: 25px 20px;
    }
}

/* ===================== Hero ===================== */
.hero {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 750px;

    background:
        linear-gradient(rgba(15,42,31,0.3), rgba(15,42,31,0.3)),
        url('images/classic-car-hero.jpg') center center / cover no-repeat;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero h1 {
    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: 30px 5%;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 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 {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1c1c1c;
    padding: 8px 10px;
    padding-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 12px;
    z-index: 999;
    border-top: 1px solid #d4af37;
}

.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) {

    footer {
        height: 0;
    }

    .footer-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #1c1c1c;
        padding: 8px 10px;
        padding-bottom: 8px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 12px;
        z-index: 999;
        border-top: 1px solid #d4af37;
    }

    .footer-nav a {
        font-size: 14px;
        padding: 4px 8px;
    }

    footer {
        height: 0;
        overflow: visible;
    }

}

/* ===================== 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 {
    width: 100%;
    /* Use the exact decimal ratio of your image */
    aspect-ratio: 32 / 9; 
    
    /* Ensure max-height isn't "squashing" the ratio on large screens */
    max-height: 600px; 

    background:
        linear-gradient(rgba(15,42,31,0.2), rgba(15,42,31,0.2)),
        url('images/about.jpg') center center / cover no-repeat;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}


.about-hero h1 {
    font-size: 42px;
    letter-spacing: 1px;
    margin: 0;
}


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

.hero-subtitle {
    font-size: 40px;
    font-weight: 300;
    letter-spacing: 1px;
    color: #FFFFFF;  /* 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 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;
}

/* ------------------    ------------------   FAQ Section code  ------------------ */

/* faq Hero */
.faq-hero {
    width: 100%;
    /* Use the exact decimal ratio of your image */
    aspect-ratio: 32 / 9; 
    
    /* Ensure max-height isn't "squashing" the ratio on large screens */
    max-height: 600px; 

    background:
        linear-gradient(rgba(15,42,31,0.2), rgba(15,42,31,0.2)),
        url('images/faq.jpg') center center / cover no-repeat;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.faq-hero h1 {
    font-size: 42px;
    letter-spacing: 1px;
    margin: 0;
}

.faq-section {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
  min-height: 60vh;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: #d4af37;
  text-align: left;
  padding: 18px 0;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  opacity: 0.85;
}

.faq-answer {
  text-align: left;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: 
    max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease;
}

.faq-item.active .faq-answer {
  opacity: 1;
}

/* Icon transition */
.faq-icon {
  font-size: 22px;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg); /* turns + into   shape */
}
.faq-item {
  border-bottom: 1px solid #333;
  transition: box-shadow 0.3s ease, background 0.3s ease;
  padding: 0 15px;  /* Always applied */
	
}

.faq-item.active {
  background: rgba(255, 255, 255, 0.02);
  /*   __________    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); */
  border-radius: 6px;
}

/* ===================== Demo Page ===================== */

.demo-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.demo-option {
    background: transparent; /* matches page */
    padding: 4px;
}

.demo-option img {
    width: 80%;
    border-radius: 4px;

}

.demo-option img:hover {
    transform: scale(1.02);
}

/* =.footer-nav {
    background: red !important;
}

body {
    background: yellow !important;
}
 */
