/* Universal */
:root {
    --ffgrey: #aaaaaa;
    --ffblue: #2896d0;
    --ffblue2: #1b5d80;
    --ffred: #bc2121;
}

body {
    scroll-behavior:smooth;
    font-family: 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

section {/* ensures heading not covered by navbar on auto scroll */
    scroll-margin-top: 50px;
}

h2 {
    text-align: center;
}


/* Accessibility Styles*/
a:focus, button:focus {
    outline: 2px solid var(--ffgrey);
    outline-offset: 2px;
}


/* Navbar Styles */
.hover-underline {
    font-size: 0.9rem;
    color: #ffffff;
    position: relative;
    display: inline-block;
 }
.hover-underline::after, .hover-underline::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #ffffff, var(--ffgrey));
    bottom: -5px;
    left: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease-out;
}
.hover-underline::before {
    top: -5px;
    transform-origin: left;
}
.hover-underline:hover::after, .hover-underline:hover::before {
    transform: scaleX(1);
}
.navbar {
    background-color: var(--ffgrey);
    transition: padding 2s ease, font-size 2s ease;
}
.navbg:hover {
    background-color: var(--ffblue);
    color: #d21717;
	border-radius: 20px;
    transition: background-color 0.5s, color 0.5s, border-radius 0.5s;
}
.navtext:hover{
    color: #ffffff !important;
    transition: color 0.5s;
}
.logo{
    transition: width 2s ease, height 2s ease, transform 1s ease;
}
.navtitle {
    font-weight: bold;
    transition: font-size 2s ease;
}
.navhome:hover {
    .logo {
        transform: scale(0.75);
        transition: transform 2s ease;
    }
}

#navbar .navbar-nav {
    white-space: nowrap;
    flex-wrap: nowrap;
    overflow-x: auto;
}
@media (max-width: 1200px){
.navtext{
    font-size: 0.8rem;
}
}


/* Hero section styles */
.hero {
/*     background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 90%, rgba(0, 0, 0, 0) 100%), 
                url('../images/background.jpg') center/cover no-repeat;
@media (max-width: 990px) {
    background: url('../images/background.jpg') center/cover no-repeat;
} */
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    /* background-attachment: fixed; */
    color: white;
    text-align: center;
    /* padding: 100px 20px; */
    background-blend-mode: overlay;
    /* background-color: rgba(48, 95, 161, 0.897); */
    /* background-size: 100%; */
    /* transition: background-size 5s ease; */
    height: 100vh;
    transition: none;
}

h1{
    font-weight: bold;
}
.search-input {
    border-color: var(--ffgrey);
}
.search-button {
    background-color: var(--ffgrey);
    color: white;
}
.search-button:hover {
    background-color: var(--ffblue);
}


/* gallery Section */
.btn-gallery{
    background-color:#0000007c;
    color: white;
    z-index: 999;
    position: relative;
}
.carousel-inner img {
    width: 100%; 
    height: 500px;
    object-fit: cover;
    object-position: center;
    border-radius: 15px; /* Added rounded edges */
}
.btn-gallery:hover{
    transform: scale(1.05);
    transition: transform 0.3s ease;
    background-color:#000000;
    color: white;
}
.carousel-caption {
    background-color: rgba(0, 0, 0, 0.7);
    bottom: 0;
    position: absolute;
    width: calc(100% - 60px);
    padding: 10px;
    left: 30px;
    right: 30px;
}


