/* --- Color Palette --- */
:root {
    --dark-blue: #0E507C; /* Defined in Mockup Plan */
    --teal: #32B1B8; /* Defined in Mockup Plan */
    --black: #000000; /* Defined in Mockup Plan */
    --white: #FFFFFF; /* Defined in Mockup Plan */
    --light-gray: #f4f4f4; /* Custom light gray for backgrounds */
    --medium-gray: #555555; /* Used for the hero section background matching screenshot */
    --text-color: #333; /* Dark gray for general body text */
}

/* --- General Styles & Global Resets --- */
* {
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif; /* A clear, readable sans-serif font */
    margin: 0;
    padding: 0;
    line-height: 1.6; /* Improved readability for text */
    color: var(--text-color); /* Default text color */
    background-color: var(--white); /* Default background for the body */
}

/* Container for consistent content width */
.container {
    max-width: 1200px; /* Maximum width for content */
    margin: 0 auto; /* Centers the container on the page */
    padding: 0 20px; /* Horizontal padding for smaller screens */
}

/* Heading Styles */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark-blue); /* Dark blue for headings */
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px; /* Spacing for paragraphs */
}

/* Link Styles */
a {
    text-decoration: none; /* Remove underline from links */
    color: var(--teal); /* Teal color for links */
    transition: color 0.3s ease; /* Smooth color transition on hover */
}

a:hover {
    color: var(--dark-blue); /* Dark blue on hover */
}

/* Button Styles */
button, .button { /* Applying to both <button> and elements with .button class */
    background-color: var(--teal);
    color: var(--white);
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block; /* Ensures padding and width work as expected */
    text-align: center; /* Center text within the button */
}

button:hover, .button:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px); /* Slight lift effect on hover */
}

/* --- Header & Navigation --- */
header {
    background-color: var(--black); /* Black background for the main header */
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Sticky Menu properties */
.sticky-menu {
    position: fixed; /* Makes the header sticky */
    top: 0;
    width: 100%;
    background-color: var(--black); /* Explicitly set background for sticky header */
    z-index: 1000; /* Ensures it stays on top */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Shadow for depth */
    padding: 10px 0; /* Vertical padding */
}

.sticky-menu .container {
    display: flex; /* Arranges children (logo-area, nav-links, burger-menu) in a row */
    justify-content: space-between; /* Pushes the first item (logo-area) to the far left and the last item (nav-links) to the far right */
    align-items: center; /* Vertically centers items */
}

/* --- Logo and Company Name Area --- */
.logo-area {
    display: flex; /* Arranges logo image and company name text in a row */
    align-items: center; /* Vertically aligns them in the center */
    flex-shrink: 0; /* Prevents the logo area from shrinking when space is limited */
    text-decoration: none; /* Remove underline from the logo link */
}

.logo-area img {
    max-height: 50px; /* Maximum height for the logo image */
    height: auto; /* Maintain aspect ratio */
    margin-right: 10px; /* Space between the logo image and the company name text */
    vertical-align: middle; /* Ensures proper vertical alignment if text baseline issues */
}

.company-name {
    color: var(--white); /* Set text color to white as requested */
    font-size: 1.6em; /* Adjust font size for prominence */
    font-weight: bold; /* Make the text bold as requested */
    white-space: nowrap; /* Prevents the company name from wrapping to the next line */
    letter-spacing: -0.5px; /* Slight letter spacing adjustment */
}

/* Navigation Links */
.nav-links {
    list-style: none; /* Remove bullet points */
    margin: 0;
    padding: 0;
    display: flex; /* Arranges navigation items horizontally */
}

.nav-links li {
    margin-left: 30px; /* Space between each navigation item */
}

.nav-links a {
    color: var(--white); /* White color for navigation links */
    font-weight: bold;
    padding: 5px 0;
    position: relative; /* Needed for the underline animation */
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0; /* Starts as no width */
    height: 2px;
    background-color: var(--teal); /* Teal color for the underline */
    left: 0;
    bottom: -5px; /* Position below the text */
    transition: width 0.3s ease-in-out; /* Smooth animation for width change */
}

.nav-links a:hover::after {
    width: 100%; /* Expands to full width on hover */
}

/* Burger Menu for Mobile (Initially Hidden on Desktop) */
.burger-menu {
    display: none; /* Hidden by default on larger screens */
    cursor: pointer;
    flex-direction: column; /* Stacks the bars vertically */
    justify-content: space-around; /* Distributes space evenly between bars */
    width: 30px;
    height: 25px;
}

.burger-menu div {
    width: 100%;
    height: 3px;
    background-color: var(--white); /* White bars for contrast on black header */
    border-radius: 2px;
    transition: all 0.3s ease; /* Smooth transition for burger menu animation */
}

/* --- Footer --- */
footer {
    background-color: var(--black); /* Black background for the footer */
    color: var(--white); /* White text for the footer */
    padding: 40px 0;
    margin-top: 50px; /* Space above the footer */
}

.footer-columns {
    display: flex; /* Use flexbox for columns */
    justify-content: space-between; /* Distribute space between columns */
    flex-wrap: wrap; /* Allow columns to wrap on smaller screens */
    margin-bottom: 30px;
}

.footer-col {
    flex: 1; /* Each column takes equal available space */
    min-width: 250px; /* Minimum width before wrapping */
    margin-bottom: 20px; /* Space between columns on smaller screens */
}

.footer-col h3 {
    color: var(--teal); /* Teal color for footer headings */
    margin-bottom: 20px;
    border-bottom: 2px solid var(--dark-blue); /* Underline for headings */
    padding-bottom: 5px;
}

.footer-col ul {
    list-style: none; /* Remove bullet points */
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px; /* Space between list items */
}

.footer-col ul li a {
    color: var(--white); /* White color for footer links */
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--teal); /* Teal on hover */
}

