/* =========================================================
   CNC MILLING UAE
   Professional Page CSS
   ========================================================= */

.cm-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.cm-section {
    padding: 90px 0;
}


/* =========================================================
   HERO
   ========================================================= */

.cm-hero {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #111;
}

.cm-hero-bg {
    position: absolute;
    inset: 0;
    background-image: url("../image/cnc-milling/cnc-milling-9.webp");
    background-size: cover;
    background-position: center;
}

.cm-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
        rgba(0, 0, 0, 0.82) 0%,
        rgba(0, 0, 0, 0.60) 55%,
        rgba(0, 0, 0, 0.30) 100%);
}

.cm-hero-content {
    position: relative;
    z-index: 2;
    padding: 90px 0;
}

.cm-hero-label {
    display: inline-block;
    margin-bottom: 15px;
    color: #019bde;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.cm-hero h1 {
    max-width: 850px;
    margin: 0 0 20px;
    color: #fff;
    font-size: 52px;
    line-height: 1.15;
    font-weight: 600;
}

.cm-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #b9b9b9;
    font-size: 13px;
}

.cm-breadcrumb li {
    display: flex;
    align-items: center;
}

.cm-breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
    color: #019bde;
}

.cm-breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.cm-breadcrumb .active {
    color: #b9b9b9;
}


/* =========================================================
   COMMON CONTENT
   ========================================================= */

.cm-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
}

.cm-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cm-section-label {
    display: inline-block;
    margin-bottom: 12px;
    color: #019bde;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.cm-content h2,
.cm-section-heading h2 {
    margin: 0 0 20px;
    color: #111;
    font-size: 38px;
    line-height: 1.2;
    font-weight: 600;
}

.cm-content h3 {
    margin: 0 0 12px;
    color: #111;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 600;
}

.cm-content p,
.cm-section-heading p {
    margin: 0;
    color: #666;
    font-size: 16px;
    line-height: 1.85;
}

.cm-content-divider {
    width: 60px;
    height: 3px;
    margin: 8px 0 22px;
    background: #019bde;
}


/* =========================================================
   IMAGE SYSTEM
   ========================================================= */

.cm-image-wrap {
    position: relative;
}

.cm-image-frame {
    position: relative;
    overflow: hidden;
    background: #e8e8e8;
}

.cm-image-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    pointer-events: none;
}

.cm-image-frame img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 460px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.cm-image-frame:hover img {
    transform: scale(1.04);
}

.cm-image-badge {
    position: absolute;
    right: -20px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    min-width: 155px;
    padding: 18px 22px;
    background: #019bde;
    color: #fff;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
}

.cm-image-badge strong {
    font-size: 25px;
    line-height: 1.2;
}

.cm-image-badge span {
    margin-top: 4px;
    font-size: 12px;
    letter-spacing: 0.5px;
}


/* =========================================================
   INTRO
   ========================================================= */

.cm-intro {
    background: #fff;
}

.cm-intro-grid {
    align-items: center;
}

.cm-intro .cm-image-frame {
    min-height: 460px;
}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.cm-section-heading {
    max-width: 850px;
    margin: 0 auto 50px;
    text-align: center;
}

.cm-section-heading .cm-section-label {
    margin-bottom: 10px;
}

.cm-section-heading h2 {
    margin-bottom: 15px;
}

.cm-section-heading p {
    max-width: 800px;
    margin: 0 auto;
}


/* =========================================================
   CAPABILITIES
   ========================================================= */

.cm-capabilities {
    background: #f5f6f7;
}

.cm-capability-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.cm-capability-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8e8e8;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.055);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.cm-capability-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.10);
}

.cm-card-image {
    position: relative;
    overflow: hidden;
}

