/**
 * Manufacturing Service Cards Section Pattern Styles
 * 
 * Styles for the three-column manufacturing service cards layout
 * matching the reference design with light background, peach icon circles,
 * and decorative background elements
 */

/* Main section container */
.manufacturing-services-section {
    position: relative;
    overflow: hidden;
}

/* Decorative circles in background */
.manufacturing-services-section::before {
    content: '';
    position: absolute;
    top: -60px;
    right: 15%;
    width: 200px;
    height: 200px;
    background: rgba(255, 107, 53, 0.08);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.manufacturing-services-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: 10%;
    width: 180px;
    height: 180px;
    background: rgba(255, 107, 53, 0.06);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Cards row - 3 cards in a row */
.manufacturing-cards-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.manufacturing-cards-row > .wp-block-column {
    flex: 1 1 calc(33.333% - 16px);
    min-width: 280px;
}

/* Individual manufacturing card */
.manufacturing-card {
    position: relative;
    overflow: visible;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    height: 100%;
    border: 3px solid var(--wp--preset--color--primary, #FF6B35);
}

/* Hover effect */
.manufacturing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    border-bottom: 10px solid var(--wp--preset--color--primary, #FF6B35);
}

/* Heading color change on hover */
.manufacturing-card h3 {
    transition: color 0.3s ease;
}

.manufacturing-card:hover h3 {
    color: var(--wp--preset--color--primary, #FF6B35) !important;
}

/* Icon box styling - light peach/orange circle background */
.manufacturing-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px !important;
    height: 68px !important;
    min-width: 68px !important;
    min-height: 68px !important;
    flex-shrink: 0;
    background-color: rgba(255, 107, 53, 0.12) !important;
    border-radius: 50% !important;
}

.manufacturing-icon-wrapper {
    margin-bottom: 10px !important;
    justify-content: flex-start !important;
}

.manufacturing-icon-box .wp-block-image {
    margin: 0;
    width: 36px !important;
    height: 36px !important;
}

.manufacturing-icon-box .wp-block-image img {
    display: block;
    width: 36px !important;
    height: 36px !important;
    /* Orange tint for icons */
    filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(346deg) brightness(98%) contrast(102%);
}

.manufacturing-icon-box figure {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Heading styling - dark/black color, left aligned */
.manufacturing-card h3 {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    color: #1a1a2e !important;
    font-weight: 700 !important;
    line-height: 1.3;
    text-align: left !important;
}

/* Paragraph styling - gray color, left aligned */
.manufacturing-card p {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    color: #6b7280 !important;
    line-height: 1.6;
    text-align: left !important;
}

/* Card line (separator) styling - orange color, left aligned, 4x height */
.manufacturing-card-line {
    text-align: left !important;
}

.manufacturing-card-line .wp-block-separator {
    width: 64px;
    margin-left: 0 !important;
    margin-right: auto !important;
    border: none;
    height: 48px;
    border-radius: 2px;
    background-color: var(--wp--preset--color--primary, #FF6B35) !important;
    opacity: 1 !important;
}

/* Ensure equal height cards */
.manufacturing-cards-row .wp-block-column {
    display: flex;
}

.manufacturing-cards-row .wp-block-column > .wp-block-group {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .manufacturing-cards-row > .wp-block-column {
        flex: 1 1 calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    .manufacturing-cards-row {
        flex-direction: column;
    }
    
    .manufacturing-cards-row > .wp-block-column {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .manufacturing-services-section::before,
    .manufacturing-services-section::after {
        display: none;
    }
}

/* Fix image block placeholder in editor */
.manufacturing-icon-box .components-placeholder,
.manufacturing-icon-box .block-editor-media-placeholder {
    min-height: auto !important;
    padding: 0 !important;
}