.social-links a {
    color: var(--white); /* White color for social icons */
    font-size: 20px;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--teal); /* Teal on hover */
}

.footer-certs img {
    max-height: 40px; /* Max height for certification logos */
    margin-right: 15px;
    margin-bottom: 10px;
    /* Optional: filter to make logos white on dark background if needed */
    filter: grayscale(100%) brightness(200%);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1); /* Separator line */
    padding-top: 20px;
    margin-top: 20px;
}

/* --- General Section Styling (Applicable to all content sections) --- */
section {
    padding: 60px 0; /* Vertical padding for all main sections */
    /* margin-top will be handled individually for sections like hero */
}

/* Style for section titles */
.section-title {
    text-align: center;
    font-size: 3em; /* Large font size for titles */
    margin-bottom: 40px;
    color: var(--dark-blue);
    position: relative;
    display: inline-block; /* Allows centering of the pseudo-element underline */
    width: 100%; /* Ensures text-align: center works for the block */
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--teal); /* Teal underline */
    margin: 10px auto 0; /* Centers the underline */
    border-radius: 2px;
}

/* --- Homepage Specific Styles (Examples from initial plan and matching screenshot) --- */
/* Hero Section */
.hero-section {
    /* Removed background-color as it will be covered by the image and overlay */
    background-image: url('../images/your-hero-image.jpg'); /* REPLACE 'your-hero-image.jpg' with your actual image filename */
    background-size: cover; /* Ensures the image covers the entire section */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    position: relative; /* Needed for the overlay pseudo-element */
    min-height: 500px; /* Adjusted fixed height to ensure image visibility */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    padding: 80px 0; /* Adjusted padding */
    margin-top: 70px; /* Keep margin-top to account for the fixed header */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.35); /* Black overlay with 35% opacity (image 65% visible) */
    z-index: 1; /* Place the overlay behind the content */
}

