/* ============================================
   CUSTOM MOULDING PAGE
   ============================================ */

/* Taller banner */
.inner_banner {
    min-height: 450px;
	background-position: 0 35%;
}

.inner_banner .table {
    min-height: 450px;
}
.inner_banner:before {

}

/* ---- SECTION 1: INTRO ---- */
.cm-intro-section {
    padding: 80px 0;
}

.cm-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 85px;
    align-items: center;
}

.cm-intro-content h2 {
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    color: #131313;
    line-height: 1.3;
    margin: 0 0 30px;
}

.cm-intro-text {
    font-size: 18px;
    color: rgba(19, 19, 19, 0.7);
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 40px;
}

.cm-intro-text p {
    margin: 0 0 15px;
}

.cm-intro-image img {
    width: 100%;
    height: auto;
    border-radius: 0;
}

.btn-primary-green {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #1B81B5;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 15px 30px;
    border-radius: 0;
    text-decoration: none !important;
    transition: background-color 0.2s ease;
    line-height: 1.2;
}

.btn-primary-green:hover {
    background-color: #1276A9;
}


/* ---- SECTION 2: PROCESS & TIMELINE ---- */

.cm-process-info {
	justify-content: space-between;
    display: flex;
    flex-direction: column;
    min-height: 320px;
}
.cm-process-info h2 {
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    color: #131313;
    line-height: 1.3;
    margin: 0 0 20px;
}

.cm-process-desc {
    font-size: 18px;
    color: rgba(19, 19, 19, 0.7);
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 30px;
}

.cm-process-desc p {
    margin: 0 0 10px;
	max-width: 260px;
}

.cm-process-nav {
    display: flex;
    gap: 0px;
}

.cm-process-nav button {
    width: 44px;
    height: 44px;
    border-radius: 0;
    border: none;
    background: transparent;
	padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease;
}

.cm-process-nav button:hover {
    border-color: #1a1a8c;
}

/* Timeline cards */

/* Timeline cards — Slick carousel */
.cm-process-cards {
    margin: 0 -10px;
    min-width: 0;
}

.cm-process-card {
    background: #ffffff;
    padding: 30px 20px 30px 30px;
    border: 1px solid #e8e8e8;
    margin: 0 10px;
    min-height: 320px;
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
}
.cm-process-section {
    padding: 40px 0 80px;
    overflow: hidden;
}

.cm-process-card:hover {
    background: #0F0E36;
    color: #ffffff;
    border-color: #0F0E36;
}

.cm-process-card h4 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px;
    line-height: 1.3;
}

.cm-process-card:hover h4 {
    color: #ffffff;
}

.cm-process-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 80px;
    align-items: start;
    margin-bottom: 60px;
    min-width: 0;
}

.cm-process-grid > * {
    min-width: 0;
}

.cm-process-card-number {
    font-size: 40px;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 5px;
}

.cm-process-card-unit {
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
}

/* Note box */
.cm-process-note {
    padding: 25px 40px;
    border: 1px solid #F8F8F8;
    background: #F8F8F8;
    font-size: 18px;
    color: rgba(19, 19, 19, 0.7);
    line-height: 1.6;
	font-weight: 300;
}

.cm-process-note strong {
    display: block;
    margin-bottom: 5px;
    color: #131313;
    font-size: 18px;
}

.cm-process-note p {
    margin: 0;
}


/* ---- SECTION 3: WHAT WE CAN MOULD (reuses homepage styles) ---- */
.custom-moulding-section { position: relative; }

.page-template-page-custom-moulding .custom-moulding-bg {
    position: relative;
    background-size: cover;
    background-position: top center;
    padding: 80px 0;
    min-height: 750px;
    display: flex;
    align-items: center;
}

.custom-moulding-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.custom-moulding-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.custom-moulding-content { color: #ffffff; }

.custom-moulding-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 30px;
    text-transform: uppercase;
    line-height: 1.2;
    max-width: 450px;
}

.custom-moulding-text {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 500px;
}

.custom-moulding-text p { margin: 0 0 15px; }

.custom-moulding-text ul {
    padding-left: 20px;
    margin: 15px 0;
}

.custom-moulding-text li {
    list-style: disc;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.8);
}

.custom-moulding-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}


/* ---- SECTION 4: CUSTOM PROJECTS ---- */
.cm-projects-section {
    padding: 100px 0;
	background: #0F0E36;
}

.cm-projects-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.cm-projects-header h2 {
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 45px;
}

.cm-projects-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-weight: 300;
}
.cm-projects-desc strong {
	font-size: 14px;
	font-weight: 600;
}

