/* ====================================================================
   FINAL MASTER MANUFACTURING PAGE - PREMIUM INDUSTRIAL
   ==================================================================== */

/* Global Resets for Manufacturing Page */
body {
    background-color: #ffffff;
    color: #0F1A3D;
    font-family: 'Inter', sans-serif;
}

/* Background Utility Classes */
.m-bg-black {
    background-color: #0A1128;
    color: #ffffff;
}

/* Parallax banner treatment for the text-only dark bands (no split image already present) */
#strength,
#quality-numbers {
    position: relative;
    min-height: 460px;
    display: flex;
    align-items: center;
}

#strength .m-container,
#quality-numbers .m-container {
    width: 100%;
}

@media (max-width: 900px) {

    #strength,
    #quality-numbers {
        min-height: unset;
    }
}

.m-bg-white {
    background-color: #ffffff;
    color: #0F1A3D;
}

.m-bg-charcoal {
    background-color: #0F1A3D;
    color: #ffffff;
}

.m-bg-light {
    background-color: #F5F5F5;
    color: #0F1A3D;
}

/* Structural Padding */
.m-section {
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.m-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography - Stark Industrial */
.m-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: #C8102E;
    margin-bottom: 24px;
    position: relative;
}

.m-label::before {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: #C8102E;
    flex-shrink: 0;
}

.m-h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.m-h2.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.m-h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.m-desc {
    font-size: clamp(1rem, 2vw, 1.4rem);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 800px;
}

.m-desc.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Split Screen Layouts */
.m-split {
    display: grid;
    grid-template-columns: 0.7fr 1fr;
    min-height: auto;
}

.m-split-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10% 12%;
}

.m-split-img {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 380px;
    background-color: transparent;
    overflow: hidden;
}

.m-split-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    inset: 0;
    /* Industrial graded filter - removed grayscale */
    filter: contrast(1.15) brightness(0.9);
}

.m-split-reverse .m-split-content {
    grid-column: 1;
    grid-row: 1;
}

.m-split-reverse .m-split-img {
    grid-column: 2;
    grid-row: 1;
}

@media (max-width: 992px) {
    .m-split {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .m-split-reverse .m-split-content {
        grid-column: 1;
        grid-row: 2;
    }

    .m-split-reverse .m-split-img {
        grid-column: 1;
        grid-row: 1;
    }

    .m-split-content {
        padding: 80px 24px;
    }
}

/* Hero Section */
.m-hero {
    position: relative;
    height: 100vh;
    height: 100dvh;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #060B1C;
}

.m-hero-bg {
    position: absolute;
    inset: 0;
}

.m-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    filter: brightness(0.82);
    /* Gentler than before — avoids crushing shadows to pure black */
}

.m-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(6, 11, 28, 0.9) 0%,
        rgba(6, 11, 28, 0.35) 16%,
        rgba(6, 11, 28, 0.12) 35%,
        transparent 60%);
    pointer-events: none;
}

.m-hero-content {
    position: relative;
    z-index: 10;
    max-width: 860px;
    padding: 48px clamp(20px, 4vw, 48px) 0;
    margin-top: -60px;
}

.m-hero-h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.2rem, 4.5vw, 4rem);
    font-weight: 900;
    line-height: 1.07;
    color: #fff;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.m-hero-h1 .red {
    color: #C8102E;
}

.m-hero-desc {
    font-size: clamp(0.92rem, 1.2vw, 1.05rem);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.7);
    max-width: 660px;
    margin-bottom: 40px;
}

.m-hero-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.m-hero-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 500;
}

.m-hero-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: #C8102E;
}

@media (max-width: 600px) {
    .m-hero-list {
        grid-template-columns: 1fr;
    }
}

/* Buttons */
.m-btn-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.m-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 26px;
    border-radius: 4px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.m-btn-primary {
    background-color: #C8102E;
    color: #fff;
    border: 2px solid #C8102E;
}

.m-btn-primary:hover {
    background-color: #a30c25;
    border-color: #a30c25;
}

.m-btn-outline {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.m-btn-outline:hover {
    background-color: #fff;
    color: #0A1128;
}

.m-btn-dark {
    background-color: #0A1128;
    color: #fff;
    border: 2px solid #0A1128;
}

.m-btn-dark:hover {
    background-color: #C8102E;
    border-color: #C8102E;
}

/* 4-Card Grid (Capabilities) */
.m-grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .m-grid-4 {
        grid-template-columns: 1fr;
    }
}

.m-card {
    padding: 48px;
    background-color: #F9F9F9;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.m-card:hover {
    background-color: #fff;
    border-left-color: #C8102E;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.m-card-p {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* ── Manufacturing Capabilities — 3D cursor-tilt hover cards ── */
.m-cap-tilt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.m-cap-card {
    position: relative;
    height: 340px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15, 26, 61, 0.12);
    opacity: 1;
    transform: perspective(900px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, opacity 0.4s ease;
}

.m-cap-card.is-tilting {
    transition: transform 0.1s ease-out, box-shadow 0.4s ease, opacity 0.4s ease;
    box-shadow: 0 26px 50px rgba(15, 26, 61, 0.32);
}

.m-cap-tilt-grid.has-hover .m-cap-card:not(.is-tilting) {
    opacity: 0.55;
}

.m-cap-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.04);
    transition: transform 0.5s ease;
    pointer-events: none;
}

