/* --- GOOGLE FONTS IMPORT (This replaces the HTML comment/link for CSS usage) --- */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@500;700&family=Roboto:wght@400;500;600;700&display=swap');

/* --- 1. Global Reset & Typography --- */
:root {
    /* Color Palette */
    --primary-color: #004d99;     /* Deep Professional Blue */
    --secondary-color: #ff6600;   /* Bright Power Orange/Accent */
    --neutral-dark: #2c3e50;      /* Charcoal Text/Background */
    --bg-light: #ecf0f1;          /* Light Gray-Blue Background */
    --text-color: #555555;        /* General Body Text */

    /* Fonts */
    --font-heading: 'Roboto Slab', serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

h1, h2, h3, h4 {
    color: var(--neutral-dark);
    margin-bottom: 0.5em;
    font-family: var(--font-heading);
    font-weight: 700;
}

h1 { font-size: 2.5em; }
h2 { font-size: 2em; }
h3 { font-size: 1.5em; }

p {
    margin-bottom: 1em;
}

.lead {
    font-size: 1.15em;
    color: var(--neutral-dark);
    font-weight: 500;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* --- 1.5 Top Bar --- */
.top-bar {
    background-color: var(--neutral-dark); /* Dark charcoal background */
    color: #fff;
    font-size: 0.85em;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left, .top-bar-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-bar a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: var(--secondary-color); /* Orange hover */
}

.top-bar i {
    margin-right: 5px;
    color: var(--secondary-color); /* Orange icon color */
}


/* --- 2. Header & Navigation --- */
header {
    background: #ffffff;
    border-bottom: 3px solid var(--primary-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 1px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links a {
    text-decoration: none;
    color: var(--neutral-dark);
    padding: 10px 15px;
    display: block;
    font-weight: 600;
    transition: color 0.3s, background-color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

/* Dropdown Menu for Products */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 250px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-top: 3px solid var(--secondary-color); /* Orange Accent */
}

.dropdown-content a {
    color: var(--neutral-dark);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-weight: normal;
}

.dropdown-content a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5em;
    color: var(--primary-color);
}

/* --- 3. Hero Section (Home Page Slider) --- */
.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 450px;
}

.slider-slide {
    display: none; 
    height: 450px;
    background-size: cover;
    background-position: center;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    opacity: 0; /* Use opacity for smoother JS transitions */
    transition: opacity 1s ease-in-out;
}

.slider-slide.active {
    display: block;
    opacity: 1;
}

.slider-overlay {
    background: rgba(0, 0, 0, 0.65); /* Darker overlay for contrast */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slider-content {
    position: relative;
    z-index: 2;
    padding: 100px 20px;
    text-align: center;
    color: #fff;
}

.slider-content h1 {
    color: #fff;
    font-size: 2.5em;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.slider-content p {
    font-size: 1.3em;
    margin-bottom: 30px;
    font-weight: 300;
}

/* Slider Navigation Controls */
.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    padding: 15px 10px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5em;
    transition: background 0.3s;
}

.slider-control:hover {
    background: rgba(0, 0, 0, 0.7);
}

.slider-control.prev {
    left: 0;
    border-radius: 0 5px 5px 0;
}

.slider-control.next {
    right: 0;
    border-radius: 5px 0 0 5px;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 2px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active,
.dot:hover {
    background-color: var(--secondary-color); /* Bright Orange */
}

/* --- 3B. Generic Page Header (Non-Home Pages) --- */
.page-header {
    background: var(--neutral-dark) url('images/sliders/2.jpeg') no-repeat center center/cover;
    color: #fff;
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1;
}

.page-header h1 {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 3em;
    font-family: var(--font-heading);
}


/* --- 4. General Content Sections --- */
section {
    padding: 60px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* --- 5. Buttons & CTAs --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
    margin: 5px;
    font-family: var(--font-heading); /* Use heading font for strong CTA */
}

/* Primary button uses Primary color (Blue) */
.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: #003366; /* Darker blue */
    border-color: #003366;
    transform: translateY(-2px);
}

/* Secondary button uses Secondary color (Orange) for strong accent */
.btn-secondary {
    background-color: var(--secondary-color); 
    color: #fff;
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #cc5200; /* Darker orange */
    border-color: #cc5200;
    transform: translateY(-2px);
}


/* --- 6. Layout Styles for Content Sections --- */

/* Two-Column Content Layout (Used for About, Products, Services details) */
.content-two-col {
    display: flex;
    gap: 40px;
    align-items: center;
    padding: 20px 0; /* Add some vertical padding inside the section */
}
.content-two-col > div {
    flex: 1;
}
.content-two-col img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* --- 7. Icon Features (Trust Signals) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-box {
    text-align: center;
    padding: 30px 20px;
    border: 1px solid #ddd;
    border-top: 5px solid var(--secondary-color); /* Orange accent on boxes */
    border-radius: 5px;
    transition: transform 0.3s;
    background-color: #fff;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.feature-box i {
    font-size: 2.5em;
    color: var(--secondary-color); /* Orange icon color */
    margin-bottom: 15px;
}

/* --- 8. Testimonials Section --- */
.testimonial-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.testimonial-card {
    background: #fff;
    padding: 25px;
    border-left: 5px solid var(--primary-color); /* Blue accent on testimonials */
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.testimonial-card blockquote {
    font-style: italic;
    margin-bottom: 15px;
    color: var(--neutral-dark);
}
.testimonial-card cite {
    display: block;
    font-weight: bold;
    color: var(--primary-color);
}

/* --- 9. Partners Section --- */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
}
.partner-logo {
    width: 120px;
    height: 60px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s;
}
.partner-logo:hover {
    opacity: 1;
}

/* --- 10. Footer --- */
footer {
    background-color: var(--neutral-dark); /* Charcoal Dark Background */
    color: var(--bg-light);
    padding: 40px 0 20px 0;
    font-size: 0.9em;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #444;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.footer-col p, .footer-col a {
    color: var(--bg-light);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}

.footer-col a:hover {
    color: var(--secondary-color); /* Orange hover in footer */
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
}

/* --- 11. Contact Page Styles --- */

.contact-details {
    display: flex;
    justify-content: space-around;
    padding: 40px 20px;
    background-color: #f4f4f4;
}

.address-info {
    max-width: 400px;
}

/* Form Styles */
.inquiry-form {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"], /* Added type="tel" for completeness */
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; 
}

.form-group textarea {
    resize: vertical; 
}

/* Map Section */
.map-location {
    padding: 40px 0;
}

.map-placeholder {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    overflow: hidden; 
    border: 1px solid #ddd;
}
.map-placeholder iframe {
    width: 100%;
    display: block;
}


/* --- 12. Media Queries (Responsiveness) --- */

@media (max-width: 900px) {
    
    /* NAVIGATION CHANGES */
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background-color: #fff;
        border-top: 1px solid var(--primary-color);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
    }
    
    .dropdown-content {
        position: static;
        box-shadow: none;
        border-top: none;
        background-color: var(--bg-light);
    }
    
    .menu-toggle {
        display: block;
    }

    /* GENERAL LAYOUT CHANGES */
    .slider-content h1 {
        font-size: 2.5em;
    }

    .slider-content p {
        font-size: 1em;
    }
    
    .content-two-col {
        flex-direction: column;
    }
    /* Alternating columns look better when they stack naturally, but we can enforce a reverse stack on every other section if needed:
    .content-two-col:nth-child(even) {
        flex-direction: column-reverse;
    } 
    */

    /* FOOTER CHANGE for Tablets (2 columns) */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* TOP BAR CHANGE */
    .top-bar .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .top-bar-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        margin-bottom: 5px;
    }
    .top-bar-right .info-item:last-child {
        /* Hide address on small screens if space is tight */
        display: none; 
    }
}

@media (max-width: 600px) {
    /* FOOTER CHANGE for Mobile (1 column) */
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    /* Adjust padding/margins for smaller screens */
    section {
        padding: 40px 0;
    }
    h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.7em;
    }
}

/* --- 13. Product Gallery Grid --- */
.product-grid {
    display: grid;
    /* 3 columns default, minimum size 300px per column */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    padding: 20px 0;
}

.product-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    height: 250px; /* Uniform height for all product images */
    object-fit: cover; /* Ensures images fill the space without distortion */
    border-bottom: 1px solid #eee;
}

.product-card-content {
    padding: 20px;
}

.product-card-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3em;
}

.product-card-content p {
    color: var(--text-color);
    font-size: 0.95em;
    margin-bottom: 15px;
}

/* --- 14. Product Lightbox/Modal Styles --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000; /* Must be higher than header (1000) */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9); /* Black background with opacity */
    justify-content: center;
    align-items: center;
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 90vh;
    object-fit: contain; /* Ensures the large image fits */
    animation-name: zoom;
    animation-duration: 0.6s;
    transition: all 0.3s ease;
}

/* Modal Close Button */
.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.close:hover,
.close:focus {
    color: var(--secondary-color);
    text-decoration: none;
    cursor: pointer;
}

/* Zoom Animation */
@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

/* Media Query for smaller screens */
@media only screen and (max-width: 700px) {
    .modal-content {
        width: 100%;
    }
}