/* --- FONTS & VARIABLES --- */
:root {
    --primary-color: #003366;
    /* Navy Blue */
    --secondary-color: #00a8cc;
    /* Cyan/Teal */
    --text-dark: #333;
    --text-light: #f4f4f4;
    --bg-light: #f9f9f9;
    --card-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* --- RESET --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 100px;
    /* Push content down so fixed header doesn't hide it */
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* --- INTRO / ABOUT SECTION (Centered) --- */
.intro-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centers the Heading and Text block */
    text-align: center;
    /* Centers the text inside */
    padding: 60px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 30px;
    border-bottom: 3px solid var(--secondary-color);
    display: inline-block;
    padding-bottom: 10px;
}

.intro-text p {
    font-size: 18px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* --- GRID SYSTEM FOR PRODUCTS --- */
.products-section {
    padding: 40px 5%;
    background-color: white;
    max-width: 1400px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    /* Automatically fits cards: minimum 300px, maximum 1 fraction */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.product-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    border-bottom: 3px solid var(--secondary-color);
}

.img-box {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
}

.product-card img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.product-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    margin-top: 10px;
}

.product-card h3 a {
    color: var(--text-dark);
}

.product-card h3 a:hover {
    color: var(--primary-color);
}

/* --- STATS SECTION --- */
.stats-section {
    background-color: var(--primary-color);
    color: white;
    display: flex;
    justify-content: center;
    gap: 100px;
    padding: 60px 20px;
    text-align: center;
    margin-top: 50px;
}

.stat-number {
    font-family: 'Oswald', sans-serif;
    font-size: 60px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- FOOTER (Centered) --- */
.footer {
    background-color: #222;
    color: #ddd;
    padding: 60px 5%;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* Centers columns */
    max-width: 1200px;
    margin: 0 auto;
    gap: 50px;
    text-align: center;
    /* Centers text inside columns */
}

.footer-column {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Aligns links/icons to center */
}

.footer-column h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
}

.footer-column a {
    display: block;
    color: #bbb;
    margin-bottom: 10px;
    font-size: 16px;
}

.footer-column a:hover {
    color: white;
}

.address-box h3 {
    color: #fff;
    font-size: 16px;
    text-transform: none;
    margin-bottom: 10px;
}

/* --- PRODUCT DETAIL PAGE UTILITIES --- */
/* These styles are used by individual product pages for tables and lists */

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-family: 'Roboto', sans-serif;
}

.specs-table th, .specs-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.specs-table th {
    background-color: var(--primary-color);
    color: white;
    width: 35%;
}

.specs-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.features-list {
    margin-bottom: 30px;
}

.features-list h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

.features-list ul {
    list-style: disc;
    margin-left: 20px;
}

.features-list li {
    margin-bottom: 8px;
    color: #444;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        /* 1 Column on mobile */
    }

    .stats-section {
        flex-direction: column;
        gap: 40px;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .intro-section {
        padding: 40px 20px;
    }
}