/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    line-height: 1.6;
    color: #333;
    /* Smooth scrolling for anchor links */
    scroll-behavior: smooth;
    /* Prevent horizontal scroll on mobile when menu is open */
    overflow-x: hidden;
}

img {
    /* Make images responsive */
    max-width: 100%;
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove extra space below images */
}


/* Hero Section Styling */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    /* Replace with your hero background image */
    background: url('hero.webp') no-repeat center center/cover; /* Updated image file */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    /* Ensure content stays within the hero section */
    overflow: hidden;
}

/* Overlay for better text readability on hero image */
.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4); /* Adjust opacity as needed */
    z-index: 0; /* Place behind content but above background image */
}

.hero-content {
    position: relative;
    z-index: 1; /* Ensure content is above the overlay */
    padding: 20px;
    /* Add some margin/padding to prevent content from touching edges on small screens */
    margin: 0 10px;
    display: flex; /* Use flexbox for layout */
    flex-direction: column; /* Stack items vertically */
    justify-content: center; /* Center vertically */
    align-items: center; /* Center horizontally */
    height: 100%; /* Take full height of hero section */
}

.hero-content .hero-logo {
    max-width: 80%; /* Adjust max width of the logo in the hero */
    height: auto;
    margin-bottom: 20px; /* Add space between logo and tagline */
    /* Optional: Add some styling to the hero logo if needed */
    /* filter: drop-shadow(0 0 10px rgba(0,0,0,0.5)); */
}

.hero-content .hero-tagline {
    font-size: 1.5em; /* Adjust font size as needed */
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Optional text shadow */
    margin-top: 0; /* Remove default paragraph top margin */
    margin-bottom: 10px; /* Add space between the two taglines */
}

.hero-content .hero-sub-tagline {
    font-size: 0.9em; /* Make this tagline smaller */
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Optional text shadow */
    margin-top: 0; /* Remove default paragraph top margin */
}


/* Header Styling */
.site-header {
    position: fixed; /* Keep header fixed at the top */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Ensure header is on top of other content */
    /* Transition for background color is now on the individual bars */
}

.top-bar {
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black background */
    color: white;
    /* Removed padding here, moved to .top-bar-inner */
    display: flex;
    justify-content: center; /* Center the inner content */
    align-items: center;
    font-size: 0.9em;
    /* Allow flex items to wrap on smaller screens */
    flex-wrap: wrap;
    transition: background-color 0.3s ease-in-out; /* Add transition here */
}

/* Class added by JavaScript on scroll */
.top-bar.solid-bg {
    background-color: black; /* Solid black background */
}

/* New inner container for centering top bar content */
.top-bar-inner {
    max-width: 1200px; /* Limit width of the content */
    margin: 0 auto; /* Center the container horizontally */
    display: flex; /* Use flexbox for contact info and social icons layout */
    justify-content: space-between; /* Space out contact info and social icons */
    align-items: center;
    padding: 10px 20px; /* Add padding inside the centered container */
    width: 100%; /* Ensure it takes full width up to max-width */
    flex-wrap: wrap; /* Allow content to wrap on smaller screens */
}


.contact-info span {
    margin-right: 20px;
    /* Add some margin bottom on wrap */
    margin-bottom: 5px;
}

.contact-info i {
    margin-right: 5px;
}

/* Style for links within the contact info */
.top-bar .contact-info a {
    color: white; /* Ensure link color is white */
    text-decoration: none; /* Remove underline */
    transition: color 0.3s ease-in-out; /* Optional: Add transition for hover */
}

.top-bar .contact-info a:hover {
    color: #ddd; /* Optional: Lighter color on hover */
}


.social-icons a {
    color: white;
    margin-left: 15px;
    font-size: 1.3em;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
    /* Ensure sufficient touch target size */
    padding: 5px;
}

.social-icons a:hover {
    color: #007bff; /* Example hover color */
}

.main-header {
    background-color: transparent; /* Start transparent */
    /* Removed padding here, it's moved to .header-inner */
    transition: background-color 0.3s ease-in-out; /* Smooth transition */
    /* Keep flex-wrap here if needed for inner content wrapping */
    flex-wrap: wrap; /* Keep this */
}

