/* =============================================
   PRECISION INJECTION MOULDING — plastics.css
   GenX PV Design System
   ============================================= */

/* ---- HERO ---- */
.plastics-hero {
    position: relative;
    overflow: hidden;
    margin-top: calc(-1 * var(--header-height));
    padding: calc(var(--header-height) + 80px) 0 80px;
    background: linear-gradient(105deg, rgba(255, 255, 255, 0.95) 30%, rgba(255, 255, 255, 0.4) 100%), url('../../images/products/pv_junction_background_2.png') top right/cover no-repeat;
}

@media (max-width: 768px) {
    .plastics-hero {
        padding: 140px 0 40px;
    }
}

.plastics-hero-flex-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.plastics-hero-text-col {
    text-align: center;
}

@media (min-width: 992px) {
    .plastics-hero-flex-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .plastics-hero-text-col {
        flex: 1 1 50%;
        text-align: left;
    }

    .plastics-hero-img-col {
        flex: 1 1 50%;
        text-align: center;
    }
}

.plastics-badge {
    display: inline-block;
    color: #2ECC71;
    background: rgba(46, 204, 113, 0.1);
    font-size: clamp(0.7rem, 2.5vw, 0.85rem);
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 14px;
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 50px;
    margin-bottom: 1.2rem;
    line-height: 1.5;
    white-space: nowrap;
}

.plastics-hero-title {
    font-family: var(--font-primary);
    font-size: clamp(1.5rem, 2.8vw, 2.4rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--color-oxford-blue);
    margin: 0 0 1rem;
    letter-spacing: -1px;
}

.plastics-hero-accent {
    background: linear-gradient(135deg, #0F9B8E 0%, #2ECC71 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.plastics-hero-subtitle {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 0.8rem;
    letter-spacing: 0.3px;
}

.plastics-hero-desc {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.65;
    max-width: 580px;
    margin-bottom: 2rem;
}

.plastics-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 40px !important;
    font-size: 1.05rem !important;
    white-space: nowrap;
    font-weight: 600;
    color: #ffffff !important;
    border-radius: 50px;
    background: linear-gradient(135deg, #0F9B8E 0%, #2ECC71 100%);
    border: none;
    box-shadow: 0 8px 25px rgba(15, 155, 142, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.plastics-hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(15, 155, 142, 0.45);
    color: #ffffff !important;
}

.plastics-hero-img-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    padding-bottom: 120%;
    background: radial-gradient(ellipse at center, rgba(46, 204, 113, 0.15) 0%, rgba(232, 248, 243, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

.plastics-hero-product-img {
    max-width: 100%;
    max-height: 420px;
    height: auto;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 4px solid #ffffff;
    z-index: 1;
}

/* Certifications Marquee Section */
.cert-marquee-section {
    background-color: #F8FAFC;
    overflow: hidden;
    position: relative;
    padding: 30px 0;
}

.cert-marquee-container {
    display: flex;
    width: 200%;
    animation: marqueeScroll 30s linear infinite;
}

.cert-marquee-container:hover {
    animation-play-state: paused;
}

.cert-marquee-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
}

.cert-img {
    height: 55px;
    object-fit: contain;
    transition: all 0.3s ease;
    margin: 0 40px;
}

.cert-img:hover {
    transform: scale(1.05);
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.cert-fade-left {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 100px;
    background: linear-gradient(to right, #F8FAFC, transparent);
    z-index: 2;
    pointer-events: none;
}

.cert-fade-right {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100px;
    background: linear-gradient(to left, #F8FAFC, transparent);
    z-index: 2;
    pointer-events: none;
}

/* ---- STATS STRIP ---- */
.plastics-stats-strip {
    background: #ffffff;
    padding: 30px 0;
    border-bottom: 1px solid #E2E8F0;
}

.plastics-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.plastics-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-right: 1px solid #E2E8F0;
    text-align: center;
    transition: background 0.25s;
}

.plastics-stat:last-child { border-right: none; }

.plastics-stat:hover {
    background: #F8FAFC;
}

.plastics-stat-val {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-oxford-blue);
    line-height: 1;
    margin-bottom: 6px;
}

.plastics-stat-val small {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2ECC71;
}

.plastics-stat-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748B;
    letter-spacing: 0.3px;
}

/* ---- SHARED TOKENS ---- */
.plastics-section-badge {
    display: inline-block;
    background: rgba(0, 183, 179, 0.1);
    border: 1px solid rgba(0, 183, 179, 0.35);
    color: #00B7B3;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 5px 12px;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.plastics-section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--color-oxford-blue);
    margin: 0 0 1rem;
    line-height: 1.2;
}

.plastics-title-light {
    color: #fff;
}

.plastics-accent-text {
    color: #00B7B3;
}

.plastics-title-divider {
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, #00B7B3, #4CE06E);
    border-radius: 2px;
    margin-bottom: 1.5rem;
}

.plastics-divider-green {
    background: linear-gradient(90deg, #4CE06E, #00B7B3);
}

.plastics-section-subtext {
    color: #4A5A68;
    font-size: 0.97rem;
    max-width: 580px;
    margin: 0.5rem auto 0;
    line-height: 1.7;
}

.plastics-section-desc {
    color: #4A5A68;
    font-size: 0.97rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}

/* ---- PROCESS SECTION ---- */
.plastics-process-section {
    padding: 80px 0;
    background: #F8FAFC;
}

.plastics-process-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.plastics-process-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    min-height: 340px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plastics-process-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.plastics-process-card--alt {
    direction: rtl;
}

.plastics-process-card--alt > * {
    direction: ltr;
}

/* Image side */
.plastics-process-visual {
    position: relative;
    overflow: hidden;
    background: #F1F5F9;
}

.plastics-process-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
    display: block;
    transition: transform 0.5s ease;
}

.plastics-process-card:hover .plastics-process-img {
    transform: scale(1.05);
}

.plastics-process-img-overlay {
    display: none;
}

/* Text side */
.plastics-process-body {
    background: linear-gradient(105deg, rgba(255, 255, 255, 0.98) 40%, rgba(255, 255, 255, 0.3) 100%), url('../../images/products/pv_junction_background_2.png') top right/cover no-repeat;
    padding: 44px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.plastics-process-card--alt .plastics-process-body {
    background: linear-gradient(105deg, rgba(255, 255, 255, 0.98) 40%, rgba(255, 255, 255, 0.3) 100%), url('../../images/products/pv_junction_background_2.png') top right/cover no-repeat;
}

.plastics-step-num {
    font-size: 2.8rem;
    font-weight: 900;
    color: rgba(46, 204, 113, 0.25);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -2px;
    font-family: var(--font-primary);
}

.plastics-process-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-oxford-blue);
    margin: 0 0 12px;
}

.plastics-process-desc {
    font-size: 0.98rem;
    color: #475569;
    line-height: 1.7;
    margin: 0 0 20px;
}

.plastics-process-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.plastics-process-tags span {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #0F9B8E;
    background: rgba(15, 155, 142, 0.08);
    border: 1px solid rgba(15, 155, 142, 0.2);
    padding: 4px 12px;
    border-radius: 50px;
}

/* ---- PILLARS SECTION ---- */
.plastics-pillars-section {
    background: linear-gradient(135deg, #001228 0%, #001F37 50%, #002a18 100%);
    padding: 90px 0;
    position: relative;
    overflow: hidden;
}

.plastics-pillars-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -80px;
    width: 600px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(76, 224, 110, 0.08) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.plastics-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.plastics-pillar-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 30px;
    transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.plastics-pillar-card:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(0, 183, 179, 0.3);
    transform: translateY(-4px);
}

.plastics-pillar-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(0,183,179,0.18), rgba(76,224,110,0.1));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00B7B3;
    margin-bottom: 1.1rem;
}

