/* ===== INTRO ===== */
.infra-intro {
    padding: 80px 20px 0;
    background-color: var(--bg-white);
}

/* ===== MACHINES ===== */
.machines {
    padding: 60px 20px 110px;
    background-color: var(--bg-white);
}

.machine-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
    padding-bottom: 80px;
    border-bottom: 1px solid rgba(0,128,128,0.1);
}

.machine-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Reverse layout for alternating cards */
.machine-card.reverse {
    direction: rtl;
}

.machine-card.reverse > * {
    direction: ltr;
}

.machine-image {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
}

.machine-image img {
    width: 100%;
    height: 350px;
    object-fit: contain;
    border-radius: 6px;
    transition: transform 0.5s ease;
    box-shadow: 0 10px 40px rgba(0,128,128,0.1);
    background-color: #f5f7f7;
    padding: 20px;
}

.machine-image:hover img {
    transform: scale(1.04);
}

.machine-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 3px;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.machine-details h3 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.machine-details h3 span {
    color: var(--teal);
}

.machine-details > p {
    color: var(--text-grey);
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 25px;
}

/* ===== SPEC TABLE ===== */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,128,128,0.08);
}

.spec-table thead tr {
    background: linear-gradient(135deg, var(--teal-dark), var(--teal));
}

.spec-table thead th {
    padding: 12px 16px;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: left;
}

.spec-table tbody tr {
    border-bottom: 1px solid rgba(0,128,128,0.08);
    transition: background 0.2s ease;
}

.spec-table tbody tr:last-child {
    border-bottom: none;
}

.spec-table tbody tr:nth-child(even) {
    background-color: rgba(0,128,128,0.03);
}

.spec-table tbody tr:hover {
    background-color: rgba(0,128,128,0.06);
}

.spec-table tbody td {
    padding: 11px 16px;
    color: var(--text-mid);
    font-size: 13px;
    font-weight: 400;
}

.spec-table tbody td:last-child {
    color: var(--teal);
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 15px;
}

/* ===== SUPPORT FACILITY ===== */
.support-facility {
    padding: 110px 20px;
    background-color: var(--bg-light);
    position: relative;
}

.support-facility::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--orange), transparent);
}

.facility-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.facility-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.35s ease;
    box-shadow: 0 2px 15px rgba(0,128,128,0.06);
}

.facility-card:hover {
    border-color: var(--teal);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,128,128,0.12);
}

.facility-image {
    position: relative;
    overflow: hidden;
}

.facility-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.9);
}

.facility-card:hover .facility-image img {
    transform: scale(1.05);
    filter: brightness(1);
}

.facility-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0,128,128,0.7),
        rgba(232,119,34,0.7)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.facility-card:hover .facility-overlay {
    opacity: 1;
}

.facility-content {
    padding: 25px 25px 30px;
}

.facility-content h4 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 12px;
}

.facility-content h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: linear-gradient(90deg, var(--teal), var(--orange));
}

.facility-content p {
    color: var(--text-grey);
    font-size: 14px;
    line-height: 1.9;
}

.hero-infra {
    background:
        linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)),
        url('../images/infra-wall.jpg') center/cover no-repeat;
}