/* ═══════════════════════════════════════════════════════════
   JAE.CO.ZA — Global Styles
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --jae-navy: #182556;
    --jae-navy-dark: #1b2557;
    --jae-teal: #74B9BA;
    --jae-lime: #A6C201;
    --jae-yellow-green: #E3EB63;
    --jae-orange: #EE773F;
    --jae-gold: #FCBB03;
    --jae-gray: #F2F2F2;
    --jae-white: #ffffff;
    --jae-text: #333333;
    --jae-text-light: #666666;
    --font-primary: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

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

html, body {
    font-family: var(--font-primary);
    color: var(--jae-text);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

/* ── Utility ── */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 80px 0;
}

/* ═══ NAVBAR ═══ */
.jae-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--jae-white);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
}

.jae-navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.jae-navbar .nav-container {
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    gap: 16px;
}

.jae-navbar .nav-logo {
    display: flex;
    align-items: center;
    margin-right: 36px;
    flex-shrink: 0;
}

.jae-navbar .nav-logo img {
    height: 44px;
    width: auto;
}

.jae-navbar .nav-links {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
    flex: 1;
    margin-left: 0;
    justify-content: center;
}

.jae-navbar .nav-links > li > a,
.jae-navbar .nav-links > li > .nav-dropdown-toggle {
    color: var(--jae-navy);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.3s, color 0.3s;
    white-space: nowrap;
}

.jae-navbar .nav-links > li > a:hover,
.jae-navbar .nav-links > li > a.active {
    background: var(--jae-navy);
    color: var(--jae-white);
}

.nav-dropdown-toggle.active {
    background: var(--jae-navy);
    color: var(--jae-white) !important;
}

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

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-primary);
}

.nav-dropdown-toggle:hover {
    background: var(--jae-navy);
    color: var(--jae-white) !important;
}

.dropdown-chevron {
    transition: transform 0.25s ease;
}

.dropdown-chevron.rotated {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--jae-white);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    border-radius: 8px;
    overflow: hidden;
    padding: 8px 0;
    z-index: 1001;
    list-style: none;
    margin-top: 4px;
}

.nav-dropdown-menu.open {
    display: block;
}

.nav-dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--jae-navy);
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.nav-dropdown-menu li a:hover {
    background: var(--jae-gray);
    color: var(--jae-orange);
}

.dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 4px 12px;
}

.nav-submenu {
    position: relative;
}

.nav-submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 20px;
    background: none;
    border: none;
    color: var(--jae-navy);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.nav-submenu-toggle:hover {
    background: var(--jae-gray);
    color: var(--jae-orange);
}

.nav-submenu-menu {
    display: none;
    list-style: none;
    padding: 6px 0 6px 12px;
    margin: 0;
}

.nav-submenu-menu.open {
    display: block;
}

.nav-submenu-menu li a {
    padding: 8px 20px;
    font-size: 0.82rem;
}

/* ── Search bar ── */
.nav-search {
    position: relative;
    margin-left: auto;
    flex-shrink: 0;
}

.nav-search input {
    width: 200px;
    padding: 8px 36px 8px 14px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.3s, width 0.3s;
    background: var(--jae-gray);
}

.nav-search input:focus {
    border-color: var(--jae-orange);
    width: 240px;
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--jae-text-light);
    pointer-events: none;
}

.nav-search-results {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    max-height: 360px;
    overflow-y: auto;
    background: var(--jae-white);
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    box-shadow: 0 16px 30px rgba(0,0,0,0.15);
    z-index: 1002;
    padding: 8px 0;
}

.nav-search-result {
    display: block;
    padding: 10px 14px;
    color: var(--jae-navy);
    border-bottom: 1px solid #f0f0f0;
}

.nav-search-result:last-child {
    border-bottom: none;
}

.nav-search-result:hover {
    background: var(--jae-gray);
    color: var(--jae-orange);
}

.nav-search-result-title {
    font-size: 0.86rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.nav-search-result-snippet {
    font-size: 0.75rem;
    color: var(--jae-text-light);
}

.nav-search-empty {
    padding: 12px 14px;
    font-size: 0.8rem;
    color: var(--jae-text-light);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--jae-navy);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 8px;
}

