/* =========================================
   1. RESET & VARIABLES
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary-color: #003366; /* Dark Blue */
    --secondary-color: #ff9900; /* Industrial Orange/Gold */
    --light-grey: #f4f4f4;
    --dark-text: #222;
}

body { font-family: 'Roboto', sans-serif; line-height: 1.6; color: #333; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Utilities */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 60px 0; }
.bg-light { background-color: var(--light-grey); }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 20px; color: var(--primary-color); }
.center-btn { text-align: center; margin-top: 30px; }

/* =========================================
   2. TOP BAR
   ========================================= */
.top-bar { 
    background: #111; 
    color: #ddd; 
    padding: 8px 0; 
    font-size: 0.85rem; 
    border-bottom: 1px solid #222;
}
.top-bar-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap; 
    gap: 10px;
}
.top-left, .top-right {
    display: flex;
    align-items: center;
    gap: 20px; 
}
.top-bar span { display: flex; align-items: center; gap: 8px; }
.top-bar i { color: var(--secondary-color); font-size: 0.9rem; }


/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 20px 20px; }
.logo h1 { font-size: 1.8rem; color: var(--primary-color); margin: 0; }
.logo span { color: var(--secondary-color); }
nav ul { display: flex; gap: 20px; }
nav a { font-weight: 500; font-size: 1.1rem; transition: 0.3s; }
nav a:hover, nav a.active { color: var(--secondary-color); }
.cta-btn { background: var(--secondary-color); color: #fff; padding: 10px 20px; border-radius: 5px; font-weight: bold; transition: 0.3s; }
.cta-btn:hover { background: #e68a00; }

/* =========================================
   4. IMAGE SLIDER / CAROUSEL STYLES
   (Requires JavaScript for full functionality)
   ========================================= */
.image-slider {
    position: relative;
    overflow: hidden;
    height: 80vh; /* Set height for visibility */
}

.slides-container {
    display: flex; /* Keep all slides in a row */
    height: 100%;
    /* Transition needed for JS sliding */
    transition: transform 0.5s ease-in-out; 
}

.slide {
    flex: 0 0 100%; /* Each slide takes up 100% width */
    position: relative;
    height: 100%;
    /* By default, hide slides that aren't active (JS controls this) */
    opacity: 0;
    transition: opacity 0.5s ease; 
}

.slide.active-slide {
    opacity: 1;
    z-index: 10;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 102, 0.75); /* Dark blue overlay */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 20px;
}

.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Slider Navigation (Arrows) */
.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 15px;
    cursor: pointer;
    z-index: 20;
    transition: background 0.3s;
}

.prev-btn:hover, .next-btn:hover {
    background: var(--secondary-color);
}

.prev-btn { left: 20px; border-radius: 5px 0 0 5px; }
.next-btn { right: 20px; border-radius: 0 5px 5px 0; }

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 10px;
}

