:root {
    --primary: #009e4c;
    --secondary: #0a2342;
}

/* Ensure padding and borders do not cause overflow */
*, *::before, *::after {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background-color: #fff;
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
nav .logo img {
    height: 40px;
}
nav .nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
nav .nav-links li a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 600;
    transition: color .3s;
}
nav .nav-links li a:hover {
    color: var(--primary);
}
.hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}
.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 158, 76, 0.8), rgba(10, 35, 66, 0.9));
    mix-blend-mode: multiply;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}
.button {
    display: inline-block;
    background-color: var(--primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color .3s;
}
.button:hover {
    background-color: #007a3d;
}
section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--secondary);
}
#about p, #promise ul li, #why ul li {
    max-width: 900px;
    margin: 0 auto 1rem auto;
    line-height: 1.6;
}
#promise ul, #why ul {
    list-style: none;
    padding: 0;
}
#promise ul li::before {
    content: "✓";
    color: var(--primary);
    margin-right: .5rem;
}
#industries .industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.industry-card {
    text-align: center;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform .3s;
}
.industry-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.industry-card h3 {
    padding: 1rem;
    color: var(--secondary);
}
.industry-card:hover {
    transform: translateY(-5px);
}
#products table {
    width: 100%;
    border-collapse: collapse;
}
#products table th, #products table td {
    padding: 1rem;
    border-bottom: 1px solid #ddd;
}
#products table th {
    background-color: var(--primary);
    color: #fff;
}
#products table tr:nth-child(even) td {
    background-color: #f9f9f9;
}
footer {
    background-color: var(--secondary);
    color: #fff;
    text-align: center;
    padding: 1rem 0;
}

/* Banner at the bottom of the page highlighting the company's positioning */
.bottom-banner {
    background-color: var(--primary);
    color: #fff;
    text-align: center;
    padding: 3rem 1rem;
    font-size: 1.6rem;
    font-weight: 600;
}

.bottom-banner p {
    margin: 0;
}

/* Additional design elements for Option 1 */
.content-card {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-left: 5px solid var(--primary);
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.promise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.promise-card {
    background-color: #e8f8ef;
    border: 1px solid rgba(0,158,76,0.2);
    border-left: 5px solid var(--primary);
    padding: 1rem;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.promise-card h3 {
    margin-top: 0;
    color: var(--secondary);
    margin-bottom: .5rem;
    font-size: 1.1rem;
}

.promise-card p {
    margin: 0;
    font-size: 0.95rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.why-card {
    background-color: #f2f6fc;
    border: 1px solid rgba(10,35,66,0.2);
    border-left: 5px solid var(--primary);
    padding: 1rem;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.why-card h3 {
    margin-top: 0;
    color: var(--secondary);
    margin-bottom: .5rem;
    font-size: 1.1rem;
}

.why-card p {
    margin: 0;
    font-size: 0.95rem;
}

.contact-card {
    background-color: var(--secondary);
    color: #fff;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.contact-card p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.contact-card strong {
    color: var(--primary);
}

/* Responsive styles */
@media (max-width: 768px) {
    /* Stack navigation items and reduce spacing on small screens */
    nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.5rem 1rem;
    }
    nav .logo img {
        height: 32px;
    }
    nav .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 0.5rem;
        gap: 0.5rem 1rem;
    }
    nav .nav-links li {
        margin: 0;
    }
    nav .nav-links li a {
        font-size: 0.95rem;
    }

    /* Hero adjustments for mobile: use auto height and larger padding to prevent clipping */
    .hero {
        height: auto;
        min-height: 65vh;
        padding: 7rem 1rem 3rem;
        justify-content: flex-start;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 1.2rem;
    }
    .button {
        padding: 0.7rem 1.2rem;
        font-size: 1rem;
    }

    section {
        padding: 2rem 1rem;
    }

    /* Ensure the product table scrolls horizontally on small screens */
    #products table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }

    /* Adjust bottom banner padding and font size for mobile */
    .bottom-banner {
        padding: 2.5rem 1rem;
        font-size: 1.3rem;
    }
}