@media (max-width: 1024px) {
    .jae-navbar .nav-container {
        justify-content: space-between;
    }
    .jae-navbar .nav-logo {
        margin-right: 0;
        order: 1;
    }
    .nav-toggle {
        display: block;
        order: 3;
        margin-left: auto;
    }
    .nav-search {
        order: 2;
        margin: 0 auto;
        flex: 1;
        display: flex;
        justify-content: center;
        width: 100%;
        max-width: 360px;
    }
    .nav-search input {
        width: 100%;
        max-width: 360px;
        transition: border-color 0.3s ease;
    }
    .nav-search input:focus {
        width: 100%;
    }
    .search-icon {
        right: 14px;
    }
    .jae-navbar .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--jae-white);
        flex-direction: column;
        padding: 20px;
        gap: 4px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    }
    .jae-navbar .nav-links.open {
        display: flex;
    }
    .jae-navbar .nav-links > li > a,
    .jae-navbar .nav-links > li > .nav-dropdown-toggle {
        width: 100%;
        padding: 12px 16px;
    }
    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        margin-top: 0;
        border-left: 3px solid var(--jae-orange);
        border-radius: 0;
        padding-left: 8px;
    }
    .nav-submenu-menu {
        padding-left: 16px;
    }
    .jae-navbar .nav-links {
        order: 4;
    }

    .nav-search-results {
        left: 0;
        right: 0;
        width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .jae-navbar .nav-container {
        position: relative;
    }
    .nav-search {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
    }
}

/* ═══ HERO SECTION ═══ */
.simple-hero {
    position: relative;
    height: 85vh;
    overflow: hidden;
}

.simple-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20px;
    display: block;
}

.simple-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    pointer-events: none;
}

.simple-hero-overlay-inner {
    width: 67%;
    padding-left: 8%;
    color: var(--jae-white);
    text-align: left;
    text-transform: uppercase;
}

.simple-hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.simple-hero-subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.surface-mining-hero .simple-hero {
    background: #0f1f3b;
}

.surface-mining-hero .simple-hero-image {
    transform: none;
}

.milestones-hero .simple-hero {
    background: #111111;
}

.milestones-hero .simple-hero-image {
    object-position: center;
    filter: sepia(0.45) contrast(1.08) saturate(0.85) brightness(0.95);
}

.milestones-hero .simple-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0.35) 70%, rgba(0,0,0,0.55) 100%),
        linear-gradient(0deg, rgba(255,255,255,0.06), rgba(255,255,255,0.06));
    pointer-events: none;
}

/* ═══ SURFACE MINING PRODUCT GRID ═══ */
.product-grid-section {
    background: #ffffff;
    padding: 48px 0 0;
    position: relative;
}

.product-grid-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.product-grid-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-grid-card img {
    width: 100%;
    max-width: 280px;
    height: 200px;
    object-fit: contain;
    display: block;
}

.product-grid-card p {
    margin: auto 0 0;
    padding-top: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--jae-navy);
    line-height: 1.4;
}

.product-grid-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
    padding-bottom: 24px;
}

.product-grid-footer img {
    max-width: 200px;
    height: 80px;
    object-fit: contain;
}


/* ═══ BLASTHOLE DRILL COMPONENTS GRID ═══ */
.blast-grid-section {
    background: #ffffff;
    padding: 60px 0;
}

.blast-grid-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.blast-grid-title {
    color: #4d4d4d;
    text-align: left;
    font-size: 1.9rem;
    font-weight: 600;
    margin: 0 0 32px;
}

.blast-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}

.blast-grid-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.blast-grid-card img {
    width: 100%;
    max-width: 260px;
    height: 200px;
    object-fit: contain;
    display: block;
}

.blast-grid-card p {
    margin: 12px 0 0;
    color: #4d4d4d;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 1100px) {
    .blast-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .simple-hero-overlay-inner { width: 90%; padding-left: 6%; }
    .simple-hero-title { font-size: 1.6rem; }
    .simple-hero-subtitle { font-size: 1.1rem; }
}