.m-cap-card.is-tilting .m-cap-img {
    transform: scale(1.1);
}

.m-cap-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 11, 28, 0.2) 0%, rgba(6, 11, 28, 0.62) 50%, rgba(6, 11, 28, 0.92) 100%);
    pointer-events: none;
}

.m-cap-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(200, 16, 46, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C8102E;
    z-index: 2;
    pointer-events: none;
}

.m-cap-content {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 2;
    pointer-events: none;
}

.m-cap-content h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    line-height: 1.25;
    color: #E11D3F;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
    margin: 0 0 8px;
}

.m-cap-content p {
    font-size: 0.92rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

@media (prefers-reduced-motion: reduce) {

    .m-cap-card,
    .m-cap-img {
        transition-duration: 1ms !important;
        transform: none !important;
    }
}

@media (max-width: 900px) {
    .m-cap-tilt-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .m-cap-card {
        height: 240px;
        transform: none !important;
    }

    .m-cap-tilt-grid.has-hover .m-cap-card:not(.is-tilting) {
        opacity: 1;
    }

    .m-cap-card:hover .m-cap-img {
        transform: scale(1.04);
    }
}

/* Process Timeline (Horizontal) */
.m-process-wrap {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 1100px;
    margin: 60px auto 0;
    overflow-x: auto;
    padding-bottom: 20px;
}

.m-pt-line {
    position: absolute;
    top: 24px;
    left: 20px;
    right: 20px;
    height: 2px;
    background-color: #ddd;
    z-index: 0;
    overflow: hidden;
}

.m-pt-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #C8102E, #ff6b81);
}

.m-process-wrap.visible .m-pt-line::after {
    animation: pt-line-fill 1.8s cubic-bezier(0.65, 0, 0.35, 1) 0.2s forwards;
}

.m-pt-node {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
    text-align: center;
}

.m-pt-dot {
    width: 16px;
    height: 16px;
    background-color: #C8102E;
    border-radius: 50%;
    margin-bottom: 16px;
    outline: 8px solid #F5F5F5;
    transform: scale(0);
    opacity: 0;
}

.m-process-wrap.visible .m-pt-node:nth-child(2) .m-pt-dot { animation: pt-dot-pop 0.45s ease 0.2s forwards; }
.m-process-wrap.visible .m-pt-node:nth-child(3) .m-pt-dot { animation: pt-dot-pop 0.45s ease 0.5s forwards; }
.m-process-wrap.visible .m-pt-node:nth-child(4) .m-pt-dot { animation: pt-dot-pop 0.45s ease 0.8s forwards; }
.m-process-wrap.visible .m-pt-node:nth-child(5) .m-pt-dot { animation: pt-dot-pop 0.45s ease 1.1s forwards; }
.m-process-wrap.visible .m-pt-node:nth-child(6) .m-pt-dot { animation: pt-dot-pop 0.45s ease 1.4s forwards; }
.m-process-wrap.visible .m-pt-node:nth-child(7) .m-pt-dot { animation: pt-dot-pop 0.45s ease 1.7s forwards; }
.m-process-wrap.visible .m-pt-node:nth-child(8) .m-pt-dot { animation: pt-dot-pop 0.45s ease 2.0s forwards; }

@keyframes pt-line-fill {
    to { width: 100%; }
}

@keyframes pt-dot-pop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.35); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .m-pt-line::after,
    .m-pt-dot {
        animation: none !important;
        width: 100% !important;
        transform: scale(1) !important;
        opacity: 1 !important;
    }
}

.m-pt-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0F1A3D;
    line-height: 1.2;
}

/* Split Screen Lists (Innovation & Fabrication) */
.m-split-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.m-split-list li {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.m-bg-white .m-split-list li {
    border-color: rgba(0, 0, 0, 0.1);
    background: #F9F9F9;
}

/* Innovation Section Restyle (scoped so it doesn't affect the shared
   .m-split component used by Quality's testing section) */
#innovation {
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
    color: #0F1A3D;
}

#innovation::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 65%;
    height: 160%;
    background: radial-gradient(circle, rgba(200, 16, 46, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

#innovation .m-split-content,
#innovation .m-split-img {
    position: relative;
    z-index: 1;
}

#innovation .m-split-img {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

#innovation .m-split-img img {
    position: static;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 420px;
    border-radius: 16px;
    border: 1px solid rgba(15, 26, 61, 0.08);
    box-shadow: 0 20px 45px rgba(15, 26, 61, 0.18), 0 0 0 1px rgba(200, 16, 46, 0.1);
}

#innovation .m-split-list {
    gap: 10px;
}

