﻿=============================================
Base HTML & Body Styles
============================================= */
/* Set default font size for accessibility and responsiveness */
html {
    font-size: 14px;
}

/* Larger font size for medium+ screens */
@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/* Maintain full page height */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

.container {
    width: 100% !important; /* full width */
    max-width: 100% !important; /* override any max width */
    padding-left: 0;  /* remove side padding */
    padding-right: 0; /* remove side padding */
    margin-left: 0;   /* no horizontal margins */
    margin-right: 0;
}


footer {
    margin-top: auto;
}

/* =============================================
   Accessibility Enhancements
============================================= */

/* Improve focus outline for accessibility */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}


/* =============================================
   Logo Styling
============================================= */

.navbar-brand img {
    width: 250px;
    height: 30px;
}


/* =============================================
   Navbar General Styling (Desktop & Mobile)
============================================= */

.navbar-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
    /* Prevent the navbar links from breaking into multiple lines */
    .navbar-nav .nav-item .nav-link {
        white-space: nowrap;
    }

    /* Adjust padding to give more space for each link */
    .navbar-nav .nav-item .nav-link {
        padding-left: 10px;
        padding-right: 10px;
    }



.nav-link {
    font-size: 1rem;
    color: white !important;
}

.navbar-brand {
    margin-left: 0;
    margin-right: auto;
    display: block;
    text-align: left;
}

.navbar-collapse {
    display: none;
    background-color: #222222 !important;
}

    .navbar-collapse .nav-link {
        padding-left: 20px;
    }

    .navbar-collapse.show {
        display: block !important;
    }

.navbar-toggler {
    transition: none !important;
}


/* =============================================
   Responsive Navbar (Mobile ≤ 767.98px)
============================================= */

@media (max-width: 767.98px) {
    .navbar-collapse.collapse:not(.show) {
        display: none !important;
    }

    .navbar-collapse {
        display: block !important;
        position: absolute;
        top: 85px;
        left: 0;
        z-index: 1050;
        background-color: #222222 !important;
        overflow: hidden;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

        .navbar-collapse.show {
            transform: translateX(0);
            width: 50vw;
             background-color: #222222 !important; 
        }
   

    .navbar-nav {
        display: flex;
        justify-content: space-evenly;
        overflow-x: auto;
        white-space: nowrap;
    }
    .navbar-toggler {
        transition: none;
    }

    .navbar {
        position: relative;
        z-index: 1051;
    }
}


/* =============================================
   Navbar Adjustments (≤ 991.98px)
============================================= */

@media (max-width: 991.98px) {
    .navbar-brand {
        margin-left: auto;
        margin-right: auto;
        display: block;
        text-align: center;
    }

    .navbar-toggler {
        position: absolute;
        left: 10px;
        top: 10px;
        z-index: 1;
    }

    .navbar .container-fluid {
        position: relative;
    }
}




/* =============================================
   Navbar Appearance & Toggler Button
============================================= */

/* Force navbar background color */
.navbar {
    background-color: #222222 !important;
}

/* Remove Bootstrap's default SVG */
.navbar-toggler-icon {
    width: 30px;
    height: 20px;
    background: transparent;
    background-image: none !important;
    position: relative;
    display: block;
}

    /* Hamburger icon lines */
    .navbar-toggler-icon::before,
    .navbar-toggler-icon::after,
    .navbar-toggler-icon span {
        content: '';
        position: absolute;
        width: 100%;
        height: 3px;
        background-color: white;
        border: none;
        left: 0;
        transition: all 0.3s ease;
    }

/* Remove focus outline and shadow from toggler */
.navbar-toggler:focus .navbar-toggler-icon,
.navbar-toggler:focus,
.navbar-toggler:active {
    outline: none !important;
    box-shadow: none !important;
}

/* Hamburger icon line positions */
.navbar-toggler-icon::before {
    top: 0;
}

.navbar-toggler-icon span {
    top: 8px;
    position: absolute;
}

.navbar-toggler-icon::after {
    top: 16px;
}

/* Expanded toggler style (bordered hollow lines) */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before,
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after,
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon span {
    background-color: transparent;
    border: 1px solid white;
}


/* =============================================
   Dropdown Menu Styling
============================================= */

/* Style for the dropdown menu */
.navbar .dropdown-menu {
    background-color: #222222;
    border: none;
    box-shadow: none;
}

/* Style for dropdown items */
.dropdown-item {
    color: white !important;
    display: flex;
    align-items: center;
    padding: 8px 16px;
}

    /* Move the dropdown link titles to the right */
    .dropdown-item .nav-link {
        padding-left: 40px; /* Adjust this to move the text right */
        width: 100%; /* Ensure the link takes full width of the dropdown item */
        text-align: right; /* Align the text to the right */
    }


    /* Fix for flag icons visibility */
    .dropdown-item .flag-icon {
        width: 20px !important;
        height: auto !important;
        display: inline-block !important;
    }

    .dropdown-item span.flag-icon {
        margin-right: 10px;
    }

    /* Hover effect for dropdown items */
    .dropdown-item:hover {
        background-color: #EC1C24 !important;
        color: white !important;
    }

.navbar-nav .dropdown:hover .dropdown-menu {
    display: block;
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.navbar-nav .dropdown .dropdown-menu {
    display: none;
    opacity: 0;
    visibility: hidden;
}



/* =============================================
   Nav Link Hover & Active Styling
============================================= */

/* Red background on hover/focus */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    background-color: #EC1C24;
    color: white !important;
    border-radius: 0.25rem;
    transition: background-color 0.3s ease;
}

/* Red background for active nav item */
.navbar-nav .nav-link.active {
    background-color: #EC1C24;
    color: white !important;
    border-radius: 0.25rem;
}

.navbar .dropdown-menu .dropdown-item {
    width: 100%;
}


/* =============================================
   Custom Navbar Layout
============================================= */

.custom-navbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
    min-height: 130px;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    flex-wrap: wrap; 
}

    .custom-navbar .navbar-brand img {
        max-height: 80px;
    }


