/* ==========================================================================
   Reset and Base Styles 
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ==========================================================================
   Header & Navigation (Desktop Default)
   ========================================================================== */
header {
    background-color: rgba(26, 26, 26, 0.95);
    border-bottom: 3px solid #cf2127;
    padding: 0 20px; 
    height: 80px !important; /* Forces desktop to stay exactly 80px so logos scale perfectly */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(5px);
    overflow: hidden; 
}

.nav-logo {
    font-weight: bold;
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 15px; 
}

.nav-logo span {
    color: #cf2127;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover, 
nav ul li a.active {
    color: #cf2127;
}

/* ==========================================================================
   Brand Logos Panel & Scalers (Scaled Down by 15%)
   ========================================================================== */
.brand-logos {
    display: flex;
    gap: 15px; 
    align-items: center;
    justify-content: center;
    height: 98%; /* Reduced from 115% */
}

.brand-logo {
    height: 98%; /* Reduced from 115% */
    width: auto;   
    object-fit: contain; 
    transition: opacity 0.3s ease;
}

.brand-logo:hover {
    opacity: 1; 
}

.brand-logo.logo-scaled {
    height: 85%; /* Reduced from 100% */
    transform: translateY(0px); 
}

.brand-logo.kawasaki-scaled {
    height: 76%; /* Reduced from 90% */
    transform: translateY(10px); /* Adjusted vertical centering */
}

.brand-logo.harley-davidson-scaled {
    height: 145%; /* Reduced from 170% */
    transform: translateY(-2px); /* Adjusted vertical centering */
}

/* Original Spacing Adjustments */
.brand-logo.harley-spacing {
    margin-left: -40px; 
    margin-right: -40px;
}

.brand-logo.suzuki-spacing {
    margin-left: -15px;
    margin-right: -15px;
}

.brand-logo.honda-spacing {
    margin-left: -6px;
    margin-right: -20px;
}

.brand-logo.kawasaki-spacing {
    margin-left: -10px;
    margin-right: 5px;
}

.brand-logo.ducati-spacing {
    margin-left: -18px;
    margin-right: -13px;
}

.header-main-icon {
    height: 35px; /* Reduced from 40px */
    width: auto;  
    object-fit: contain;
}

/* ==========================================================================
   Homepage Container: Hero & Services
   ========================================================================== */
.hero-services-wrapper {
    margin-top: 80px; 
    /* Changed to a more robust, mobile-friendly background shorthand */
    background: linear-gradient(rgba(18, 18, 18, 0.78), rgba(18, 18, 18, 0.88)), url('workshop.jpg') no-repeat center center / cover;
}

.hero {
    margin-top: 0; 
    padding: 10rem 2rem 5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    color: #ccc;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.services {
    padding: 2rem 2rem 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background: transparent; 
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 3rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #cf2127;
    margin: 10px auto 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.service-card-link {
    text-decoration: none;
    display: flex;
    color: inherit;
}

.service-card {
    background-color: rgba(26, 26, 26, 0.85);
    border: 1px solid #333;
    border-top: 4px solid #cf2127;
    padding: 2.5rem;
    border-radius: 4px;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    backdrop-filter: blur(3px);
    width: 100%;
    display: flex;
    flex-direction: column;
}

.service-card-link:hover .service-card {
    transform: translateY(-5px);
    background-color: rgba(35, 35, 35, 0.9);
}

.service-card h3 {
    font-size: 1.5rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: #fff;
}

.service-card p {
    color: #bbb;
    margin-bottom: 1.5rem;
}

.btn-container {
    margin-top: auto;
    padding-top: 1rem;
}

.btn-sm {
    display: inline-block;
    background-color: transparent;
    color: #fff;
    border: 2px solid #cf2127;
    padding: 0.5rem 1.2rem;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: background 0.3s;
}

.service-card-link:hover .btn-sm {
    background-color: #cf2127;
}

/* ==========================================================================
   Portfolio & Sub-Pages Container (Universal Wrapper)
   ========================================================================== */
.portfolio-page-wrapper {
    width: 100%;
    background: linear-gradient(rgba(18, 18, 18, 0.85), rgba(18, 18, 18, 0.85)), url('workshop.jpg') no-repeat center center / cover;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.portfolio-container {
    width: 100%;
    max-width: 1200px; 
    margin: 120px auto 4rem auto; 
    padding: 0 2rem;
    min-height: auto; 
    display: flex;
    flex-direction: column;
}

.project-row {
    display: flex;
    background-color: rgba(26, 26, 26, 0.9);
    border: 1px solid #333;
    border-left: 5px solid #cf2127;
    border-radius: 6px;
    margin-bottom: 3rem;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.project-details {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-title {
    font-size: 1.8rem;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.project-description {
    color: #bbb;
    font-size: 1.05rem;
}

.project-media {
    flex: 1;
    min-height: 350px;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   Contact & Booking Times Sections
   ========================================================================== */
.contact {
    background-color: rgba(26, 26, 26, 0.9);
    padding: 3rem 1rem;
    text-align: center;
    border-top: 1px solid #333;
    width: 100%;
    display: block !important; /* Forces visibility */
}

.contact p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #ccc;
}

.contact-info {
    margin-top: 1.5rem;
    font-size: 1.2rem;
    color: #fff;
}

.contact-email {
    margin-bottom: 0.8rem;
}

.contact-phone, 
.contact-phone-last {
    margin-bottom: 0.8rem;
}

.contact-phone-last {
    margin-bottom: 0px;
}

.contact-phone a, 
.contact-phone-last a {
    color: #cf2127;
    text-decoration: none;
    font-weight: bold;
}

.opening-times-banner {
    background: linear-gradient(rgba(18, 18, 18, 0.85), rgba(18, 18, 18, 0.85)), url('Workshop2.jpg') no-repeat center center;
    background-size: cover;
    padding: 5rem 2rem;
    text-align: center;
    border-top: 1px solid #333;
    width: 100%;
    display: block !important; /* Forces visibility */
}

.times-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1100px;
    margin: 3rem auto 0 auto;
    align-items: center;
}

.row-days {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
}

.time-slot {
    background-color: rgba(26, 26, 26, 0.8);
    padding: 1.5rem 1rem;
    border-radius: 4px;
    border: 1px solid #333;
    backdrop-filter: blur(3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    flex: 1 1 170px;
    max-width: 200px;
}

.time-slot h4 {
    color: #fff;
    text-transform: uppercase;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.time-slot p {
    color: #bbb;
    font-weight: 600;
}

.time-slot.closed h4 {
    color: #666;
}

.time-slot.closed p {
    color: #cf2127;
}

.bookings-notice {
    margin-top: 2.5rem;
    font-size: 1.4rem;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* ==========================================================================
   SlideShow Container (Forced Card Alignment)
   ========================================================================== */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 220px; 
    background-color: #222;
    border-bottom: 3px solid #cf2127;
    overflow: hidden; 
}

.slideshow-container .slide {
    display: none; 
    width: 100%;
    height: 100% !important;
    max-height: 220px;
    object-fit: cover; 
}

.slide-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    padding: 10px 14px;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    user-select: none;
    z-index: 10;
}

.slide-btn.prev {
    left: 0;
    border-radius: 0 4px 4px 0;
}

.slide-btn.next {
    right: 0;
    border-radius: 4px 0 0 4px;
}

.slide-btn:hover {
    background-color: #cf2127;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background-color: #0d0d0d;
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    color: #666;
    border-top: 1px solid #222;
    margin-top: auto; 
    width: 100%;
}

/* ==========================================================================
   Clean Mobile Layout Adaptations (Screens up to 768px wide)
   ========================================================================== */
@media screen and (max-width: 768px) {
    header {
        flex-direction: column !important;
        gap: 8px !important;
        height: auto !important;     
        padding: 12px 10px !important;
        overflow: visible !important; 
    }
    
    .brand-logos {
        display: none !important; /* Hides logos gracefully so header can fit nicely */
    }

    .nav-logo {
        font-size: 1.3rem !important;
        justify-content: center;
    }
    
    nav {
        width: 100% !important;
    }

    nav ul {
        display: flex !important;
        justify-content: center !important;
        padding: 0 !important;
        gap: 1.2rem !important; 
    }

    nav ul li {
        margin: 0 !important;
    }
    
    nav ul li a {
        font-size: 0.85rem !important;
        letter-spacing: 0.5px !important;
    }

    /* Standardized margins to prevent pages from slipping under the header */
    .hero-services-wrapper {
        margin-top: 105px !important; 
    }

    .portfolio-container {
        margin-top: 115px !important;
        padding: 0 1rem !important;
    }

    .hero {
        padding: 5rem 1rem 3rem 1rem !important;
    }

    .hero h1 {
        font-size: 2.2rem !important;
    }

    .time-slot {
        flex: 1 1 40% !important;
    }

    .project-row { 
        flex-direction: column !important; 
    }

    .project-media { 
        min-height: 250px !important; 
    }
}

/* ==========================================================================
   Extreme Mobile Screen Tuning (Up to 480px wide) 
   ========================================================================== */
@media screen and (max-width: 480px) {
    /* 1. Allow the header to expand naturally so the menu can fit */
    header {
        height: auto !important;
        min-height: 90px !important;
        padding: 10px 5px !important;
        flex-direction: column !important;
        gap: 8px !important;
        overflow: visible !important;
    }

    /* 2. Turn off the brand logos completely on mobile so they cannot peek through */
    .brand-logos, 
    header .brand-logos {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
    }

    /* 3. Center and scale the main title */
    .nav-logo {
        font-size: 1.2rem !important;
        margin: 0 !important;
        justify-content: center !important;
    }

    /* 4. Force the navigation menu to display clearly under the title */
    nav {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }

    nav ul {
        display: flex !important;
        justify-content: center !important;
        gap: 1.2rem !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    nav ul li {
        margin: 0 !important;
    }

    nav ul li a {
        font-size: 0.8rem !important;
    }

    /* 5. Push page elements down so they aren't covered by the mobile header */
    .hero-services-wrapper {
        margin-top: 105px !important;
    }

    .portfolio-container {
        margin-top: 115px !important;
    }

    .time-slot {
        flex: 1 1 100% !important;
    }
}

.prices-trigger {
    cursor: pointer !important; /* Force iOS Safari to recognize this as clickable */
}