/* =====================================================
   MAKHASWA HOLDINGS — MAIN STYLESHEET
   Shared across index.html, about.html, services.html
   ===================================================== */

/* =====================================================
   CSS CUSTOM PROPERTIES
   ===================================================== */
:root {
    --primary: #082d5a;
    --primary-mid: #0c3a6d;
    --accent: #1a3668;
    --white: #ffffff;
    --off-white: #f4f6f8;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --border: #e0e0e0;
    --font: 'Montserrat', sans-serif;
    --header-h: 72px;
    --transition: 0.25s ease;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.10);
    --gold: #c8a951;
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* =====================================================
   TYPOGRAPHY HELPERS
   ===================================================== */
.section-title {
    color: var(--primary);
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-light);
    max-width: 640px;
    line-height: 1.7;
}

.section-banner {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 14px 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

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

.text-left {
    text-align: left;
}

/* =====================================================
   UTILITY CLASSES — Replace inline styles (DRY)
   ===================================================== */
.u-center-block {
    text-align: center;
}

.u-mt-sm {
    margin-top: 1rem;
}

.u-mt-md {
    margin-top: 1.2rem;
}

.u-mb-sm {
    margin-bottom: 0.5rem;
}

.u-mb-md {
    margin-bottom: 1rem;
}

.u-mb-lg {
    margin-bottom: 1.5rem;
}

.u-font-office-heading {
    font-size: 1.1rem;
}

/* Subtitle positioning helpers */
.section-subtitle--centered {
    text-align: center;
    margin: 0 auto 32px;
    max-width: 800px;
}

.section-subtitle--tight {
    text-align: center;
    margin: -16px auto 12px;
}

.section-subtitle--spaced {
    text-align: center;
    margin: -16px auto 40px;
}

.section-subtitle--bottom {
    text-align: center;
    margin: 28px auto 0;
    font-size: 13px;
}

.section-subtitle--open {
    margin-top: -16px;
    margin-bottom: 32px;
}

/* Grade-codes block used inside compliance cards */
.grade-codes--block {
    margin-top: 12px;
    font-size: 15px;
}

.grade-codes--sub {
    font-size: 13px;
    color: var(--text-light);
    display: block;
    margin-bottom: 8px;
}

/* Grade badge override for about page */
.grade-badge--sm {
    width: 36px;
    height: 36px;
    font-size: 18px;
    margin-bottom: 12px;
}

/* Accreditation logo centered (about page) */
.accreditation-logo--centered {
    margin: 0 auto 16px;
}

/* B-BBEE value size overrides */
.bbee-value--sm {
    font-size: 20px;
}

.bbee-value--xs {
    font-size: 16px;
}

/* CTA wrapper */
.cta-center {
    text-align: center;
    margin-top: 32px;
}

/* Container top-padding variant */
.container--pt-flush {
    padding-top: 40px;
}

/* Fraud warning callout on careers */
.fraud-callout {
    margin-top: 32px;
    padding: 20px;
    background: var(--off-white);
    border-left: 3px solid var(--primary);
}

.fraud-callout h4 {
    font-size: 13px;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 700;
    text-transform: uppercase;
}

.fraud-callout p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Careers apply info text */
.apply-info-text {
    font-size: 13.5px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Contact page inline hero bg (via data attribute handled in CSS) */
.page-hero-contact {
    background-image: url('../images/warehouse-induustrial.jpeg');
}

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

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

/* Icon vertical-align helper */
.icon-inline {
    vertical-align: middle;
    margin-right: 8px;
}

/* Footer component styles — replaces inline styles on map items */
.map-title {
    font-size: 11px;
    color: #aec4db;
    display: block;
    margin-bottom: 4px;
}

.map-item--spaced {
    margin-bottom: 12px;
}

.footer-contact-separator {
    margin-top: 10px;
}



/* Services list with top margin */
.services-list--mt {
    margin-top: 16px;
}

/* FAQ answer link style */
.link-primary {
    color: var(--primary);
    text-decoration: underline;
}

/* Legal contact link */
.link-primary-bold {
    color: var(--primary);
    font-weight: 600;
}

/* Contact form CTA hero heading style */
.section-title--contact-heading {
    margin-top: 40px;
    margin-bottom: 8px;
}

/* =====================================================
   LAYOUT CONTAINER
   ===================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
}

/* =====================================================
   HEADER
   ===================================================== */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-h);
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo img {
    height: 48px;
    width: auto;
}

.logo-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1.5px;
    line-height: 1.25;
    text-transform: uppercase;
}