#innovation .m-split-list li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 1rem;
    border: 1px solid rgba(15, 26, 61, 0.08);
    border-left: 3px solid rgba(200, 16, 46, 0.5);
    background: #FAFAFA;
    border-radius: 8px;
    /* opacity/transform durations mirror .ind-fade so the entrance fade-up
       isn't clobbered by this rule's higher specificity */
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        background 0.3s ease, border-left-color 0.3s ease, box-shadow 0.3s ease;
}

#innovation .m-split-list li::before {
    content: '';
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #C8102E;
    box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.15);
}

#innovation .m-split-list li:hover {
    background: #F3F3F5;
    border-left-color: #C8102E;
    box-shadow: 0 8px 20px rgba(15, 26, 61, 0.1);
}

#innovation .m-split-list li:nth-child(1) { transition-delay: 0s; }
#innovation .m-split-list li:nth-child(2) { transition-delay: 0.08s; }
#innovation .m-split-list li:nth-child(3) { transition-delay: 0.16s; }
#innovation .m-split-list li:nth-child(4) { transition-delay: 0.24s; }
#innovation .m-split-list li:nth-child(5) { transition-delay: 0.32s; }
#innovation .m-split-list li:nth-child(6) { transition-delay: 0.4s; }

/* 6-Card Grid (Quality Assurance) */
.m-grid-6 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    /* Creates the thin dividers via background color */
    background-color: #e0e0e0;
    /* Divider color */
    border: 1px solid #e0e0e0;
}

@media (max-width: 900px) {
    .m-grid-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .m-grid-6 {
        grid-template-columns: 1fr;
    }
}

.m-test-card {
    background-color: #ffffff;
    color: #111111;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.m-test-card:hover {
    background-color: #f5f5f5;
}

.m-test-card::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background-color: #C8102E;
}

/* Image Gallery (Inside Aargee) */
.m-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

@media (max-width: 900px) {
    .m-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .m-gallery {
        grid-template-columns: 1fr;
    }
}

.m-gal-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
    background-color: #0A1128;
}

.m-gal-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.15) brightness(0.8);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s;
}

.m-gal-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%) contrast(1.1) brightness(1);
    /* Reveal color on hover */
}

/* Animated Statistics */
.m-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

@media (max-width: 900px) {
    .m-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .m-stats-grid {
        grid-template-columns: 1fr;
    }
}

.m-stat-item h4 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.1;
}

.m-stat-item p {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #C8102E;
    margin: 0;
}

/* Final CTA */
.m-cta {
    padding: 50px 0;
    text-align: center;
}

.m-cta-inner {
    max-width: 800px;
    margin: 0 auto;
}

/* Animations (Sharp Fade) */
.ind-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.ind-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ====================================================================
   MOBILE RESPONSIVE — Manufacturing / Quality / Careers / Contact
   ==================================================================== */
@media (max-width: 768px) {
    .m-section {
        padding: 56px 0;
    }

    .m-container {
        padding: 0 16px;
    }

    .m-hero {
        height: 70vh;
        min-height: 420px;
    }

    .m-hero-content {
        margin-top: 0;
        padding: 24px 20px 0;
    }

    .m-hero-h1 {
        font-size: clamp(1.6rem, 6vw, 2.4rem);
        margin-bottom: 14px;
    }

    .m-hero-desc {
        font-size: 0.92rem;
        margin-bottom: 24px;
    }

    .m-hero-list {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 24px;
    }

    .m-hero-list li {
        font-size: 0.9rem;
    }

    .m-btn-row {
        flex-direction: column;
        gap: 10px;
    }

    .m-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
    }

    .m-label {
        font-size: 0.85rem;
        letter-spacing: 0.15em;
        margin-bottom: 16px;
    }

    .m-split {
        grid-template-columns: 1fr;
    }

    .m-split-content {
        padding: 48px 20px;
    }

    .m-split-img {
        min-height: 280px;
    }

    .m-split-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .m-split-list li {
        font-size: 1.05rem;
        padding: 12px;
    }

    .m-grid-4 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .m-card {
        padding: 28px 20px;
    }

    .m-grid-6 {
        grid-template-columns: 1fr;
    }

    .m-test-card {
        padding: 24px 20px;
        font-size: 1.1rem;
    }

    .m-gallery {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 32px;
    }

    .m-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .m-cta {
        padding: 56px 0;
    }

    .m-cta-inner {
        padding: 0 16px;
    }

    .m-process-wrap {
        margin-top: 32px;
        flex-wrap: wrap;
        gap: 24px;
        justify-content: center;
    }

    .m-pt-line {
        display: none;
    }

    .m-pt-node {
        width: 80px;
    }

    .m-pt-text {
        font-size: 0.95rem;
    }

    .m-pt-dot {
        outline-width: 4px;
    }
}

@media (max-width: 480px) {
    .m-hero {
        height: auto;
        min-height: 75vh;
        min-height: 75dvh;
        padding: 40px 0;
    }

    .m-hero-h1 {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }

    .m-stats-grid {
        grid-template-columns: 1fr;
    }
}