/* Custom Solutions page keeps banner/breadcrumb visuals from css/products.css.
   Add only page-specific overrides here when needed. */

/* =========================================================================
   Facility section (#bw-facility-section)
   ========================================================================= */

#bw-facility-section {
    background-color: #FFFFFF;
    padding: 80px 0;
    box-sizing: border-box;
}

#bw-facility-section .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: var(--frame-safe-x);
    padding-right: var(--frame-safe-x);
    box-sizing: border-box;
}

/* Top animated lines */
#bw-facility-section .line-shift-wrapper {
    width: 100%;
    margin: 0 auto 40px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 30px;
}

#bw-facility-section .line-shift-top {
    width: 60px;
    height: 1px;
    background: #111;
    animation: shiftRightHistory 4s ease-in-out infinite alternate;
}

#bw-facility-section .line-shift-bottom {
    width: 60px;
    height: 2px;
    background: #F08200;
    animation: shiftLeftHistory 4s ease-in-out infinite alternate;
}

@keyframes shiftRightHistory {
    0% { transform: translateX(-15px); }
    100% { transform: translateX(15px); }
}

@keyframes shiftLeftHistory {
    0% { transform: translateX(15px); }
    100% { transform: translateX(-15px); }
}

/* Header row */
#bw-facility-section .header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    gap: 40px;
}

#bw-facility-section .title-box {
    flex: 1;
    max-width: 600px;
}

#bw-facility-section .title-box h2 {
    font-size: 36px;
    font-weight: 700;
    color: #222;
    margin: 0 0 12px 0;
}

#bw-facility-section .title-box p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

#bw-facility-section .stats-box {
    display: flex;
    gap: 40px;
}

#bw-facility-section .stat-item {
    border-left: 2px solid #F08200;
    padding-left: 16px;
}

#bw-facility-section .stat-num {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #F08200;
    line-height: 1;
    margin-bottom: 5px;
}

#bw-facility-section .stat-lbl {
    font-size: 13px;
    color: #888;
    text-transform: uppercase;
}

/* Gallery grid */
#bw-facility-section .facility-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

#bw-facility-section .facility-card {
    background: #fff;
    border: 1px solid #F0F0F0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

#bw-facility-section .facility-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: #F08200;
}

#bw-facility-section .img-box {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #FAFAFA;
}

#bw-facility-section .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

#bw-facility-section .facility-card:hover .img-box img {
    transform: scale(1.05);
}

#bw-facility-section .info-box {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#bw-facility-section .info-box h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

#bw-facility-section .facility-card:hover h3 {
    color: #F08200;
}

#bw-facility-section .device-tag {
    font-size: 12px;
    font-weight: 700;
    color: #F08200;
    background: #FFF5EB;
    padding: 4px 10px;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 1024px) {
    #bw-facility-section .facility-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    #bw-facility-section .facility-grid { grid-template-columns: 1fr; }
    #bw-facility-section .header-row { flex-direction: column; align-items: flex-start; }
}

/* OEM/ODM flow section */
.oem-flow-wrapper {
    background-color: #FFFFFF;
    padding: 80px 20px;
    font-family: inherit;
    box-sizing: border-box;
}

.flow-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.flow-title {
    color: #333333;
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 16px 0;
}

.flow-divider {
    width: 50px;
    height: 4px;
    background-color: #F08200;
    margin: 0 auto 20px auto;
    border-radius: 2px;
}

.flow-desc {
    color: #666666;
    font-size: 16px;
    line-height: 1.6;
}

.flow-grid {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: var(--frame-safe-x);
    padding-right: var(--frame-safe-x);
    gap: 30px;
    box-sizing: border-box;
}

.flow-card {
    background-color: #FFFFFF;
    flex: 1;
    border-radius: 12px;
    position: relative;
    border: 1px solid #EAEAEA;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.flow-card:hover {
    transform: translateY(-8px);
    border-color: #F08200;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.flow-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 130px;
    right: -24px;
    width: 14px;
    height: 14px;
    border-top: 3px solid #F08200;
    border-right: 3px solid #F08200;
    transform: translateY(-50%) rotate(45deg);
    z-index: 10;
}

.flow-img-box {
    width: 100%;
    height: 260px;
    border-radius: 11px 11px 0 0;
    overflow: hidden;
    position: relative;
    background-color: #EEEEEE;
    border-bottom: 1px solid #EAEAEA;
}

.flow-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.flow-card:hover .flow-img-box img {
    transform: scale(1.06);
}

.flow-step-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: #F08200;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 30px;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(240, 130, 0, 0.3);
}

.flow-text-box {
    padding: 24px 24px;
    flex-grow: 1;
}

.flow-card-title {
    color: #333333;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.flow-card-text {
    color: #777777;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 1100px) {
    .flow-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .flow-card:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .flow-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .flow-header {
        margin-bottom: 40px;
    }

    .flow-title {
        font-size: 28px;
    }

    .flow-img-box {
        height: 220px;
    }
}

/* Artistic full-width contact form */
#bw-artistic-full-contact {
    width: 100%;
    margin: 60px 0 0 0;
    background-color: #FFFFFF;
    font-family: inherit;
}

#bw-artistic-full-contact .container {
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: stretch;
}

#bw-artistic-full-contact .artistic-showcase {
    flex: 0 0 40%;
    background: linear-gradient(135deg, #0A0B0E 0%, #1A1C23 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #FFF;
}

#bw-artistic-full-contact .artistic-showcase::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(240, 130, 0, 0.15) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

