/**
 * ============================================
 * SMARTDMA PAGE SPECIFIC STYLES
 * ============================================
 * Styles khusus untuk halaman Smart DMA.
 */

/* ==================== SMART DMA PAGE ==================== */

/* --- Hero Section with Blue Wave --- */
.dma-hero {
    position: relative;
    background: linear-gradient(180deg, #e6f5fc 0%, #ffffff 100%);
    padding: 50px 0 0;
    overflow: hidden;
}

.dma-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, #c8ecfa 0%, #e6f5fc 60%, transparent 100%);
    z-index: 0;
}

.dma-hero-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.dma-hero-left {
    flex: 0 0 55%;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    align-items: center;
}

.dma-hero-left .dma-img-main {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    align-self: center;
    justify-self: center;
}

.dma-hero-left .dma-img-side {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    align-self: center;
    justify-self: center;
}

.dma-hero-left .dma-img-meter {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    align-self: center;
    justify-self: center;
}

.dma-hero-left img {
    max-width: 100%;
    height: auto;
    display: block;
}

.dma-hero-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 30px;
}

.dma-hero-title {
    font-size: 72px;
    font-weight: 900;
    color: var(--color-primary, #009fe3);
    line-height: 1.1;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.dma-hero-desc {
    font-size: 14px;
    color: var(--color-text-light, #666);
    line-height: 1.7;
    max-width: 420px;
}

.dma-hero-desc p {
    margin: 0;
}

/* --- Specifications Section --- */
.specifications {
    padding: 60px 20px;
    background-color: #ffffff;
}

.specifications .section-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--color-text, #333);
}

.specs-top-row {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.spec-images {
    flex: 0 0 45%;
    display: flex;
    gap: 20px;
    align-items: flex-end;
}

.spec-images img {
    max-width: 100%;
    height: auto;
}

.spec-images .spec-img-left {
    flex: 1;
}

.spec-images .spec-img-right {
    flex: 1;
}

.spec-card-right {
    flex: 1;
}

/* Spec Card Title */
.spec-card-title {
    background-color: var(--color-primary, #009fe3);
    color: #fff;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.spec-group {
    margin-bottom: 20px;
}

.spec-group h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text, #333);
    margin: 15px 0 10px;
    text-transform: uppercase;
}

.spec-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.spec-detail-table tr {
    border-bottom: 1px solid #eee;
}

.spec-detail-table td {
    padding: 8px 0;
    color: var(--color-text-light, #666);
}

.spec-detail-table td:first-child {
    width: 40%;
    color: var(--color-text, #333);
    font-weight: 600;
}

/* Electric Aquator */
.electric-aquator {
    margin-bottom: 30px;
}

.electric-aquator .spec-card-title {
    display: inline-block;
    min-width: 220px;
}

.electric-aquator .spec-detail-table {
    margin-top: 15px;
}

.electric-aquator .spec-detail-table td:first-child {
    width: 22%;
}

/* General + Value Row */
.general-value-row {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.general-value-row .spec-card {
    flex: 1;
}

.general-value-row .spec-card-title {
    display: inline-block;
    min-width: 160px;
}

.general-value-row .spec-detail-table {
    margin-top: 15px;
}

.general-value-row .spec-detail-table td:first-child {
    width: 35%;
}

.output-mode h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text, #333);
    margin: 20px 0 10px;
    text-transform: uppercase;
}

.output-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 15px;
}

.output-table td {
    padding: 8px 12px;
    border: 1px solid #eee;
    text-align: center;
    color: var(--color-text-light, #666);
}

.output-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--color-text, #333);
    border-left: none;
}

.output-table tr:first-child td {
    border-top: none;
}

.output-table tr td:first-child {
    border-left: none;
}

.output-table tr td:last-child {
    border-right: none;
}

.output-table tr:last-child td {
    border-bottom: none;
}

/* Product Big Image */
.dma-product-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    background-color: #ffffff;
    margin: 40px 0;
}

.dma-product-image img {
    max-width: 400px;
    width: 100%;
    height: auto;
}

/* Flow Rate Table */
.flow-rate-section {
    margin-top: 40px;
}

.flow-rate-table-wrapper {
    overflow-x: auto;
}

.flow-rate-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 900px;
}

.flow-rate-table thead th {
    background-color: var(--color-primary, #009fe3);
    color: #fff;
    padding: 12px 8px;
    text-align: center;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.flow-rate-table thead th.col-item {
    text-align: left;
    padding-left: 15px;
}

.flow-rate-table tbody td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    color: var(--color-text-light, #666);
}

.flow-rate-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.flow-rate-table .item-label {
    font-weight: 600;
    color: var(--color-text, #333);
    text-align: left;
    padding-left: 15px;
}

.flow-rate-table .item-unit {
    font-weight: 600;
    color: var(--color-text, #333);
    background-color: #f5f5f5;
}

/* --- Benefits Section --- */
.benefits-section {
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.benefits-section .section-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--color-text, #333);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.benefit-card {
    text-align: center;
    padding: 20px;
}

.benefit-icon {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.benefit-icon img {
    max-height: 60px;
    width: auto;
}

.benefit-card p {
    font-size: 14px;
    color: var(--color-text-light, #666);
    line-height: 1.5;
}

/* --- Footer tweak --- */
.footer {
    background-color: var(--color-primary, #009fe3);
    color: #fff;
    padding: 30px 20px;
    font-size: 12px;
}

.footer a {
    color: #fff;
}

.footer-left h4,
.footer-center h4,
.footer-right h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-email-btn {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.footer-email-btn:hover {
    background: rgba(255,255,255,0.35);
    text-decoration: none;
}

.footer-phone {
    margin-top: 4px;
}

/* ============================================
   RESPONSIVE - SMART DMA
   ============================================ */
@media (max-width: 1023px) {
    .dma-hero-container {
        flex-direction: column;
        gap: 30px;
    }

    .dma-hero-left {
        flex: none;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }

    .dma-hero-right {
        text-align: center;
    }

    .dma-hero-title {
        font-size: 56px;
        margin-bottom: 30px;
    }

    .dma-hero-desc {
        max-width: 100%;
    }

    .specs-top-row {
        flex-direction: column;
        gap: 30px;
    }

    .spec-images {
        flex: none;
        width: 100%;
        justify-content: center;
    }

    .spec-card-right {
        flex: none;
        width: 100%;
    }

    .general-value-row {
        flex-direction: column;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .dma-hero-left {
        grid-template-columns: 1fr 1fr;
    }

    .dma-hero-left .dma-img-main {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }

    .dma-hero-left .dma-img-side {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }

    .dma-hero-left .dma-img-meter {
        grid-column: 1 / 3;
        grid-row: 2 / 3;
    }

    .dma-hero-title {
        font-size: 40px;
    }

    .spec-images {
        flex-direction: column;
        align-items: center;
    }

    .electric-aquator .spec-detail-table td:first-child {
        width: 35%;
    }

    .dma-product-image img {
        max-width: 280px;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .benefit-card {
        padding: 10px;
    }

    .benefit-icon {
        height: 50px;
    }

    .benefit-icon img {
        max-height: 45px;
    }
}

@media (max-width: 480px) {
    .dma-hero-title {
        font-size: 32px;
    }

    .specifications .section-title,
    .benefits-section .section-title {
        font-size: 22px;
    }

    .benefits-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .benefit-card p {
        font-size: 12px;
    }
}
