/*
Theme Name: motobike-2026
Theme URI: https://motobike.us
Author: Dennis Ball
Author URI: https://dennisball.us
Description: Lean & mean 2026 Theme for motobike.us website
Version: 0.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
      --color-white: white;
      --color-black: black;

      --primary-color: #f0f0f0;
      --primary-background-color: #1a1a1a;
      --primary-background-dark: #0d0d0d;
      
      --primary-highlight-color: #ff4500;
      --year-review-outline-color: #e69274;

      --card-background: #2c2c2c;
      --card-a-background: #3a3a3a;
      --footer-border: #333;
    }


@keyframes moveInLeft {
    0% {
        opacity: 0;
        transform: translateX(-175px);
    }

    80% {
        transform: translateX(10px);
    }

    100% {
        opacity: 1;
        transform: translate(0);
    }
}
@keyframes moveInBottom {
    0% {
        opacity: 0;
        transform: translateY(150px);
    }

    100% {
        opacity: 1;
        transform: translate(0);
    }
}

/*======================================*/    
/* --- 1. Global Reset & Typography --- */
/*======================================*/ 
body {
    font-family: 'Arial', sans-serif; 
    /*font-family: 'Poppins', sans-serif;
  	font-family: 'Verdana', san-serif; */
    margin: 0;
    padding: 0;
    background-color: var(--primary-background-color);      /* #1a1a1a;  Dark background */
    color: var(--primary-color);                            
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Impact', sans-serif; /* A strong, bold font for headlines */
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.main-heading {
  text-align: center;
  color: var(--primary-highlight-color);
}

.aligncenter {
  margin: 0 auto;
  text-align: center;
}

.aligncenter img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}  

a {
    color: var(--primary-highlight-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--color-white);
}

.active {
  color: var(--primary-highlight-color);
  text-decoration: underline;
  font-weight: bold;
}

/*======================================*/ 
/* ---    1.5  Archive  Styling ---     */
/*======================================*/ 
.taxonomy-description {
  	max-width: 40%;
    margin: 0 auto;
  	margin-top: 2rem;
    margin-bottom: 1.15rem;
    padding: .25rem 1.15rem;
  	font-size: 1.5rem;
  	text-transform: uppercase;
    letter-spacing: 2px;
  	text-align: center;
    border: 1px solid var(--primary-highlight-color);
}

.spinning-text {
  	/* Apply the animation */
  	animation: spin 1.5s linear 1; /* Name, duration, timing function, iteration count */
  	animation-timing-function: ease-in-out;
}

.search-terms {
	max-width: 40%;
    margin: 0 auto;
  	margin-top: 2rem;
    margin-bottom: 1.15rem;
    padding: .25rem 1.15rem;
  	font-size: 1.5rem;
  	text-transform: uppercase;
    letter-spacing: 2px;
  	text-align: center;
    border: 1px solid var(--primary-highlight-color);
}

@keyframes spin {
  from {
    transform: rotate(0deg); /* Start at 0 degrees rotation */
  }
  to {
    transform: rotate(360deg); /* End at 360 degrees rotation (full circle) */
  }
}

/*======================================*/ 
/* ---   2.  Navigation Styling ---     */
/*======================================*/ 
/* --- 2. Navigation Styling --- */
header {
    background-color: var(--primary-background-dark);
    padding: 15px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

#site-logo {
    height: 75px; /* Adjust as needed */
    width: auto;
}

#site-logo, #logo {
    flex-shrink: 0;
    margin-right: 20px;
}

.main-nav {
    display: flex; /* Make the nav element a flex container */
    justify-content: space-between; /* Push the logo and the ul list to opposite ends */
    align-items: center; /* Vertically align items */
    max-width: 1400px; /* Optional: Constrain the nav width */
    margin: 0 auto; /* Center the nav if constrained */
}

nav ul {
	text-align: left;  
}

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

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul a {
    text-transform: uppercase;
    font-weight: bold;
    color: var(--color-white);
}

.main-nav ul a:hover {
    color: var(--primary-highlight-color);
}

.post-navigation {
  	display: flex;
  	justify-content: space-between; /* Push the logo and the ul list to opposite ends */
    align-items: center; /* Vertically align items */
	max-width: 40%;
    margin: 0 auto;
    margin-bottom: 1.15rem;
    padding: .25rem 1.15rem;
    border: 1px solid var(--primary-highlight-color);
}