/* Class added by JavaScript on scroll */
.main-header.solid-bg {
    background-color: black; /* Solid black background */
}

/* New inner container for centering header content */
.header-inner {
    max-width: 1200px; /* Limit width of the content */
    margin: 0 auto; /* Center the container horizontally */
    display: flex; /* Use flexbox for logo and nav layout */
    justify-content: space-between; /* Space out logo and nav */
    align-items: center;
    padding: 15px 20px; /* Add padding inside the centered container */
    width: 100%; /* Ensure it takes full width up to max-width */
}

/* Hide the small header logo by default */
.main-header .logo {
    display: none;
}

/* Show the small header logo when the main header has the solid-bg class */
.main-header.solid-bg .logo {
    display: block; /* Or 'flex' if needed for layout */
}


.logo img {
    height: 60px; /* Adjust logo height */
    display: block; /* Remove extra space below image */
}

/* Mobile menu toggle button */
.menu-toggle {
    display: none; /* Hide by default on desktop */
    background: none;
    border: none;
    color: white;
    font-size: 1.8em;
    cursor: pointer;
    padding: 10px; /* Increase touch target size */
}


.main-nav ul {
    list-style: none;
    display: flex;
    /* Allow flex items to wrap on smaller screens */
    flex-wrap: wrap;
    justify-content: center; /* Center nav items when wrapped */
}

.main-nav ul li {
    margin-left: 25px;
    /* Add margin for wrapped items */
    margin-bottom: 5px;
}

.main-nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1em;
    padding: 5px 0;
    transition: color 0.3s ease-in-out;
    /* Ensure sufficient touch target size */
    padding: 10px 5px;
}

.main-nav ul li a:hover {
    color: #007bff; /* Example hover color */
}

/* Content Sections Styling */
.content-section {
    padding: 80px 20px; /* Add padding to sections */
    text-align: center;
    position: relative; /* Needed for parallax pseudo-element positioning */
    overflow: hidden; /* Hide overflowing parallax background */
}

.section-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative; /* Ensure content is above parallax background */
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white background for content */
    padding: 30px;
    border-radius: 10px;
}

.content-section h2 {
    font-size: 2.5em; /* Large font for desktop */
    margin-bottom: 20px;
    color: #333;
    /* Removed text-align: center from here to avoid conflict in parallax sections */
}

.content-section p {
    font-size: 1.1em;
    color: #555;
}

/* Static Section Styling */
.static-section {
    background-color: #f4f4f4; /* Light grey background */
}

.static-section .section-content {
     background-color: rgba(244, 244, 244, 0.9); /* Match static background with slight transparency */
}

/* Ensure headings in static sections are centered */
.static-section .section-content h2 {
    text-align: center;
}


/* Parallax Section Styling */
.parallax-section {
    height: 30vh; /* Reduced height for spacer */
    color: white; /* Text color for sections with dark parallax background */
    background-position: center;
    background-attachment: fixed;
}

/* Styling for the content within the parallax section (like the quote) */
.parallax-section .section-content {
    background-color: transparent; /* Make content background transparent for spacer */
    color: white;
    padding: 0; /* Remove padding from content */
    height: 100%; /* Make content take full height to center items */
    display: flex; /* Use flexbox to center content */
    flex-direction: column; /* Stack items vertically */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

/* Parallax Background Effect */
.parallax-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Background image is set inline in HTML for specific images per section */
    background-size: cover;
    /* Removed background-position and background-attachment from here */
    z-index: -1; /* Place behind the section content */
}

/* Styling for the quote within the parallax section */
.parallax-section .parallax-quote {
    font-size: 2.5em; /* Adjusted font size as needed */
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Add text shadow for readability */
    margin: 0; /* Remove default paragraph margins */
    color: #fff; /* Added white color */
    text-align: center; /* Ensure the quote text is centered */
    width: 100%; /* Make the quote take full width to help centering */
}