#bw-artistic-full-contact .artistic-showcase::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    box-shadow: inset 0 0 0 40px transparent, inset 0 0 0 41px rgba(255, 255, 255, 0.03), inset 0 0 0 80px transparent, inset 0 0 0 81px rgba(255, 255, 255, 0.02), inset 0 0 0 120px transparent, inset 0 0 0 121px rgba(240, 130, 0, 0.08);
    z-index: 2;
    pointer-events: none;
}

#bw-artistic-full-contact .showcase-content {
    position: relative;
    z-index: 5;
}

#bw-artistic-full-contact .showcase-content h2 {
    font-size: 48px;
    font-weight: 900;
    margin: 0 0 20px 0;
    line-height: 1.1;
    letter-spacing: -1px;
}

#bw-artistic-full-contact .showcase-content h2 span {
    color: #F08200;
}

#bw-artistic-full-contact .showcase-content p {
    font-size: 16px;
    color: #9AA0A6;
    line-height: 1.6;
    margin: 0 0 40px 0;
    max-width: 400px;
}

#bw-artistic-full-contact .data-bars {
    display: flex;
    gap: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

#bw-artistic-full-contact .data-item {
    display: flex;
    flex-direction: column;
}

#bw-artistic-full-contact .data-num {
    font-size: 24px;
    font-weight: 700;
    color: #FFF;
    font-family: monospace;
}

#bw-artistic-full-contact .data-unit {
    font-size: 14px;
    color: #999;
}

#bw-artistic-full-contact .data-lbl {
    font-size: 11px;
    color: #F08200;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#bw-artistic-full-contact .form-section {
    flex: 1;
    padding: 80px 8% 40px 8%;
    background-color: #FAFAFA;
    position: relative;
}

#bw-artistic-full-contact .form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23D1D5DB'/%3E%3C/svg%3E");
    opacity: 0.6;
    z-index: 1;
    pointer-events: none;
}

#bw-artistic-full-contact .line-shift-wrapper {
    width: 100%;
    margin: 0 0 40px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    height: 30px;
    position: relative;
    z-index: 10;
}

#bw-artistic-full-contact .line-shift-top {
    width: 60px;
    height: 1px;
    background: #111;
    animation: shiftRightFull 4s ease-in-out infinite alternate;
}

#bw-artistic-full-contact .line-shift-bottom {
    width: 60px;
    height: 2px;
    background: #F08200;
    animation: shiftLeftFull 4s ease-in-out infinite alternate;
}

@keyframes shiftRightFull {
    0% { transform: translateX(0); }
    100% { transform: translateX(20px); }
}

@keyframes shiftLeftFull {
    0% { transform: translateX(20px); }
    100% { transform: translateX(0); }
}

#bw-artistic-full-contact .form-title {
    font-size: 28px;
    font-weight: 800;
    color: #111;
    margin: 0 0 10px 0;
    position: relative;
    z-index: 10;
}

#bw-artistic-full-contact .form-subtitle {
    font-size: 14px;
    color: #777;
    margin: 0 0 40px 0;
    position: relative;
    z-index: 10;
}

#bw-artistic-full-contact .bw-custom-form {
    position: relative;
    z-index: 10;
    margin-bottom: 0;
}

#bw-artistic-full-contact .bw-field-row {
    display: block;
    margin-bottom: 18px;
}

#bw-artistic-full-contact .bw-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

#bw-artistic-full-contact .bw-field-group {
    width: 100%;
}

#bw-artistic-full-contact .bw-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

#bw-artistic-full-contact .bw-input-text,
#bw-artistic-full-contact .bw-upload-input {
    width: 100%;
    padding: 18px 20px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    font-size: 15px;
    color: #111;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    font-family: inherit;
    box-sizing: border-box;
}

#bw-artistic-full-contact textarea.bw-input-text {
    min-height: 140px;
    resize: vertical;
}

#bw-artistic-full-contact .bw-input-text:focus,
#bw-artistic-full-contact .bw-upload-input:focus {
    border-color: #F08200;
    box-shadow: 0 5px 15px rgba(240, 130, 0, 0.08);
    outline: none;
}

#bw-artistic-full-contact .bw-upload-group .bw-upload-input {
    border: 2px dashed #D1D5DB;
    background: #FFFFFF;
    padding: 20px;
    text-align: center;
    cursor: pointer;
}

#bw-artistic-full-contact .bw-upload-group .bw-upload-input:hover {
    border-color: #F08200;
    background: #FFF9F3;
}

#bw-artistic-full-contact .bw-upload-input::file-selector-button {
    background: #111;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    margin-right: 15px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}

#bw-artistic-full-contact .bw-upload-input::file-selector-button:hover {
    background: #F08200;
}

#bw-artistic-full-contact .bw-submit-btn {
    background: #111;
    color: #FFF;
    padding: 22px 0;
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    transition: 0.3s;
    width: 100%;
    margin-top: 15px;
    border: none;
    cursor: pointer;
}

#bw-artistic-full-contact .bw-submit-btn:hover {
    background: #F08200;
    box-shadow: 0 10px 20px rgba(240, 130, 0, 0.3);
    transform: translateY(-2px);
}

#bw-artistic-full-contact .bw-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

#bw-artistic-full-contact .bw-input-text.is-error,
#bw-artistic-full-contact .bw-upload-input.is-error {
    border-color: #D14343;
}

@media (max-width: 1024px) {
    #bw-artistic-full-contact .container {
        flex-direction: column;
    }

    #bw-artistic-full-contact .artistic-showcase {
        padding: 60px 5%;
    }

    #bw-artistic-full-contact .form-section {
        padding: 50px 5%;
    }
}

@media (max-width: 768px) {
    #bw-artistic-full-contact .bw-two-col {
        grid-template-columns: 1fr;
    }
}
