/* GLOBAL */
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}


/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, #e30613, #ff6600);
    padding: 10px 20px;
}

.logo img {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

@media (max-width: 600px) {
    .logo img {
        width: 150px;
        height: 150px;
    }
}


/* NAV LINKS */
.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* MOBILE NAV (safe, realistic breakpoint) */
.hamburger { display: none; } /* default - desktop */

@media (max-width: 900px) {
    /* position navbar to allow absolute child placement */
    .navbar { position: relative; }

    /* hamburger visibility + position + tap target */
    .hamburger {
        display: block;
        position: absolute;
        right: 18px;
        top: 12px;
        font-size: 28px;
        color: white;
        background: linear-gradient(to right, #e30613, #ff6600);
        padding: 8px 12px;
        border-radius: 6px;
        cursor: pointer;
        z-index: 1002;            /* keep it above dropdown */
        user-select: none;
    }

    /* dropdown */
    .nav-links {
        display: none;            /* hidden until toggled */
        flex-direction: column;
        background: #f4f4f4;
        position: absolute;
        top: 56px;                /* just under the navbar */
        right: 12px;
        width: 200px;             /* slightly wider for text */
        padding: 10px;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.18);
        z-index: 1000;
    }

    /* ensure the .show class reveals it as column */
    .nav-links.show {
        display: flex;
    }

    /* spacing and tap area for mobile items */
    .nav-links li {
        margin: 10px 0;
    }

    .nav-links a {
        display: block;
        padding: 10px 8px;
        color: #333;
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .nav-links a:hover {
        color: #e30613;
    }

    /* small safety: make sure desktop rule doesn't override mobile */
    .nav-links {
        -webkit-tap-highlight-color: transparent;
    }
}

.title {
    width: 100%;
    background: #000;
    padding: 18px 10%;
    text-align: center;
    box-sizing: border-box;
}

/* Main page title (H1) */
.title h1 {
    color: #fff;
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

/* Sub-page titles (H3 fallback) */
.title h3 {
    color: #fff;
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
}
.tagline {
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #111;

    margin: 16px auto 30px;
    max-width: 1000px;
}

.intro {
  max-width: 900px;
  margin: 30px auto;
  padding: 25px 30px;
  background: linear-gradient(to right, #ff6a3d, #ff9a6a);
  border-radius: 10px;
  color: #1a1a1a;
  line-height: 1.6;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  border-left: 6px solid #e30613;
}

.intro p {
  margin-bottom: 15px;
}


/* HERO IMAGE (CENTERED) */
.hero-rotator {
  position: relative;
  max-width: 1000px;
  margin: 30px auto;
  height: auto;
}

.hero-img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.35);
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-img.active {
  opacity: 1;
  position: relative;
}

.center-img {
    display: block;
    margin: 25px auto;
    max-width: 1100px;
    width: 100%;
    height: auto;
    border-radius: 10px;
}


/* ==============================
   CARD GRID (MAX 3 PER ROW)
   ============================== */
.cards-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 15px;
}

/* Tablet */
@media (max-width: 900px) {
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 600px) {
    .cards-container {
        grid-template-columns: 1fr;
    }
}

/* ==============================
   CARD STYLES
   ============================== */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 40px auto;
}

.card {
  background: linear-gradient(to bottom right, #e30613, #ff6600);
  color: white;
  text-decoration: none;
  padding: 35px 20px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(0,0,0,0.35);
}


/* FOOTER STAYS AT BOTTOM */
footer {
    background: #333;
    color: white;
    padding: 20px;
    text-align: center;
}
/* Vehicles Page Layout */
.vehicles-page {
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

/* Grid Container */
.cards-container-vehicles {
    width: 90%;
    margin: 30px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.vehicle-card {
    max-width: 600px;    /* slightly bigger than image max-width */
    width: 90%;
    margin: 20px auto;
    background: #111;
    padding: 15px;
    border-radius: 12px;
    color: #fff;
}

.vehicle-card, .vehicle-image, .vehicle-info {
    text-align: center;
}

.vehicle-card:hover {
    transform: scale(1.03);
}

.vehicle-image img {
    width: 100%;
    max-width: 550px;    /* ← reduce this to the width you want */
    height: auto;
    display: block;
    margin: 0 auto;      /* centers the image */
    border-radius: 8px;
}

.vehicle-info {
    padding: 20px 30px;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
}


.vehicle-title {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffd700;
}

.vehicle-price {
    margin: 5px 0;
    font-size: 1.1rem;
}


.vehicle-price {
    font-size: 1.2rem;
    color: #ffcc00;
    margin: 10px 0;
}

.vehicle-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 18px;
    background: linear-gradient(to right, #c89b00, #ffdd44);
    border-radius: 8px;
    color: #000;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.2s ease-in-out;
}

.vehicle-button:hover {
    transform: scale(1.06);
    box-shadow: 0 0 12px rgba(255, 221, 68, 0.7);
}


/* VEHICLE DETAILS PAGE MATCHING VEHICLES LISTING STYLE */
.vehicle-details-page {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 15px;
}

.details-card {
    background: #111;
    color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0,0,0,0.4);
}

.vehicle-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.stock-info {
    color: #ffb347;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Gallery */
.image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.image-box {
    display: inline-block;
}

.image-box img {
    width: 180px;
    height: auto;
    border-radius: 6px;
    cursor: pointer;
}


/* Orange Button - same as index.php cards */
.btn-orange {
    display: inline-block;
    padding: 12px 20px;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    background: linear-gradient(to right, #e30613, #ff6600);
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    width: 220px;
    transition: 0.3s ease;
}

.btn-orange:hover {
    opacity: 0.85;
    transform: translateY(-3px);
}
/* Lightbox overlay */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox-title {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.2rem;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.enlargeable {
    cursor: zoom-in;
}

/* PARTS PAGE – SAME STYLE AS VEHICLES BUT SMALLER THUMBNAILS */

.parts-page {
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.cards-container-parts {
    width: 90%;
    margin: 30px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

/* Same card style as vehicles, just smaller */
.part-card {
    background: #111;
    color: #fff;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    transition: 0.25s ease;
}

.part-card:hover {
    transform: scale(1.03);
}

/* THUMBNAIL IMAGES */
.part-image img {
    width: 120px;         /* 👈 thumbnail */
    height: 120px;        /* 👈 thumbnail */
    object-fit: cover;    
    border-radius: 8px;
    margin: 0 auto;
    display: block;
}

/* Info area */
.part-info {
    padding: 10px 5px;
    font-family: 'Orbitron', sans-serif;
}

/* Same button as vehicle pages */
.part-button {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 16px;
    background: linear-gradient(to right, #c89b00, #ffdd44);
    border-radius: 8px;
    color: #000;
    font-weight: bold;
    text-decoration: none
}

/* ABOUT PAGE */
.about-page {
    max-width: 900px;          /* controls width of content */
    width: 90%;
    margin: 40px auto;         /* centers entire block */
    padding: 20px;
    font-size: 20px;
    line-height: 1.7;
    color: #1a1a1a;
    font-family: Arial, Helvetica, sans-serif;
}

.about-page h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-top: auto;
    margin-bottom: 15px;
    font-weight: bold;
    color: #000;
}

.about-page p {
    margin-bottom: 25px;
    text-align: left;
}
/* PARTS SEARCH */
.parts-search-form {
    display: flex;
    justify-content: right;
    gap: 10px;
    margin: 20px 75px;
}

.parts-search-form input {
    width: 300px;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.parts-search-form button {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    background: #e30613;
    color: #fff;
    cursor: pointer;
}

.parts-search-form button:hover {
    opacity: 0.9;
}

.about-image {
    width: 300px;
    height: 300px;
    object-fit: cover;
    float: right;
    margin: 5px 0 15px 25px; /* more space around image */
    border-radius: 8px; /* optional */
}
/* ===============================
   VIDEOS PAGE  HARD RESET
   =============================== */

.videos-container {
    width: 100%;
    max-width: 1600px;   /* page width */
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

/* Stack videos normally */
.video-grid {
    width: 100%;
    margin-top: 60px;
}

/* VIDEO PAGE  SAFE 16:9 EMBED (NO CROPPING) */
.video-item {
    width: 65%;
    max-width: 900px;
    margin: 0 auto 60px;
    text-align: center;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 ratio */
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* Mobile */
@media (max-width: 768px) {
    .video-item {
        width: 95%;
    }
}
.video-title {
    margin: 22px auto 0;
    padding: 16px 20px;
    max-width: 90%;
    font-size: 1.45rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(to right, #e30613, #ff6600);
    border-radius: 8px;
    letter-spacing: 0.4px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.3);
}