/* Styling for headings within parallax section content */
.parallax-section .section-content h2 {
    text-align: center; /* Ensure heading text is centered */
    width: 100%; /* Make the heading take full width of its container */
    margin-bottom: 10px; /* Add some space below the heading */
}

/* Styling for paragraphs within parallax section content */
.parallax-section .section-content p {
    text-align: center; /* Center the paragraph text as well */
    max-width: 800px; /* Optional: Limit paragraph width for readability */
}


/* Product Offerings Styling */
.product-offerings {
    padding: 80px 20px;
    text-align: center;
    background-color: #fff; /* White background */
}

.product-offerings h2 {
     font-size: 2.5em; /* Large font for desktop */
     margin-bottom: 40px;
     color: #333;
}

.product-container {
    display: grid; /* Use Grid for a responsive 3-column layout */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive columns, slightly smaller min-width for mobile */
    gap: 30px; /* Space between grid items */
    max-width: 1200px;
    margin: 0 auto;
}

/* Removed the media query that forced 4 columns */


.product-item {
    border: 1px solid #ddd;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    background-color: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional shadow */
    transition: transform 0.3s ease-in-out;
}

.product-item:hover {
    transform: translateY(-5px); /* Optional hover effect */
}

.product-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 4px;
}

.product-item h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #333;
}

.product-item p {
    font-size: 1em;
    color: #555;
}

/* About Business Section Styling */
.about-business {
    padding: 80px 20px;
    text-align: center;
    background-color: #f4f4f4; /* Light grey background */
}

.about-business h2 {
    font-size: 2.5em; /* Large font for desktop */
    margin-bottom: 30px;
    color: #333;
}

.about-business p {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1em;
    color: #555;
}

/* Footer Styling */
.site-footer {
    background-color: #222; /* Darker grey for footer */
    color: white;
    padding: 50px 20px 20px;
    font-size: 0.9em;
}

.footer-content {
    display: grid; /* Use Grid for footer layout */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive columns */
    gap: 30px; /* Space between footer columns */
    max-width: 1200px;
    margin: 0 auto 30px;
}

.footer-logo img {
    height: 70px; /* Adjust footer logo height */
    display: block;
    margin-bottom: 20px;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
    margin-bottom: 15px;
    color: #bbb;
    font-size: 1.2em;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li a {
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s ease-in-out;
}

.footer-links ul li a:hover {
    color: #007bff; /* Example hover color */
}

.footer-contact p {
    margin-bottom: 8px;
}

.footer-contact i {
     margin-right: 8px;
     color: #bbb;
}

/* Style for links within the footer contact info */
.footer-contact a {
    color: white; /* Ensure link color is white */
    text-decoration: none; /* Remove underline */
    transition: color 0.3s ease-in-out; /* Optional: Add transition for hover */
}

.footer-contact a:hover {
    color: #ddd; /* Optional: Lighter color on hover */
}


.footer-social a {
    color: white;
    font-size: 1.8em;
    margin-right: 15px;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
    /* Ensure sufficient touch target size */
    padding: 5px;
}

.footer-social a:last-child {
    margin-right: 0; /* Remove margin from the last social icon */
}

.footer-social a:hover {
    color: #007bff; /* Example hover color */
}

.copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #444; /* Separator line */
    font-size: 0.8em;
    color: #bbb;
}

/* --- Reviews Section Styling --- */
/* Ensure the carousel container has relative positioning for absolute controls */
#reviewsCarousel {
    position: relative;
    max-width: 800px; /* Limit the width of the carousel itself */
    margin: 0 auto; /* Center the carousel */
    /* Add some top and bottom margin to create space around the carousel */
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Add padding to the carousel inner to make space for arrows */
.carousel-inner {
    padding: 20px 120px; /* Increased horizontal padding significantly */
    width: 100%; /* Ensure it takes full width of parent */
}