/* about Section */
#about div {

    overflow-y: auto;
}
#about a {
    max-height: auto;

}
.btn-about {
    background-color: white; /* Set a distinct blue background */
    color: white; /* White text for contrast */
    border: 2px solid var(--ffgrey); /* Add a border for distinction */
    border-radius: 50px; /* Rounded button for a unique look */
    padding: 15px 20px; /* Adjust padding for better spacing */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
.btn-about div {
    color: black;
}
.btn-about img {
    width: auto;
    height: 100px;
}
.btn-about:hover {
    background-color: white; /* Change background on hover */
    color: var(--ffblue); /* Change text color on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Enhance shadow on hover */
    transform: scale(0.8); /* Slightly enlarge on hover */
}

.about-cards .card {
    background-color: #ffffff;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px; /* Reduced padding */
    margin-bottom: 10px; /* Reduced margin */
    text-align: left;
    height: auto; /* Ensure height adjusts to content */
}

.about-cards .card-body p {
    margin: 0;
    font-size: 1rem;
    color: #333;
}


/* equipment Section */

/* All categories list */
.styled-list .list-group-item {
    border: none;
    padding: 15px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.styled-list .list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}
.styled-list .list-group-item a {
    color: #333;
    font-weight: 500;
}
.styled-list .list-group-item a:hover {
    color: var(--ffgrey);
}
.styled-list .list-group-item i {
    font-size: 1.5rem;
}
.list-group-item .text-center span {
    font-size: 1.5rem;
}
.list-group-item .text-center span:last-child {
    font-size: 0.9rem;
}

/* Card styles */
.card-img-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card {
    width: auto;
    height: 250px;
    perspective: 1000px;
    cursor: pointer;
    border: none;
}
.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}
.card:hover .card-inner {
    transform: rotateY(180deg);
} 
.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
}
.card-front {
    background: var(--ffgrey);
}
.card-back {
    padding: 1rem;
    background: var(--ffblue);
    color: white;
    transform: rotateY(180deg);
    overflow-y: auto; /* Enable vertical scrolling */
    max-height: 100%; /* Ensure it doesn't exceed the container height */
}

/* Adjust spacing for buttons and description */
.card-back .d-flex {
    margin-bottom: 1rem; /* Add spacing below the buttons */
}

.card-back .card-text {
    margin-top: 0; /* Ensure no extra margin above the description */
    font-size: 0.9rem; /* Adjust font size for better readability */
    color: #f8f9fa; /* Ensure good contrast with the background */
}

.card-back h5 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}
#cardHeading {/* to ensure heading not covered by navbar on auto scroll */
    scroll-margin-top: 80px;
}

#subcategoriesContainer.hidden {
    display: none;
}

#subcategoriesContainer .d-flex {
    justify-content: center;
    align-items: center;
}
#subcategoriesContainer .btn-link {
    font-size: 1.2rem;
    color: var(--ffblue);
    text-decoration: none;
}
#subcategoriesContainer .btn-link:hover {
    color: var(--ffgrey);
}

/* Floating Basket Icon */
.floating-basket {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--ffblue);
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1000;
}
.floating-basket:hover {
    background-color: var(--ffgrey);
}
.basket-count {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: red;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Basket Popup */
.basket-popup {
    position: fixed;
    bottom: 20px; /* Adjusted to allow more space for dynamic growth */
    right: 20px;
    background-color: white;
    border: 1px solid var(--ffgrey);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 350px; /* Increased width */
    padding: 25px; /* Increased padding */
    z-index: 1100;
    max-height: calc(100vh - 70px); /* Allow height to grow dynamically until 70px from the top */
    overflow: hidden; /* Prevent scrolling on the popup itself */
    display: flex;
    flex-direction: column; /* Ensure content stacks vertically */
}
.basket-popup.hidden {
    display: none;
}
.basket-popup h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}
.basket-popup .basket-items {
    flex-grow: 1; /* Allow the list to grow dynamically */
    overflow-y: auto; /* Enable scrolling only for the list when needed */
    max-height: 100%; /* Ensure it doesn't exceed the popup's height */
}
.basket-popup .basket-items li {
    padding: 5px 0;
    border-bottom: 1px solid var(--ffgrey);
}

/* Remove bullet points from basket items */
.basket-items,
.basket-items li {
    list-style: none;
    padding-left: 0;
}

.basket-popup .btn {
    width: 100%;
}

