/* Reset + Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; line-height: 1.6; color: #1a1a1a; background: #fff; }

/* Header */
.site-header { 
    background: #002244; 
    padding: 15px 20px; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
}
.header-container { 
    max-width: 1400px; 
    margin: 0 auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.logo a { 
    display: inline-block;
    line-height: 0;
}
.logo img { 
    height: 50px; 
    width: auto; 
    display: block;
}
.main-nav { 
    display: flex; 
    gap: 25px; 
    align-items: center; 
    flex-wrap: wrap; 
}
.main-nav a { 
    color: #fff; 
    text-decoration: none; 
    font-weight: 500; 
    font-size: 0.95rem; 
    transition: opacity 0.3s ease; 
}
.main-nav a:hover, .main-nav a.active { 
    opacity: 0.8; 
    text-decoration: underline; 
}
.nav-phone { 
    background: #fff; 
    color: #002244 !important; 
    padding: 8px 20px; 
    border-radius: 4px; 
    font-weight: 600 !important; 
    text-decoration: none !important; 
}

/* Page Content */
.page-wrap { max-width: 1200px; margin: 0 auto; padding: 60px 20px; min-height: 60vh; }
.page-wrap h1 { font-size: clamp(2rem, 4vw, 3rem); color: #002244; margin-bottom: 30px; }
.page-wrap h2 { font-size: 1.8rem; color: #002244; margin: 40px 0 20px; }
.page-wrap p { margin-bottom: 20px; font-size: 1.05rem; color: #333; line-height: 1.8; }
.page-wrap ul { margin: 20px 0 20px 20px; }
.page-wrap ul li { margin-bottom: 10px; font-size: 1.05rem; }

/* Hero Section */
.hero { position: relative; width: 100%; height: 60vh; min-height: 400px; max-height: 600px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hero-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.hero::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); z-index: 2; }
.hero-content { position: relative; z-index: 3; text-align: center; color: #fff; padding: 20px; }
.hero-content h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 700; margin-bottom: 0.5rem; text-shadow: 2px 2px 8px rgba(0,0,0,0.5); color: #fff; }
.hero-content p { font-size: clamp(1rem, 2.5vw, 1.5rem); font-weight: 300; text-shadow: 1px 1px 4px rgba(0,0,0,0.5); color: #fff; }

/* Projects Section */
.projects { padding: 60px 20px; max-width: 1400px; margin: 0 auto; }
.projects h2 { text-align: center; font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 40px; color: #002244; }

/* Tabs */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.tab-btn { padding: 12px 24px; font-size: 0.95rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; border: 2px solid #002244; background: transparent; color: #002244; cursor: pointer; transition: all 0.3s ease; border-radius: 4px; }
.tab-btn:hover { background: #002244; color: #fff; }
.tab-btn.active { background: #002244; color: #fff; }

/* Slider Grid */
.slider-wrapper { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 30px; animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Slide Card */
.slide { position: relative; width: 100%; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.slide:hover { transform: translateY(-5px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.slide img { width: 100%; height: 250px; object-fit: cover; display: block; }
.slide-caption { padding: 20px; background: #fff; }
.slide-caption h3 { font-size: 1.1rem; font-weight: 700; color: #002244; margin-bottom: 8px; text-transform: capitalize; }
.slide-caption p { font-size: 0.9rem; color: #555; text-transform: capitalize; }

/* Contact Section */
.contact { background: #f5f7fa; padding: 80px 20px; }
.contact-container { max-width: 800px; margin: 0 auto; }
.contact h2 { text-align: center; font-size: clamp(1.8rem, 4vw, 2.5rem); color: #002244; margin-bottom: 15px; }
.contact-intro { text-align: center; color: #555; margin-bottom: 40px; font-size: 1.1rem; }
.contact-form { background: #fff; padding: 40px; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; color: #002244; margin-bottom: 8px; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 15px; border: 2px solid #e1e5e9; border-radius: 4px; font-size: 1rem; font-family: inherit; transition: border-color 0.3s ease; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #002244; }
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-submit { width: 100%; padding: 15px; background: #002244; color: #fff; border: none; border-radius: 4px; font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer; transition: background 0.3s ease, transform 0.2s ease; }
.btn-submit:hover { background: #003366; transform: translateY(-2px); }
.form-note { text-align: center; font-size: 0.85rem; color: #777; margin-top: 15px; }
.form-error { background: #fee; border: 1px solid #f99; padding: 15px; border-radius: 4px; margin-bottom: 25px; color: #c00; font-weight: 500; }

/* Card Grid */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; margin: 40px 0; }
.card { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); border-left: 4px solid #002244; }
.card h3 { color: #002244; margin-bottom: 15px; font-size: 1.3rem; }
.card p { color: #555; margin-bottom: 15px; }
.btn-outline { display: inline-block; padding: 10px 20px; border: 2px solid #002244; color: #002244; text-decoration: none; border-radius: 4px; font-weight: 600; transition: all 0.3s ease; }
.btn-outline:hover { background: #002244; color: #fff; }

/* Branch Grid - Contact Page NEW */
.branch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0 50px;
}

.branch-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-left: 4px solid #002244;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.branch-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.branch-card h4 {
    color: #002244;
    margin-bottom: 12px;
    font-size: 1.15rem;
    font-weight: 700;
}

.branch-card p {
    color: #555;
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.branch-card a {
    color: #002244;
    text-decoration: none;
    font-weight: 600;
}

.branch-card a:hover {
    text-decoration: underline;
}

/* Footer */
.site-footer { background: #002244; color: #fff; padding: 50px 20px 0; margin-top: 80px; }
.footer-container { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; padding-bottom: 40px; }
.footer-col h3 { font-size: 1.3rem; margin-bottom: 15px; }
.footer-col h4 { font-size: 1.1rem; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col p { color: rgba(255,255,255,0.8); line-height: 1.8; }
.footer-col ul { list-style: none; }
.footer-col ul li { color: rgba(255,255,255,0.8); padding: 5px 0; }
.footer-col ul li a { color: rgba(255,255,255,0.8); text-decoration: none; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); text-align: center; padding: 20px; }
.footer-bottom p { color: rgba(255,255,255,0.6); font-size: 0.9rem; }

/* Tender RFQ Cards - Extension for /tenders */
.card ul {
    margin: 10px 0 15px 20px;
    padding: 0;
}
.card ul li {
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #444;
}
.card ul li a {
    color: #002244;
    font-weight: 600;
    text-decoration: none;
}
.card ul li a:hover {
    text-decoration: underline;
}

/* Status badges for tenders */
.badge-closing {
    display: inline-block;
    background: #c41e3a;
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 8px;
}
.badge-open {
    display: inline-block;
    background: #2c5f2d;
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 8px;
}

/* Form select styling match */
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002244' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Mobile */
@media (max-width: 768px) {
    .header-container { 
        flex-direction: column; 
        gap: 15px; 
    }
    .logo img { 
        height: 45px; 
    }
    .main-nav { 
        gap: 15px; 
        justify-content: center; 
    }
    .nav-phone { 
        padding: 6px 15px; 
        font-size: 0.9rem; 
    }
    .hero { 
        height: 50vh; 
        min-height: 350px; 
    }
    .page-wrap { 
        padding: 40px 15px; 
    }
    .tabs { 
        gap: 8px; 
    }
    .tab-btn { 
        padding: 10px 16px; 
        font-size: 0.85rem; 
    }
    .slider-wrapper { 
        grid-template-columns: 1fr; 
        gap: 20px; 
    }
    .form-row { 
        grid-template-columns: 1fr; 
        gap: 0; 
    }
    .contact-form { 
        padding: 30px 20px; 
    }
    .branch-grid { 
        grid-template-columns: 1fr; 
        gap: 20px; 
    }
    .branch-card { 
        padding: 20px; 
    }
}