/* ===========================
   SteppingStone Company Profile
   CSS Stylesheet — Pixel-Perfect PDF Layout
   =========================== */

:root {
    --primary: #1a3a5c;
    --primary-light: #2a5a8c;
    --primary-dark: #0f2640;
    --secondary: #2e7d32;
    --secondary-light: #43a047;
    --secondary-dark: #1b5e20;
    --dark-green: #1A3A2A;
    --dark-green-light: #2A5A3A;
    --accent: #f9a825;
    --accent-light: #fbc02d;
    --dark: #0d1b2a;
    --darker: #091420;
    --light: #f5f5f5;
    --gray-bg: #f8f9fa;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --border: #e0e0e0;
    --qhse-green: #2e7d32;
    --qhse-bg: #e8f5e9;
    --white: #ffffff;
    --page-width: 1200px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

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

ul {
    list-style: none;
}

.text-center { text-align: center; }
.mt-2 { margin-top: 32px; }
.mt-3 { margin-top: 48px; }

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgb(0, 0, 0);
    transition: all 0.35s ease;
    height: 72px;
    border-bottom: 2px solid rgba(13,27,42,0.95);
    
}

.navbar.scrolled {
    background: rgb(0, 0, 0);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    z-index: 10;
}

.nav-logo img {
    height: 55px;
    width: auto;
    object-fit: contain;
}

.nav-logo-text {
    display: block;
}

.nav-logo-name {
    display: block;
    color: var(--white);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.5;
    transition: color 0.35s;
}

/* .navbar.scrolled .nav-logo-name {
    color: var(--primary);
} */

.nav-logo-tagline {
    display: block;
    color: var(--secondary-light);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.3px;
    transition: color 0.35s;
}

.navbar.scrolled .nav-logo-tagline {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
}

.nav-links > li > a {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--accent);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* .navbar.scrolled .nav-links > li > a {
    color: var(--primary);
} */

    .nav-links > li > a:hover,
    .nav-links > li > a.active {
        color: var(--secondary);
        background: var(--qhse-bg);
    }

.navbar.scrolled .nav-links > li > a:hover,
.navbar.scrolled .nav-links > li > a.active {
    color: var(--secondary);
    background: var(--qhse-bg);
}

.icon-chevron-down {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 2px;
    transition: transform 0.3s;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 290px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 100;
    padding: 8px 0;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    color: var(--primary);
    transition: all 0.2s;
}

.dropdown-menu li a:hover {
    color: var(--secondary);
    background: var(--qhse-bg);
    padding-left: 24px;
}

/* CTA Button */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    font-family: inherit;
}

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

.btn-cta:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46,125,50,0.3);
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
    padding: 12px 30px;
}

.btn-primary:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
    padding: 12px 30px;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
}

/* Nav Toggle (Hamburger) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s;
}

/* .navbar.scrolled .nav-toggle span {
    background: var(--primary);
} */

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 9998;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    padding: 16px 0;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu ul {
    list-style: none;
    padding: 0 16px;
}

.mobile-menu > ul > li > a {
    display: block;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--primary);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.mobile-menu > ul > li > a:hover {
    background: var(--qhse-bg);
    color: var(--secondary);
}

.mobile-submenu {
    padding-left: 16px;
    display: none;
}

.mobile-submenu.open {
    display: block;
}

.mobile-submenu a {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--text-light);
    transition: all 0.2s;
}

.mobile-submenu a:hover {
    color: var(--secondary);
}

@media (max-width: 1024px) {
    .nav-links, .btn-cta {
        display: none;
    }
    .nav-toggle {
        display: flex;
    }
    
}

/* ================================================================
   HERO / COVER (PAGE 1)
   ================================================================ */
/* ================================================================
   HERO — Dynamic Slideshow
   ================================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Slideshow */
.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
    transform: scale(1.05);
    transition: opacity 1.2s ease, transform 7s ease;
}
.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-slide.hero-slide-fit {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: rgba(9, 20, 32, 0.55);
    transform: none;
}

.hero-slide.hero-slide-fit.active {
    transform: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        120deg,
        rgba(9, 20, 32, 0.78) 0%,
        rgba(16, 78, 52, 0.52) 45%,
        rgba(9, 20, 32, 0.82) 100%
    );
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* background-image: */
        /* linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), */
        /* linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px); */
    background-size: 60px 60px;
    pointer-events: none;
}

/* Hero content layout */
.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    justify-items: start;
    gap: clamp(28px, 5vw, 80px);
    padding: 140px 0 180px;
    width: 100%;
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    max-width: 100%;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--accent);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-badge--top {
    grid-column: 1 / -1;
    justify-self: center;
    text-align: center;
    margin-bottom: 8px;
}
.badge-line {
    display: block;
    width: 32px;
    height: 1px;
    background: var(--accent);
    opacity: 0.7;
}

/* Title */
.hero-title {
    font-size: clamp(2.6rem, 5.5vw, 2.2rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}
.line-wrap { display: block; 
/* overflow: hidden;  */
}
.line { display: block; }
.hero-title .accent {
    background: linear-gradient(135deg, #fff6cc 0%, #f9e27d 22%, #d4af37 50%, #f6d365 78%, #b8860b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 1px 8px rgba(212, 175, 55, 0.25);
}

/* Description */
.hero-desc {
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 36px;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Action buttons */
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(8px);
    transition: all 0.3s;
    cursor: pointer;
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.5);
}
.btn-ghost-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}
.btn-ghost-icon svg { color: var(--dark); }