/* =============================================
   Footer Styling
============================================= */


.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #222222;
    color: white;
    padding: 30px 20px;
    font-size: 14px;
}

.footer-logo {
    max-width: 160px;
    margin-bottom: 10px;
}

.footer-distributor {
    margin-bottom: 20px;
    font-weight: bold;
}

.mitsubishi-logo {
    max-width: 100px; 
    margin-top: 10px;
}

.footer-contact-section,
.footer-social-section {
    margin-top: 20px;
   
}

.footer-social-section .social-icons a {
    margin: 0 10px;
    color: white;
    font-size: 24px;
}

.footer-links {
    margin-top: 10px;
    font-size: 13px;
}
.footer-container a,
.footer-container a:visited,
.footer-container a:active {
    color: white !important;
    text-decoration: none;
}

.footer-container a:hover {
    color: #ccc; 
    text-decoration: underline;
}


/* =============================================
    Footer Responsiveness
============================================= */

@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .footer-logo-section,
    .footer-contact-section,
    .footer-social-section {
        flex: 1;
        padding: 0 20px;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: space-between; 
    }

        /* Add vertical lines between columns */
        .footer-logo-section::after {
            content: "";
            position: absolute;
            right: 0;
            top: 0;
            bottom: 0;
            width: 1px;
            background-color: #2222;
            height: 100%;
        }

        .footer-contact-section::after {
            content: "";
            position: absolute;
            right: 0;
            top: 0;
            bottom: 0;
            width: 1px;
            background-color: #2222;
            height: 100%; 
        }

        .footer-social-section::after {
            display: none;
        }
}

@media (max-width: 767px) {
    .footer-container {
        flex-direction: column; /* Stack content vertically on smaller screens */
    }

    .footer-logo-section,
    .footer-contact-section,
    .footer-social-section {
        width: 100%; /* Ensure each section takes up full width */
        padding-bottom: 20px;
        position: relative;
    }

        /* Add horizontal lines between sections */
        .footer-logo-section::after,
        .footer-contact-section::after,
        .footer-social-section::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%; 
            height: 1px;
            background-color: #2222;
        }

        /* Remove the last line after the last section */
        .footer-social-section::after {
            display: none;
        }
}