.hero-section {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.hero-image--mobile {
    display: none;
}

.hero-mobile-overlay {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 24px;
    z-index: 2;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
}

.hero-mobile-content {
    color: var(--jae-white);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-mobile-content h1 {
    font-size: 2.1rem;
    margin: 0 0 10px;
    font-weight: 800;
}

.hero-mobile-content p {
    font-size: 0.95rem;
    margin: 0;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
}

.hero-overlay {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 16px;
    width: 100%;
    height: 80%;
    align-items: end;
    justify-items: center;
    z-index: 2;
    padding: 0 24px;
}

.hero-tile {
    display: grid;
    justify-items: center;
    align-content: end;
    row-gap: 10px;
    padding: 16px 12px;
    background: transparent;
    border-radius: 10px;
    text-align: center;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--jae-navy);
    letter-spacing: 1px;
    box-shadow: none;
    transition: transform 0.35s ease, filter 0.35s ease;
    animation: heroTileIn 0.7s ease both;
    height: 100%;
}

.hero-tile span {
    color: #A7A9AC;
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    line-height: 1;
    transition: transform 0.35s ease;
}

.hero-tile:nth-child(2) { animation-delay: 0.1s; }
.hero-tile:nth-child(3) { animation-delay: 0.2s; }

.hero-tile img {
    width: auto;
    height: 400px;
    object-fit: contain;
    transform: scale(1.4);
    transform-origin: center bottom;
}

.hero-tile:nth-child(1) img {
    margin-bottom: -80px;
}

.hero-tile:nth-child(2) img {
    margin-bottom: -120px;
    transform: scale(1.6);
}

.hero-tile:nth-child(3) img {
    margin-bottom: -132px;
}

.hero-tile:hover {
    transform: translateY(-10px) scale(1.08);
}

.hero-tile:hover span {
    transform: scale(1.12);
}

.hero-tile:nth-child(1):hover {
    filter: none;
}

.hero-tile:nth-child(2):hover {
    filter: none;
}

.hero-tile:nth-child(3):hover {
    filter: none;
}

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

@media (max-width: 1024px) {
    .hero-section {
        height: 1100px;
        padding-top: 72px;
    }
    .hero-overlay {
        grid-template-columns: 1fr;
        gap: 38px;
        height: calc(100% - 72px);
        top: 0;
        transform: translate(-50%, 0);
        padding: 72px 20px;
        place-content: center;
        align-items: center;
        margin-top: 72px;
    }
    .hero-tile {
        font-size: 1.05rem;
        row-gap: 8px;
    }
    .hero-tile img {
        height: 240px;
        transform: scale(1.15);
        margin-bottom: -28px;
    }
    .hero-tile:nth-child(1) img,
    .hero-tile:nth-child(2) img,
    .hero-tile:nth-child(3) img {
        margin-bottom: -28px;
        transform: scale(1.15);
    }
    .hero-mobile-overlay {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 960px;
    }
    .hero-overlay {
        height: calc(100% - 72px);
        top: 0;
        transform: translate(-50%, 0);
        padding: 72px 16px;
        place-content: center;
        align-items: center;
    }
    .hero-tile {
        font-size: 0.95rem;
        row-gap: 6px;
    }
    .hero-tile img {
        height: 210px;
        transform: scale(1.05);
        margin-bottom: -18px;
    }
    .hero-tile span {
        min-height: 18px;
    }
}

@media (max-width: 520px) {
    .hero-section {
        height: 960px;
    }
    .hero-overlay {
        height: calc(100% - 72px);
        top: 0;
        transform: translate(-50%, 0);
        padding: 72px 16px;
        place-content: center;
        align-items: center;
    }
    .hero-tile img {
        height: 180px;
        margin-bottom: -12px;
    }
    .hero-scroll {
        display: none;
    }
}

.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    color: var(--jae-navy);
    animation: heroScrollBounce 1.8s ease-in-out infinite;
    z-index: 3;
}

@keyframes heroScrollBounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -10px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--jae-white);
    padding: 0 24px;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 32px;
    opacity: 0.9;
    line-height: 1.7;
}

.hero-cta {
    display: inline-block;
    background: var(--jae-orange);
    color: var(--jae-white);
    padding: 14px 40px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s, transform 0.3s;
}

.hero-cta:hover {
    background: var(--jae-gold);
    color: var(--jae-navy);
    transform: translateY(-2px);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--jae-white);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 1rem; }
    .hero-section { min-height: 500px; }
}

/* ═══ SERVICES CARDS ═══ */
.services-section {
    padding: 100px 0;
    background: var(--jae-navy);
}