/* Hero card */
.hero-card {
    flex-shrink: 0;
    width: 300px;
}
.hero-card-inner {
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
}
.hero-card-icon {
    font-size: 32px;
    margin-bottom: 10px;
}
.hero-card-inner h3 {
    color: var(--white);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
}
.hero-card-inner > p {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    margin-bottom: 18px;
}
.hero-card-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.hero-card-form select,
.hero-card-form input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.25s;
}
.hero-card-form select option { background: var(--dark); color: var(--white); }
.hero-card-form select:focus,
.hero-card-form input:focus { border-color: var(--accent); }
.hero-card-form input::placeholder { color: rgba(255,255,255,0.35); }
.hero-card-form .btn { width: 100%; justify-content: center; margin-top: 4px; }

/* Slide controls */
.hero-controls {
    position: absolute;
    bottom: 130px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 16px;
}
.slide-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s;
}
.slide-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--dark); }
.slide-dots { display: flex; gap: 8px; align-items: center; }
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transition: all 0.3s;
    cursor: pointer;
}
.dot.active { background: var(--accent); transform: scale(1.3); }

/* Stats bar */
.hero-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    background: rgba(13,27,42,0.75);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 18px 0;
}
.hero-stats .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 40px;
    gap: 2px;
}
.stat-number {
    font-size: 26px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}
.stat-suffix {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
}
.stat-label {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    white-space: nowrap;
}
.stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.12);
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .hero-card { display: none; }
    .hero-content {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 130px 0 180px;
        justify-content: flex-start;
    }
}
/* @media (max-width: 768px) {
        .hero-content {
        padding: 130px 24px 180px;
        justify-content: flex-start;
    }
    .hero-left {     flex: 1;
    max-width: 640px; }
    .hero-actions { align-items: center; justify-content: center; }
    .hero-badge { font-size: 10px; gap: 8px; letter-spacing: 1.5px; flex-wrap: wrap; }
    .badge-line { width: 20px; }
    .hero-title { font-size: clamp(2rem, 7vw, 2.8rem); margin-bottom: 16px; }
    .hero-desc { font-size: 14px; margin-bottom: 24px; max-width: 100%; }
    .stat-item { padding: 0 18px; }
    .stat-number { font-size: 20px; }
    .hero-controls { bottom: 120px; }
        .hero-footer-row {
        gap: 8px;
        align-items: center;
    }
} */
@media (max-width: 480px) {
     .hero-content {
        padding: 130px 0 180px;
        justify-content: flex-start;
    }
    .hero-left {     flex: 1;
    max-width: 640px; }
    .hero-actions { align-items: flex-start; }
    .hero-badge { font-size: 10px; gap: 8px; letter-spacing: 1.5px; flex-wrap: wrap; }
    .badge-line { width: 20px; }
    .hero-title { font-size: 15px; margin-bottom: 16px; }
    .hero-desc { font-size: 14px; margin-bottom: 24px; max-width: 100%; }
    .stat-item { padding: 0 18px; }
    .stat-number { font-size: 20px; }
    .hero-controls { bottom: 120px; }
        .hero-footer-row {
        gap: 8px;
        align-items: center;
    }
}

/* ================================================================
   HERO — Company Info Footer Bar
   ================================================================ */
.hero-footer {
    position: relative;
    z-index: 3;
    /* background: var(--dark-green); */
    border-top: none;
}

.hero-footer-accent-top {
    height: 2px;
    background: var(--accent);
}

.hero-footer-accent-bottom {
    height: 2px;
    background: var(--accent);
}

/* .hero-footer-inner {
    padding: 16px 24px;
} */

.hero-footer-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.hero-footer-row + .hero-footer-row {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(249, 168, 37, 0.2);
}

.hero-footer-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    white-space: nowrap;
}

.hero-footer-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.5px;
}

.hero-footer-value {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.3px;
}

.hero-footer-icon {
    color: var(--accent);
    flex-shrink: 0;
}

.hero-footer-vdivider {
    width: 1px;
    height: 25px;
    background: var(--accent);
    opacity: 0.5;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .hero-footer-row {
        flex-wrap: wrap;
        gap: 6px 0;
    }
    .hero-footer-item {
        padding: 4px 12px;
        white-space: normal;
    }
    .hero-footer-vdivider {
        height: 18px;
    }
}

@media (max-width: 768px) {
    .hero-stats {
        padding: 12px 0;
    }
    .hero-footer-row {
        /* flex-direction: column; */
        gap: 8px;
        align-items: center;
    }
    /* .hero-footer-vdivider {
        display: none;
    } */
    .hero-footer-item {
        padding: 4px 0;
        white-space: normal;
        font-size: 12px;
    }
    .hero-footer-label {
        font-size: 11px;
    }
    .hero-footer-value {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        padding: 10px 0;
        position: relative;
    }
    .hero-footer-row {
        gap: 6px;
    }
    .hero-footer-item {
        gap: 6px;
        font-size: 11px;
    }
    .hero-footer-label {
        font-size: 10px;
    }
    .hero-footer-value {
        font-size: 11px;
    }
    .hero-footer-icon {
        width: 14px;
        height: 14px;
    }
    .hero-footer-icon svg {
        width: 14px;
        height: 14px;
    }
}

/* ================================================================
   PAGE SECTIONS (Common Layout for Pages 2-11)
   ================================================================ */
.page-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.page-section--gray {
    /* background: var(--gray-bg); */
}

.page-inner {
    display: flex;
    /* flex-direction: column; */
    min-height: 100vh;
    width: 100%;
}

/* ---- PAGE HEADER BAR ---- */
.page-header-bar {
    background: var(--white);
    position: sticky;
    top: 72px;
    z-index: 50;
    border-bottom: 1px solid var(--border);
}