/* =============================================
   Home Page Styling
============================================= */

/* General section styling */
section {
    text-align: center;
    font-size: 20px;
    font-family: Arial, sans-serif;
    color: white;
}

/* HERO - SLIDER SECTION STYLES */
.hero-section {
    background-color: #333;
    position: relative;
    overflow: hidden;
  
}

/* Slider container fills the hero */
.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Slides */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;

    height: 100%;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover; /* always cover container */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 0;
}

    .slide.active {
        opacity: 1;
        z-index: 1;
    }

/* Responsive — tablets and up */
@media (min-width: 768px) {
    .hero-section {
        padding-top: 0;
        height: 400px; /* fixed height for larger screens */
    }
    .slide-label {
        bottom: 30px;
        left: 130px;
        font-size: 16px;
        padding: 12px 18px;
    }
}

@media (min-width: 1024px) {
    .hero-section {
        height: 500px;
    }
    .slide-label {
        bottom: 40px;
        left: 130px;
        font-size: 18px;
        padding: 14px 22px;
    }
}

/* Dots styling */
.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: white;
}
/* Base styles - mobile first */
.slide-label {
    position: static;
    background-color: #EC1C24;
    color: white;
    padding: 10px 20px;
    font-size: 15px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
    z-index: 2;
    display: inline-block;
    margin-top: 15px;
}

    .slide-label:hover,
    .slide-label:focus,
    .slide-label:active {
        background-color: #a6161a;
        color: white;
    }

.slide-text {
    position: static;
    padding: 0;
    max-width: 100%;
    color: #444;
}

    .slide-text h2 {
        font-size: 30px;
        font-weight: bold;
        margin-bottom: 10px;
        color: #444;
    }

    .slide-text p {
        font-size: 20px;
        font-style: italic;
        color: #444;
    }
.slide-caption {
    position: absolute;
    left: 8%;
    top: 60%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.4);
    padding: 20px 25px;
    border-radius: 10px;
    max-width: 500px;
    z-index: 2;
    width: 90%;
    box-sizing: border-box;
}
/* Medium screens (tablets) */
@media (max-width: 768px) {
    .slide-caption {
        left: 5%;
        top: 55%;
        padding: 15px 20px;
        max-width: 350px;
    }

    .slide-text h2 {
        font-size: 20px;
    }

    .slide-text p {
        font-size: 14px;
    }

    .slide-label {
        font-size: 13px;
        padding: 8px 14px;
    }
}

/* Small screens (phones) */
@media (max-width: 480px) {
    .slide-caption {
        left: 4%;
        top: 55%;
        padding: 12px 15px;
        max-width: 280px;
    }

    .slide-text h2 {
        font-size: 16px;
        line-height: 1.2;
    }

    .slide-text p {
        font-size: 13px;
    }

    .slide-label {
        font-size: 12px;
        padding: 6px 12px;
    }
}



/*ABOUT SECTION STYLES*/
.about-section {
    padding: 2rem 1rem;
    background-color: #f5f5f5; /* full-width background */
    text-align: center;
}

.about-container {
    font-family: Arial, sans-serif;
    color: #222;
    max-width: 1200px;
    margin: 0 auto; /* centers the content */
}


    .about-section h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .about-section p {
        font-size: 1rem;
        max-width: 1000px;
        margin: 0 auto 4rem auto;
        color: #444;
    }

.selling-points {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.point {
    flex: 1 1 22%; /* roughly 4 per row on large screens */
    max-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    text-align: center;
}
    .point svg.size-6 {
        width: 48px;
        height: 48px;
        color: #EC1C24;
    }

    .point p {
        font-weight: 600;
        font-size: 1rem;
        margin: 0;
    }

@media (min-width: 769px) {
    .point p {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 992px) {
    .point {
        flex: 1 1 45%; /* 2 per row on medium screens */
        max-width: none;
    }
}

@media (max-width: 480px) {
    .selling-points {
        gap: 1.2rem;
    }

    .point {
        flex: 1 1 100%; /* 1 per row on small screens */
        max-width: 100%;
        margin: 0 auto;
    }

        .point p {
            white-space: normal;
            overflow: visible;
            text-overflow: clip;
        }
}




/*BESTSELLING SECTION STYLES*/

.bestselling-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: black;
    font-family: Arial, sans-serif;
    position: relative;
}
/*right side fade for scroll hint*/
    .bestselling-container::after {
        content: '';
        position: absolute;
        top: 20px; /* same as padding */
        right: 0;
        width: 50px;
        height: calc(100% - 40px); /* padding top & bottom */
        pointer-events: none;
        background: linear-gradient(to left, white 80%, transparent);
    }

    .bestselling-container h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        color: #222;
    }