.posts-navigation {
  	display: flex;
  	justify-content: space-between; /* Push the logo and the ul list to opposite ends */
    align-items: center; /* Vertically align items */
	max-width: 40%;
    margin: 0 auto;
    margin-bottom: 1.15rem;
    padding: .25rem 1.15rem;
    border: 1px solid var(--primary-highlight-color);
}

.post-navigation h2 {
	font-size: .9rem;  
}

.posts-navigation h2 {
   	/* display: none; */
  	font-size: .9rem;
}

/*================================================*/ 
/* ---  3.  Home Page Hero  Section (Banner) ---  */
/*================================================*/ 
#hero-banner {
    height: 50vh; /* Takes up most of the viewport height */
    background: url('[Placeholder URL for your Best Bike Image]') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-overlay {
    background-color: var(--primary-background-dark);
    padding: 30px 40px;
    border-radius: 5px;
}

.heading-primary-main {
    font-weight: 400;
    animation-name: moveInLeft;
    animation-duration: 1.5s;
    animation-timing-function: ease-out;
}

#hero-banner h1 {
    font-size: 3.5em;
    margin-bottom: 0.1em;
}

#hero-banner h2 {
    font-size: 1.2em;
    font-weight: normal;
    text-transform: none;
    letter-spacing: normal;
    margin-top: 0;
    margin-bottom: 1.75rem;
}

/*======================================*/ 
/*  4. Primary Button (Call to Action)  */
/*======================================*/ 
.button-primary {
    display: inline-block;
    background-color: var(--primary-highlight-color);
    color: var(--color-white);
    padding: 15px 30px;
    margin-top: 40px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s, transform 0.1s;
}

.button-primary:hover {
    background-color: var(--primary-highlight-color);
    transform: translateY(-2px);
    color: var(--color-white);
}

/* --- 4. Primary Button (Call to Action) --- */
.button-primary {
    display: inline-block;
    background-color: #ff4500;
    color: #ffffff;
    padding: 15px 30px;
    margin-top: 40px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.1s;
}

.button-primary:hover {
    background-color: #cc3700;
    transform: translateY(-2px);
    color: #ffffff; /* Override the standard a:hover color */
}

/* --- Animated Button (Call to Action) --- */
.btn:link,
.btn:visited {
    text-transform: uppercase;
    text-decoration: none;
    padding: 15px 40px;
    display: inline-block;
    border-radius: 100px;
    transition: all .2s;
    position: relative;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,.2);
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(0,0,0,.2);
}

.btn-white {
    background-color: #fff;
    background-color: #cc3700;
    color: #fff;
}

.btn::after {
    content: "";
    display: inline-block;
    height: 100%;
    width: 100%;
    border-radius: 100px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    transition: all .4s;
}

.btn-white::after {
    background-color: #fff;
    background-color: #cc3700;
}

.btn:hover::after {
    transform: scaleX(1.4) scaleY(1.6);
    opacity: 0;
}

.btn-animated {
    animation-name: moveInBottom;
    animation-duration: 1.5s;
    animation-timing-function: ease-out;
    animation-delay: .75s;
    animation-fill-mode: backwards;
}

/*======================================*/ 
/* -----    Home  Page Callout    ----- */
/*======================================*/ 
.home-page-callout {
  border: 1px solid #333;
  padding: 25px;
  width: 70%;
  text-align: justify;
  margin: auto;
  margin-top: 10px;
  background-color: #2c2c2c;
  border-radius: 5px;
}

.home-page-paragraph {
  font-size: 1.25em;
  font-style: italic;
  color: #ffffff;
}

.home-page-bottom-margin {
  margin-bottom: 2.5rem;
}

.signature {
  text-align: right;
  font-weight: bold ; 
}

/*======================================*/
/* ---  Full-Width  Photo  Styling  --- */
/*======================================*/
.full-width-photo {
  width: 100vw; /* Take full viewport width */
  margin-left: calc(50% - 50vw); /* Center it on the screen regardless of .story-container width */
  margin-top: 40px;
  margin-bottom: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
}

.full-width-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.full-width-photo figcaption {
  background-color: #0d0d0d;
  padding: 10px;
  text-align: center;
  font-size: 0.9em;
  color: #888;
}

.color-image-content {
  position: relative;
  border-radius: 15px;
}