.hero-content {
    max-width: 800px;
    position: relative; /* Ensure content is above the overlay */
    z-index: 2; /* Bring text and buttons above the overlay */
}

.hero-content h1 {
    color: var(--white);
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9); /* Slightly transparent white for body text on dark background */
}

.hero-buttons .button {
    margin: 0 10px;
    font-size: 1.1em;
    padding: 15px 35px;
}

.primary-button {
    background-color: var(--teal);
    color: var(--white);
    border: none; /* No border for primary button */
}

.primary-button:hover {
    background-color: var(--dark-blue);
}

.secondary-button {
    background-color: transparent; /* Transparent background for secondary button */
    color: var(--teal);
    border: 2px solid var(--teal); /* Teal border */
}

.secondary-button:hover {
    background-color: var(--teal);
    color: var(--white);
}

/* Intro Section */
.intro-section {
    padding: 80px 0;
    text-align: center;
}

.intro-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.intro-item {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.intro-item:hover {
    transform: translateY(-10px);
}

.intro-item h3 {
    color: var(--dark-blue);
    margin-bottom: 15px;
}

/* Featured Products Section */
.featured-products-section {
    background-color: var(--light-gray);
    padding: 80px 0;
    text-align: center;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-card img {
    max-width: 80px; /* Adjust icon size */
    margin-bottom: 20px;
}

.product-card h3 {
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.product-card p {
    font-size: 0.95em;
    color: #555;
    min-height: 60px; /* Ensure consistent height for description */
}

.product-card .button.small-button {
    padding: 8px 20px;
    font-size: 0.9em;
    margin-top: 15px;
}

/* Why Choose Us Section */
.why-choose-us-section {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.why-choose-us-section .section-title {
    color: var(--white);
}

.why-choose-us-section .section-title::after {
    background-color: var(--teal);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.benefit-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.benefit-item i {
    color: var(--teal);
    margin-bottom: 20px;
}

.benefit-item h3 {
    color: var(--white);
    margin-bottom: 10px;
}

.benefit-item p {
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.8);
}

/* Call to Action Section */
.cta-section {
    padding: 80px 0;
    background-color: var(--teal);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.5em;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.1em;
    margin-bottom: 30px;
}

.cta-section .button {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 15px 40px;
    font-size: 1.1em;
}

.cta-section .button:hover {
    background-color: var(--black);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    /* Header adjustments */
    .sticky-menu .container {
        flex-wrap: wrap; /* Allow items to wrap on smaller screens */
        justify-content: center; /* Center items when wrapped */
    }

    .logo-area {
        margin-bottom: 10px; /* Add space below logo/name when wrapped */
        width: 100%; /* Take full width */
        justify-content: center; /* Center logo and name */
    }

    .nav-links {
        display: none; /* Hide navigation links by default on small screens */
        flex-direction: column; /* Stack navigation links vertically */
        width: 100%;
        background-color: var(--black);
        position: absolute;
        top: 80px; /* Position below the header */
        left: 0;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.3);
    }

    .nav-links.active {
        display: flex; /* Show navigation links when active (for burger menu JS) */
    }

    .nav-links li {
        margin: 10px 0; /* Vertical spacing for stacked links */
        text-align: center;
    }

    .burger-menu {
        display: flex; /* Show burger menu icon on small screens */
    }

    /* Homepage section adjustments */
    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px; /* Space between stacked buttons */
    }

    .hero-buttons .button {
        width: 80%; /* Make buttons take more width */
        margin: 0 auto;
    }

    .intro-grid,
    .product-grid,
    .benefits-grid {
        grid-template-columns: 1fr; /* Stack grid items vertically */
    }

    /* Footer adjustments */
    .footer-columns {
        flex-direction: column;
        align-items: center;
    }

    .footer-col {
        min-width: unset;
        text-align: center;
        width: 100%;
    }

    .footer-col ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-links {
        margin-top: 15px;
    }
}