.services-section .section-title {
    text-align: center;
    font-size: 2.4rem;
    color: var(--jae-navy);
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.services-copy {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.service-copy-block {
    color: var(--jae-gray);
    font-size: 1rem;
    line-height: 1.8;
}

.service-copy-block h3 {
    color: var(--jae-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.world-map-section {
    background: var(--jae-white);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 600px;
    padding: 40px 24px;
}

.world-map-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 450px;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.service-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.service-card:hover .service-card-bg {
    transform: scale(1.05);
}

.service-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(24, 37, 86, 0.9) 0%, rgba(24, 37, 86, 0.2) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
}

.service-card-overlay h3 {
    color: var(--jae-white);
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.service-card-overlay p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-card-link {
    display: inline-block;
    color: var(--jae-orange);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--jae-orange);
    padding-bottom: 2px;
    transition: color 0.3s, border-color 0.3s;
}

.service-card-link:hover {
    color: var(--jae-gold);
    border-color: var(--jae-gold);
}

@media (max-width: 500px) {
    .services-grid { grid-template-columns: 1fr; }
    .service-card { height: 350px; }
}

/* ═══ VIDEO SECTION ═══ */
.video-section {
    padding: 60px 0;
    background-color: rgb(65, 64, 66);
}

.video-section-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.video-section-title {
    color: var(--jae-white);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 32px;
    font-family: var(--font-primary);
}

.video-wrapper {
    position: relative;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.jae-video {
    display: block;
    width: 100%;
    min-height: 480px;
    height: auto;
    background: #000;
}

/* Custom controls styling override for native player */
.jae-video::-webkit-media-controls-panel {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

@media (max-width: 768px) {
    .video-section { padding: 40px 0; }
    .video-section-inner { max-width: 100%; }
    .video-section-title { font-size: 0.95rem; margin-bottom: 20px; }
}

/* ═══ INFO BAR ═══ */
.info-bar {
    background: var(--jae-navy-dark);
    color: var(--jae-white);
    padding: 80px 0;
}

.info-bar-grid {
    display: flex;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.info-bar-col {
    flex: 1;
}

.info-bar-col h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.info-bar-col p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
}

@media (max-width: 768px) {
    .info-bar-grid { flex-direction: column; gap: 40px; padding: 0 24px; }
}

/* ═══ LOGO SECTION ═══ */
.logo-section {
    padding: 60px 0;
    background: var(--jae-white);
}

.logo-section-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    flex-wrap: wrap;
}

.logo-section-inner img {
    height: 70px;
    width: auto;
    transition: transform 0.3s;
}

.logo-section-inner img:hover {
    transform: scale(1.05);
}

.logo-main {
    height: 100px !important;
}

/* ═══ FOOTER ═══ */
.jae-footer {
    background: var(--jae-white);
    border-top: 1px solid #eee;
}

.footer-content {
    display: flex;
    gap: 0;
    max-width: 100%;
    padding: 40px 0;
}

.footer-logos {
    width: 28%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.footer-logos .main-logo { height: 80px; width: auto; }

.footer-cert-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.footer-cert-logos img { height: 55px; width: auto; }

.footer-quicklinks {
    width: 16%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    border-left: 1px solid rgba(24, 37, 86, 0.15);
    border-right: 1px solid rgba(24, 37, 86, 0.15);
    color: var(--jae-navy);
}

.footer-quicklinks h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-quicklinks ul { list-style: none; }
.footer-quicklinks ul li { margin-bottom: 6px; }
.footer-quicklinks ul li a {
    font-size: 0.9rem;
    color: var(--jae-navy);
}
.footer-quicklinks ul li a:hover { color: var(--jae-orange); }

.footer-offices {
    width: 56%;
    display: flex;
    gap: 24px;
    justify-content: space-around;
    padding: 20px 30px;
    color: var(--jae-navy);
}

.office-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.office-card p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

.office-card a { color: var(--jae-navy); }
.office-card a:hover { color: var(--jae-orange); }

.color-bars { width: 100%; }
.color-bar-row { display: flex; height: 24px; }

.footer-bottom {
    background: var(--jae-gray);
    padding: 16px 0;
    text-align: center;
}

.footer-bottom-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    font-size: 0.8rem;
    color: var(--jae-text-light);
}

.footer-bottom-links a:hover { color: var(--jae-orange); }

@media (max-width: 900px) {
    .footer-content { flex-direction: column; }
    .footer-logos, .footer-quicklinks, .footer-offices {
        width: 100%;
        border: none;
        border-bottom: 1px solid rgba(24, 37, 86, 0.1);
    }
    .footer-offices { flex-wrap: wrap; gap: 30px; }
    .office-card { min-width: 200px; }
}

/* ═══ PAGE HERO (Subpages) ═══ */
.page-hero {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-hero .hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.page-hero .hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(24,37,86,0.85) 0%, rgba(24,37,86,0.5) 100%);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--jae-white);
}

.page-hero-content h1 {
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.page-hero-content .tagline {
    font-size: 1.1rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--jae-orange);
}

/* ═══ ABOUT PAGE ═══ */
.about-intro {
    background: var(--jae-navy);
    color: #fff;
    padding: 80px 160px;
}
.about-intro-inner {
    display: flex;
    gap: 48px;
    max-width: 1400px;
    margin: 0 auto;
}
.about-intro-col {
    flex: 1;
    font-family: var(--font-primary);
}
.about-intro-heading {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}
.about-intro-col p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    margin: 0;
}

.about-sheq {
    background: var(--jae-navy);
    color: #fff;
    padding: 0 160px 80px;
}
.about-sheq-inner {
    max-width: 1400px;
    margin: 0 auto;
}
.about-sheq-col {
    margin-bottom: 32px;
}
.about-sheq-heading {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}
.about-sheq-col p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    margin: 0;
    max-width: 700px;
}
.about-sheq-banner {
    margin: 32px 0;
}
.about-sheq-banner img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.about-drives {
    background: #fff;
    padding: 80px 40px;
    text-align: center;
}
.about-drives-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.about-drives-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--jae-navy);
    margin-bottom: 12px;
}
.about-drives-subtitle {
    font-size: 1rem;
    color: var(--jae-text-light);
    margin-bottom: 48px;
}
.about-vmo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 48px;
}
.about-vmo-card {
    text-align: center;
    padding: 24px;
}
.about-vmo-card img {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    object-fit: contain;
}
.about-vmo-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--jae-navy);
    margin-bottom: 12px;
}
.about-vmo-card p {
    font-size: 0.9rem;
    color: var(--jae-text-light);
    line-height: 1.7;
}