.page-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    min-height: 56px;
}

.page-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.page-header-text {
    display: flex;
    flex-direction: column;
}

.page-header-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.page-header-tag {
    font-size: 8px;
    font-weight: 600;
    color: var(--secondary);
    letter-spacing: 2px;
}

/* QHSE Mini Banner */
.qhse-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--qhse-bg);
    border-left: 3px solid var(--qhse-green);
    padding: 6px 14px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    max-width: 520px;
}

.qhse-logo-small {
    height: 20px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.qhse-mini span {
    font-size: 9px;
    font-weight: 600;
    color: var(--qhse-green);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

/* Page Accent Line */
.page-accent-line {
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
}

/* ---- PAGE BODY ---- */
.page-body {
    flex: 1;
    padding: 0 0;
}
.page-body-toc {
    flex: 1;
    padding: 20px 10px;
}


/* ---- PAGE FOOTER BAR ---- */
.page-footer-bar {
    background: var(--dark);
    padding: 14px 0;
    text-align: center;
}

.page-footer-bar span {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    font-weight: 400;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .page-header-inner {
        flex-direction: column;
        gap: 8px;
        padding: 10px 16px;
    }
    .qhse-mini {
        max-width: 100%;
    }
    .page-body {
        padding: 10px 20px;
    }
}

/* ================================================================
   SECTION TITLE BLOCK
   ================================================================ */
.section-title-block {
    margin-bottom: 28px;
	margin-top:10px;
}

.section-title-main {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.section-title-sub {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 400;
    margin-bottom: 8px;
}

.section-title-accent {
    width: 25%;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* ================================================================
   SECTION BANNER IMAGES
   ================================================================ */
.section-banner-img {
    /* border-radius: var(--radius-lg); */
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    max-height: 260px;
}

.section-banner-img img {
    /* width: 100%; */
    height: 100%;
    max-height: 260px;
    object-fit: cover;
    display: block;
}

/* ================================================================
   BODY TEXT
   ================================================================ */
.body-text-justified {
    text-align: justify;
    font-size: 14px;
    color: var(--text);
    line-height: 1.75;
    margin-bottom: 24px;
    max-width: 100%;
}

/* ================================================================
   INFO CARDS (3-column row)
   ================================================================ */
.info-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.info-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all 0.3s;
}

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

.info-card--green-border {
    border-left: 4px solid var(--secondary);
}

.info-card h4 {
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

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

@media (max-width: 768px) {
    .info-cards-row {
        grid-template-columns: 1fr;
    }
}

/* ================================================================
   VISION / MISSION CARDS
   ================================================================ */
.vision-mission-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.vision-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-lg);
    padding: 32px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.vision-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.vision-card h3 {
    color: var(--accent);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.vision-card p {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    line-height: 1.75;
}

.mission-card {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary));
    border-radius: var(--radius-lg);
    padding: 32px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.mission-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.mission-card h3 {
    color: var(--accent);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.mission-card p {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    line-height: 1.75;
}

@media (max-width: 768px) {
    .vision-mission-row {
        grid-template-columns: 1fr;
    }
}

/* ================================================================
   NOTE BOXES
   ================================================================ */
.note-box {
    padding: 16px 20px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: 13px;
    line-height: 1.65;
    margin-bottom: 24px;
}

.note-box--blue {
    background: #e3f2fd;
    border-left: 4px solid var(--primary);
    color: var(--primary-dark);
}

.note-box--amber {
    background: #fff8e1;
    border-left: 4px solid var(--accent);
    color: #e65100;
}

.note-box strong {
    display: inline;
    font-weight: 700;
}

/* ================================================================
   VALUE CARDS (2 rows x 3)
   ================================================================ */
.values-heading {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    margin-top: 8px;
}

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

.value-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-md);
    padding: 22px 16px;
    text-align: center;
    color: var(--white);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.value-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
}

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

.value-card h4 {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.value-card p {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

/* ================================================================
   ORG CHART
   ================================================================ */
.org-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin: 30px 0 24px;
}

.org-box {
    border-radius: var(--radius-md);
    padding: 16px 32px;
    text-align: center;
    transition: all 0.3s;
}

.org-box:hover {
    transform: scale(1.02);
}

.org-box strong {
    font-size: 13px;
    display: block;
}

.org-box small, .org-box span {
    font-size: 11px;
    display: block;
    margin-top: 2px;
}

.org-box--ceo {
    background: var(--primary);
    color: var(--white);
    padding: 18px 44px;
    box-shadow: 0 4px 15px rgba(26,58,92,0.3);
}

.org-box--ceo small {
    color: rgba(255,255,255,0.7);
}

.org-box--md {
    background: var(--secondary);
    color: var(--white);
    padding: 18px 44px;
    box-shadow: 0 4px 15px rgba(46,125,50,0.3);
}

.org-box--md small {
    color: rgba(255,255,255,0.7);
}

.org-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.org-line-v {
    width: 2px;
    height: 24px;
    background: var(--primary);
}

.org-line-h {
    display: none;
}

.org-branches {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 860px;
    width: 100%;
    position: relative;
}

.org-branch-connector {
    display: none;
}

.org-box--dept {
    background: var(--white);
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 16px 12px;
}

.org-box--dept strong {
    color: var(--primary);
    font-size: 12px;
    margin-bottom: 6px;
}

.org-box--dept span {
    color: var(--text-light);
    font-size: 10.5px;
}

@media (max-width: 768px) {
    .org-branches {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ================================================================
   WHY CHOOSE US CARDS (2x3)
   ================================================================ */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.why-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all 0.3s;
}

.why-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--secondary);
}

.why-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--qhse-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: var(--secondary);
    transition: all 0.3s;
}

.why-card:hover .why-icon-wrap {
    background: var(--secondary);
    color: var(--white);
}

.why-card h4 {
    color: var(--primary);
    font-size: 14.5px;
    font-weight: 700;
    margin-bottom: 8px;
}

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

@media (max-width: 768px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================================================
   SERVICE PORTFOLIO GRID (3x3)
   ================================================================ */
.service-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.svc-portfolio-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--secondary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 14px 16px;
    font-size: 13px;
    color: var(--text);
    transition: all 0.3s;
}

.svc-portfolio-item:hover {
    box-shadow: var(--shadow-sm);
    border-left-color: var(--accent);
}

.svc-num {
    background: var(--secondary);
    color: var(--white);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .service-portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================================================
   TWO-COLUMN BULLET LISTS
   ================================================================ */
.two-col-bullets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 32px;
    margin-bottom: 24px;
}

.bullet-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.55;
}

