* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* HEADER */
header {
    background: #002f6c;
    padding: 15px 0;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 110px;
}

nav a {
    color: #fff;
    margin-left: 20px;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    color: #ff3b3b;
}

/* HERO */
.hero {
    height: 80vh;
    background-image: url("images/hero-factory.jpg");
    background-size: cover;       /* fills the area */
    background-position: center;  /* keeps center visible */
    background-repeat: no-repeat;
    position: relative;
}

.overlay {
    background: rgba(0,0,0,0.65);
    height: 100%;
    display: flex;
    align-items: center;
}

.hero h1 {
    color: #fff;
    font-size: 42px;
    margin-bottom: 15px;
}

.hero p {
    color: #ddd;
    font-size: 18px;
    margin-bottom: 20px;
}

.btn {
    background: #ff3b3b;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 4px;
}

/* SECTIONS */
.section {
    padding: 60px 0;
}

.section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #002f6c;
}

.light-bg {
    background: #f4f4f4;
}

/* PRODUCTS */


.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.product-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 15px;
    overflow: hidden;          /* 🔒 Keeps image inside box */
}

.product-image {
    width: 100%;
    height: 180px;             /* Fixed image height */
    overflow: hidden;          /* 🔒 Clips image */
    border-radius: 6px;
    margin-bottom: 12px;
}
/* CONTACT */
.contact-box {
    text-align: center;
    font-size: 18px;
}

/* FOOTER */
footer {
    background: #002f6c;
    color: #fff;
    text-align: center;
    padding: 15px 0;
}