.product-carousel {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 10px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
}

    /* Scrollbar styling */
    .product-carousel::-webkit-scrollbar {
        height: 8px;
    }

    .product-carousel::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,0.3);
        border-radius: 4px;
    }

.product-card {
    flex-shrink: 0;
    background-color: #444;
    border-radius: 8px;
    padding: 12px;
    color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    text-align: center;
    /* Mobile first: full width (almost) */
    width: 90vw; /* almost full width */
    max-width: 300px; /* limit max width on bigger mobiles */
    margin: 0 auto; /* center on small screens */
}

    .product-card img {
        width: 100%;
        height: auto;
        border-radius: 6px;
        margin-bottom: 15px;
    }

    .product-card h3 {
        font-size: 18px;
        margin-bottom: 20px;
    }

.product-link {
    display: inline-block;
    background-color: #EC1C24;
    color: white;
    padding: 8px 14px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    padding: 5px 10px; /* smaller padding */
    font-size: 13px;
}

    .product-link:hover {
        background-color: #a6161a;
        color: white;
    }
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0,0,0,0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/*keyboard scroll*/
.product-carousel:focus {
    outline: 2px ;
    outline-offset: 4px;
}

/* Tablets: show 2 cards side by side */
@media (min-width: 600px) {
    .product-card {
        width: 45vw; /* less than half viewport */
        max-width: 280px;
        margin: 0;
    }
}

/* Small desktops: show 3 cards */
@media (min-width: 900px) {
    .product-card {
        width: 30vw;
        max-width: 250px;
    }
}

/* Larger desktops: show 4 cards */
@media (min-width: 1200px) {
    .product-card {
        width: 22vw;
        max-width: 220px;
    }
}

/* Extra large: show 6 cards if space allows */
@media (min-width: 1600px) {
    .product-card {
        width: 15vw;
        max-width: 180px;
    }
}









/*IMPLEMENTED PROJECTS SECTION*/
.projects-section {
    padding: 1.5rem 1rem;
    background-color: #f5f5f5;
    text-align: center;
    font-family: Arial, sans-serif;
    color: #222;
}

.projects-container h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.projects-list {
    display: flex;
    flex-wrap: wrap; 
    overflow-x: visible; 
    justify-content: center; 
    gap: 2rem; 
    padding-bottom: 0.5rem;
}

.project {
    flex: 1 1 120px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    max-width: 140px; 
    min-width: 100px; 
    box-sizing: border-box; 
}

    .project svg.size-6 {
        width: 72px;
        height: 72px;
        fill: #EC1C24;
        color:white;

    }

    .project p {
        font-weight: 600;
        font-size: 0.9rem;
        margin: 0;
        white-space: nowrap;
        color: #444;
    }

.more-link {
    flex: 0 0 auto;
    align-self: center;
    font-weight: 600;
    font-size: 1rem;
    color: #EC1C24;
    text-decoration: none;
    white-space: nowrap;
    padding-left: 10px;
    border-left: 1px solid #EC1C24;
    cursor: pointer;
    transition: color 0.3s ease;
}

    .more-link:hover,
    .more-link:focus {
        color: #b51418;
    }

/* Larger screens: show everything with no scroll, fit in one line */
@media (min-width: 600px) {
    .projects-list {
        overflow-x: visible;
        justify-content: center;
        gap: 3rem;
    }

    .project {
        min-width: 100px;
        max-width: 140px;
    }

    .more-link {
        padding-left: 15px;
        border-left-width: 2px;
    }
}