.bullet-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--secondary);
}

@media (max-width: 768px) {
    .two-col-bullets {
        grid-template-columns: 1fr;
    }
}

/* ================================================================
   DETAIL GRID (text + image side by side)
   ================================================================ */
.detail-grid {
    display: grid;
    /* grid-template-columns: 1fr 1fr; */
    gap: 36px;
    align-items: center;
    /* margin-bottom: 24px; */
}

.detail-img {
    /* border-radius: var(--radius-lg); */
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.detail-img img {
    width: 100%;
    display: block;
}

@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================================================
   TABLE OF CONTENTS
   ================================================================ */
.toc-section {
    background: var(--white);
}

.toc-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* padding-top: 72px; */
    /* padding-bottom: 48px; */
}
.toc-content-header {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 72px;
    padding-bottom: 48px;
}

.toc-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.toc-accent {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 0 auto 40px;
}

.toc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 40px;
    width: 100%;
    max-width: 800px;
}

.toc-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s;
}

.toc-item:hover {
    padding-left: 8px;
    border-bottom-color: var(--secondary);
}

.toc-num {
    background: var(--primary);
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.toc-text {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
}

/* @media (max-width: 768px) {
    .toc-grid {
        grid-template-columns: 1fr;
    }
} */

/* ================================================================
   ENVIRONMENTAL SERVICES
   ================================================================ */
.env-capabilities-heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 32px 0 16px;
    text-align: center;
}

.env-image-wrap {
    /* border-radius: var(--radius-lg); */
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
}

.env-image-wrap img {
    width: 100%;
    display: block;
}

.env-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.env-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--qhse-bg);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text);
    transition: all 0.3s;
}

.env-item:hover {
    background: #c8e6c9;
}

.env-num {
    background: var(--secondary);
    color: var(--white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .env-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================================================
   EQUIPMENT
   ================================================================ */
.equip-image-wrap {
    /* border-radius: var(--radius-lg); */
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
}

.equip-image-wrap img {
    width: 100%;
    display: block;
}

.equip-items-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.equip-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 12px;
    text-align: center;
    transition: all 0.3s;
}

.equip-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.equip-num {
    background: var(--primary);
    color: var(--white);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    margin: 0 auto 10px;
}

.equip-item h5 {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .equip-items-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .equip-items-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ================================================================
   MANPOWER CARDS
   ================================================================ */
.manpower-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.manpower-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    transition: all 0.3s;
}

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

.manpower-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--qhse-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    color: var(--secondary);
}

.manpower-card h4 {
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

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

@media (max-width: 768px) {
    .manpower-cards {
        grid-template-columns: 1fr;
    }
}

/* ================================================================
   ISO CERTIFICATION CARDS
   ================================================================ */
.iso-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.iso-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    color: var(--white);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.iso-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent);
}

.iso-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(26,58,92,0.3);
}

.iso-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

.iso-card h4 {
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.iso-card p {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .iso-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ================================================================
   CLIENT CARDS
   ================================================================ */
.client-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.client-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: 20px 16px;
    text-align: center;
    transition: all 0.3s;
}

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

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

.client-card p {
    font-size: 11px;
    color: var(--text-light);
}

.client-logos-row {
    display: grid;
    /* grid-template-columns: 1fr 1fr; */
    gap: 20px;
    margin-bottom: 24px;
}

.client-logo-img {
    /* border-radius: var(--radius-lg); */
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--white);
    padding: 12px;
}

.client-logo-img img {
    width: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .client-cards-grid {
        grid-template-columns: 1fr;
    }
    .client-logos-row {
        grid-template-columns: 1fr;
    }
}

/* ================================================================
   PROJECT REFERENCES
   ================================================================ */
.project-ref-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 24px 0 16px;
    text-align: center;
    letter-spacing: 1px;
}

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

.project-ref-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text);
    transition: all 0.3s;
}

.project-ref-item:hover {
    border-color: var(--secondary);
    box-shadow: var(--shadow-sm);
}

.proj-arrow {
    color: var(--secondary);
    font-size: 10px;
    flex-shrink: 0;
}

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

/* ================================================================
   BACK COVER / CONTACT (PAGE 12)
   ================================================================ */
.back-cover {
    background: var(--dark);
    color: var(--white);
    overflow: hidden;
}

.back-cover-inner {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 60px;
}

.back-cover-image {
    position: absolute;
    inset: 0;
}

.back-cover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.back-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(13,27,42,0.95) 0%,
        rgba(26,58,92,0.88) 50%,
        rgba(13,27,42,0.95) 100%
    );
}

