/* Basic Resets & Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: whitesmoke;
    background-color: #F0EAD6;  /* Vintage Cream/Yellow */
    
    color: #3B7040; /* Primary Green (Forest Green) */
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3 {
    color: #3D3B30; /* Dark Contrast (Charcoal/Brown-Black) */
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: #3B7040; /* Primary Green */
}

a:hover {
    color: #3D3B30; /* Dark Contrast */
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 1px solid transparent; /* Added for hover effect */
}

.btn-primary {
    /* background-color: #3B7040; /* Primary Green */
    /* color: #F0EAD6; /* Vintage Cream/Yellow */
    background-color: #D8C3A5;
    color: #000;
    background-color: #3D3B30; /* Dark Contrast */
    color: #F0EAD6;
}

.btn-primary:hover {
    background-color: #3D3B30; /* Dark Contrast */
    color: #F0EAD6;
}

.btn-secondary {
    background-color: #86A889; /* Accent Green (Sage Green) */
    color: #3D3B30; /* Dark Contrast */
    border-color: #86A889; /* Match background */
}

.btn-secondary:hover {
    background-color: #A3CC7D; /* Highlight Green */
    color: #3D3B30;
    border-color: #A3CC7D;
}

/* Header & Navigation */
.main-header {
    background-color: #3D3B30; /* Dark Contrast */
    color: #F0EAD6; /* Vintage Cream/Yellow */
    padding: 15px 0;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #F0EAD6;
    font-size: 1.5em;
    font-weight: bold;
}

.menu-toggle {
    color: #F0EAD6; /* Vintage Cream/Yellow */
    background: none;
    border: none;
    cursor: pointer;
    display: flex; /* Always display for mobile-first */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    padding: 0;
    margin-right: .5em;
}

.icon-bar {
    width: 100%;
    height: 3px;
    background-color: #F0EAD6; /* Vintage Cream/Yellow */
    transition: all 0.3s ease;
}

.main-nav {
    display: none; /* Hidden by default for mobile */
    position: absolute;
    top: 100%; /* Position below the header */
    left: 0;
    width: 100%;
    background-color: #3B7040; /* Primary Green */
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.main-nav.active {
    display: block; /* Show when active */
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15); /* Slightly more visible separator */
}

.main-nav li:last-child {
    border-bottom: none;
}

.main-nav a {
    display: block;
    padding: 15px;
    color: #F0EAD6; /* Vintage Cream/Yellow */
    text-align: center;
    transition: background-color 0.3s ease;
}

.main-nav a:hover {
    background-color: #86A889; /* Accent Green (Sage Green) */
    color: #3D3B30; /* Dark Contrast */
}

/* Hero Section */
.hero-section {
    /* Updated placeholder image URL to reflect new palette 
    background: url('https://via.placeholder.com/1200x600/3B7040/D8C3A5?text=Vintage+Motorbike+Hero') no-repeat center center/cover; */
    /*color: #F0EAD6;  Vintage Cream/Yellow */
    color: darkslategray;
    text-align: center;
    padding: 40px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px; /* Ensure sufficient height */
}

.hero-section h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    /* color: #F0EAD6;  Vintage Cream/Yellow */
    color: darkslategray;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3); /* Added subtle shadow for readability */
}

.hero-section p {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #D8C3A5; /* Earthy Tan */
    color: darkslategray;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3); /* Added subtle shadow for readability */
}

/* Featured Bikes Section */
.other {
    text-align: left;
    font-size: 2.2em;
    font-weight: 600;
    padding-bottom: .15em;
}
.featured-bikes {
    padding: 60px 0;
    background-color: #D8C3A5; /* Earthy Tan */
    text-align: center;
}

.featured-bikes h2 {
    margin-bottom: 40px;
    color: #3D3B30; /* Dark Contrast */
}

.bike-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 30px;
}

