/* =========================================================
   ZENTRUM TECHNO SOLUTIONS
   Industrial Automation v2
   File: automation-v2.css

   Load after:
   style.css
   hero-v2.css
   homepage.css
   ========================================================= */

.automation-section {
    position: relative;
    padding: 110px 0;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        #17212b 0%,
        var(--zentrum-blue-dark) 100%
    );
    color: var(--zentrum-white);
}

.automation-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.035;
    background-image:
        linear-gradient(rgba(255,255,255,.75) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.75) 1px, transparent 1px);
    background-size: 70px 70px;
}

.automation-section::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 130px;
    height: 5px;
    background-color: var(--zentrum-red);
}

.automation-section .section-container {
    position: relative;
    z-index: 2;
}

.automation-v2-layout {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(500px, 1.1fr);
    gap: 100px;
    align-items: center;
}

.automation-v2-content {
    max-width: 610px;
}

.automation-v2-eyebrow {
    margin-bottom: 20px;
    color: #9bc4dc;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .17em;
}

.automation-v2-content h2 {
    margin: 0;
    color: var(--zentrum-white);
    font-size: clamp(40px, 3.6vw, 54px);
    font-weight: 700;
    line-height: 1.07;
    letter-spacing: -.03em;
}

.automation-v2-content h2 span {
    display: block;
    color: #9bc4dc;
}

.automation-v2-lead {
    margin-top: 30px;
    color: rgba(255,255,255,.90);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.6;
}

.automation-v2-description {
    margin-top: 17px;
    color: rgba(255,255,255,.62);
    font-size: 15px;
    line-height: 1.8;
}

.automation-v2-link {
    margin-top: 32px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--zentrum-white);
    font-size: 14px;
    font-weight: 700;
}

.automation-v2-link::before {
    content: "";
    width: 32px;
    height: 2px;
    background-color: var(--zentrum-red);
    transition: width var(--transition-standard);
}

.automation-v2-link span {
    color: var(--zentrum-red);
    transition: transform var(--transition-fast);
}

.automation-v2-link:hover::before {
    width: 44px;
}

.automation-v2-link:hover span {
    transform: translateX(5px);
}


/* Capability panel */

.automation-v2-capabilities {
    border-top: 1px solid rgba(255,255,255,.17);
}

.automation-v2-capability {
    position: relative;
    padding: 27px 46px 27px 0;
    border-bottom: 1px solid rgba(255,255,255,.14);
    transition:
        padding-left var(--transition-standard),
        background-color var(--transition-standard);
}

.automation-v2-capability::after {
    content: "→";
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,.26);
    font-size: 18px;
    transition:
        color var(--transition-fast),
        transform var(--transition-fast);
}

.automation-v2-capability:hover {
    padding-left: 15px;
    background-color: rgba(255,255,255,.035);
}

.automation-v2-capability:hover::after {
    color: var(--zentrum-red);
    transform: translate(4px, -50%);
}

.automation-v2-capability h3 {
    margin-bottom: 7px;
    color: var(--zentrum-white);
    font-size: 19px;
    font-weight: 600;
}

.automation-v2-capability p {
    max-width: 600px;
    color: rgba(255,255,255,.56);
    font-size: 14px;
    line-height: 1.65;
}


/* Bottom statement */

.automation-v2-footer {
    margin-top: 65px;
    padding-top: 27px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    border-top: 1px solid rgba(255,255,255,.14);
}

.automation-v2-footer-label {
    color: rgba(255,255,255,.40);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .15em;
}

.automation-v2-footer p {
    color: rgba(255,255,255,.78);
    font-size: 14px;
    font-weight: 600;
}

.automation-v2-footer strong {
    color: var(--zentrum-white);
}


/* Hide legacy automation elements if any remain */
.automation-layout,
.automation-flow,
.automation-decoration {
    /* These are not used by the v2 HTML. */
}


/* Tablet */

@media (max-width: 1000px) {
    .automation-section {
        padding: 90px 0;
    }

    .automation-v2-layout {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .automation-v2-content {
        max-width: 720px;
    }

    .automation-v2-capabilities {
        max-width: 760px;
    }
}


/* Mobile */

@media (max-width: 600px) {
    .automation-section {
        padding: 70px 0;
    }

    .automation-v2-content h2 {
        font-size: 38px;
    }

    .automation-v2-lead {
        margin-top: 25px;
        font-size: 17px;
    }

    .automation-v2-capability {
        padding: 23px 38px 23px 0;
    }

    .automation-v2-capability:hover {
        padding-left: 8px;
    }

    .automation-v2-capability h3 {
        font-size: 18px;
    }

    .automation-v2-footer {
        margin-top: 50px;
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}
