/* =====================================================
   SHARED CARD STYLES (DRY)
   ===================================================== */
/* Base Card styles shared across all page cards */
.value-card,
.leader-card,
.service-detail-card,
.compliance-card,
.csi-card,
.news-card,
.bbee-card {
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

/* Base Hover transition shared across interactive cards */
.value-card,
.leader-card,
.service-detail-card,
.compliance-card,
.news-card {
    transition: transform var(--transition), box-shadow var(--transition);
}

.bbee-card {
    transition: transform var(--transition);
}

.value-card:hover,
.leader-card:hover,
.service-detail-card:hover,
.compliance-card:hover,
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.bbee-card:hover {
    transform: translateY(-4px);
}

/* Card Top Primary Borders */
.value-card,
.compliance-card,
.csi-card {
    border-top: 3px solid var(--primary);
}

/* =====================================================
   HERO — Homepage
   ===================================================== */
.hero {
    width: 100%;
    min-height: clamp(260px, 40vw, 400px);
    background: #c8cdd5 url('../images/aigenerated/makhaswa-building.jpeg') center / cover no-repeat;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(8, 45, 90, 0.55) 0%, rgba(8, 45, 90, 0.3) 50%, rgba(8, 45, 90, 0.7) 100%);
}

.hero-content {
    position: relative;
    width: 100%;
    z-index: 2;
    padding: 48px 40px;
    color: var(--white);
}

.hero-content h1 {
    font-size: clamp(28px, 4.5vw, 52px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-content p {
    font-size: clamp(13px, 1.5vw, 16px);
    max-width: 640px;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 24px;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 250px;
    padding: 13px 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background var(--transition), transform var(--transition), color var(--transition), border var(--transition);
    border: 2px solid transparent;
}

.hero-cta:hover {
    transform: translateY(-2px);
}

.hero-cta--primary {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.hero-cta--primary:hover {
    background: var(--off-white);
    border-color: var(--off-white);
}

.hero-cta--secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.hero-cta--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Nav Contact Button Highlight */
nav a.nav-contact-btn {
    background-color: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 4px;
    /* Rectangle highlight */
}

nav a.nav-contact-btn::after {
    display: none;
    /* Hide the underline effect */
}

nav a.nav-contact-btn:hover {
    background-color: var(--primary-mid);
    color: var(--white);
}

.hero-banner {
    background: var(--primary-mid);
    color: var(--white);
    text-align: center;
    padding: 18px 20px;
    font-size: 13px;
    font-style: italic;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

/* =====================================================
   PAGE HERO — About & Services inner pages
   ===================================================== */
.page-hero {
    width: 100%;
    min-height: clamp(260px, 40vw, 400px);
    position: relative;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(8, 45, 90, 0.5) 0%, rgba(8, 45, 90, 0.75) 100%);
}

.page-hero .hero-content {
    padding: 40px;
}

.page-hero .hero-content h1 {
    font-size: clamp(26px, 4vw, 44px);
}

.page-hero .hero-content p {
    margin-bottom: 0;
}

.page-hero-about {
    background-image: url('../assets/about.jpeg');
}

.page-hero-services {
    background-image: url('../assets/services.jpeg');
}

.page-hero-projects {
    background-image: url('../assets/projects.jpeg');
}

.page-hero-careers {
    background-image: url('../assets/careers.jpeg');
    background-position: center 30%;
}

.page-hero-contact {
    background-image: url('../assets/contact.jpeg');
}

.page-hero-faq {
    background-image: url('../assets/faq.jpeg');
}

.page-hero-terms {
    background-image: url('../assets/terms.jpeg');
}

/* =====================================================
   ABOUT SPLIT
   ===================================================== */
.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.about-text p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.75;
    margin-bottom: 16px;
}

/* =====================================================
   VALUES
   ===================================================== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 32px;
}

.value-card {
    padding: 28px;
}

.value-card h4 {
    color: var(--primary);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.value-card p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.7;
}

/* =====================================================
   JOURNEY / TIMELINE
   ===================================================== */
.journey-section {
    background: var(--off-white);
    padding: 60px 20px;
    text-align: center;
}

.journey-intro {
    color: var(--text-muted);
    font-size: 14px;
    max-width: 760px;
    margin: 0 auto 56px;
    line-height: 1.7;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 780px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 10px 44px 32px;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

/* Dot */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    top: 20px;
    z-index: 1;
}

.timeline-item.left::after {
    right: -7px;
}

.timeline-item.right::after {
    left: -6px;
}

.year {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.tl-content {
    border-top: 1px solid var(--border);
    padding-top: 12px;
    color: var(--text-muted);
    font-size: 13.5px;
    line-height: 1.6;
}

/* =====================================================
   TEAM / LEADERSHIP
   ===================================================== */
.team-section {
    background: var(--off-white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.team-member {
    background: var(--white);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.team-member:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.team-member img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    filter: grayscale(100%);
    margin-bottom: 16px;
    transition: filter var(--transition);
}

.team-member:hover img {
    filter: grayscale(40%);
}

.team-member h4 {
    color: var(--primary);
    font-size: 14px;
    margin-bottom: 4px;
}

.team-member .role {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 8px;
}

.team-member p {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Leadership card (text-only, no photo) */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.leader-card {
    padding: 24px;
    border-left: 4px solid var(--primary);
}

.leader-card h4 {
    color: var(--primary);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.leader-card .role {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.staff-note {
    margin-top: 40px;
    padding: 28px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
}

.staff-note h4 {
    color: var(--primary);
    font-size: 15px;
    margin-bottom: 10px;
}

.staff-note p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.7;
}

/* =====================================================
   VISION
   ===================================================== */
.vision-content {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.vision-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.75;
    margin-bottom: 16px;
}

/* =====================================================
   SERVICES
   ===================================================== */
.services-section {
    background: var(--off-white);
}

.services-split {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
}

.services-split h3 {
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.services-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13.5px;
    color: var(--text);
}

.services-list li i {
    flex-shrink: 0;
    color: var(--primary);
}

.services-grid,
.services-grid--4cols {
    display: grid;
    gap: 8px;
    margin-top: 20px;
}

.services-grid {
    grid-template-columns: repeat(3, 1fr);
}

.services-grid--4cols {
    grid-template-columns: repeat(4, 1fr);
}

.services-grid img,
.services-grid--4cols img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.services-grid img:hover,
.services-grid--4cols img:hover {
    transform: scale(1.05);
}

.showcase-intro {
    font-size: 13.5px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Service detail cards (services page) */
.service-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.service-detail-card {
    overflow: hidden;
}

.service-detail-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-detail-body {
    padding: 24px;
}

.service-detail-body .service-badge {
    display: inline-block;
    background: var(--off-white);
    color: var(--primary);
    padding: 4px 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.service-detail-body h3 {
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
}

.service-detail-body p {
    font-size: 13.5px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 14px;
}

.service-detail-body ul {
    list-style: none;
}

.service-detail-body ul li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text);
    padding: 6px 0;
}

.service-detail-body ul li i {
    flex-shrink: 0;
    color: var(--primary);
}

/* =====================================================
   PLANT & EQUIPMENT
   ===================================================== */
.plant-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.plant-section img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.plant-section .plant-text h3 {
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.plant-section .plant-text p {
    font-size: 13.5px;
    color: var(--text-light);
    line-height: 1.75;
    margin-bottom: 16px;
}

/* =====================================================
   SAFETY
   ===================================================== */
.safety-banner {
    background: var(--primary);
    color: var(--white);
    padding: 48px 40px;
    text-align: center;
}

.safety-banner h3 {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.safety-banner p {
    font-size: 14px;
    max-width: 780px;
    margin: 0 auto;
    line-height: 1.75;
    opacity: 0.85;
}

/* =====================================================
   STATS
   ===================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-number {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 10.5px;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =====================================================
   B-BBEE / TRANSFORMATION
   ===================================================== */
.bbee-section {
    background: var(--off-white);
}

.bbee-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.bbee-card {
    padding: 24px;
    text-align: center;
    border-bottom: 3px solid var(--primary);
}

.bbee-card .bbee-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.bbee-card .bbee-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    line-height: 1.5;
}

/* =====================================================
   COMPLIANCE / CIDB
   ===================================================== */
.compliance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.compliance-card {
    padding: 28px;
}

.compliance-card .grade-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 16px;
}

.accreditation-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    margin-bottom: 16px;
    display: block;
}

.compliance-card h4 {
    color: var(--primary);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.compliance-card .grade-codes {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 12px;
}

.compliance-card .capacity {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* =====================================================
   PROJECTS
   ===================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-card {
    position: relative;
    overflow: hidden;
    height: 280px;
    cursor: pointer;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.08);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 45, 90, 0.9) 0%, rgba(8, 45, 90, 0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: var(--white);
}

.project-overlay span {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.75;
    margin-bottom: 4px;
}

.project-overlay h4 {
    font-size: 15px;
    font-weight: 700;
}

/* Premium Lightbox Modal Styles */
.lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox-modal.active .lightbox-content img {
    transform: scale(1);
}

.lightbox-caption {
    margin-top: 20px;
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    max-width: 600px;
    line-height: 1.5;
    letter-spacing: 0.5px;
    padding: 0 10px;
    font-family: var(--font);
    opacity: 0.9;
}

.lightbox-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s;
    user-select: none;
    z-index: 10;
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.lightbox-btn:active {
    transform: scale(0.95);
}

.lightbox-close {
    top: -60px;
    right: 0;
}

.lightbox-prev {
    left: -80px;
    top: calc(50% - 34px);
}

.lightbox-next {
    right: -80px;
    top: calc(50% - 34px);
}

@media (max-width: 768px) {
    .lightbox-prev {
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.5);
    }

    .lightbox-next {
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.5);
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
        background: rgba(0, 0, 0, 0.5);
        position: fixed;
    }
}

/* =====================================================
   SOCIAL RESPONSIBILITY
   ===================================================== */
.csi-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.csi-card {
    padding: 28px;
}

.csi-card h4 {
    color: var(--primary);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.csi-card p {
    font-size: 13.5px;
    color: var(--text-light);
    line-height: 1.75;
}

/* =====================================================
   NEWS
   ===================================================== */
.news-section {
    background: var(--off-white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 36px;
}

.news-card {
    overflow: hidden;
}

.news-card-img {
    position: relative;
    overflow: hidden;
}

.news-card-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-img img {
    transform: scale(1.04);
}

.news-date {
    font-size: 10.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 14px 16px 0;
}

.news-label {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 4px 14px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 8px 16px 0;
}

.news-card-body {
    padding: 12px 16px 20px;
}

.news-card-body h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-card-body p {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

.news-card-body .read-more {
    display: inline-block;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    transition: color var(--transition);
}

.news-card-body .read-more:hover {
    color: #0056b3;
}

.btn-view-all {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 11px 28px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background var(--transition), transform var(--transition);
}

.btn-view-all:hover {
    background: var(--primary-mid);
    transform: translateY(-2px);
}

.btn-view-gallery {
    display: inline-block;
    background: transparent;
    color: var(--white);
    padding: 11px 28px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background var(--transition), color var(--transition), transform var(--transition);
    border: 2px solid var(--white);
}

.btn-view-gallery:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

.news-actions {
    text-align: center;
}

/* =====================================================
   AFFILIATIONS
   ===================================================== */
.affiliations-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 28px;
    padding: 28px 20px;
}

.affiliation-badge {
    background: var(--white);
    padding: 12px 24px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--border);
    transition: background var(--transition), color var(--transition);
}

.affiliation-badge:hover {
    background: var(--primary);
    color: var(--white);
}

/* =====================================================
   DOWNLOADS
   ===================================================== */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition), transform var(--transition);
    cursor: pointer;
}

.download-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.download-item i {
    color: var(--primary);
    flex-shrink: 0;
}

.download-item span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
}

/* =====================================================
   CONTACT
   ===================================================== */
.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info h3 {
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: var(--text-light);
    margin-bottom: 14px;
    line-height: 1.6;
}

.contact-info li i {
    flex-shrink: 0;
    color: var(--primary);
    margin-top: 2px;
}

.contact-form label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    font-family: var(--font);
    font-size: 13px;
    margin-bottom: 16px;
    transition: border-color var(--transition);
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--primary);
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 13px 32px;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.contact-form button:hover {
    background: var(--primary-mid);
    transform: translateY(-2px);
}

.contact-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Form Status Toast — inline success / error messages */
.form-status {
    margin-top: 16px;
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
    border-radius: 4px;
    display: none;
}

.form-status--loading {
    background: #eef3fb;
    color: var(--primary);
    border-left: 4px solid var(--primary);
}

.form-status--success {
    background: #edf7f1;
    color: #145730;
    border-left: 4px solid #1a7340;
}

.form-status--error {
    background: #fdf1f0;
    color: #8b2219;
    border-left: 4px solid #c0392b;
}

/* Locations Section */
.locations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 40px;
}

.location-item h3 {
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.location-item ul {
    list-style: none;
    padding: 0;
    margin-bottom: 24px;
}

.location-item li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13.5px;
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.6;
}

.location-item li i {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 3px;
}

.location-map {
    width: 100%;
    height: 350px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.location-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* =====================================================

/* =====================================================
   FAQ SECTION
   ===================================================== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    margin-bottom: 16px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    background: var(--off-white);
    font-weight: 700;
    font-size: 15px;
    color: var(--primary);
    transition: background var(--transition);
}

.faq-question:hover {
    background: #e2e8f0;
}

.faq-icon {
    transition: transform 0.3s ease;
    color: var(--primary);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: var(--white);
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 800px;
    padding: 20px 24px;
    border-top: 1px solid var(--border);
}

.faq-answer p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* =====================================================
   LEGAL PAGES (Terms, Privacy)
   ===================================================== */
.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 40px;
}

.legal-content h2 {
    color: var(--primary);
    font-size: 20px;
    margin-top: 40px;
    margin-bottom: 16px;
    font-weight: 700;
}

.legal-content h3 {
    color: var(--primary-mid);
    font-size: 16px;
    margin-top: 24px;
    margin-bottom: 12px;
    font-weight: 600;
}

.legal-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.75;
    margin-bottom: 16px;
}

.legal-content ul {
    margin-bottom: 24px;
    padding-left: 20px;
    list-style: disc;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.75;
}

.legal-content ul li {
    margin-bottom: 8px;
}




/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 960px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bbee-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .compliance-grid {
        grid-template-columns: 1fr;
    }

    .service-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    /* Header */
    header {
        padding: 0 20px;
    }

    nav {
        display: none;
    }

    .burger {
        display: flex;
    }

    /* Containers */
    .container {
        padding: 44px 20px;
    }

    footer {
        padding: 44px 20px 24px;
    }

    /* Hero */
    .hero {
        min-height: clamp(200px, 45vw, 320px);
    }

    .hero-content {
        padding: 32px 20px;
    }

    .hero-content h1 {
        font-size: clamp(22px, 5vw, 32px);
    }

    /* Page hero */
    .page-hero {
        min-height: clamp(200px, 45vw, 320px);
    }

    .page-hero .hero-content {
        padding: 28px 20px;
    }

    /* Timeline: single column left-aligned */
    .timeline::before {
        left: 16px;
        transform: none;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        text-align: left;
        padding: 10px 20px 28px 48px;
    }

    .timeline-item::after {
        left: 10px !important;
        right: auto !important;
        top: 16px;
    }

    /* Grids → 1 column */
    .about-split,
    .services-split,
    .contact-split,
    .locations-grid,
    .csi-split,
    .plant-section,
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    /* Footer brand — stack logo and text side-by-side on mobile, description below */
    .footer-col--brand {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 20px;
    }

    .footer-brand-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 16px;
        width: 100%;
    }

    .footer-logo-hero {
        width: 140px;
        max-width: 100%;
        border-radius: 8px;
    }

    .footer-logo-text {
        margin-bottom: 0;
    }

    .footer-brand-info {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .footer-social {
        justify-content: flex-start;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .bbee-grid {
        grid-template-columns: 1fr;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    /* Services image grid */
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .services-grid--4cols {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Leadership */
    .leadership-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        font-size: 10px;
        letter-spacing: 1.2px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =====================================================
   FORM STATUS MESSAGES  (used by forms.js)
   ===================================================== */

/* Slide + fade entrance */
@keyframes statusSlideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form styles removed to prevent duplication */

/* ── Disabled state while submitting ── */
.contact-form input:disabled,
.contact-form select:disabled,
.contact-form textarea:disabled,
.contact-form button:disabled,
#careers-form input:disabled,
#careers-form select:disabled,
#careers-form textarea:disabled,
#careers-form button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* =====================================================
   PORTFOLIO / PROJECTS HUB FILTER
   ===================================================== */
.portfolio-filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    margin-top: 20px;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-light);
    padding: 8px 20px;
    font-family: var(--font);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

@media (max-width: 768px) {
    .portfolio-filter-wrapper {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 5px 20px 15px 20px;
        margin: 10px -20px 25px -20px;
        gap: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Hide scrollbar for Firefox */
    }

    .portfolio-filter-wrapper::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar for Chrome, Safari, Opera */
    }

    .filter-btn {
        flex-shrink: 0;
        padding: 10px 18px;
        font-size: 11px;
    }
}

/* =====================================================
   PROJECT DETAIL / CASE STUDY LAYOUT
   ===================================================== */
.project-detail-hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 100px 20px;
    text-align: center;
    color: var(--white);
    margin-bottom: 40px;
}

.project-detail-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(8, 45, 90, 0.75);
    /* var(--primary) with opacity */
    z-index: 1;
}