.dot {
    height: 12px;
    width: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: block;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active-dot, .dot:hover {
    background-color: var(--secondary-color);
}

/* BUTTONS (reusing styles from previous hero section) */
.btn-primary { background: var(--secondary-color); color: #fff; padding: 12px 30px; border-radius: 5px; display: inline-block; margin: 5px; transition: 0.3s; }
.btn-secondary { background: transparent; border: 2px solid #fff; color: #fff; padding: 12px 30px; border-radius: 5px; display: inline-block; margin: 5px; transition: 0.3s; }
.btn-primary:hover { background: #e68a00; }
.btn-secondary:hover { background: #fff; color: var(--primary-color); }


/* =========================================
   5. FEATURES
   ========================================= */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; text-align: center; }
.feature-box { padding: 30px; border: 1px solid #ddd; transition: 0.3s; }
.feature-box:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.1); transform: translateY(-5px); border-color: var(--secondary-color); }
.feature-box i { font-size: 3rem; color: var(--primary-color); margin-bottom: 20px; }

/* =========================================
   6. ABOUT SECTION
   ========================================= */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.sub-title { color: var(--secondary-color); font-weight: bold; text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 10px; }
.about-text h2 { font-size: 2.2rem; margin-bottom: 20px; color: var(--primary-color); line-height: 1.2; }
.lead-text { font-size: 1.1rem; font-weight: 500; color: #555; margin-bottom: 15px; }
.about-list { margin: 20px 0; }
.about-list li { margin-bottom: 10px; display: flex; align-items: center; font-weight: 500; }
.about-list li i { color: var(--secondary-color); margin-right: 10px; }
.founder-box { background: #f9f9f9; padding: 20px; border-left: 5px solid var(--secondary-color); margin-top: 30px; }
.founder-info h4 { color: var(--primary-color); font-size: 1.1rem; margin-bottom: 5px; }
.founder-phone { display: inline-block; margin-top: 5px; color: #333; font-weight: bold; }
.img-wrapper { position: relative; }
.img-wrapper img { border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); width: 100%; }
.exp-badge { 
    position: absolute; bottom: -20px; left: -20px; 
    background: var(--secondary-color); color: #fff; 
    padding: 20px; border-radius: 10px; text-align: center; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); 
}
.exp-badge .years { display: block; font-size: 2rem; font-weight: bold; line-height: 1; }

/* =========================================
   7. PRODUCTS
   ========================================= */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.product-card { background: #fff; border: 1px solid #eee; padding: 20px; text-align: center; transition: 0.3s; }
.product-card:hover { box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.product-card img { height: 200px; width: 100%; object-fit: contain; margin-bottom: 15px; }
.product-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--primary-color); }
.enquiry-link { color: var(--secondary-color); font-weight: bold; }

/* =========================================
   8. TESTIMONIALS
   ========================================= */
.section-desc { text-align: center; margin-bottom: 40px; color: #666; margin-top: -10px; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.testi-card { 
    background: #fff; padding: 30px; border-radius: 10px; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); text-align: center; 
    border-top: 3px solid transparent; transition: 0.3s; 
}
.testi-card:hover { transform: translateY(-5px); border-top: 3px solid var(--secondary-color); }
.client-img img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin: 0 auto 20px; border: 3px solid var(--light-grey); }
.testi-content h3 { color: var(--primary-color); font-size: 1.1rem; margin-bottom: 5px; }
.testi-content .location { font-size: 0.85rem; color: var(--secondary-color); display: block; margin-bottom: 15px; font-weight: bold; }
.testi-content p { font-style: italic; color: #555; font-size: 0.95rem; }

/* =========================================
   9. FOOTER
   ========================================= */
footer { background: #111; color: #b0b0b0; padding-top: 70px; font-size: 0.95rem; }
.footer-content { 
    display: grid; grid-template-columns: 2fr 1fr 1fr; 
    gap: 50px; padding-bottom: 50px; border-bottom: 1px solid #333; 
}
.footer-col h3 { color: #fff; font-size: 1.3rem; margin-bottom: 25px; position: relative; padding-bottom: 10px; }
.footer-col h3::after { content: ''; position: absolute; left: 0; bottom: 0; width: 50px; height: 2px; background: var(--secondary-color); }
.footer-col p { line-height: 1.8; margin-bottom: 20px; }
.social-links { display: flex; gap: 10px; margin-top: 20px; }
.social-links a { 
    display: flex; align-items: center; justify-content: center; 
    width: 40px; height: 40px; background: #222; color: #fff; 
    border-radius: 50%; transition: all 0.3s ease; border: 1px solid #333; 
}
.social-links a:hover { background: var(--secondary-color); border-color: var(--secondary-color); transform: translateY(-3px); }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { transition: 0.3s; display: inline-block; }
.footer-col ul li a:hover { color: var(--secondary-color); padding-left: 5px; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 15px; }
.contact-item i { color: var(--secondary-color); margin-top: 5px; }
.copyright { background: #000; text-align: center; padding: 25px; font-size: 0.85rem; color: #666; }


/* =========================================
   10. RESPONSIVE / MOBILE
   ========================================= */
@media (max-width: 992px) {
    .top-bar-content { justify-content: center; flex-direction: column; gap: 5px; }
    .top-left, .top-right { justify-content: center; gap: 15px; }
}

@media (max-width: 768px) {
    /* Header */
    .nav-container { flex-direction: column; }
    nav ul { margin-top: 20px; flex-direction: column; text-align: center; gap: 10px; }
    .cta-btn { margin-top: 20px; }
    
    /* Slider */
    .slide-content h1 { font-size: 2rem; }
    .prev-btn, .next-btn { padding: 10px; }
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
    
    /* About */
    .about-grid { grid-template-columns: 1fr; }
    .exp-badge { left: 20px; }
    
    /* Footer */
    .footer-content { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 480px) {
    .top-bar .hours { display: none; } /* Hide hours on very small screens */
}

/* --- PAGE HEADER (Inner Page Title) --- */
.page-header {
    background: var(--primary-color);
    color: #fff;
    padding: 50px 0;
    text-align: center;
    border-bottom: 5px solid var(--secondary-color);
}

.page-header h2 {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.page-header p {
    font-size: 1rem;
    color: #ccc;
}

/* --- MISSION & VISION SECTION --- */
.mission-grid {
    display: flex;
    gap: 30px;
}

.vision-box, .mission-box {
    flex: 1;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    border-top: 5px solid var(--secondary-color);
    transition: 0.3s;
}

.mission-box {
    border-top-color: var(--primary-color); /* Use both colors for distinction */
}

.vision-box:hover, .mission-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.vision-box i, .mission-box i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.mission-box i {
    color: var(--primary-color);
}

.vision-box h3, .mission-box h3 {
    font-size: 1.5rem;
    color: var(--dark-text);
    margin-bottom: 15px;
}

/* Responsive adjustment for Mission/Vision */
@media (max-width: 768px) {
    .mission-grid {
        flex-direction: column;
    }
}

/* --- ABOUT PAGE SPECIFIC HEADER BACKGROUND --- */
.about-page-header {
    /* Example background image for an inner page header (replace URL with a relevant image) */
    background: linear-gradient(rgba(0,51,102,0.8), rgba(0,51,102,0.8)), url('images/dmp-industries.jpeg');
    background-size: cover;
    background-position: center 30%;
}

/* --- CONTACT PAGE SPECIFIC HEADER BACKGROUND --- */
.contact-page-header {
    /* Using a distinct background image for the contact page */
    background: linear-gradient(rgba(0,51,102,0.85), rgba(0,51,102,0.85)), url('images/dmp-industries.jpeg');
    background-size: cover;
    background-position: center bottom;
}

/* --- CONTACT SECTION LAYOUT (DETAILS & FORM) --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Details on left, larger form on right */
    gap: 50px;
    align-items: flex-start;
}

.contact-details h2, .enquiry-form h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-details p {
    margin-bottom: 30px;
}

.contact-info-list {
    margin-top: 20px;
    padding-left: 0;
}

.contact-item-lg {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    border-left: 3px solid var(--secondary-color);
    background: var(--light-grey);
}

.contact-item-lg i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-item-lg p a {
    color: var(--dark-text);
}

/* --- ENQUIRY FORM STYLES --- */
.enquiry-form {
    background: var(--light-grey);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.enquiry-form input[type="text"],
.enquiry-form input[type="email"],
.enquiry-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.enquiry-form input:focus,
.enquiry-form textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
}

/* --- GOOGLE MAP EMBED STYLES --- */
.google-map {
    padding-bottom: 0px;
}

.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    position: relative;
    height: 0;
    margin-top: 30px;
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    border: 0;
}

/* --- RESPONSIVE ADJUSTMENTS for Contact --- */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* --- PRODUCTS PAGE SPECIFIC HEADER BACKGROUND --- */
.products-page-header {
    background: linear-gradient(rgba(0,51,102,0.85), rgba(0,51,102,0.85)), url('images/dmp-industries.jpeg'); 
    background-size: cover;
    background-position: center;
}

/* --- PRODUCT CARD LINK STYLING (For Products.html) --- */
.product-list-item {
    /* Make the link behave like a block-level card */
    display: block; 
    text-decoration: none;
    color: var(--dark-text); /* Ensure text is readable */
    cursor: pointer;
}

.product-list-item:hover {
    color: var(--dark-text); /* Prevent link color change on hover */
}

.product-list-item .view-details {
    color: var(--secondary-color);
    font-weight: bold;
    margin-top: 10px;
    display: inline-block;
    transition: 0.3s;
}

/* Hover effect on the link wrapper */
.product-list-item:hover .view-details {
    padding-left: 5px; /* Subtle movement on hover */
}

/* --- FINAL CTA SECTION --- */
.final-cta {
    text-align: center;
}
.final-cta .section-title {
    margin-bottom: 30px;
}

/* =========================================
   7. CLIENT LOGOS (REDESIGNED SECTION)
   ========================================= */
.client-logos .section-title {
    margin-bottom: 40px; /* Space below title */
}

.logo-grid {
    /* *** REDESIGN TO FLEXBOX for controlled spacing and size *** */
    display: flex;
    justify-content: space-around; /* Distribute space evenly between logos */
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 20px; /* Gap between wrapped rows */
    padding: 0 10px; /* Add slight padding inside the container */
}

.logo-item {
    /* Force each item to take up an equal, calculated width */
    flex: 0 0 calc(20% - 20px); /* 5 logos per row (20%) minus a small margin */
    max-width: 180px; /* Set a maximum size for the logo container */
    height: 100px; /* Set a fixed height for visual alignment */
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7; 
    transition: opacity 0.3s;
}

.logo-item:hover {
    opacity: 1;
}

.logo-item img {
    /* CRITICAL FIX: Force the image to scale aggressively */
    max-height: 100%;
    max-width: 95%; /* Make the image almost fill the logo-item container */
    width: auto;
    filter: grayscale(100%);
    transition: filter 0.3s, transform 0.3s;
}

.logo-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* --- Responsive adjustment for smaller screens --- */
@media (max-width: 992px) {
    .logo-item {
        /* 3 logos per row on tablets/laptops */
        flex: 0 0 calc(33.33% - 20px); 
    }
}

@media (max-width: 600px) {
    .logo-item {
        /* 2 logos per row on mobile */
        flex: 0 0 calc(50% - 20px); 
        max-width: none;
        height: 70px;
    }
}