/* Basic styling for review items within the carousel */
.review-item {
    width: 100%; /* Ensure item takes full width of carousel slide */
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #007bff; /* Accent color on the left border */
    display: flex; /* Use flexbox for content layout within the review item */
    flex-direction: column; /* Stack content vertically */
    text-align: left; /* Align text to the left within the item */
    /* Removed padding-left and padding-right here, moved to carousel-inner */
}

.reviewer-info {
    display: flex; /* Layout for icon and name */
    align-items: center; /* Vertically align items */
    margin-bottom: 10px; /* Space below reviewer info */
}

.reviewer-icon {
    width: 40px; /* Size of the user icon */
    height: 40px;
    border-radius: 50%; /* Make it round */
    margin-right: 10px; /* Space between icon and name */
    object-fit: cover; /* Ensure image covers the area without distortion */
}

.reviewer-name {
    font-weight: bold;
    color: #333;
    margin-top: 0; /* Remove default margin */
}


.review-rating {
    color: #ffc107; /* Star color (Yellow) */
    margin-bottom: 10px;
}

.review-rating i {
    margin-right: 2px;
}

.review-text {
    font-style: italic;
    margin-bottom: 15px;
    color: #555;
    white-space: normal; /* Allow text wrapping */
    overflow: visible; /* Allow overflow */
    text-overflow: clip; /* Prevent ellipsis */
    max-width: 100%; /* Ensure it respects the parent width */
}

/* Styles for Bootstrap Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    position: absolute; /* Ensure absolute positioning */
    top: 50% !important; /* Vertically center relative to parent */
    transform: translateY(-50%); /* Adjust for perfect vertical centering */
    width: 40px; /* Give controls a fixed width */
    opacity: 1; /* Make sure they are visible */
    transition: opacity 0.15s ease; /* Keep a subtle transition */
    z-index: 10; /* Ensure controls are above the carousel items */
    /* Adjust positioning to be outside the carousel inner padding */
    left: -120px !important; /* Increased negative left for more space */
    right: -120px !important; /* Increased negative right for more space */
}

.carousel-control-next {
    left: auto !important; /* Reset left for next control */
    right: -120px !important; /* Increased negative right for more space */
}


.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 0.9; /* Slightly reduce opacity on hover */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    display: inline-block; /* Make sure they are displayed */
    background-color: rgba(0, 0, 0, 0.5); /* Add a semi-transparent background */
    border-radius: 50%; /* Make the background round */
    padding: 10px; /* Add some padding around the icon */
    font-size: 1.2em; /* Slightly increase icon size */
}

.more-reviews-link {
    margin-top: 30px;
    font-size: 1.1em;
}

.more-reviews-link a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.more-reviews-link a:hover {
    text-decoration: underline;
}


/* --- Why Choose Us Section Styling --- */
#why-choose-us .section-content {
    /* Removed display: flex, align-items, and text-align: left from here */
    gap: 40px; /* Keep gap for the inner flex container */
    max-width: 1000px; /* Keep max-width */
    padding: 40px; /* Keep padding */
}

/* New flex container for text and image */
.why-choose-us-content {
    display: flex; /* Use flexbox for text and image layout */
    align-items: center; /* Vertically align items in the center */
    gap: 40px; /* Add space between text and image */
}


.why-choose-us-text {
    flex: 1; /* Allow text to take up available space */
    text-align: left; /* Align text to the left within its column */
}

.why-choose-us-image {
    flex: 1; /* Allow image container to take up available space */
    display: flex; /* Use flexbox to center the image */
    justify-content: center; /* Center image horizontally */
    align-items: center; /* Center image vertically */
}

.why-choose-us-image img {
    max-width: 100%; /* Ensure image is responsive */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px; /* Add rounded corners to the image */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional shadow for the image */
}

/* --- Comprehensive Training and Safety Section Styling --- */
#section2 .section-content {
    /* Keep existing section-content styles */
}

.training-points {
    display: grid; /* Use grid for a modern, responsive layout */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive columns */
    gap: 30px; /* Space between grid items */
    margin-top: 30px; /* Add space below the section heading */
}

.training-item {
    background-color: #fff; /* White background for each item */
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* Subtle shadow */
    text-align: center; /* Center content within each item */
    border-top: 3px solid #007bff; /* Accent color on top border */
}