.plastics-pillar-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}

.plastics-pillar-desc {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.65;
    margin: 0;
}

/* ---- CTA SECTION ---- */
.plastics-cta-section {
    background: #fff;
    padding: 90px 0;
}

.plastics-cta-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.plastics-cta-tagline {
    font-style: italic;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-oxford-blue);
    border-left: 4px solid #4CE06E;
    padding-left: 16px;
    margin: 1.5rem 0 2rem;
    line-height: 1.5;
}

.plastics-cta-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.plastics-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}

.plastics-cta-btn--primary {
    background: linear-gradient(90deg, #00B7B3, #4CE06E);
    color: #001F37;
}

.plastics-cta-btn--primary:hover {
    opacity: 0.88;
    color: #001F37;
    transform: translateY(-2px);
}

.plastics-cta-btn--outline {
    border: 2px solid #00B7B3;
    color: #00B7B3;
    background: transparent;
}

.plastics-cta-btn--outline:hover {
    background: rgba(0, 183, 179, 0.08);
    color: #00B7B3;
}

/* CTA image */
.plastics-cta-visual {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    box-shadow: 0 20px 50px rgba(0, 31, 55, 0.08);
}

.plastics-cta-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    padding: 0;
    display: block;
}

.plastics-cta-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0,31,55,0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(76,224,110,0.3);
    border-radius: 10px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4CE06E;
    font-size: 0.85rem;
    font-weight: 700;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 992px) {
    .plastics-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .plastics-process-card,
    .plastics-process-card--alt {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .plastics-process-visual {
        height: 240px;
    }

    .plastics-process-body {
        padding: 36px 28px;
    }

    .plastics-pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .plastics-cta-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .plastics-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .plastics-pillars-grid {
        grid-template-columns: 1fr;
    }

    .plastics-hero-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        line-height: 1.25;
    }
}