.about-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.about-value-card {
    text-align: center;
    padding: 24px;
    background: var(--jae-gray);
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.about-value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.about-value-card img {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    object-fit: contain;
}
.about-value-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--jae-navy);
    margin-bottom: 8px;
}
.about-value-card p {
    font-size: 0.85rem;
    color: var(--jae-text-light);
    line-height: 1.6;
}

.about-drives-alt {
    background: #eee;
    padding: 20px 0 40px;
}

.about-drives-alt-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.about-drives-alt-header {
    text-align: center;
    margin-bottom: 32px;
}

.about-drives-alt-header h3 {
    font-size: 1.6rem;
    color: var(--jae-navy);
    font-weight: 700;
    margin-bottom: 8px;
}

.about-drives-alt-header p {
    color: var(--jae-text-light);
    font-size: 0.95rem;
    margin: 0;
}

.about-drives-alt-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.about-drives-alt-row--top {
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
}

.about-drives-alt-card {
    background: #fff;
    border-radius: 40px;
    padding: 24px 28px;
    text-align: center;
}

.about-drives-alt-card img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin-bottom: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.about-drives-alt-card h3 {
    font-size: 1.05rem;
    color: var(--jae-navy);
    font-weight: 700;
    margin-bottom: 8px;
}

.about-drives-alt-card p {
    font-size: 0.9rem;
    color: var(--jae-text-light);
    line-height: 1.5;
    margin: 0;
}

.about-drives-alt-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    margin: 12px 0 24px;
}

.about-drives-alt-divider span {
    height: 2px;
    background: #000;
}

.about-drives-alt-center {
    text-align: center;
}

.about-drives-alt-center img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 4px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.about-drives-alt-center h3 {
    font-size: 1rem;
    color: var(--jae-navy);
    margin: 0;
    line-height: 1;
}

.about-buying {
    background: var(--jae-navy);
    color: #fff;
    padding: 80px 40px;
}
.about-buying-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.about-buying-title {
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    color: #fff;
}
.about-buying-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}
.about-buying-card {
    padding: 24px;
    border-left: 3px solid var(--jae-orange);
}
.about-buying-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--jae-orange);
    margin-bottom: 8px;
}
.about-buying-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
}