.cm-card-image img {
    display: block;
    width: 100%;
    height: 285px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.cm-capability-card:hover .cm-card-image img {
    transform: scale(1.05);
}

.cm-card-number {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #019bde;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.cm-card-content {
    padding: 30px 32px 34px;
}

.cm-card-tag {
    display: block;
    margin-bottom: 8px;
    color: #019bde;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cm-card-content h3 {
    margin: 0 0 14px;
    color: #111;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 600;
}

.cm-card-content p {
    margin: 0;
    color: #666;
    font-size: 15px;
    line-height: 1.75;
}


/* =========================================================
   WHAT WE OFFER
   ========================================================= */

.cm-offer {
    background: #fff;
}

.cm-offer-grid {
    align-items: center;
}

.cm-service-block {
    width: 100%;
    margin-top: 15px;
    padding: 22px 25px;
    border-left: 3px solid #019bde;
    background: #f6f7f8;
}

.cm-service-block h3 {
    margin-bottom: 15px;
    font-size: 21px;
}

.cm-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cm-list li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 25px;
    color: #666;
    font-size: 15px;
    line-height: 1.65;
}

.cm-list li:last-child {
    margin-bottom: 0;
}

.cm-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #019bde;
    font-weight: 700;
}

.cm-offer-image .cm-image-frame img {
    min-height: 540px;
}


/* =========================================================
   MATERIALS
   ========================================================= */

.cm-materials {
    background: #f5f6f7;
}

.cm-material-grid {
    align-items: center;
}

.cm-material-grid .cm-image-frame img {
    min-height: 420px;
}

.cm-material-content {
    padding-left: 20px;
}

.cm-material-line {
    width: 100%;
    max-width: 500px;
    height: 1px;
    margin-top: 15px;
    background: #d9d9d9;
}


/* =========================================================
   APPLICATIONS
   ========================================================= */

.cm-applications {
    background: #fff;
}

.cm-industry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid #e3e3e3;
    border-left: 1px solid #e3e3e3;
}

.cm-industry-card {
    display: flex;
    gap: 22px;
    padding: 32px;
    border-right: 1px solid #e3e3e3;
    border-bottom: 1px solid #e3e3e3;
    transition: background 0.3s ease;
}

.cm-industry-card:hover {
    background: #f7f9fa;
}

.cm-industry-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef8fc;
    color: #019bde;
    font-size: 13px;
    font-weight: 700;
}

.cm-industry-card h3 {
    margin: 0 0 8px;
    color: #019bde;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 600;
}

.cm-industry-card p {
    margin: 0;
    color: #666;
    font-size: 15px;
    line-height: 1.7;
}


/* =========================================================
   WHY CHOOSE
   ========================================================= */

.cm-why {
    position: relative;
    overflow: hidden;
    background-image: url("../image/cnc-milling/cnc-milling-9.webp");
    background-size: cover;
    background-position: center;
}

.cm-why-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.93);
}

.cm-why-grid {
    position: relative;
    z-index: 2;
    align-items: center;
}

.cm-dark-image {
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.cm-dark-image img {
    min-height: 430px;
}

.cm-white-content h2 {
    color: #fff;
}

.cm-white-content .cm-section-label {
    color: #019bde;
}

.cm-check-list {
    margin: 5px 0 0;
    padding: 0;
    list-style: none;
}

.cm-check-list li {
    position: relative;
    margin-bottom: 17px;
    padding: 0 0 17px 32px;
    color: #ddd;
    font-size: 16px;
    line-height: 1.6;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.cm-check-list li:last-child {
    margin-bottom: 0;
}

.cm-check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 21px;
    height: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #019bde;
    color: #019bde;
    font-size: 12px;
    font-weight: 700;
}

/* =========================================================
   FAQ ACCORDION
   ========================================================= */

.cm-faq-section {
    background: #f5f6f7;
}

.cm-faq {
    max-width: 1050px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e2e2e2;
}

.cm-faq-item {
    border-bottom: 1px solid #e2e2e2;
}

.cm-faq-item:last-child {
    border-bottom: 0;
}

.cm-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 30px;
    border: 0;
    outline: 0;
    background: #fff;
    color: #111;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cm-faq-question:hover {
    color: #019bde;
    background: #fafafa;
}

.cm-faq-icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #019bde;
    color: #019bde;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    transition: all 0.3s ease;
}

.cm-faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows 0.35s ease;
}

.cm-faq-answer p {
    min-height: 0;
    margin: 0;
    padding: 0 30px;
    color: #666;
    font-size: 15px;
    line-height: 1.8;
    opacity: 0;
    transition: opacity 0.25s ease, padding 0.35s ease;
}

.cm-faq-item.active .cm-faq-answer {
    grid-template-rows: 1fr;
}