.project-detail-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.project-detail-hero h1 {
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    color: var(--white);
}

.project-detail-hero .project-sector-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 1.5px;
    padding: 4px 16px;
    margin-bottom: 16px;
}

.project-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.project-description h3 {
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-left: 3px solid var(--primary);
    padding-left: 12px;
}

.project-description p {
    font-size: 13.5px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.project-spec-card {
    background: var(--off-white);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--primary);
    height: fit-content;
}

.project-spec-card h3 {
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.project-spec-list {
    list-style: none;
}

.project-spec-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 13px;
}

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

.project-spec-list strong {
    color: var(--primary);
    font-weight: 600;
}

.project-spec-list span {
    color: var(--text);
    text-align: right;
}

/* Case Study Gallery */
.project-gallery-title {
    margin-bottom: 24px;
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 1px;
    color: var(--primary);
    border-left: 3px solid var(--primary);
    padding-left: 12px;
}

.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

.project-gallery-item {
    position: relative;
    overflow: hidden;
    height: 200px;
    box-shadow: var(--shadow-sm);
}

.project-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

/* Back to Portfolio CTA */
.project-actions {
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: 32px;
    margin-top: 48px;
}

.btn-back-portfolio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 11px 28px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all var(--transition);
}

.btn-back-portfolio:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Responsive styles for details page */
@media (max-width: 768px) {
    .project-detail-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .project-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .project-gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   PROJECT MANAGEMENT LIFE-CYCLE ILLUSTRATION/WIDGET
   ===================================================== */
.pm-lifecycle {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
    border-radius: 8px;
    padding: 36px 28px;
    color: var(--white);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.pm-lifecycle::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(200, 169, 81, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.pm-step {
    display: flex;
    gap: 18px;
    position: relative;
    z-index: 2;
    transition: transform var(--transition);
}

.pm-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 42px;
    bottom: -24px;
    width: 2px;
    background: rgba(255, 255, 255, 0.15);
}

.pm-step:hover {
    transform: translateX(5px);
}

.pm-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    flex-shrink: 0;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}

.pm-step:hover .pm-icon-wrapper {
    background: var(--gold);
    color: var(--primary);
    transform: scale(1.08);
}

.pm-step-content h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    color: var(--white);
    text-transform: uppercase;
}