.cm-projects-desc p {
    margin: 0 0 10px;
}

.cm-projects-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.cm-projects-item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.cm-projects-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cm-projects-item:hover img {
    transform: scale(1.05);
}

/* Project image hover */
.cm-projects-item {
    display: block;
    cursor: pointer;
}

/* Lightbox overlay */
.cm-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
}

.cm-lightbox.is-active {
    opacity: 1;
    visibility: visible;
}

.cm-lightbox img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 0;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.cm-lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 32px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    line-height: 1;
}

.cm-lightbox-close:hover {
    opacity: 1;
}

/* ---- SECTION 5: FAQ (same as homepage) ---- */
.faq-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.faq-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.faq-title {
    font-size: 32px;
    font-weight: 700;
    color: #131313;
    text-align: center;
    margin: 0 0 70px;
    text-transform: uppercase;
}

.faq-panel {
    width: 100%;
	max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #e8e8e8;
    border-radius: 0px;
    margin-bottom: 20px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 50px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 24px;
    font-weight: 500;
    color: #131313;
    outline: none;
    transition: background-color 0.2s ease;
    gap: 20px;
    font-family: inherit;
}

.faq-chevron {
    flex-shrink: 0;
    color: #131313;
    transition: transform 0.2s ease;
    width: 30px;
    height: 30px;
}

.faq-item.is-open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.is-open .faq-answer { max-height: 500px; }

.faq-answer-inner {
    padding: 0 50px 30px;
    font-size: 18px;
    color: rgba(19,19,19,0.7);
    line-height: 1.6;
}

.faq-answer-inner ul { padding-left: 20px; }
.faq-answer-inner li { list-style: disc; }
.faq-answer-inner p { margin: 0 0 10px; }


/* ---- SECTION 6: CTA ---- */
/* CTA section — overlay flipped to left */
.cm-cta-flipped .custom-moulding-bg {
	min-height: 600px;
	background-position: 0 45%;
}
.cm-cta-flipped .custom-moulding-overlay::after {
    right: auto;
    left: 0;
	width: 47%;
}


/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .cm-intro-grid {
        gap: 80px;
		grid-template-columns: 1fr;
    }
.cm-intro-section {
    padding: 80px 0 40px;
}
    .cm-process-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
	
	.cm-process-info {
    min-height: auto;
}
.cm-process-desc p {
	max-width: 100%;
}
	.cm-process-card {
    min-height: 350px;
}

   .custom-moulding-grid { grid-template-columns: 1fr; }
    .custom-moulding-spacer { display: none; }
    .custom-moulding-overlay::after { width: 100%; }
    .custom-moulding-text,
    .custom-moulding-content h2 { max-width: 100%; }
}

@media (max-width: 767px) {
	.btn-primary-green {
        padding: 15px 15px 15px 20px;
    }
	.inner_banner {
    min-height: 250px;
}

.inner_banner .table {
    min-height: 250px;
}
    .cm-process-section,
    .cm-projects-section,
    .cm-faq-section, .faq-section {
        padding: 50px 0;
    }
	.cm-intro-section {
		padding: 50px 0 0;
	}
	.cm-intro-text {
    font-size: 18px;
	}

    .cm-intro-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .cm-intro-content h2,
    .cm-process-info h2,
    .cm-mould-content h2,
    .cm-projects-header h2,
    .cm-faq-title,
    .cm-cta-content h2, .custom-moulding-content h2, .faq-title {
        font-size: 24px;
    }
	.cm-process-desc {
		font-size: 16px;
	}
	.cm-process-note {
    padding: 25px 30px;
    font-size: 16px
	}

    .cm-process-cards {
        grid-template-columns: 1fr;
    }
	.cm-projects-header, .faq-title {
		text-align: left;
		margin: 0 0 40px;
	}
	.cm-projects-desc {
		font-size: 16px;
	}

    .cm-projects-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .custom-moulding-bg {
        padding: 50px 0;
        min-height: auto;
    }
	.custom-moulding-text {
		font-size: 16px;
	}
    .faq-question {
		font-size: 20px;
		padding: 20px;
		line-height: 1.2;
	}
	.faq-answer-inner {
		font-size: 16px;
		padding: 0 20px 30px;
	}
	.cm-cta-flipped .custom-moulding-bg {
		min-height: 400px;
	}
	.cm-cta-flipped .custom-moulding-overlay::after {
	width: 100%;
	background: rgba(0,0,0,0.5);
	}
}

@media (max-width: 480px) {
    .cm-projects-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}