.back-cover-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
}

.back-cover-logo {
    height: 64px;
    width: auto;
    object-fit: contain;
    margin: 0 auto 28px;
    filter: brightness(0) invert(1);
}

.back-cover-content h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.back-cover-tagline {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 28px;
}

.back-cover-divider {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 0 auto 28px;
}

.back-cover-inquiry {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin-bottom: 32px;
}

.contact-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 36px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 14px;
    /* background: rgba(255,255,255,0.05); */
    background-color: #1b5e20;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    text-align: left;
    transition: all 0.3s;
}

.contact-detail:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

.contact-detail-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(249,168,37,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
}

.contact-label {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.contact-value {
    display: block;
    font-size: 14px;
    color: var(--white);
    font-weight: 600;
}

.back-cover-reg {
    margin-top: 16px;
    font-size: 12px;
    /* color: rgba(255,255,255,0.3); */
    columns: var(--white);
}

@media (max-width: 768px) {
    .contact-details-grid {
        grid-template-columns: 1fr;
    }
    .back-cover-inner {
        padding: 100px 16px 40px;
    }
}

/* ================================================================
   GLOBAL FOOTER
   ================================================================ */
.global-footer {
    background: var(--darker);
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    height: 28px;
    width: auto;
    opacity: 0.4;
    object-fit: contain;
}

.footer-left span {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
}

.footer-right {
    display: flex;
    gap: 20px;
}

.footer-right a {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    transition: color 0.3s;
}

.footer-right a:hover {
    color: var(--accent);
}

/* ================================================================
   BACK TO TOP BUTTON
   ================================================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(26,58,92,0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

/* ================================================================
   ANIMATIONS
   ================================================================ */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children animation */
.fade-in.visible .info-card,
.fade-in.visible .value-card,
.fade-in.visible .why-card,
.fade-in.visible .svc-portfolio-item,
.fade-in.visible .env-item,
.fade-in.visible .equip-item,
.fade-in.visible .iso-card,
.fade-in.visible .client-card,
.fade-in.visible .manpower-card,
.fade-in.visible .toc-item,
.fade-in.visible .project-ref-item {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.fade-in.visible .info-card:nth-child(1),
.fade-in.visible .value-card:nth-child(1),
.fade-in.visible .why-card:nth-child(1),
.fade-in.visible .svc-portfolio-item:nth-child(1),
.fade-in.visible .env-item:nth-child(1),
.fade-in.visible .equip-item:nth-child(1),
.fade-in.visible .iso-card:nth-child(1),
.fade-in.visible .client-card:nth-child(1),
.fade-in.visible .manpower-card:nth-child(1),
.fade-in.visible .toc-item:nth-child(1),
.fade-in.visible .project-ref-item:nth-child(1) { animation-delay: 0.05s; }

.fade-in.visible .info-card:nth-child(2),
.fade-in.visible .value-card:nth-child(2),
.fade-in.visible .why-card:nth-child(2),
.fade-in.visible .svc-portfolio-item:nth-child(2),
.fade-in.visible .env-item:nth-child(2),
.fade-in.visible .equip-item:nth-child(2),
.fade-in.visible .iso-card:nth-child(2),
.fade-in.visible .client-card:nth-child(2),
.fade-in.visible .manpower-card:nth-child(2),
.fade-in.visible .toc-item:nth-child(2),
.fade-in.visible .project-ref-item:nth-child(2) { animation-delay: 0.1s; }

.fade-in.visible .info-card:nth-child(3),
.fade-in.visible .value-card:nth-child(3),
.fade-in.visible .why-card:nth-child(3),
.fade-in.visible .svc-portfolio-item:nth-child(3),
.fade-in.visible .env-item:nth-child(3),
.fade-in.visible .equip-item:nth-child(3),
.fade-in.visible .iso-card:nth-child(3),
.fade-in.visible .client-card:nth-child(3),
.fade-in.visible .manpower-card:nth-child(3),
.fade-in.visible .toc-item:nth-child(3),
.fade-in.visible .project-ref-item:nth-child(3) { animation-delay: 0.15s; }

.fade-in.visible .value-card:nth-child(4),
.fade-in.visible .why-card:nth-child(4),
.fade-in.visible .svc-portfolio-item:nth-child(4),
.fade-in.visible .env-item:nth-child(4),
.fade-in.visible .equip-item:nth-child(4),
.fade-in.visible .iso-card:nth-child(4),
.fade-in.visible .toc-item:nth-child(4),
.fade-in.visible .project-ref-item:nth-child(4) { animation-delay: 0.2s; }

.fade-in.visible .value-card:nth-child(5),
.fade-in.visible .why-card:nth-child(5),
.fade-in.visible .svc-portfolio-item:nth-child(5),
.fade-in.visible .env-item:nth-child(5),
.fade-in.visible .equip-item:nth-child(5),
.fade-in.visible .toc-item:nth-child(5),
.fade-in.visible .project-ref-item:nth-child(5) { animation-delay: 0.25s; }

.fade-in.visible .value-card:nth-child(6),
.fade-in.visible .why-card:nth-child(6),
.fade-in.visible .svc-portfolio-item:nth-child(6),
.fade-in.visible .env-item:nth-child(6),
.fade-in.visible .equip-item:nth-child(6),
.fade-in.visible .toc-item:nth-child(6),
.fade-in.visible .project-ref-item:nth-child(6) { animation-delay: 0.3s; }

.fade-in.visible .svc-portfolio-item:nth-child(7),
.fade-in.visible .env-item:nth-child(7),
.fade-in.visible .toc-item:nth-child(7),
.fade-in.visible .project-ref-item:nth-child(7) { animation-delay: 0.35s; }

.fade-in.visible .svc-portfolio-item:nth-child(8),
.fade-in.visible .env-item:nth-child(8),
.fade-in.visible .toc-item:nth-child(8),
.fade-in.visible .project-ref-item:nth-child(8) { animation-delay: 0.4s; }

.fade-in.visible .svc-portfolio-item:nth-child(9),
.fade-in.visible .env-item:nth-child(9),
.fade-in.visible .toc-item:nth-child(9),
.fade-in.visible .project-ref-item:nth-child(9) { animation-delay: 0.45s; }

.fade-in.visible .env-item:nth-child(10),
.fade-in.visible .toc-item:nth-child(10),
.fade-in.visible .project-ref-item:nth-child(10) { animation-delay: 0.5s; }

.fade-in.visible .toc-item:nth-child(11) { animation-delay: 0.55s; }
.fade-in.visible .toc-item:nth-child(12) { animation-delay: 0.6s; }
.fade-in.visible .toc-item:nth-child(13) { animation-delay: 0.65s; }
.fade-in.visible .toc-item:nth-child(14) { animation-delay: 0.7s; }
.fade-in.visible .toc-item:nth-child(15) { animation-delay: 0.75s; }
.fade-in.visible .toc-item:nth-child(16) { animation-delay: 0.8s; }
.fade-in.visible .toc-item:nth-child(17) { animation-delay: 0.85s; }

.fade-in.visible .project-ref-item:nth-child(10) { animation-delay: 0.5s; }
.fade-in.visible .project-ref-item:nth-child(11) { animation-delay: 0.55s; }
.fade-in.visible .project-ref-item:nth-child(12) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================================
   SCROLLBAR
   ================================================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* ================================================================
   PRINT STYLES
   ================================================================ */
@media print {
    .navbar, .back-to-top, .global-footer {
        display: none !important;
    }
    .page-header-bar {
        position: static;
    }
    .hero {
        min-height: auto;
        page-break-after: always;
    }
    .page-section {
        page-break-after: always;
        min-height: auto;
    }
}

/* ================================================================
   TOP CONSTRUCTION BANNER
   ================================================================ */
.construction-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: linear-gradient(90deg, #0f2640, #1a3a5c, #0f2640);
    background-size: 200% 100%;
    animation: constructionShimmer 3s ease-in-out infinite;
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(249, 168, 37, 0.35);
}

.construction-banner.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
}

@keyframes constructionShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.construction-banner-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 48px;
    max-width: var(--page-width);
    margin: 0 auto;
    position: relative;
}