.cm-faq-item.active .cm-faq-answer p {
    padding: 0 30px 25px;
    opacity: 1;
}

.cm-faq-item.active .cm-faq-question {
    color: #019bde;
}

.cm-faq-item.active .cm-faq-icon {
    background: #019bde;
    color: #fff;
    transform: rotate(45deg);
}


/* =========================================================
   FAQ MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .cm-faq-question {
        padding: 20px;
        font-size: 16px;
    }

    .cm-faq-icon {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
        font-size: 20px;
    }

    .cm-faq-item.active .cm-faq-answer p {
        padding: 0 20px 22px;
    }

}

/* =========================================================
   CTA
   ========================================================= */

.cm-cta {
    position: relative;
    overflow: hidden;
    padding: 110px 0;
    background-image: url("../image/cnc-milling/cnc-milling-9.webp");
    background-size: cover;
    background-position: center;
}

.cm-cta-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.88),
            rgba(0, 0, 0, 0.68)
        );
}

.cm-cta-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.cm-cta-content .cm-section-label {
    margin-bottom: 15px;
}

.cm-cta-content h2 {
    margin: 0 0 22px;
    color: #fff;
    font-size: 42px;
    line-height: 1.2;
    font-weight: 600;
}

.cm-cta-content p {
    margin: 0 auto 18px;
    color: #e5e5e5;
    font-size: 16px;
    line-height: 1.85;
}

.cm-cta-content .cm-cta-bold {
    color: #fff;
    font-size: 17px;
    font-weight: 600;
}

.cm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    padding: 16px 32px;
    background: #019bde;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.7px;
    transition: all 0.3s ease;
}

.cm-btn:hover {
    background: #fff;
    color: #111;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

    .cm-section {
        padding: 70px 0;
    }

    .cm-hero {
        min-height: 360px;
    }

    .cm-hero h1 {
        font-size: 44px;
    }

    .cm-two-column {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .cm-capability-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cm-content h2,
    .cm-section-heading h2 {
        font-size: 34px;
    }

    .cm-offer-image {
        order: -1;
    }

    .cm-material-content {
        padding-left: 0;
    }

    .cm-industry-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cm-why-grid {
        gap: 40px;
    }

    .cm-cta-content h2 {
        font-size: 36px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .cm-container {
        width: 92%;
    }

    .cm-section {
        padding: 55px 0;
    }

    .cm-hero {
        min-height: 320px;
    }

    .cm-hero-content {
        padding: 70px 0;
    }

    .cm-hero h1 {
        font-size: 34px;
    }

    .cm-section-heading {
        margin-bottom: 35px;
    }

    .cm-content h2,
    .cm-section-heading h2 {
        font-size: 30px;
    }

    .cm-capability-grid {
        grid-template-columns: 1fr;
    }

    .cm-card-image img {
        height: 250px;
    }

    .cm-industry-grid {
        grid-template-columns: 1fr;
    }

    .cm-industry-card {
        padding: 25px;
    }

    .cm-faq-item {
        grid-template-columns: 40px 1fr;
        gap: 15px;
        padding: 25px 20px;
    }

    .cm-faq-item h3 {
        font-size: 18px;
    }

    .cm-image-badge {
        right: 15px;
        bottom: 15px;
    }

    .cm-cta {
        padding: 75px 0;
    }

    .cm-cta-content h2 {
        font-size: 30px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .cm-hero h1 {
        font-size: 30px;
    }

    .cm-section {
        padding: 45px 0;
    }

    .cm-content h2,
    .cm-section-heading h2 {
        font-size: 27px;
    }

    .cm-content h3 {
        font-size: 21px;
    }

    .cm-image-frame img,
    .cm-intro .cm-image-frame img,
    .cm-offer-image .cm-image-frame img,
    .cm-material-grid .cm-image-frame img,
    .cm-dark-image img {
        min-height: 300px;
    }

    .cm-card-content {
        padding: 25px;
    }

    .cm-service-block {
        padding: 20px;
    }

    .cm-industry-card {
        gap: 15px;
        padding: 22px 18px;
    }

    .cm-industry-icon {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
    }

    .cm-faq-item {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .cm-faq-number {
        margin-bottom: 5px;
    }

    .cm-cta-content h2 {
        font-size: 27px;
    }
}