/* --- Global Reset & Business Typography --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Ensure footer stays at the bottom if content is short */
main {
    flex: 1;
}

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

/* --- Color Variables --- */
:root {
    --black: #1a1a1a;
    --white: #f3f4f6;
    --gold: #f28c28;
    --light-gray: #eef2f6;
    --border-gray: #dbe7ee;
}

/* --- Layout Grids --- */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }

.bg-light { background-color: var(--light-gray); }
.bg-dark { background-color: var(--black); }
.text-light { color: var(--white); }
.text-center { text-align: center; }

/* --- Typography Utilities --- */
.section-title {
    font-size: 2.2rem;
    color: var(--black);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    text-transform: uppercase;
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--gold);
    margin: 0.5rem auto 0 auto;
}

.subsection-title {
    font-size: 1.8rem;
    color: var(--black);
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 2rem;
}

/* --- Header & Navigation --- */
header {
    background-color: var(--black);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
}

.logo img {
    display: block;
    width: auto;
    height: 72px;
    object-fit: contain;
    max-width: 280px;
}

.logo span {
    color: var(--gold);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--gold);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px;
    transition: all 0.3s ease;
}

/* --- Home / Hero Section --- */
.hero-section {
    background: linear-gradient(rgba(26, 26, 26, 0.72), rgba(26, 26, 26, 0.82)), url('assets/images/Screenshot 2026-08-12 185612.png') no-repeat center center/cover;
    height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 84px;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* --- Internal Banner Styles (For Sub-pages) --- */
.page-banner {
    /* Deeper, angled gradient + subtle bottom border for a professional hero */
    background: linear-gradient(135deg, #0f172a 0%, #111827 60%);
    color: var(--white);
    padding: 2rem 0; /* narrowed for better accessibility */
    /* keep space for fixed header elsewhere */
    margin-top: 84px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.about-banner {
    background: linear-gradient(rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.78)), url('assets/images/Screenshot 2026-08-12 185550.png') center center / cover no-repeat;
}

.page-banner .container {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.page-banner h1 {
    margin: 0;
    font-size: 1.9rem; /* slightly smaller for accessibility */
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--white);
}

.page-banner p {
    margin: 0;
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    max-width: 60ch;
}

/* --- Buttons --- */
.btn-primary, .btn-orange {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--gold);
}

.btn-orange {
    background-color: var(--gold);
    color: var(--white);
}

.btn-orange:hover {
    background-color: var(--gold);
}
/* --- Cards & Structural Content (Professional Update) --- */
.card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    position: relative;
    /* Soft, multi-layered enterprise shadow for depth */
    box-shadow: 0 4px 20px rgba(26, 26, 26, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(26, 26, 26, 0.06);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s ease;
}

/* Elegant micro-border top accent instead of a full thick line */
.card-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--black);
    transition: background-color 0.3s ease, height 0.3s ease;
}

.card h3 {
    color: var(--black);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.3px;
}

.card p {
    color: #555555;
    font-size: 0.98rem;
    line-height: 1.6;
}

/* --- Interactive Card Hover States --- */
.card:hover {
    transform: translateY(-6px);
    border-color: rgba(242, 140, 40, 0.18);
    box-shadow: 0 20px 38px rgba(26, 26, 26, 0.08), 0 4px 12px rgba(242, 140, 40, 0.04);
}

/* Switch accent color to blue on hover */
.card:hover .card-accent {
    background-color: var(--gold);
    height: 4px;
}

/* --- Special Continuous Improvement Feature Card --- */
.continuous-improvement {
    margin-top: 3rem;
    background: linear-gradient(135deg, var(--white) 70%, rgba(249, 115, 22, 0.03));
    border: 1px solid rgba(249, 115, 22, 0.15);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.04);
}

.continuous-improvement h3 {
    color: var(--black);
    position: relative;
    display: inline-block;
}

/* Subtle orange indicators for featured items */
.continuous-improvement h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--gold);
}

/* --- Quick Summary / Stats Cards --- */
.summary-item {
    background: transparent;
    padding: 2rem 1.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.summary-item:hover {
    background-color: rgba(26, 26, 26, 0.02);
}

.summary-item .summary-icon {
    font-size: 2.2rem;
    display: inline-block;
    margin-bottom: 1.25rem;
    padding: 12px;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.summary-item h4 {
    color: var(--black);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
}
/* --- About & Core Values --- */
.vision-mission-box, .commitments-box {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid var(--border-gray);
}

.vision-mission-box h3, .commitments-box h3 {
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.value-card {
    background: var(--white);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border-gray);
    border-top: 4px solid var(--black);
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-3px);
}

.value-card h4 {
    margin-bottom: 0.5rem;
    color: var(--black);
}

/* --- Services --- */
.service-item {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 4px;
    border: 1px solid var(--border-gray);
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.service-item h4 {
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

/* --- Industries Served --- */
.industry-card {
    background: var(--white);
    padding: 2rem 1.5rem;
    text-align: center;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border: 1px solid var(--border-gray);
}

.industry-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.industry-card h4 {
    color: var(--black);
    margin-bottom: 0.75rem;
}

/* --- Why Choose Us --- */
.choose-box {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-gray);
}

.choose-box h4 {
    color: var(--black);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.choose-box h4::before {
    content: '✓';
    color: var(--gold);
    margin-right: 10px;
    font-weight: bold;
}

/* --- Contact Us Form & Information --- */
.contact-info h3 {
    margin-bottom: 1rem;
}

.contact-detail-item {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 4px;
    border: 1px solid var(--border-gray);
    font-family: inherit;
}

/* --- Footer --- */
footer {
    background: #0b1220;
    color: rgba(255,255,255,0.75);
    padding: 12px 0; /* thinner */
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.03);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 12px;
    padding: 0;
    margin: 0;
}

.footer-links li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-links li a:hover {
    color: var(--gold);
}

@media (max-width: 640px) {
    .page-banner h1 { font-size: 1.6rem; }
    .page-banner p { font-size: 0.95rem; max-width: 100%; }
    .footer-content { flex-direction: column; align-items: flex-start; }

    /* Smaller logo and tighter header on small phones */
    .logo img { height: 44px; max-width: 160px; }
    header { border-bottom-width: 2px; }
    .hero-section, .page-banner { margin-top: 60px; }
}

/* ensure nav-links default mobile off-screen state remains usable */
.nav-links { transition: transform 0.35s ease; }
.nav-active { transform: translateX(0%) !important; }

/* --- Responsive Media Queries --- */
@media (max-width: 768px) {
    .container { width: 92%; padding: 1.5rem 0; }
    .hero-section { height: auto; padding: 3rem 0; }
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 0.98rem; }
    .hero-buttons { flex-direction: column; gap: 1rem; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .desktop-only { display: none; }

    /* Reduce logo/header size on tablets and phones */
    .logo img { height: 48px; max-width: 180px; }
    .navbar { padding: 0.5rem 0; }
    header { border-bottom-width: 2px; }

    /* Keep mobile menus aligned below the header */
    .hero-section, .page-banner { margin-top: 64px; }

    .nav-links {
        position: absolute;
        right: 0;
        height: calc(100vh - 64px);
        top: 64px;
        background-color: var(--black);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 75%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
    }

    .nav-links li { opacity: 0; padding: 1.25rem 0; }
    .burger { display: block; }
}

.nav-active { transform: translateX(0%); }

@keyframes navLinkFade {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0px); }
}