.about-proudly {
    background: #fff;
    padding: 80px 40px;
}
.about-proudly-inner {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}
.about-proudly-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--jae-navy);
    margin-bottom: 8px;
}
.about-proudly-tagline {
    font-size: 1.05rem;
    color: var(--jae-orange);
    font-weight: 600;
    margin-bottom: 32px;
}
.about-proudly-text p {
    font-size: 0.95rem;
    color: var(--jae-text-light);
    line-height: 1.8;
    margin-bottom: 16px;
    text-align: left;
}
.about-proudly-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-top: 40px;
}
.about-proudly-logos img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.about-rows {
    background: var(--jae-white);
    padding: 40px 0 20px;
}

.underground-precision {
    padding: 70px 0 60px;
}

.hard-rock-products {
    background: #000000;
    padding: 70px 0 60px;
}

.hard-rock-products .about-rows-block h5 {
    color: #ffffff;
}

.hard-rock-products .about-rows-columns {
    color: #ffffff;
}

.hard-rock-products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 40px;
    margin-top: 32px;
}

.hard-rock-products-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hard-rock-products-card img {
    width: 100%;
    max-width: 320px;
    height: 200px;
    object-fit: contain;
    display: block;
}

.hard-rock-products-card p {
    margin: auto 0 0;
    padding-top: 12px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

@media (max-width: 900px) {
    .hard-rock-products-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══ UNDERGROUND SOFT ROCK PRODUCTS ═══ */
.soft-rock-products {
    background: var(--jae-white);
    padding: 70px 0 60px;
}

.soft-rock-products-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.soft-rock-products-title {
    color: #4d4d4d;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin: 0 0 48px;
}

.soft-rock-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 36px;
}

.soft-rock-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.soft-rock-card-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.soft-rock-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.soft-rock-card-heading {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--jae-text);
    margin: 0 0 12px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.soft-rock-card-desc {
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--jae-text-light);
    margin: 0 0 16px;
    flex: 1;
}

.soft-rock-card-chips {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    max-width: 220px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--jae-navy);
}

.soft-rock-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 16px;
    background: var(--jae-gray);
    border: none;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--jae-navy);
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: background 0.2s, color 0.2s;
}

.soft-rock-chip span {
    font-weight: 400;
    color: var(--jae-text-light);
    transition: color 0.2s;
}

.soft-rock-chip:hover {
    background: #e0e0e0;
    color: var(--jae-navy);
}

.soft-rock-chip:hover span {
    color: rgba(255,255,255,0.75);
}

@media (max-width: 1024px) {
    .soft-rock-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px 32px;
    }
}

@media (max-width: 600px) {
    .soft-rock-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .soft-rock-products {
        padding: 48px 0 40px;
    }

    .soft-rock-products-title {
        margin-bottom: 32px;
    }
}

.about-rows-inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.about-rows-row {
    display: flex;
    gap: 40px;
    align-items: stretch;
}

