/*
    --------------------------------------------------
    CSS STYLESHEET FOR JN INDUSTRIAL SERVICE
    Color Palette: Primary Blue (#004D99), Accent Red (#CC0000), Dark Gray (#5A6A7D)
    --------------------------------------------------
*/

/* Global Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #FFFFFF;
}

a {
    text-decoration: none;
    color: #004D99; /* Primary Blue */
    transition: color 0.3s ease;
}

a:hover {
    color: #CC0000; /* Accent Red */
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.section {
    padding: 60px 0;
}

.bg-light-gray {
    background-color: #F4F4F9;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #004D99;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* General Button Styles */
.btn {
    display: inline-block;
    padding: 12px 25px;
    font-size: 1em;
    font-weight: 600;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: #004D99;
    color: #FFFFFF;
    border: 2px solid #004D99;
}

.btn-primary:hover {
    background-color: #00376B;
    border-color: #00376B;
}

.btn-secondary {
    background-color: transparent;
    color: #004D99;
    border: 2px solid #004D99;
}

.btn-secondary:hover {
    background-color: #004D99;
    color: #FFFFFF;
}

/* --------------------- Header & Navigation --------------------- */
#main-header {
    background-color: #FFFFFF;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo a {
    /* Adjusted Logo Size for Desktop */
    font-size: 1.6em; 
    font-weight: 700;
    color: #5A6A7D;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.logo .jn {
    color: #CC0000;
    font-weight: 900;
}

/* Desktop Navigation */
#main-nav ul {
    display: flex;
}

#main-nav ul li a {
    padding: 10px 15px;
    color: #5A6A7D;
    font-weight: 600;
    display: block;
    text-transform: uppercase;
}

#main-nav ul li a:hover, #main-nav ul li a.active {
    color: #004D99;
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: transparent;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #004D99;
}

/* --------------------- Hero Section --------------------- */
.hero {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Static background for guaranteed visualization */
    background: linear-gradient(rgba(0, 77, 153, 0.75), rgba(0, 77, 153, 0.75)), 
                url('https://picsum.photos/seed/industrial/1600/600') no-repeat center center/cover;
    background-color: #5A6A7D;
}
.hero-content {
    position: relative;
    color: #FFFFFF;
    z-index: 2;
    max-width: 800px;
}
.hero-content h2 {
    font-size: 3.5em;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
}

/* --------------------- About Section (Working Placeholders) --------------------- */
.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
}
.about-text {
    flex: 2;
}
.about-image-placeholder {
    flex: 1;
    min-width: 300px;
    height: 350px; 
    background-color: #E0E4E7;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    color: #004D99;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}
.about-image-placeholder p {
    margin-top: 15px;
    font-weight: 600;
    color: #5A6A7D;
}

/* --------------------- Services Section --------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.service-card {
    background: #FFFFFF;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}
.service-card i {
    color: #004D99;
    margin-bottom: 15px;
}

/* --------------------- Products Section (Working Placeholders) --------------------- */
.product-categories {
    text-align: center;
    margin-bottom: 40px;
}
.category-btn {
    background: transparent;
    border: 2px solid #5A6A7D;
    color: #5A6A7D;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.category-btn:hover, .category-btn.active {
    background: #004D99;
    color: #FFFFFF;
    border-color: #004D99;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.product-image-placeholder {
    height: 200px;
    width: 100%;
    background-color: #E0E4E7;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #D0D0D0;
    color: #5A6A7D;
}
.product-card a {
    display: block;
    text-align: center;
    background: #004D99;
    color: #FFFFFF;
    padding: 10px 0;
    font-weight: 600;
    margin-top: auto;
}

/* --------------------- Contact Section --------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.map-container {
    height: 450px;
    border: 1px solid #D0D0D0;
    border-radius: 8px;
    overflow: hidden;
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.contact-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #D0D0D0;
}


/* --------------------- Footer --------------------- */
#main-footer {
    background: #5A6A7D;
    color: #FFFFFF;
    padding: 0;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.footer-contact i {
    color: #CC0000; 
}
.footer-bottom {
    text-align: center;
    padding: 15px 0;
    background: #4C5A6B;
}

/* ============================================================== */
/* ======================== MOBILE RESPONSIVENESS (Max-width 768px) ======================== */
/* ============================================================== */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 40px 0;
    }
    
    /* Logo Fix for Mobile: Smaller size */
    .logo a {
        font-size: 1.3em; 
    }

    /* Mobile Navigation (Hamburger) */
    #main-nav {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #FFFFFF;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        display: none; 
        padding: 0;
        border-top: 1px solid #eee;
    }
    #main-nav.open {
        display: block;
    }
    #main-nav ul {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }
    #main-nav ul li a {
        padding: 15px;
        color: #004D99;
        border-bottom: 1px solid #F4F4F9;
    }
    .menu-toggle {
        display: block; /* Show hamburger button */
    }
    
    /* Responsive Content Layout */
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    .about-image-placeholder {
        width: 100%;
        margin-top: 20px;
        min-width: unset;
        height: 250px; 
    }
    .product-categories {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .category-btn {
        flex: 1 1 45%;
        margin: 5px;
    }
    .map-container {
        height: 300px;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}