.color-image-content::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-color: rgba(69, 68, 65, 0.3); /* Change the color and opacity as needed */
}

.color-image-content img {
  display: block;
  max-width: 100%;
  height: auto;
  filter: sepia(.65);
}

.color-image-content figcaption {
  background-color: var(--footer-border);
  padding: 10px;
  text-align: center;
  font-size: 0.9em;
  color: var(--primary-highlite-color);
}
/*========================================*/
/* ---     Contact Page Styling       --- */
/*========================================*/
.contact-image-wrapper {
  max-width: 800px; /* Adjust this to match the max width of your contact image */
  margin: 0 auto;
  padding: 10px;
  border-radius: 5px;
  /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4); */
  margin-top: 1.2rem;
  margin-bottom: 2rem;
}

.contact-image-wrapper h1 {
  color: #ff4500;
  margin-bottom: 10px;
  text-align: center;
}
  
.contact-photo {
  width: 100%; /* Makes the image fully responsive within its wrapper */
  height: auto;
  display: block;
  border-radius: 3px;
}

/*================================================*/ 
/* ---      The  Fleet  Page  Styling        ---  */
/*================================================*/ 
#bike-previews {
    padding: 10px 5%;
    text-align: center;
    max-width: 80%;
    margin: 0 auto;
}

#bike-previews h2 {
    margin-bottom: 40px;
    color: var(--primary-highlight-color);
}

.preview-cards {
  display: flex;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
}

.bike-card {
    background-color: var(--card-background);
    border-radius: 5px;
    overflow: hidden;
    width: 400px;
    margin-bottom: 5em;
    padding: 10px;

    :hover {
      /* transform: translateY(-5px); /* Lift the card on hover
      box-shadow: 0 8px 16px rgba(var(--color-black), 0.6); */ 
    }

    img {
      width: 100%;
      height: 350px;
      object-fit: cover; /* Ensures the image covers the area without distortion */
    }

    h3 {
      margin: 15px 0 10px;
      font-size: 1.2em;
    }

    a {
      display: block;
      padding: 10px 0;
      background-color: var(--card-a-background);
      color: var(--primary-highlight-color);
      font-weight: bold;
      text-transform: uppercase;
      text-align: center;
      margin-top: 5px;
    }

    a:hover {
      background-color: var(--primary-highlight-color);
      color: var(--color-white);
    }
}

/*===============================================*/ 
/* ---      The  Bike  Page  Styling        ---  */
/*===============================================*/ 
#bike-hero {
  padding: 40px 0 40px;
  text-align: center;
}

#bike-hero h1 {
  font-size: 3em;
  color: var(--color-white);
  margin-bottom: 5px;
}

.subtitle {
  font-size: 1.2em;
  color: var(--primary-highlight-color);
  margin-top: 0;
  text-transform: none;
  letter-spacing: normal;
}

/* --- Two-Column Grid Layout --- */
#bike-details {
  padding: 20px 0 20px;
}

.bike-header-grid {
  max-width: 80%;
  margin: 0 auto;
  display: grid;
  /* Two columns: 1.5 parts for image, 1 part for specs */
  grid-template-columns: 1.5fr 1fr;
  gap: 10px;
  align-items: flex-start; /* Aligns content to the top */
}

/* --- Left Column: Bike Image --- */
.bike-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  margin-top: -20px;
}

.image-caption {
  text-align: center;
  font-style: italic;
  font-size: 0.9em;
  color: #888;
  margin-top: 15px;
}

/* --- Right Column: Specs List --- */
.bike-specs {
  background-color: #2c2c2c;
  padding: 25px;
  border-radius: 5px;
  height: auto;
}

.bike-specs h2 {
  color: var(--primary-highlight-color);
  font-size: 1.6em;
  margin-top: -5px;
  padding-bottom: 10px;
  border-bottom: 2px solid #3a3a3a;
  margin-bottom: 20px;
}

.spec-list {
  margin-bottom: 0px;
}

.spec-list dt {
  color: var(--primary-highlight-color);
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.9em;
  margin-top: 7px;
}

.spec-list dd {
  margin-left: 0;
  color: var(--color-white);
  padding-left: 5px;
  border-left: 3px solid #444;
}

.small-button {
  /* Adjustment for the CTA button in the specs box */
  padding: 10px 20px;
  font-size: 0.9em;
}