.training-item i {
    font-size: 2.5em; /* Large icon size */
    color: #007bff; /* Icon color matching accent */
    margin-bottom: 15px; /* Space below icon */
}

.training-item h3 {
    font-size: 1.3em; /* Header font size */
    margin-bottom: 10px; /* Space below header */
    color: #333;
}

.training-item p {
    font-size: 1em; /* Paragraph font size */
    color: #555;
}


/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    /* Adjust font sizes for smaller screens */
    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1.4em;
    }

    .content-section h2 {
        font-size: 2em;
    }

    .content-section p,
    .about-business p,
    .product-item p {
        font-size: 1em;
    }

    .product-offerings h2,
    .about-business h2 {
        font-size: 2em;
        margin-bottom: 30px;
    }

    /* Stack top bar items */
    .top-bar {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }

    .contact-info span {
        margin: 5px 10px;
        display: inline-block;
    }

    /* Hide social icons on mobile */
    .social-icons {
        display: none;
    }

    /* Adjust main header layout for mobile */
    .main-header {
        /* Removed padding here, it's handled by .header-inner */
        /* Keep flex-direction and justify-content for logo/toggle row */
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    /* Adjust inner container for mobile */
    .header-inner {
        max-width: none; /* Remove max-width on mobile */
        margin: 0; /* Remove margin auto on mobile */
        flex-direction: row; /* Keep logo and toggle on the same row */
        justify-content: space-between; /* Space out logo and toggle */
        padding: 10px 15px; /* Add padding to inner container on mobile */
    }

    .logo {
        margin-bottom: 0; /* Remove bottom margin on mobile header */
    }

    /* Show the menu toggle button on mobile */
    .menu-toggle {
        display: block;
    }

    /* Hide the navigation by default on mobile */
    .main-nav {
        display: none;
        width: 100%; /* Take full width when active */
        background-color: rgba(0, 0, 0, 0.9); /* Semi-transparent background when open */
        position: absolute; /* Position below the header */
        top: 100%; /* Place right below the main-header */
        left: 0;
        padding: 10px 0;
    }

    /* Display the navigation when the 'active' class is added by JS */
    .main-nav.active {
        display: block;
    }

    /* Stack and center navigation items when menu is open */
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        margin-top: 0; /* Remove top margin */
    }

    .main-nav ul li {
        margin: 10px 0; /* Increase vertical spacing */
    }

     .main-nav ul li a {
         padding: 10px 20px; /* Increase padding for easier tapping */
         display: block; /* Make links block level for padding */
     }


    /* Adjust section padding */
    .content-section,
    .product-offerings,
    .about-business,
    .site-footer {
        padding: 60px 15px;
    }

    .section-content {
        padding: 20px;
    }

    /* Stack product items */
    .product-container {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    .product-item {
        max-width: 90%; /* Limit width slightly */
        margin: 0 auto; /* Center product items */
    }

    /* Stack footer columns */
    .footer-content {
        grid-template-columns: 1fr; /* Single column layout */
        text-align: center;
        gap: 20px;
    }

    .footer-logo {
        margin-bottom: 20px;
    }

    .footer-links ul {
        padding: 0; /* Remove default list padding */
    }

    .footer-links ul li a {
         margin-bottom: 10px;
    }

    .footer-contact i {
        margin-right: 5px;
    }

    .footer-social a {
        margin: 0 10px;
    }
}

/* Optional: Further adjustments for very small screens */
@media (max-width: 480px) {
     .hero-content h1 {
         font-size: 2em;
     }

     .hero-content p {
         font-size: 1.2em;
     }

     .content-section h2,
     .product-offerings h2,
     .about-business h2 {
         font-size: 1.8em;
     }

     .product-item {
         padding: 15px;
     }

     .product-item h3 {
         font-size: 1.2em;
     }

     .footer-content {
         gap: 15px;
     }

     .footer-social a {
         font-size: 1.5em;
         margin: 0 8px;
     }
}
