/* =================================
   Yamaha Tracer Machines Grid
   ================================= */

.yamaha-tracer-grid {
    max-width: 900px;
    margin: 60px auto;
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    column-gap: 0;
}

/* Vertical Divider */
.yamaha-divider {
    background: #e6e6e6;
}

/* Column Wrapper */
.yamaha-column {
    display: flex;
    flex-direction: column;
    align-items: center; /* ensures content centres */
}

/* Generic Cell */
.yamaha-cell {
    width: 100%;
    padding: 35px 40px;
    text-align: center;
    box-sizing: border-box;
}

/* =================================
   Header Row (Top Bike Headers)
   ================================= */

.yamaha-header {
    background: #535353;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
}

.yamaha-header h3 {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    color: #fff;
}

/* =================================
   Standard Text Rows
   ================================= */

.yamaha-text p {
    margin: 12px 0;
    line-height: 1.6;
    color: #333;
}

/* Quote Divider */
.yamaha-text hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
    margin: 20px auto;
    width: 60%;
}

/* =================================
   Specification Boxes
   ================================= */

.yamaha-spec {
    width: 95%;
    margin: 20px auto;
    padding: 22px;

    background: #f2f2f2;
    border: 3px solid #535353;
    border-radius: 12px;

    box-sizing: border-box;  /* prevents overflow */
    box-shadow: 0 10px 18px rgba(0,0,0,0.12);
}

.yamaha-spec ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.yamaha-spec li {
    margin: 8px 0;
    font-weight: 500;
    line-height: 1.8;
}

/* =================================
   Image Styling (300x300)
   ================================= */

.yamaha-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px 0;
}

.yamaha-image img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border: 2px solid #000;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* =================================
   Full Width Accessory Rows (95%)
   ================================= */

.yamaha-full-width {
    grid-column: 1 / -1;
    width: 95%;
    margin: 20px auto;
    background: #535353;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-sizing: border-box;
}

.yamaha-full-width h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

/* =================================
   Plain Full Width Text Row
   ================================= */

.yamaha-plain-full {
    grid-column: 1 / -1;
    width: 95%;
    margin: 20px auto;
    padding: 30px 40px;
    text-align: center;
    box-sizing: border-box;
}

.yamaha-plain-full p {
    margin: 12px 0;
    line-height: 1.8;
    font-size: 18px;
    color: #333;
}

/* =================================
   Responsive
   ================================= */

@media (max-width: 768px) {

    .yamaha-tracer-grid {
        grid-template-columns: 1fr;
    }

    .yamaha-divider {
        display: none;
    }

    .yamaha-cell {
        padding: 25px 20px;
    }

    .yamaha-header h3 {
        font-size: 24px;
    }

    .yamaha-plain-full p {
        font-size: 16px;
    }

    .yamaha-image img {
        width: 300px;
        height: 300px;
    }
}