.pm-step-content p {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0;
}

/* =====================================================
   404 ERROR PAGE STYLES
   ===================================================== */
.error-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-h) - 450px);
    padding: 80px 20px;
    background-color: var(--off-white);
    background-image:
        linear-gradient(rgba(8, 45, 90, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(8, 45, 90, 0.04) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: center;
    position: relative;
    overflow: hidden;
}

/* Faint architectural line accents */
.error-section::before {
    content: '';
    position: absolute;
    inset: 40px;
    border: 1px dashed rgba(8, 45, 90, 0.15);
    pointer-events: none;
}

.error-section::after {
    content: 'DIM_REF: 404_PAGE_ERR';
    position: absolute;
    bottom: 30px;
    right: 30px;
    font-family: monospace;
    font-size: 10px;
    color: var(--text-muted);
    opacity: 0.7;
    letter-spacing: 1px;
}

.error-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(8, 45, 90, 0.1);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    max-width: 650px;
    width: 100%;
    padding: 48px 40px;
    text-align: center;
    position: relative;
    z-index: 5;
}

.error-graphic {
    margin: 0 auto 32px;
    width: 100%;
    max-width: 320px;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
}

/* Crane cable and block swing animation */
@keyframes crane-swing {

    0%,
    100% {
        transform: rotate(-4deg);
    }

    50% {
        transform: rotate(4deg);
    }
}

