/* ==========================================================================
   Base & Reset Styles
   ========================================================================== */
:root {
    --primary-color: #424242;
    --accent-color: #d90429;
    --accent-hover: #ef233c;
    --dark-bg: #111111;
    --light-bg: #f8f9fa;
    --text-color: #525252;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
}

body {
    background-color: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1, h2, h3, h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

h1 { font-size: 2.5rem; line-height: 1.2; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }

p { margin-bottom: 1rem; }

.sub-heading {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.5rem;
}

.text-center { text-align: center; }
.section-padding { padding: 5rem 0; }
.bg-light { background-color: var(--light-bg); }

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #ffffff;
}
.btn-primary:hover {
    background-color: var(--accent-hover);
}

.btn-outline {
    border-color: #ffffff;
    color: #ffffff;
}
.btn-outline:hover {
    background-color: #ffffff;
    color: var(--primary-color);
}

/* ==========================================================================
   Top Header & Navigation
   ========================================================================== */
.top-bar {
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 0.85rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.top-info a:hover {
    color: var(--accent-color);
}

.top-info i {
    color: var(--accent-color);
    margin-right: 5px;
}

.main-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
}

.brand-logo img {
    height: 50px;
    width: auto;
}

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-menu a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-color);
}

.nav-menu a:hover {
    color: var(--accent-color);
}

.btn-nav {
    background-color: var(--accent-color);
    color: #fff !important;
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
}

.btn-nav:hover {
    background-color: var(--accent-hover);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    background: url('images/Slidshow3.jpg') no-repeat center center/cover;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    color: #ffffff;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(96,92,92,0.95) 0%, rgba(166,166,166,0.65) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.badge {
    background-color: var(--accent-color);
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 3px;
    text-transform: uppercase;
}

.hero-content h1 {
    color: #ffffff;
    margin: 1rem 0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Metrics Bar */
.metrics-bar {
    background-color: #ffffff;
    margin-top: -30px;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-radius: 6px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 1.5rem 0;
}

.metric-card {
    text-align: center;
    border-right: 1px solid var(--border-color);
}

.metric-card:last-child { border-right: none; }

.metric-card i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   About & Industries
   ========================================================================== */
.standards-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #eef2f5;
    padding: 1rem;
    border-left: 4px solid var(--accent-color);
    margin-top: 1.5rem;
}

.standards-box i {
    font-size: 2rem;
    color: var(--accent-color);
}

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper .main-img {
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.about-image-wrapper .secondary-img {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 50%;
    border: 4px solid #ffffff;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.industries-block {
    margin-top: 4rem;
    text-align: center;
}

.industries-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.ind-chip {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
}

.ind-chip i { color: var(--accent-color); margin-right: 5px; }

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-banner-img {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary-color);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-top-color: var(--accent-color);
}

.card-icon {
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.service-card ul {
    margin-top: 1rem;
}

.service-card li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.service-card li::before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* ==========================================================================
   HSE Section
   ========================================================================== */
.dark-section {
    background-color: var(--primary-color);
    color: #ffffff;
}

.dark-section h2 { color: #ffffff; }

.hse-image img {
    border-radius: 6px;
    margin-top: 1.5rem;
}

.safety-objectives {
    background: rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
}

.safety-objectives h3 { color: #ffffff; margin-bottom: 1.5rem; }

.hse-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.hse-list i {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-top: 3px;
}

/* ==========================================================================
   Machine Sales Section
   ========================================================================== */
.sales-banner {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.sales-cta-box {
    padding: 2.5rem;
}

.sales-contact-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 6px;
    margin-top: 1.5rem;
}

.sales-contact-card i.fa-user-gear {
    font-size: 3rem;
    color: var(--primary-color);
}

.contact-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.contact-links a {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.88rem;
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--border-color);
    background: #ffffff;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 600;
}

.tab-btn.active, .tab-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.overlay-title {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(11, 37, 69, 0.85);
    color: #ffffff;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    text-align: center;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content {
    max-width: 85%;
    max-height: 80vh;
    border-radius: 4px;
}

#lightbox-caption {
    color: #ffffff;
    margin-top: 1rem;
    font-size: 1.1rem;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 2.5rem;
    cursor: pointer;
}

/* ==========================================================================
   Contact Section & Map
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.contact-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.personnel-list li {
    margin-bottom: 1.2rem;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 0.8rem;
}

.personnel-list li:last-child { border-bottom: none; }

.personnel-list strong { display: block; color: var(--primary-color); }
.personnel-list span { font-size: 0.85rem; color: var(--text-muted); display: block; }

.branch-item {
    margin-bottom: 1.2rem;
}

.branch-item h4 {
    color: var(--accent-color);
    margin-bottom: 0.2rem;
}

.quick-cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-call { background-color: var(--primary-color); color: #fff; }
.btn-map { background-color: var(--accent-color); color: #fff; }

.map-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-dark {
    background-color: var(--dark-bg);
    color: #a0a0a0;
    padding: 4rem 0 2rem;
    font-size: 0.85rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.footer-col h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 5px;
}

.hosting-credit a {
    color: var(--accent-color);
    text-decoration: underline;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
    .grid-2-col, .contact-grid { grid-template-columns: 1fr; }
    .metrics-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .metric-card { border-right: none; }
    .about-image-wrapper { margin-top: 2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .top-bar-content { flex-direction: column; text-align: center; gap: 0.5rem; }
    .mobile-toggle { display: block; }
    .nav-menu {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%; left: 0;
        background: #ffffff;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        padding: 1rem 0;
    }
    .nav-menu.active { display: block; }
    .nav-menu ul { flex-direction: column; gap: 1rem; }
    .hero-section { height: auto; padding: 6rem 0; }
    .metrics-grid { grid-template-columns: 1fr; }
}