/* Styles for quantity controls in the basket */
.basket-popup .btn-minus, .basket-popup .btn-plus {
    background-color: var(--ffgrey);
    color: white;
    border: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.basket-popup .btn-minus:hover, .basket-popup .btn-plus:hover {
    background-color: white;
    color: var(--ffgrey);
    border: 1px solid var(--ffgrey);
}

.basket-popup .quantity-input {
    width: 60px;
    text-align: center;
    border: 1px solid var(--ffgrey);
    border-radius: 5px;
}

/* Basket Popup Button Styles */
.btn-basket-close {
    background-color: var(--ffgrey);
    color: #fff;
    border: none;
    transition: background-color 0.3s;
}
.btn-basket-close:hover, .btn-basket-close:focus {
    background-color: var(--ffblue);
    color: #fff;
}

.btn-basket-quote {
    background-color: var(--ffblue);
    color: #fff;
    border: none;
    transition: background-color 0.3s;
}
.btn-basket-quote:hover, .btn-basket-quote:focus {
    background-color: var(--ffblue2);
    color: #fff;
}

/* Add spacing between the two buttons */
.basket-popup .d-flex.gap-2 > .btn {
    min-width: 120px;
}

/* Make basket close button inline-sized and right-aligned */
.basket-close-inline {
    width: auto !important;
    min-width: 0 !important;
    padding-left: 16px;
    padding-right: 16px;
    display: inline-block;
    align-self: flex-end;
}

/* Make basket close button text turn blue on hover */
.basket-close-inline:hover,
.basket-close-inline:focus {
    color: var(--ffred);
    background-color: transparent;
}

/* Styles for + and - buttons on cards */
.card .btn-minus, .card .btn-plus {
    background-color: var(--ffgrey);
    color: white;
    border: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.card .btn-minus:hover, .card .btn-plus:hover {
    background-color: white;
    color: var(--ffgrey);
    border: 1px solid var(--ffgrey);
}

/* Contact Section Styles */
.btn-contact {
    background-color: var(--ffgrey);
    color: white;
    margin-bottom: 3rem;
}
.btn-contact:hover{
    transform: scale(1.05);
    transition: transform 0.3s ease;
    background-color: var(--ffblue);
    color: white;
}
.socials {
	position: relative;
	margin-top: 0rem;
}
.socials .social-icons {
	padding-left: 0;
	margin-bottom: 0;
	list-style: none;
}
.socials .social-icons li {
	display: inline-block;
	margin-bottom: 0px;
}
.social-icons a {
	font-size: 2rem;
	display: inline-block;
	line-height: 44px;
	color: var(--ffblue);
	background-color: #ffffff;
	width: 44px;
	height: 44px;
	text-align: center;
	margin-right: 8px;
	border-radius: 100%;
	-webkit-transition: all 0.2s linear;
	-o-transition: all 0.2s linear;
	transition: all 0.2s linear;
}
.social-icons a:active,.social-icons a:focus,.social-icons a:hover {
	color: #fff;
	background-color: var(--ffblue);
	transform: scale(1.5);
}
.social-icons a.youtube:hover {
	background-color: #d10b0b;
}
.social-icons a.google:hover {
	background-color: #afc445;
}
.social-icons a.linkedin:hover {
	background-color: #126db8;
}
.social-icons a.instagram:hover {
	background-color: #ac0c9e;
}
.social-icons a.facebook:hover {
	background-color: #3858e6;
}
.social-icons a.email:hover {
    background-color: #bc2121;
    color: #fff;
}
.social-icons a.phone:hover {
    background-color: #17a90c;
    color: #fff;
}
.contactRef{
    color: var(--ffgrey);
}

/* WhatsApp Floating Chat Icon */
#whatsappChatIcon {
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    font-size: 2rem;
    margin-right: 12px;
    text-decoration: none;
}
#whatsappChatIcon:hover, #whatsappChatIcon:focus {
    background-color: #128C7E;
    color: #fff;
    text-decoration: none;
    transform: scale(1.1);
}

/* Contact Form Styles */
#contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
#contact-form .field, #contact-form .message {
    position: relative;
    margin-bottom: 20px;
}
#contact-form input[type="text"], 
#contact-form input[type="email"], 
#contact-form textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--ffgrey);
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}
#contact-form input[type="text"]:focus, 
#contact-form input[type="email"]:focus, 
#contact-form textarea:focus {
    border-color: var(--ffblue);
}
#contact-form textarea {
    resize: none;
    height: 120px;
}
#contact-form .field i, #contact-form .message i {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: var(--ffgrey);
}
#contact-form .button-area {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}
#contact-form .btn {
    flex: 1;
    padding: 10px;
    background-color: var(--ffgrey);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
#contact-form .btn:hover {
    background-color: var(--ffblue);
    transform: scale(1.05);
}
#contact-form .btn:active {
    transform: scale(0.95);
}
#result {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--ffblue);
    text-align: center;
}


/* Footer Styles */
.reference{
    color: #707070;
    margin: 0;
    font-size: small;
}
.bg-footer {
    background-color: var(--ffgrey);
}

/* Up Arrow Styles */
.toggle-arrow {
    font-size: 1.2rem;
    color: var(--ffblue);
    text-decoration: none;
}
.toggle-arrow[aria-expanded="true"] i {
    transform: rotate(0deg); /* Arrow points up */
    transition: transform 0.3s ease;
}
.toggle-arrow[aria-expanded="false"] i {
    transform: rotate(180deg); /* Arrow points down */
    transition: transform 0.3s ease;
}
.toggle-arrow:hover {
    color: var(--ffgrey);
}