.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
.toggle .line2 { opacity: 0; }
.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }
/* --- Global Image Formatting Utility --- */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    margin: 1rem auto;
}
/* --- Admin Table Formatting Architecture --- */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-top: 1.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th, td {
    padding: 1rem;
    border-bottom: 1px solid #cbd5e1;
}

th {
    background-color: #f1f5f9;
    color: #1e293b;
    font-weight: 700;
}

/* --- Form & Feedback Utilities --- */
.form-feedback {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    transition: opacity 0.5s ease;
}

.form-feedback.success {
    background-color: #dcfce7;
    color: #166534;
    border-left: 4px solid #22c55e;
}

.form-feedback.error {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.btn-loading {
    opacity: 0.7;
    cursor: wait;
    position: relative;
}

.btn-loading::after {
    content: "";
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    display: inline-block;
    margin-left: 0.5rem;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* --- Contact page specific styles (moved from contact.html) --- */
.contact-page .contact-form-container {
    background: var(--white);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--gold);
}
.contact-page .form-group {
    margin-bottom: 1.5rem;
}
.contact-page .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}
.contact-page .form-group input, .contact-page .form-group select, .contact-page .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}
.contact-page .form-group input:focus, .contact-page .form-group select:focus, .contact-page .form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}
.contact-page .submit-btn {
    background: var(--gold);
    color: #ffffff;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.contact-page .submit-btn:hover {
    background: #c99d2e;
}

/* Contact info used as the footer: left = connect, right = page links */
.contact-info-section {
    background: #1a1a1a;
    color: #fff;
    padding: 16px 0; /* match header sizing */
    margin-top: 40px;
}
.contact-info-section h2 {
    color: var(--gold);
    font-size: 1.25rem;
    margin-bottom: 8px;
    text-align: left;
}
.contact-info-section .contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 6px;
}

/* stacked, unordered contact list for footer */
.contact-info-section .contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 6px;
}
.contact-info-section .contact-list .contact-item {
    padding: 6px 0;
    text-align: left;
}
.contact-info-section .contact-item {
    padding: 6px 0;
    text-align: left;
}
.contact-info-section .contact-item h3 {
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 4px;
}
.contact-info-section .contact-item p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
}
.contact-info-section .contact-item a {
    color: rgba(255,255,255,0.95);
    text-decoration: none;
}
.contact-info-section .contact-item a:hover { color: var(--gold); }
.contact-info-section .contact-director {
    padding: 8px 0 0 0;
    border-top: 2px solid rgba(212,175,55,0.06);
    margin-top: 8px;
    text-align: left;
}
.contact-info-section .contact-director p { color: var(--gold); font-size: 0.85rem; margin-bottom: 2px; }
.contact-info-section .contact-director h3 { color: #fff; font-size: 1rem; }

/* Footer layout specifics for combining contact details and links */
footer.contact-info-section .footer-content { align-items: center; justify-content: space-between; gap: 1rem; }
.contact-left { flex: 1 1 60%; }
/* Right column: make links stacked and visually match the left column */
.contact-right {
    flex: 0 0 260px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}
.contact-info-section .contact-right .footer-links {
    display: flex;
    flex-direction: column; /* stack one per line */
    gap: 10px;
    padding: 0;
    margin: 0;
    align-items: flex-end; /* right-align the items inside the column */
}
.contact-info-section .contact-right .footer-links li { margin: 0; }
.contact-info-section .contact-right .footer-links li a {
    color: rgba(255,255,255,0.95);
    text-decoration: none;
}
.contact-info-section .contact-right .footer-links li a:hover { color: var(--gold); }

@media (max-width: 768px) {
    /* On smaller screens make the right links match left: full-width stacked and left aligned */
    .contact-info-section .contact-right { justify-content: flex-start; }
    .contact-info-section .contact-right .footer-links {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .contact-info-section { padding: 18px 0; }
    .contact-left, .contact-right { flex: 1 1 100%; }
    .contact-right { margin-top: 12px; justify-content: flex-start; }
}