.bike-card {
    position: relative;
    background-color: #F0EAD6; /* Vintage Cream/Yellow */
    
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    height: 27rem;


    img {
        max-width: 100%;
        height: 175px;
        border-radius: 5px;
        margin-bottom: 15px;
        border: 2px solid #86A889; /* Subtle border for images */
        margin-top: .75rem;
    }

    h3 {
        margin-bottom: 10px;
        color: #3B7040; /* Primary Green */
    }

    p {
        margin-left: 1.5rem;
        margin-right: 1.5rem;
        margin-bottom: 20px;
        color: #3D3B30; /* Dark Contrast */
    }

    a {
      display: block;
      padding: 10px 0;
      background-color: #3B7040;
      color: orangered;
      font-weight: bold;
      text-transform: uppercase;
      text-align: center;
      margin-top: 5px;
    }

    a:hover {
      background-color: #86A889;
      color: #000;
    }
    
    .sub-div {
        position: absolute;
        bottom: 0px;
        width: 100%;
    }
}



/* Footer */
.main-footer {
    background-color: #3D3B30; /* Dark Contrast */
    color: #D8C3A5; /* Earthy Tan */
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
}

.img-card {
  max-width: 80%;
  margin-left: 6.5rem;
  margin-top: 4.5rem;
}

.img-card-img {
  max-width: 90%;
  -webkit-box-shadow: inset -1px 3px 8px 5px #1F87FF, 2px 5px 16px 0px #0B325E, 15px 13px 5px -6px rgba(0,0,0,0.39); 
  box-shadow: inset -1px 3px 8px 5px #1F87FF, 2px 5px 16px 0px #0B325E, 15px 13px 5px -6px rgba(0,0,0,0.39);
}