.about-rows-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.about-rows-block h5 {
    color: var(--jae-navy);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.about-rows-block p {
    font-size: 0.9rem;
    color: var(--jae-text-light);
    line-height: 1.6;
    margin: 0;
}

.about-rows-columns {
    font-size: 0.9rem;
    color: var(--jae-text-light);
    line-height: 1.6;
    column-count: 2;
    column-gap: 40px;
}

@media (max-width: 900px) {
    .about-rows-columns {
        column-count: 1;
    }
}

.about-rows-divider {
    border: 0;
    border-top: 1px solid #d9d9d9;
    margin: 16px 0;
}

/* ═══ CONTACT FORM ═══ */
.contact-form-section {
    background: #0f1f3b;
    padding: 70px 0 80px;
}

.contact-form-inner {
    max-width: 620px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
    color: #ffffff;
}

.contact-form-inner h2 {
    margin: 0 0 12px;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.contact-form-inner p {
    margin: 0 0 32px;
    font-size: 0.95rem;
    color: #ffffff;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}

.contact-form label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
}

.contact-required {
    color: #ffffff;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: transparent;
    color: #ffffff;
    font-size: 0.95rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    margin-top: 10px;
    padding: 12px 18px;
    border: 0;
    border-radius: 6px;
    background: var(--jae-orange);
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

.contact-form button:hover {
    background: #d57d00;
}

.about-rows-block ul {
    margin: 0;
    padding-left: 18px;
    color: var(--jae-text-light);
}

.about-rows-block li {
    margin-bottom: 8px;
}

.about-rows-banner {
    height: 331px;
    background-image: url("https://www.jae.co.za/wp-content/uploads/2024/03/JAE-NEW-SITE-IMAGES-04-1024x838.jpg");
    background-size: cover;
    background-position: 0% 53%;
}

.about-rows-image img {
    width: 100%;
    height: 333px;
    object-fit: cover;
    display: block;
}

.about-buying-alt {
    background: var(--jae-navy);
    color: var(--jae-white);
    padding: 7px 0;
}

.about-buying-alt-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 24px;
}

.about-buying-alt-gap {
    padding-top: 30px;
}

.about-buying-alt-header {
    text-align: center;
    margin-bottom: 32px;
}

.about-buying-alt-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.about-buying-alt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about-buying-alt-col h4 {
    font-size: 1.1rem;
    margin: 0 0 8px;
}

.about-buying-alt-col p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 16px;
}

.about-buying-alt-divider {
    height: 1px;
    background: #e0d504;
    max-width: 860px;
    margin: 16px 0 20px;
}

.about-buying-alt-gap-lg {
    padding-top: 86px;
}

.about-full-banner img {
    display: block;
    width: 100%;
    height: auto;
}

.team-welcome {
    padding: 60px 0;
    background: var(--jae-white);
}

.team-welcome-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.team-welcome-inner h2 {
    text-align: center;
    color: var(--jae-navy);
    margin-bottom: 20px;
}

.team-welcome-inner p {
    text-align: justify;
    color: var(--jae-text-light);
    line-height: 1.6;
    margin-bottom: 12px;
}

.team-video {
    background: var(--jae-white);
}

.team-full-banner img {
    display: block;
    width: 100%;
    height: 75vh;
    object-fit: cover;
    object-position: center 100%;
}

.team-full-banner {
    position: relative;
}

.team-full-banner-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    pointer-events: none;
    padding: 40px 24px;
}

.team-full-banner-overlay-inner {
    max-width: 900px;
    text-align: center;
    color: var(--jae-white);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.team-full-banner-overlay-inner h2 {
    font-size: 2rem;
    margin: 0 0 12px;
    font-weight: 700;
}

.team-full-banner-overlay-inner p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

.milestones-section {
    background: #2b2b2b;
    color: var(--jae-white);
    padding: 60px 0;
}

.milestones-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.milestones-top h3,
.milestones-bottom h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.milestones-top p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 32px;
}

.milestones-bottom h3 {
    margin-top: 16px;
}

.milestone-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 24px;
}