.construction-banner-icon {
    flex-shrink: 0;
    color: #f9a825;
    animation: constructionPulse 2s ease-in-out infinite;
}

@keyframes constructionPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.construction-banner-text {
    font-size: 12.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.94);
    line-height: 1.4;
    text-align: center;
}

.construction-banner-text strong {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.construction-banner-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(249, 168, 37, 0.18);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #f9a825;
    transition: all 0.2s;
    padding: 0;
}

.construction-banner-close:hover {
    background: rgba(249, 168, 37, 0.32);
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
    .construction-banner-inner {
        padding: 8px 36px 8px 12px;
        gap: 8px;
    }
    .construction-banner-text {
        font-size: 11px;
    }
    .construction-banner-icon {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .construction-banner-inner {
        padding: 6px 32px 6px 10px;
        gap: 6px;
    }
    .construction-banner-text {
        font-size: 10px;
    }
}
.construction-banner-icon {
        width: 14px;
        height: 14px;
    }
/* ================================================================
   NOTIFICATION POPUP
   ================================================================ */
.notification-popup {
    position: fixed;
    top: 90px;
    right: 24px;
    z-index: 9999;
    width: 380px;
    max-width: calc(100vw - 48px);
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.notification-popup.visible {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.notification-popup-inner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.notification-popup-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent), #e65100);
}

.notification-popup-icon-wrap {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff8e1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e65100;
}

.notification-popup-content {
    flex: 1;
    min-width: 0;
}

.notification-popup-content h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.notification-popup-content p {
    font-size: 12.5px;
    color: var(--text-light);
    line-height: 1.55;
}

.notification-popup-close {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-popup-close:hover {
    color: var(--text);
    background: var(--gray-bg);
}

.notification-popup-progress {
    height: 3px;
    background: transparent;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    overflow: hidden;
    margin-top: -3px;
}

@keyframes notificationCountdown {
    from { width: 100%; background: var(--accent); }
    to { width: 0%; background: #e65100; }
}

@media (max-width: 768px) {
    .notification-popup {
        right: 12px;
        top: 80px;
        width: 340px;
        max-width: calc(100vw - 24px);
    }
    .notification-popup-inner {
        padding: 14px 16px;
        gap: 10px;
    }
    .notification-popup-icon-wrap {
        width: 38px;
        height: 38px;
    }
    .notification-popup-icon-wrap svg {
        width: 20px;
        height: 20px;
    }
    .notification-popup-content h4 {
        font-size: 13px;
    }
    .notification-popup-content p {
        font-size: 11.5px;
    }
}

@media (max-width: 480px) {
    .notification-popup {
        right: 8px;
        left: 8px;
        top: 76px;
        width: auto;
        max-width: none;
    }
    .notification-popup-inner {
        padding: 12px 14px;
        gap: 10px;
    }
}

/* ================================================================
   RESPONSIVE — Complete Mobile Fix (replaces previous block)
   ================================================================ */

/* ================================================================
   TABLET — max-width: 1024px
   ================================================================ */
@media (max-width: 1024px) {
    .nav-links, .btn-cta { display: none; }
    .nav-toggle { display: flex; }
    .hero-card { display: none; }
    .hero-content { padding: 130px 20px 60px; justify-content: flex-start; }
    .hero-footer-row { flex-wrap: wrap; gap: 4px 0; justify-content: center; }
    .hero-footer-item { padding: 4px 10px; white-space: normal; }
    .hero-footer-vdivider { height: 18px; }
    .org-branches { grid-template-columns: repeat(2, 1fr); }
    .equip-items-row { grid-template-columns: repeat(3, 1fr); }
    .service-portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .iso-grid { grid-template-columns: repeat(2, 1fr); }
    .toc-grid { grid-template-columns: 1fr; gap: 6px 0; }
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
    .footer-right { flex-wrap: wrap; gap: 14px; }
}

/* ================================================================
   MOBILE — max-width: 768px
   THE KEY FIX: hero becomes a flex column so stats bar flows
   naturally at the bottom instead of overlapping content
   ================================================================ */
@media (max-width: 768px) {
    /* Container */
    .container { padding: 0 16px; }

    /* ---- HERO LAYOUT FIX ---- */
    /* Make hero a flex column so stats bar sits below content */
    .hero {
        display: flex;
        flex-direction: column;
        min-height: 100svh;
        min-height: 100vh;
        position: relative;
    }

    /* Hero slides fill the whole hero */
    .hero-slides { position: absolute; inset: 0; }
    .hero-overlay { position: absolute; inset: 0; z-index: 1; }
    .hero-grid-overlay { position: absolute; inset: 0; z-index: 1; }

    /* Content keeps both hero blocks in parallel */
    .hero-content {
        position: relative;
        z-index: 2;
        flex: 1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        justify-items: start;
        gap: 16px;
        padding: 156px 16px 28px;
        width: 100%;
    }

    .hero-left { min-width: 0; }
    .hero-content > .hero-actions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        justify-items: stretch;
    }

    .hero-content > .hero-actions .btn-primary,
    .hero-content > .hero-actions .btn-ghost {
        width: 100%;
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        padding: 8px 10px;
    }

    .hero-content > .hero-actions .btn-ghost-icon {
        width: 20px;
        height: 20px;
    }

    /* Stats bar: pull OUT of absolute, sit at bottom of flex column */
    .hero-stats {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        z-index: 3;
        padding: 12px 0;
        width: 100%;
    }

    /* Slide controls: keep absolute, positioned relative to hero */
    .hero-controls {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        z-index: 4;
        margin: 4px auto 6px;
    }

    /* Info bar stacks vertically */
    .hero-footer-row {
        /* flex-direction: column; */
        align-items: flex-start;
        gap: 4px;
        padding: 0 16px;
        flex-wrap: wrap;
    }
    /* .hero-footer-vdivider { display: none; } */
    .hero-footer-item { white-space: normal; padding: 2px 0; gap: 8px; }
    .hero-footer-label { font-size: 11px; }
    .hero-footer-value { font-size: 12px; }

    /* Hero text */
    .hero-title { font-size: clamp(1rem, 3.2vw, 1.3rem); margin-bottom: 10px; letter-spacing: -0.2px; line-height: 1.2; }
    .hero-desc { font-size: 11px; line-height: 1.45; margin-bottom: 14px; max-width: 100%; overflow-wrap: anywhere; }
    .hero-badge { font-size: 8px; gap: 6px; letter-spacing: 0.6px; flex-wrap: wrap; }
    .badge-line { width: 20px; }
    .hero-left { width: 100%; max-width: 100%; }

    /* Hero actions as a true 2-column row under both panels */
    .btn-primary { width: 100%; justify-content: center; font-size: 12px; padding: 9px 12px; }
    .btn-ghost { width: 100%; justify-content: center; font-size: 12px; padding: 9px 12px; }

    /* Slide controls sizing */
    .slide-btn { width: 34px; height: 34px; }
    .slide-dots .dot { width: 7px; height: 7px; }

    /* ---- PAGE SECTIONS ---- */
    .page-section { min-height: auto; }
    .page-inner { min-height: auto; flex-direction: column; }
    .page-body { padding: 28px 0 36px; }
    .page-body-toc { padding: 28px 0 36px; }
    .back-cover, .back-cover-inner { min-height: auto; }

    /* Section titles */
    .section-title-main { font-size: clamp(1.25rem, 5vw, 1.6rem); }

    /* Info cards */
    .info-cards-row { grid-template-columns: 1fr; }

    /* Vision / Mission */
    .vision-mission-row { grid-template-columns: 1fr; }

    /* Values */
    .values-grid { grid-template-columns: repeat(2, 1fr); }

    /* Org chart */
    .org-branches { grid-template-columns: repeat(2, 1fr); }
    .org-box--ceo, .org-box--md { padding: 14px 24px; }

    /* Why grid */
    .why-grid { grid-template-columns: 1fr; }

    /* Service portfolio */
    .service-portfolio-grid { grid-template-columns: 1fr; }

    /* Bullet lists */
    .two-col-bullets { grid-template-columns: 1fr; }

    /* Detail grid */
    .detail-grid { grid-template-columns: 1fr; }

    /* TOC */
    .toc-grid { grid-template-columns: 1fr; gap: 6px 0; }

    /* Env grid */
    .env-grid { grid-template-columns: 1fr; }

    /* Equipment */
    .equip-items-row { grid-template-columns: repeat(3, 1fr); }

    /* Manpower */
    .manpower-cards { grid-template-columns: 1fr; }

    /* ISO */
    .iso-grid { grid-template-columns: repeat(2, 1fr); }

    /* Client */
    .client-cards-grid { grid-template-columns: 1fr; }
    .client-logos-row { grid-template-columns: 1fr; }

    /* Project ref */
    .project-ref-grid { grid-template-columns: 1fr; }

    /* Service items */
    .svc-portfolio-item { font-size: 13px; padding: 12px 14px; }
    .svc-num { width: 24px; height: 24px; font-size: 11px; }

    /* Back cover */
    .back-cover-inner { padding: 100px 16px 48px; }
    .contact-details-grid { grid-template-columns: 1fr; }
    .back-cover-tagline br { display: none; }

    /* Footer */
    .global-footer { padding: 18px 0; }
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
    .footer-left { flex-wrap: wrap; gap: 8px; }
    .footer-left span { font-size: 11px; }
    .footer-right { flex-wrap: wrap; gap: 12px; }

    /* Page header */
    .page-header-inner { flex-direction: column; gap: 8px; padding: 10px 16px; }
    .qhse-mini { max-width: 100%; }

    /* Back to top */
    .back-to-top { bottom: 20px; right: 16px; width: 40px; height: 40px; }

    /* Notification popup */
    .notification-popup { right: 12px; top: 80px; width: 340px; max-width: calc(100vw - 24px); }
}

/* ================================================================
   Between 481px and 768px — 2-column sweet spot for some grids
   ================================================================ */
@media (min-width: 481px) and (max-width: 768px) {
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .manpower-cards { grid-template-columns: repeat(2, 1fr); }
    .iso-grid { grid-template-columns: repeat(2, 1fr); }
    .info-cards-row { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================================
   MOBILE SMALL — max-width: 480px
   ================================================================ */
@media (max-width: 480px) {
    .container { padding: 0 12px; }

    /* Nav */
    .nav-logo img { height: 45px; }
    .nav-logo-name { font-size: 16px; }
    .nav-logo-tagline { font-size: 9px; letter-spacing: 0.8px; }

    /* Hero */
    .hero-content { padding: 162px 12px 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .hero-title { font-size: 15px; }
    .hero-desc { font-size: 10.5px; line-height: 1.4; }
    .hero-badge { font-size: 7px; }
    .hero-footer-row { padding: 0 12px; }
    .hero-footer-item { font-size: 11px; gap: 6px; }
    .hero-footer-label { font-size: 10px; }
    .hero-footer-value { font-size: 11px; }
    .hero-footer-icon { width: 14px; height: 14px; }
    .hero-stats { padding: 10px 0; }

    /* Grids */
    .values-grid { grid-template-columns: 1fr; }
    .org-branches { grid-template-columns: 1fr; }
    .iso-grid { grid-template-columns: 1fr; }
    .equip-items-row { grid-template-columns: repeat(2, 1fr); }
    .manpower-cards { grid-template-columns: 1fr; }

    /* Back cover */
    .back-cover-inner { padding: 90px 12px 40px; }
    .contact-detail { flex-direction: column; text-align: center; gap: 8px; }
    .contact-detail-icon { margin: 0 auto; }
    .back-cover-content h2 { font-size: clamp(1.1rem, 5.5vw, 1.4rem); line-height: 1.4; }
    .back-cover-reg { font-size: 11px; }

    /* Footer */
    .footer-left { flex-direction: column; align-items: flex-start; }
    .footer-left span { font-size: 10.5px; word-break: break-word; }
    .footer-right { gap: 10px; }

    /* Notification */
    .notification-popup { right: 8px; left: 8px; top: 76px; width: auto; max-width: none; }

    /* Misc */
    .page-body{padding: 20px 10px 0px 10px;} 
    .page-body-toc { padding: 20px 0; }
    .toc-item { gap: 10px; }
    .toc-num { width: 28px; height: 28px; font-size: 12px; }
    .toc-text { font-size: 13px; }
    .note-box { padding: 12px 14px; font-size: 12.5px; }
    .section-title-main { font-size: clamp(1.15rem, 6vw, 1.45rem); }
    .btn-primary, .btn-ghost { font-size: 13px; padding: 11px 18px; }
    .hero-content > .hero-actions .btn-primary,
    .hero-content > .hero-actions .btn-ghost {
        min-height: 42px;
        font-size: 11px;
        padding: 8px 8px;
    }
    .hero-content > .hero-actions .btn-ghost-icon {
        width: 18px;
        height: 18px;
    }
    .org-box { padding: 12px 16px; }
    .org-box strong { font-size: 12px; }
    .org-box small, .org-box span { font-size: 10px; }
}

/* ================================================================
   EXTRA SMALL — max-width: 360px
   ================================================================ */
@media (max-width: 360px) {
    .nav-logo-name { font-size: 14px; }
    .nav-logo-tagline { display: block; }
    .nav-logo img { height: 45px; }
    .hero-content { padding: 176px 10px 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .hero-title { font-size: 15px; }
    .hero-desc { font-size: 10px; line-height: 1.35; }
    .hero-controls { margin: 2px auto 4px; }
    .hero-stats { padding: 8px 0; }
    .equip-items-row { grid-template-columns: repeat(2, 1fr); }
    .why-card, .value-card, .manpower-card { padding: 18px 14px; }
    .contact-value { font-size: 13px; word-break: break-all; }
    .back-to-top { bottom: 16px; right: 12px; }
}

/* ================================================================
   Mobile menu touch scrolling
   ================================================================ */
.mobile-menu { -webkit-overflow-scrolling: touch; }