/* --- Bottom Content Area (Bike History) --- */
#bike-history {
  padding: 30px 0 80px;
  border-top: 1px solid #333;
  margin-top: 20px;
}

#bike-history h2, #bike-history h3 {
  color: var(--color-white);
  border-left: 4px solid var(--primary-highlight-color);
  padding-left: 15px;
  margin-top: 40px;
  margin-bottom: 20px;
}

.story-container {
  max-width: 800px; /* Narrower width for better readability of long text */
  margin: 0 auto;
  padding: 0 5%;
}

/* Inline Photo Styling */
.inline-photo {
  text-align: center;
  margin: 0 auto;
  margin-top: 10px;
}

.inline-photo img {
  max-width: 85%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(var(--color-black), 0.5);
}

.inline-photo figcaption {
  font-size: 0.8em;
  color: #888;
  margin-top: 10px;
  margin-bottom: 10px;
}

/*===============================================*/ 
/* ---      The  Blog  Page  Styling        ---  */
/*===============================================*/ 
.blog-excerpt-grid {
    width: 60%;
    margin: 0 auto;
    margin-top: 3rem;
    display: grid; /* Enables CSS Grid layout */
    /* Defines two columns: the first is 25% wide, the second is 75% wide */
    grid-template-columns: 25% 75%;
    gap: 1rem;    /* Adds space between the columns */
    align-items: center; /* Vertically aligns items in the center */
    margin-bottom: 30px;
    border: 1px solid var(--primary-highlight-color);
    padding: 15px;
    background-image: linear-gradient(to right, var(--light-gradient), var(--dark-gradient));
    /* box-shadow: inset -1px 3px 8px 5px var(--primary-highlight-color), 2px 5px 16px 0px #0B325E, 15px 13px 5px -6px rgba(0,0,0,0.39); */
}

/* 2. Photo and Text Elements */
/* In Grid, you typically don't need explicit width on the children, 
   as the parent's `grid-template-columns` handles the sizing. */

.photo-container img {
  width: 100%;
  height: auto;
  display: block;
}

.text-container {
    text-align: justify;
    padding: 1.5rem;
}

.text-container h2 {
    text-align: left;
}

.post-meta {
    color: var(--primary-highlight-color);
    font-size: .9rem;
    text-align: left;
    margin-top: -1.95rem;
}

/*===============================================*/ 
/* ---           Posts Styling              ---  */
/*===============================================*/ 
/* --- 1. Story Hero Banner --- */
#story-hero {
  height: 40vh; /* Shorter than the landing page hero, but still dramatic */
  background-size: cover;
  background-position: center center;
  display: flex;
  align-items: flex-end; /* Push title to the bottom */
  position: relative;
  padding-top: 20px;
  margin-top: 2.5rem;
  background-color: #636363;
  background-blend-mode: multiply;
}

#story-hero .hero-overlay {
  /* Use a gradient overlay at the bottom to ensure the white text is readable */
  background-color: transparent;
  background-image: linear-gradient(to top, rgba(var(--color-black), 0.8), rgba(var(--color-black), 0));
  width: 100%;
  padding: 30px 1% 20px;
}

#story-hero h1 {
  font-size: 2.5em;
  margin: 0;
  text-shadow: 0 2px 5px rgba(var(--color-black), 0.5);
  max-width: 1000px;
  margin: 0 auto;
}

.story-container p {
  font-size: 1.1rem;
}

/* --- Story Metadata --- */
.story-meta {
  padding-bottom: 20px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--footer-border);
  color: var(--color-white);
}

.story-meta p {
  font-size: 0.95rem;
  margin: 5px 0;
}

.story-meta .date {
  color: var(--primary-highlight-color);
  font-weight: bold;
}

.story-meta .bike-link a {
  color: var(--color-white);
  text-decoration: underline;
}

.story-meta .bike-link a:hover {
  color: var(--primary-highlight-color);
}

/* --- Article Body --- */
.article-body h2 {
  font-size: 1.8em;
}

.article-body h2, .article-body h3 {
  color: var(--color-white);
  border-left: 4px solid var(--primary-highlight-color);
  padding-left: 15px;
  margin-top: 40px;
  margin-bottom: 20px;
}

.article-body p {
  color: var(--color-white);
  margin-bottom: 20px;
}

.lead-paragraph {
  font-size: 1.1em;
  font-style: italic;
  color: var(--color-white);
  padding-bottom: 15px;
}

