/* DESIGN SYSTEM */
:root {
    --primary: #002347;
    --accent: #FF8C00;
    --text-dark: #2C3E50;
    --white: #FFFFFF;
    --transition: 0.3s ease-in-out;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Roboto', sans-serif; color: var(--text-dark); overflow-x: hidden; line-height: 1.6; }
h1, h2, h3 { font-family: 'Montserrat', sans-serif; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.section-padding { padding: 80px 0; }

/* 1. TOP BAR */
.top-bar { background: var(--primary); color: var(--white); padding: 10px 0; font-size: 0.85rem; }
.contact-links a { color: var(--white); text-decoration: none; margin-right: 15px; }
.separator { color: rgba(255,255,255,0.3); margin: 0 10px; }
.social-icons a { color: var(--white); margin-left: 15px; }

/* 2. HEADER VERTICAL CENTERING */
.main-header { height: 80px; display: flex; align-items: center; position: sticky; top: 0; background: var(--white); z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.nav-flex { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.logo a { text-decoration: none; color: var(--primary); font-size: 1.3rem; font-weight: 700; }
.accent-text { color: var(--accent); }
.nav-menu { display: flex; list-style: none; }
.nav-menu li a { text-decoration: none; color: var(--primary); padding: 10px 15px; font-weight: 500; transition: var(--transition); }
.nav-menu li a:hover, .nav-menu li a.active { color: var(--accent); }

/* HAMBURGER MENU ICON (New Additions for Mobile) */
.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.menu-toggle .bar { width: 25px; height: 3px; background: var(--primary); transition: 0.3s; }

/* 3. HERO SLIDER */
.hero-slider { position: relative; height: 550px; background: #000; overflow: hidden; }
.slide { position: absolute; width: 100%; height: 100%; opacity: 0; transition: opacity 1s; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; text-align: center; }
.slide.active { opacity: 1; }
.slide-content { color: var(--white); max-width: 800px; padding: 20px; }
.slide-content h1 { font-size: 3.5rem; margin-bottom: 20px; }
.btn-main { background: var(--accent); color: var(--white); padding: 12px 30px; text-decoration: none; border-radius: 4px; font-weight: bold; display: inline-block; }

.slider-nav .nav-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.2); border: none; color: white; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; z-index: 10; font-size: 1.2rem; }
#prevBtn { left: 20px; } #nextBtn { right: 20px; }

/* 4. INTRO */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.sub-title { color: var(--accent); font-weight: bold; text-transform: uppercase; font-size: 0.9rem; }
.intro-features { margin: 20px 0; }
.feat-item { margin-bottom: 10px; display: flex; align-items: center; font-weight: 500; }
.feat-item i { color: var(--accent); margin-right: 10px; }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); padding: 10px 25px; text-decoration: none; font-weight: bold; border-radius: 4px; }
.intro-image img { width: 100%; border-radius: 8px; box-shadow: 15px 15px 0 var(--accent); }

/* 5. SERVICES GRID */
.section-header { text-align: center; margin-bottom: 50px; }
.section-header .line { width: 60px; height: 3px; background: var(--accent); margin: 15px auto; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card { background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.service-card img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 20px; text-align: center; }

/* 6. STATS */
.stats-section { background: var(--primary); color: white; padding: 60px 0; text-align: center; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-item h2 { font-size: 2.5rem; color: var(--accent); }

/* 7. CTA */
.cta-section { background: var(--accent); color: white; text-align: center; padding: 60px 0; }
.cta-section h2 { font-size: 2.2rem; margin-bottom: 10px; }

/* 8 & 9. FOOTER */
.main-footer { background: var(--primary); color: #ccc; padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding-bottom: 50px; }
.footer-col h3 { color: white; margin-bottom: 20px; border-bottom: 2px solid var(--accent); display: inline-block; padding-bottom: 5px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #ccc; text-decoration: none; }
.footer-bottom { background: #001a35; padding: 20px 0; font-size: 0.85rem; border-top: 1px solid rgba(255,255,255,0.1); }

/* MOBILE RESPONSIVE (Repaired) */
@media (max-width: 768px) {
    .intro-grid, .stats-grid, .footer-grid { grid-template-columns: 1fr; }
    
    .menu-toggle { display: flex; z-index: 1001; }

    /* The Fix for the Menu showing up */
    .nav-menu { 
        display: flex; 
        position: fixed; 
        left: -100%; 
        top: 80px; 
        flex-direction: column; 
        background: var(--white); 
        width: 100%; 
        height: calc(100vh - 80px);
        text-align: center; 
        transition: 0.3s; 
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding-top: 40px;
        z-index: 1000;
    }

    .nav-menu.active { left: 0; }
    .nav-menu li { margin: 15px 0; }
    
    /* Animation for Hamburger to X */
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* 5. SERVICES GRID & HOVER EFFECTS (Preserved) */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; cursor: pointer; }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 10px 25px rgba(0,0,0,0.15); }
.card-img-container { width: 100%; height: 200px; overflow: hidden; }
.service-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-card:hover img { transform: scale(1.1); }
.card-body { padding: 25px; text-align: center; }
.card-body h3 { margin-bottom: 15px; color: var(--primary); transition: color 0.3s ease; }
.service-card:hover h3 { color: var(--accent); }

/* READ MORE BUTTON STYLES (Preserved) */
.btn-read-more { display: inline-block; margin-top: 20px; color: var(--primary); text-decoration: none; font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; transition: var(--transition); position: relative; padding-bottom: 5px; }
.btn-read-more i { margin-left: 5px; font-size: 0.8rem; transition: transform 0.3s ease; }
.btn-read-more:hover { color: var(--accent); }
.btn-read-more:hover i { transform: translateX(5px); }
.btn-read-more::after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0; background-color: var(--accent); transition: width 0.3s ease; }
.btn-read-more:hover::after { width: 100%; }

/* --- REUSABLE PAGE TITLE SECTION (Preserved) --- */
.page-title { padding: 80px 0; text-align: center; color: var(--white); background: linear-gradient(rgba(0, 35, 71, 0.85), rgba(0, 35, 71, 0.85)), url('https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?q=80&w=1470&auto=format&fit=crop'); background-size: cover; background-position: center; background-repeat: no-repeat; background-attachment: fixed; }
@media (max-width: 768px) { .page-title { background-attachment: scroll; padding: 60px 0; } }
.page-title h1 { font-size: 3rem; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 2px; }
.page-title p { font-size: 1.2rem; color: var(--accent); font-weight: 500; }

/* --- DETAILED SERVICES LAYOUT (Preserved) --- */
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 100px; scroll-margin-top: 100px; }
.service-row.reverse { direction: rtl; }
.service-row.reverse .service-info { direction: ltr; }
.service-info .sub-title { display: block; margin-bottom: 10px; }
.service-info h2 { font-size: 2.2rem; color: var(--primary); margin-bottom: 20px; border-left: 5px solid var(--accent); padding-left: 15px; }
.service-info p { margin-bottom: 20px; font-size: 1.1rem; color: #444; line-height: 1.8; }
.service-img img { width: 100%; border-radius: 12px; box-shadow: 0 15px 35px rgba(0,0,0,0.15); transition: var(--transition); }
.service-img img:hover { transform: scale(1.02); }
.check-list { list-style: none; }
.check-list li { margin-bottom: 15px; font-weight: 500; display: flex; align-items: center; color: var(--text-dark); }
.check-list i { color: var(--accent); margin-right: 15px; font-size: 1.1rem; }
@media (max-width: 992px) { .service-row { gap: 30px; } }
@media (max-width: 768px) { .service-row, .service-row.reverse { grid-template-columns: 1fr; direction: ltr; } }

/* --- ABOUT PAGE SPECIFIC (Preserved) --- */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 50px; align-items: center; }
.about-content h2 { margin: 15px 0; color: var(--primary); }
.about-content p { margin-bottom: 20px; color: #555; }
.about-stats-box { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat-card { background: var(--white); padding: 30px; text-align: center; box-shadow: 0 10px 20px rgba(0,0,0,0.05); border-radius: 8px; border-bottom: 4px solid var(--accent); }
.stat-card i { font-size: 2rem; color: var(--accent); margin-bottom: 15px; }

/* PROPRIETOR SECTION (Preserved) */
.proprietor-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: center; }
.proprietor-image img { width: 100%; border-radius: 12px; box-shadow: 20px 20px 0 var(--primary); }
.proprietor-tag { font-weight: 500; color: var(--accent); margin-bottom: 20px; font-style: italic; }
.signature { margin-top: 30px; border-top: 1px solid #ccc; display: inline-block; padding-top: 10px; font-family: 'Montserrat', sans-serif; font-weight: bold; color: var(--primary); }
@media (max-width: 768px) { .about-grid, .proprietor-grid { grid-template-columns: 1fr; } .proprietor-image img { box-shadow: 10px 10px 0 var(--primary); } }

/* CONTACT SECTION (Preserved) */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.info-item { display: flex; align-items: flex-start; margin-bottom: 30px; }
.info-item i { background: var(--primary); color: var(--accent); width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 20px; font-size: 1.2rem; }
.info-item h4 { color: var(--primary); font-size: 1.1rem; margin-bottom: 5px; }
.contact-form-container { background: #fff; padding: 40px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.form-group { margin-bottom: 20px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 4px; font-family: inherit; font-size: 1rem; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); outline: none; }
.contact-form .btn-main { width: 100%; border: none; cursor: pointer; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

/* --- GALLERY SECTION (Preserved) --- */
/* --- UPDATED GALLERY GRID (4 COLUMNS) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Forces 4 columns on desktop */
    gap: 15px;
    margin-top: 40px;
}
.gallery-item {
    cursor: pointer; /* This changes the arrow to a hand */
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 35, 71, 0.8); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.4s ease; }
.gallery-overlay span { color: var(--white); font-family: 'Montserrat', sans-serif; font-weight: bold; font-size: 1.2rem; border: 2px solid var(--accent); padding: 10px 20px; transform: translateY(20px); transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover .gallery-overlay span { transform: translateY(0); }

/* Lightbox Modal Styles */
.lightbox-modal {
    cursor: zoom-out;
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox-modal img {
    max-width: 90%;
    max-height: 80%;
    border: 3px solid var(--white);
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

@media (max-width: 768px) { .gallery-grid { grid-template-columns: 1fr; } }
/* Tablet: 2 columns | Mobile: 1 column */
@media (max-width: 992px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .gallery-grid { grid-template-columns: 1fr; }
}

/* --- CLIENTS PAGE STYLES --- */
.client-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.client-card {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.client-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: var(--accent);
}

.logo-container {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.logo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Critical: keeps logo proportions perfect */
    filter: grayscale(100%); /* Optional: makes logos gray until hover */
    opacity: 0.7;
    transition: 0.3s;
}

.client-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.client-info h4 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 5px;
}

.client-info p {
    font-size: 0.85rem;
    color: #777;
}

/* Responsive */
@media (max-width: 992px) { .client-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .client-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .client-grid { grid-template-columns: 1fr; } }

/* --- LOCAL PRESENCE TEXT --- */
.local-presence {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    border-top: 1px solid #eee;
}

.local-presence p {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Add a small accent line below it for style */
.local-presence p::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent);
    margin: 10px auto 0;
}