.milestone-item {
    position: relative;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.milestone-item.left {
    align-items: flex-start;
    text-align: left;
}

.milestone-item.right {
    align-items: flex-end;
    text-align: right;
}

.milestone-notch {
    display: inline-block;
    background: var(--notch-color, #f0d900);
    color: #ffffff;
    font-weight: 700;
    padding: 0 18px;
    border-radius: 0;
    height: 72px;
    line-height: 72px;
    min-width: 140px;
    text-align: center;
}

.milestone-item.left .milestone-notch {
    align-self: flex-start;
}

.milestone-item.right .milestone-notch {
    align-self: flex-end;
}

.milestone-card {
    display: block;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 12px 20px;
    width: calc(100% - 70px);
    min-height: 120px;
    position: relative;
    margin: 0 auto;
}

.milestone-card.shear-left {
    transform: skewX(-30deg);
}

.milestone-card.shear-right {
    transform: skewX(30deg);
}

.milestone-body {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #000000;
    text-align: center;
    font-family: "Century Gothic", "Gill Sans", Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

.milestone-body-inner {
    display: block;
    padding: 12px 20px;
}

.milestone-body-inner.unskew-left {
    transform: skewX(30deg);
}

.milestone-body-inner.unskew-right {
    transform: skewX(-30deg);
}

@media (max-width: 900px) {
    .milestone-item {
        align-items: stretch;
        text-align: left;
    }
    .milestone-item.right {
        align-items: stretch;
        text-align: left;
    }
    .milestone-card {
        width: 100%;
        transform: none;
    }
    .milestone-body-inner {
        transform: none;
    }
}

.team-grid {
    background: var(--jae-white);
}

.team-grid-inner {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    width: 100%;
    overflow-x: auto;
}

.team-grid-card {
    flex: 0 0 calc(100% / 6);
    min-width: 180px;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    background: var(--jae-white);
}

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

.team-grid-role {
    background: rgb(96, 96, 96);
    color: var(--jae-white);
    font-size: 0.9rem;
    padding: 18px 12px 12px;
    min-height: 76px;
    display: flex;
    align-items: flex-end;
}

.team-grid-name {
    color: var(--jae-white);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 10px 12px;
}

.team-grid-name--navy { background: #182556; }
.team-grid-name--teal { background: rgb(86, 145, 150); }
.team-grid-name--lime { background: rgb(166, 194, 1); }
.team-grid-name--yellow { background: rgb(252, 187, 3); }
.team-grid-name--orange { background: rgb(238, 119, 63); }
.team-grid-name--bright { background: rgb(216, 230, 0); }

.team-grid-card ul {
    list-style: none;
    padding: 12px 12px 24px;
    margin: 0;
}

.team-grid-card ul li {
    font-size: 0.8rem;
    line-height: 1.2;
    margin-bottom: 8px;
    color: var(--jae-text-light);
}


@media (max-width: 900px) {
    .about-intro { padding: 40px 24px; }
    .about-intro-inner { flex-direction: column; gap: 24px; }
    .about-sheq { padding: 0 24px 40px; }
    .about-vmo-grid { grid-template-columns: 1fr; }
    .about-values-grid { grid-template-columns: 1fr 1fr; }
    .about-buying-grid { grid-template-columns: 1fr; }
    .about-proudly-logos { flex-wrap: wrap; }
    .about-rows-row { flex-direction: column; }
    .about-rows-banner { height: 240px; }
    .about-rows-image img { height: 240px; }
    .about-buying-alt-grid { grid-template-columns: 1fr; }
    .about-buying-alt-gap-lg { padding-top: 24px; }
    .about-drives-alt-row,
    .about-drives-alt-row--top { grid-template-columns: 1fr; }
    .about-drives-alt-divider { grid-template-columns: 1fr; gap: 8px; }
    .about-drives-alt-divider span { display: none; }
}

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

/* ═══ CONTENT SECTIONS ═══ */
.content-section {
    padding: 80px 0;
}

.content-section.alt-bg {
    background: var(--jae-gray);
}

.content-section .section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--jae-navy);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.content-section .section-subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--jae-text-light);
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.8;
}

/* ═══ EQUIPMENT GRID ═══ */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.equipment-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 320px;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    background: var(--jae-navy);
}

.equipment-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.25);
}

.equipment-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.equipment-card:hover .equipment-card-bg {
    transform: scale(1.08);
}

.equipment-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(24,37,86,0.95) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

.equipment-card-overlay h3 {
    color: var(--jae-white);
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ═══ CAPABILITIES ═══ */
.capabilities-section {
    padding: 80px 0;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.capability-card {
    background: var(--jae-white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.capability-card h3 {
    font-size: 1.05rem;
    color: var(--jae-navy);
    margin-bottom: 12px;
}

.capability-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.capability-card ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--jae-text-light);
}

.capability-card ul li:last-child {
    margin-bottom: 0;
}

.capability-card ul li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: var(--jae-orange);
    font-weight: bold;
}

/* ═══ SPEC SHEET CTA ═══ */
.spec-cta {
    background: var(--jae-orange);
    color: var(--jae-white);
    text-align: center;
    padding: 60px 24px;
}

.spec-cta h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.spec-cta p {
    font-size: 1.1rem;
    margin-bottom: 28px;
    opacity: 0.9;
}

.spec-cta .btn-spec {
    display: inline-block;
    background: var(--jae-white);
    color: var(--jae-orange);
    padding: 14px 40px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s, color 0.3s, transform 0.3s;
}

.spec-cta .btn-spec:hover {
    background: var(--jae-navy);
    color: var(--jae-white);
    transform: translateY(-2px);
}

/* ═══ LOADING / ERROR ═══ */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.loading-progress {
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 12px auto 0;
    animation: loaderSpin 1.2s linear infinite;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: var(--jae-navy);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
    stroke-linecap: round;
}

.loading-progress-text {
    text-align: center;
    font-weight: bold;
    margin-top: 6px;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

.loading-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--jae-white);
    animation: loaderScreenFade 0.8s ease-out both;
}

.loading-logo {
    width: 120px;
    height: auto;
    animation: loaderLogoZoom 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.loading-progress-text {
    animation: loaderTextFade 0.8s ease-out 0.2s both;
}

@keyframes loaderSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes loaderLogoZoom {
    from {
        opacity: 0;
        transform: scale(0.7);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes loaderScreenFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}