/* Lists */
.article-body ul {
  color: var(--color-white);
  list-style-type: none;
  padding-left: 0;
  margin: 20px 0;
}

.article-body ul li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10"><circle cx="5" cy="5" r="5" fill="%23ff4500"/></svg>') no-repeat left 8px;
  padding-left: 20px;
  margin-bottom: 8px;
}



/* Over-ride border-left Orange highlight */
.article-body h3 {
    border-left: none;
    margin-left: -1rem;
}

/*==============================================*/   
/* --------   YEAR IN REVIEW STYLING   -------- */
/*==============================================*/ 
.year-in-review-container {
    border: 1px solid var(--year-review-outline-color);
    max-width: 80rem;
    margin: 0 auto;
    margin-bottom: 10px;
}

.year-in-review-container h3 {
    font-size: 1.2rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    margin-left: 0;
}

.year-in-review-container h4 {
        font-size: 1.1rem;
}

.year-in-review-top {
    display: flex;

}
.photo-area {
    max-width: 34%;
    padding: 1.5rem;
}

.photo-area img {
    max-width: 90%;
}

.general-text-area {
    max-width: 66%;
    padding-right: 1rem;
    
}

.year-in-review-bottom h3 {
    font-size: 1.1rem;
    margin-top: .1rem;
    margin-bottom: .1rem;
}

.year-in-review-bottom p {
    font-family: monospace;
    font-size: .95rem;
}

.fuel-usage-area {
    border-top: 1px solid var(--year-review-outline-color);
    padding: 1rem;
}

.maintenance-area {
    border-top: 1px solid var(--year-review-outline-color);
    padding: 1rem;
}






/*======================================*/   
/* --------     6.  Footer     -------- */
/*======================================*/ 
footer {
    text-align: center;
    padding: 20px 5%;
    background-color: var(--primary-background-dark);
    font-size: 0.9em;
    border-top: 1px solid var(--footer-border);
}

.footer-widget-container {
	display: flex;
  	justify-content: center; /* Horizontally center items */
  	align-items: center;    /* Vertically center items */
  	/* height: 200px;         /* Example height for vertical centering */
  	max-width: 80%;
  	margin: 0 auto;  
}

.footer-widget-area {
  	max-width: 50%;
  	border: 1px solid var(--color-white);
  	padding: 1rem;
  	margin: 5px;
  	align-self: flex-start;   
}

.footer-area-two {
  	padding-right: 2rem;
}

/*======================================*/ 
/* 7. Media Queries for Responsiveness- */
/*======================================*/ 
@media (max-width: 768px) {

    header {
        padding: 10px 3%; 
    }

    nav {
        flex-wrap: wrap; 
        justify-content: space-between; 
        width: 100%;
    }
    
    nav ul {
        display: flex; /* Keep it horizontal */
        flex-wrap: wrap; /* NEW: Allow the links themselves to wrap to the next line */
        justify-content: center; /* Center the links when they wrap */
        width: 100%; /* Take full width below the logo/title */
        margin-top: 10px; /* Add a little space below the logo */
    }
    
    nav ul li {
        margin: 5px 10px; /* Reduced side margin and added vertical margin */
        flex-shrink: 0; /* Prevents browsers from squishing the links */
    }
    
    /* The rest of the mobile adjustments from before: */
    #hero-banner h1 {
        font-size: 2.5em;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .preview-cards {
        flex-direction: column; 
        align-items: center;
    }

    .card {
        width: 90%; /* Make cards take up most of the screen width */
        max-width: 400px;
    }
}

@media (max-width: 600px) {
  /* Override the parent container */
  .blog-excerpt-grid {
    /* Changes the layout from two side-by-side columns to a single column */
    /* The `1fr` means the single column will take up 100% of the available fraction/space */
    grid-template-columns: 1fr; 
  }

  .footer-widget-container {
      	flex-direction: column;
      	justify-content: none;
  }
}

@media (max-width: 500px) {
  
    /* The rest of the mobile adjustments from before: */
    #hero-banner h1 {
        font-size: 1.5em;
    }
  
    .home-page-callout {
  		text-align: left;
	}
  
  	.home-page-paragraph {
  		font-size: .95em;
	}
  
  	.footer-widget-container {
      	flex-direction: column;
      	justify-content: none;
  	}
}