.swinging-cable-group {
    animation: crane-swing 3.5s ease-in-out infinite;
    transform-origin: 160px 20px;
    /* Cable connection point on jib */
}

/* Blinking warning light on top of crane */
@keyframes warning-blink {

    0%,
    100% {
        opacity: 0.35;
        fill: #d9534f;
    }

    50% {
        opacity: 1;
        fill: #ff3b30;
    }
}

.warning-light {
    animation: warning-blink 1.2s infinite;
}

.error-badge {
    display: inline-block;
    background: rgba(200, 169, 81, 0.15);
    color: var(--primary);
    border: 1px solid var(--gold);
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
    border-radius: 4px;
}

.error-card h1 {
    font-size: clamp(24px, 3.5vw, 32px);
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    line-height: 1.2;
}

.error-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 32px;
}

.error-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.error-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 180px;
    padding: 12px 24px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background var(--transition), transform var(--transition), border-color var(--transition), color var(--transition);
    border-radius: 4px;
    cursor: pointer;
}

.error-btn--primary {
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
}

.error-btn--primary:hover {
    background: var(--primary-mid);
    border-color: var(--primary-mid);
    transform: translateY(-2px);
}

.error-btn--secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.error-btn--secondary:hover {
    background: rgba(8, 45, 90, 0.05);
    transform: translateY(-2px);
}

.error-quick-links {
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.error-quick-links h3 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.error-links-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
}

.error-links-grid a {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color var(--transition);
}

.error-links-grid a:hover {
    color: var(--gold);
}

@media (max-width: 768px) {
    .error-section {
        padding: 40px 15px;
    }

    .error-card {
        padding: 32px 20px;
    }

    .error-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .error-btn {
        width: 100%;
        min-width: unset;
    }
}
