/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Modern font */
    line-height: 1.7;
    color: #444; /* Slightly softer black */
    background-color: #fdfdfd; /* Very light grey background */
}

.container {
    max-width: 1200px; /* Wider container */
    margin: auto;
    padding: 0 25px;
    overflow: hidden;
}

/* Header */
header {
    background: #ffffff; /* White background */
    color: #333;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0; /* Lighter border */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky; /* Sticky header */
    top: 0;
    z-index: 1000;
}

header h1 {
    float: left;
    font-size: 1.9rem;
    color: #0056b3; /* Primary color */
    font-weight: 600;
}

header nav {
    float: right;
    margin-top: 10px;
}

header nav ul {
    list-style: none;
}

header nav ul li {
    display: inline;
    margin-left: 25px;
}

header nav ul li a {
    color: #555;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a.active {
    color: #0056b3; /* Primary color on hover/active */
}

header::after {
    content: "";
    display: table;
    clear: both;
}

/* Hero Section */
#hero {
    /* Consider generating a relevant background image */
    background: linear-gradient(rgba(0, 86, 179, 0.7), rgba(0, 56, 119, 0.8)), url("images/hero_background_placeholder.jpg") no-repeat center center/cover;
    color: #fff;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3rem 1rem;
}

#hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

#hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 700px;
    line-height: 1.8;
}

/* Buttons */
.btn {
    display: inline-block;
    background: #007bff; /* Brighter blue */
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.2s ease;
    font-size: 1.1rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #0056b3; /* Darker blue on hover */
    transform: translateY(-2px);
}

/* General Section Styling */
section {
    padding: 4rem 0;
}

section h3 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: #333;
    font-weight: 600;
}

/* Products Section */
#products {
    background-color: #f8f9fa;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Slightly larger min size */
    gap: 2rem;
}

.product-item {
    background: #fff;
    padding: 1.8rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.product-item img {
    max-width: 100%;
    height: 160px; /* Increased height */
    object-fit: contain;
    margin-bottom: 1.5rem;
    border: 1px solid #eee;
    padding: 5px;
    background-color: #fff;
}

.product-item h4 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: #0056b3;
}

.product-item p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #555;
}

#products > .container > p {
    text-align: center;
    margin-top: 3rem;
    font-size: 1.1rem;
    color: #555;
}

/* Why Us Section */
#why-us {
    background: #fff; /* White background */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    text-align: center;
}

.feature-item {
    background: #f8f9fa; /* Light background for items */
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.feature-item h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #0056b3;
}

.feature-item p {
    color: #555;
    font-size: 1rem;
}

/* Contact Section */
#contact {
    text-align: center;
    background-color: #e9ecef; /* Light grey background */
}

#contact p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    background: #343a40; /* Darker footer */
    color: #adb5bd; /* Lighter grey text */
    padding: 3rem 0 1rem 0;
    margin-top: 3rem;
    font-size: 0.95rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 220px;
    margin-bottom: 1.5rem;
    padding: 0 10px;
}

.footer-section h4 {
    color: #ffffff;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid #495057;
    padding-bottom: 0.6rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.7rem;
}

.footer-section ul li a,
.footer-section ul li {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #495057;
    font-size: 0.9rem;
    color: #6c757d;
}

.credit-ratings {
    display: flex;
    justify-content: flex-start; /* Align left in the container */
    align-items: center;
    gap: 10px;
    margin-top: 0.5rem;
    flex-wrap: wrap; /* Allow wrapping if needed */
}

/* Style the divs holding the scripts - adjust size/border as needed */
.credit-ratings > div {
    /* Example: border: 1px solid #555; padding: 5px; */
    min-height: 40px; /* Ensure space for the stamp/score */
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .container {
        max-width: 960px;
    }
    #hero h2 {
        font-size: 2.5rem;
    }
    #hero p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    header h1 {
        float: none;
        text-align: center;
        margin-bottom: 15px;
    }
    header nav {
        float: none;
        text-align: center;
    }
    header nav ul li {
        display: inline-block; /* Keep inline but allow wrapping */
        margin: 5px 10px;
    }
    #hero {
        min-height: 350px;
    }
    #hero h2 {
        font-size: 2.2rem;
    }
    #hero p {
        font-size: 1.1rem;
    }
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-section {
        width: 90%;
        align-items: center;
    }
    .credit-ratings {
        justify-content: center; /* Center ratings on smaller screens */
    }
}

@media (max-width: 576px) {
    header h1 {
        font-size: 1.6rem;
    }
    header nav ul li a {
        font-size: 0.95rem;
    }
    #hero h2 {
        font-size: 1.8rem;
    }
    #hero p {
        font-size: 1rem;
    }
    section h3 {
        font-size: 1.8rem;
    }
    .product-item h4, .feature-item h4 {
        font-size: 1.2rem;
    }
    .btn {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