.logo-text small {
    display: block;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Desktop Nav */
nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

nav a {
    color: var(--primary);
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    transition: color var(--transition);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition);
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: #0056b3;
}

/* Active nav link */
nav a.active {
    color: var(--primary);
}

nav a.active::after {
    width: 100%;
}

/* Burger Button (hidden on desktop) */
.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
    padding: 4px;
    line-height: 0;
}

/* Mobile Drawer */
.mobile-nav {
    display: none;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--white);
    z-index: 999;
    flex-direction: column;
    padding: 32px 40px;
    gap: 24px;
    border-top: 1px solid var(--border);
    overflow-y: auto;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    color: var(--primary);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    transition: color var(--transition);
}

.mobile-nav a:hover {
    color: #0056b3;
}

/* =====================================================
   HERO — Homepage
   ===================================================== */
.hero {
    width: 100%;
    min-height: clamp(260px, 40vw, 400px);
    background: #c8cdd5 url('../images/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 {
    display: inline-block;
    background: var(--white);
    color: var(--primary);
    padding: 13px 32px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background var(--transition), transform var(--transition);
}

.hero-cta:hover {
    background: var(--off-white);
    transform: translateY(-2px);
}

.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('../images/workers.jpeg');
}

.page-hero-services {
    background-image: url('../images/A_dynamic,_wide-angle_202604152314.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 {
    background: var(--white);
    padding: 28px;
    border-top: 3px solid var(--primary);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.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 {
    background: var(--white);
    padding: 24px;
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.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 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 20px;
}

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

.services-grid 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 {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.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 {
    background: var(--white);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border-bottom: 3px solid var(--primary);
    transition: transform var(--transition);
}

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

.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 {
    background: var(--white);
    padding: 28px;
    border-top: 3px solid var(--primary);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.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;
}

.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;
}

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

.csi-card {
    padding: 28px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--primary);
}

.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 {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.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);
}

.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);
}

/* 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;
}

/* =====================================================
   FOOTER
   ===================================================== */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 60px 40px 28px;
}

.footer-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr 1.5fr;
    gap: 32px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 20px;
}

.footer-col ul li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #aec4db;
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #aec4db;
    transition: color var(--transition);
}

.footer-col ul li a:hover {
    color: var(--white);
}

.footer-icon {
    flex-shrink: 0;
    opacity: 0.7;
}

.footer-map {
    width: 100%;
    height: 100px;
    border: none;
    margin-top: 0;
    filter: grayscale(60%) contrast(1.1);
    transition: filter var(--transition);
}

.footer-map:hover {
    filter: grayscale(0%) contrast(1);
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    font-size: 11.5px;
    color: #aec4db;
}

.footer-bottom-reg {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Footer logo in dark bg */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo img {
    height: 40px;
    width: auto;
    filter: brightness(10);
}

.footer-logo-text {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.footer-logo-text small {
    display: block;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #aec4db;
}

.footer-desc {
    font-size: 13px;
    color: #aec4db;
    line-height: 1.7;
    margin-bottom: 16px;
}

/* =====================================================
   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;
}

/* =====================================================
   CAREERS
   ===================================================== */
.careers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.job-card {
    background: var(--white);
    padding: 24px;
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.job-card h3 {
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.job-card p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-apply {
    display: inline-block;
    background: var(--off-white);
    color: var(--primary);
    padding: 10px 24px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background var(--transition), color var(--transition);
    border: 1px solid var(--border);
}

.btn-apply:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

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

/* =====================================================
   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;
    }

    .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(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);
    }
}