/* Hide the arrow on larger screens */
@media (min-width: 768px) {
    .toggle-arrow {
        display: none;
    }
}

/* Hidden class styles */
.hidden {
    display: none !important;
}

#postcodeField.hidden {
    display: none;
}

/* Request Quote Form Styles */
#requestQuoteForm .field, #requestQuoteForm .message {
    position: relative;
    margin-bottom: 20px;
}

#requestQuoteForm .field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#requestQuoteForm input[type="text"], 
#requestQuoteForm input[type="email"], 
#requestQuoteForm input[type="tel"], 
#requestQuoteForm select, 
#requestQuoteForm textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--ffgrey);
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

#requestQuoteForm input[type="text"]:focus, 
#requestQuoteForm input[type="email"]:focus, 
#requestQuoteForm input[type="tel"]:focus, 
#requestQuoteForm select:focus, 
#requestQuoteForm textarea:focus {
    border-color: var(--ffblue);
}

#requestQuoteForm textarea {
    resize: none;
    height: 120px;
}

#requestQuoteForm .field i, #requestQuoteForm .message i {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: var(--ffgrey);
}

/* Request Quote Popup */
#requestQuotePopup {
    max-height: 80vh; /* Limit the height to 80% of the viewport */
    overflow-y: auto; /* Enable vertical scrolling if content exceeds the height */
    padding: 20px; /* Add padding for better spacing */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow for better visibility */
    max-width: 500px;
    width: 100%;
    min-width: 350px;
    margin-left: auto;
    margin-right: auto;
    overflow-x: hidden; /* Prevent horizontal scroll */
    z-index: 1100;
}

/* Ensure the form inside the popup is responsive */
#requestQuoteForm {
    max-height: 100%; /* Ensure the form doesn't exceed the popup height */
    overflow-y: auto; /* Enable scrolling within the form if needed */
    max-width: 100%;
    overflow-x: hidden;
}

/* Request Quote Popup Top Controls */
#requestQuotePopup .btn-back-quote {
    background-color: var(--ffgrey);
    color: #fff;
    border: none;
    padding: 6px 18px;
    font-size: 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
    min-width: 120px;
}
#requestQuotePopup .btn-back-quote:hover,
#requestQuotePopup .btn-back-quote:focus {
    background-color: var(--ffblue);
    color: #fff;
}

#requestQuotePopup .btn-close-quote {
    background-color: transparent;
    color: var(--ffgrey);
    border: none;
    font-size: 1.7rem;
    padding: 0 10px;
    line-height: 1;
    transition: color 0.3s;
}
#requestQuotePopup .btn-close-quote:hover,
#requestQuotePopup .btn-close-quote:focus {
    color: var(--ffred);
    background: none;
}

/* Request Quote Submit Button */
#requestQuoteForm .btn-submit-quote {
    background-color: var(--ffblue);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 0;
    font-size: 1rem;
    width: 100%;
    transition: background-color 0.3s;
    margin-top: 10px;
}
#requestQuoteForm .btn-submit-quote:hover,
#requestQuoteForm .btn-submit-quote:focus {
    background-color: var(--ffblue2);
    color: #fff;
}

/* Align the top controls with spacing */
#requestQuotePopup .d-flex.align-items-center.mb-2 {
    gap: 10px;
}

/* Responsive adjustments for request quote popup */
@media (max-width: 600px) {
    #requestQuotePopup {
        max-width: 98vw;
        min-width: 0;
        width: 98vw;
        left: 1vw;
        right: 1vw;
        padding: 10px;
    }
    #requestQuoteForm {
        padding: 0;
        max-width: 100vw;
    }
    #requestQuotePopup .btn-back-quote,
    #requestQuotePopup .btn-close-quote {
        min-width: 80px;
        font-size: 0.95rem;
        padding: 6px 10px;
    }
    #requestQuoteForm .btn-submit-quote {
        font-size: 1rem;
        padding: 10px 0;
    }
}

/* Prevent horizontal scroll on very small screens */
@media (max-width: 400px) {
    #requestQuotePopup {
        padding: 5px;
    }
    #requestQuoteForm {
        font-size: 0.95rem;
    }
}