.card {
  margin-top: 4rem;
  perspective: 150rem;
  -moz-perspective: 150rem;
  position: relative;
  height: 31rem; }
  .card__side {
    height: 31rem;
    transition: all .8s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    backface-visibility: hidden;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.15); }
    .card__side--front {
      background-color: #fff; 
      background-image: url(../images/db-hero.jpg)
    }
    .card__side--back {
      transform: rotateY(180deg); }
      .card__side--back-1 {
        /* background-image: linear-gradient(to right bottom, #ffb900, #ff7730); 
        background-image: url(../images/business-card.jpg); 
        */
        background-image: linear-gradient(to bottom, rgb(113, 169, 241) , rgb(9, 45, 122));
        -webkit-box-shadow: inset -1px 3px 8px 5px #1F87FF, 2px 5px 16px 0px #0B325E, 15px 13px 5px -6px rgba(0,0,0,0.39); 
        box-shadow: inset -1px 3px 8px 5px #1F87FF, 2px 5px 16px 0px #0B325E, 15px 13px 5px -6px rgba(0,0,0,0.39);
      }
      .card__side--back-2 {
        background-image: linear-gradient(to right bottom, #7ed56f, #28b485); }
      .card__side--back-3 {
        background-image: linear-gradient(to right bottom, #2998ff, #5643fa); }
  .card:hover .card__side--front {
    transform: rotateY(-180deg); }
  .card:hover .card__side--back {
    transform: rotateY(0); }
  .card__picture {
    background-size: cover;
    height: 23rem;
    background-blend-mode: screen;
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    border-top-left-radius: 3px;
    border-top-right-radius: 3px; }
    .card__picture--1 {
      /* background-image: linear-gradient(to right bottom, #ffb900, #ff7730), url(images/db-hero.jpg); */
      background-image: url(../images/db-hero.jpg)
    }
    .card__picture--2 {
      background-image: linear-gradient(to right bottom, #7ed56f, #28b485), url(../img/nat-6.jpg); }
    .card__picture--3 {
      background-image: linear-gradient(to right bottom, #2998ff, #5643fa), url(../img/nat-7.jpg); }
  .card__heading {
    font-size: 2.8rem;
    font-weight: 300;
    text-transform: uppercase;
    text-align: right;
    color: #fff;
    position: absolute;
    top: 12rem;
    right: 2rem;
    width: 75%; }
  .card__heading-span {
    padding: 1rem 1.5rem;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone; }
    .card__heading-span--1 {
      background-image: linear-gradient(to right bottom, rgba(255, 185, 0, 0.85), rgba(255, 119, 48, 0.85)); }
    .card__heading-span--2 {
      background-image: linear-gradient(to right bottom, rgba(126, 213, 111, 0.85), rgba(40, 180, 133, 0.85)); }
    .card__heading-span--3 {
      background-image: linear-gradient(to right bottom, rgba(41, 152, 255, 0.85), rgba(86, 67, 250, 0.85)); }
  .card__details {
    padding: 3rem; }
    .card__details ul {
      list-style: none;
      width: 80%;
      margin: 0 auto; }
      .card__details ul li {
        text-align: center;
        font-size: 1.5rem;
        padding: 1rem; }
        .card__details ul li:not(:last-child) {
          border-bottom: 1px solid #eee; }
  .card__cta {
    position: absolute;
    top: 87%;
    right: -16%;
    /* transform: translate(-50%, -50%); */
    width: 90%;
    text-align: center; }
  .card__price-box {
    text-align: center;
    color: #fff;
    margin-bottom: 8rem; }
  .card__price-only {
    font-size: 1.4rem;
    text-transform: uppercase; }
  .card__price-value {
    font-size: 6rem;
    font-weight: 100; }

.row {
  max-width: 45rem;
  margin: 0 auto; }
  .row:not(:last-child) {
    margin-bottom: 8rem; }
  .row::after {
    content: "";
    display: table;
    clear: both; }
  .row [class^="col-"] {
    float: left; }
    .row [class^="col-"]:not(:last-child) {
      margin-right: 6rem; }
  .row .col-1-of-1 {
    width: 100% }
  .row .col-1-of-2 {
    width: calc((100% - 6rem) / 2); }
  .row .col-1-of-3 {
    width: calc((100% - 2 * 6rem) / 3); }
  .row .col-2-of-3 {
    width: calc(2 * ((100% - 2 * 6rem) / 3) + 6rem); }
  .row .col-1-of-4 {
    width: calc((100% - 3 * 6rem) / 4); }
  .row .col-2-of-4 {
    width: calc(2 * ((100% - 3 * 6rem) / 4) + 6rem); }
  .row .col-3-of-4 {
    width: calc(3 * ((100% - 3 * 6rem) / 4) + 2 * 6rem); }


/* Media Queries for Responsiveness */

/* Tablet and larger */
@media (min-width: 768px) {
    .main-header .container {
        display: flex; /* Keep flex for logo and nav alignment */
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        margin-bottom: 0; /* Remove margin added for mobile center */
    }

    .menu-toggle {
        display: none; /* Hide toggle on larger screens */
    }

    .main-nav {
        position: static; /* Position within the flow */
        display: block !important; /* Always show navigation on desktop */
        background-color: transparent; /* Transparent background */
        box-shadow: none;
        width: auto;
    }

    .main-nav ul {
        display: flex; /* Display navigation items in a row */
        justify-content: flex-end; /* Align right */
        margin-top: 0;
    }

    .main-nav li {
        border-bottom: none;
        margin-left: 25px; /* Spacing between links */
    }

    .main-nav a {
        padding: 5px 0; /* Less padding for desktop links */
        color: #F0EAD6;
    }

    .main-nav a:hover {
        background-color: transparent; /* No background hover for desktop */
        color: #A3CC7D; /* Highlight Green */
    }

    .hero-section {
        padding: 60px 0;
    }

    .hero-section h1 {
        font-size: 3.5em;
    }

    .featured-bikes h2 {
        font-size: 2.5em;
    }

    .bike-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns on tablet */
    }
}

/* Desktop and larger */
@media (min-width: 1024px) {
    .bike-grid {
        grid-template-columns: repeat(3, 1fr); /* Three columns on desktop */
    }
}