/* ============================================================
   COWAY LAYANAN PAGE STYLES - 4-TIER RESPONSIVE & FIGMA MATCH
   ============================================================ */

.layanan-page {
    background: #FFFFFF;
    color: #333333;
    min-height: 100vh;
}

.relative-z {
    position: relative;
    z-index: 2;
}

/* Shared Utilities */
.layanan-section-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: clamp(28px, 3.2vw, 38px);
    line-height: 1.3;
    color: #333333;
    margin: 0;
    max-width: 500px;
}

.grid-section-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: clamp(28px, 3.2vw, 38px);
    line-height: 1.3;
    color: #333333;
    margin: 0 0 16px;
    text-align: center;
}

.layanan-title-underline {
    width: 120px;
    height: 0px;
    border: 3px solid #00A7E1;
    margin: 16px 0 24px;
}

.layanan-title-underline.center {
    margin: 16px auto 40px;
}

.layanan-description {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 28px;
    color: #606060;
    margin: 0 0 16px;
}

.layanan-subdescription {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 26px;
    color: #777777;
    margin: 0 0 28px;
}

.btn-outline-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    background: transparent;
    border: 1.5px solid #00A7E1;
    color: #00A7E1 !important;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 15px;
    border-radius: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline-pill:hover {
    background: #00A7E1;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 167, 225, 0.3);
}

/* ============================================================
   1. KONSULTASI DAN PENGELOLAAN PELANGGAN SECTION
   ============================================================ */
.layanan-konsultasi-section {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #EDF5F8;
}

.konsultasi-fullrow {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    min-height: 540px;
}

.konsultasi-img-col {
    width: 760px;
    height: 540px;
    flex-shrink: 0;
    position: relative;
    display: flex;
}

.konsultasi-img-box {
    width: 760px;
    height: 540px;
    border-top-right-radius: 120px;
    border-bottom-right-radius: 120px;
    overflow: hidden;
    background: #D9EBF3;
}

.konsultasi-img-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.konsultasi-text-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 80px 60px 100px;
    box-sizing: border-box;
}

.konsultasi-text-content {
    max-width: 520px;
}

/* ============================================================
   2. PENGANTARAN PRODUK DARI COWAY TECHNICIAN SECTION
   ============================================================ */
.layanan-pengantaran-section {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #EDF5F8;
}

.pengantaran-fullrow {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    min-height: 540px;
}

.pengantaran-text-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 80px 60px 100px;
    box-sizing: border-box;
}

.pengantaran-text-content {
    max-width: 520px;
}

.pengantaran-img-col {
    width: 760px;
    height: 540px;
    flex-shrink: 0;
    position: relative;
    display: flex;
}

.pengantaran-img-box {
    width: 760px;
    height: 540px;
    overflow: hidden;
    background: #E8F4F8;
}

.pengantaran-img-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================================
   3. HEART SERVICE™ SECTION (Using Skema Garansi BG Pattern)
   ============================================================ */
.layanan-heart-section {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
    background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 100%);
    border-bottom: 2px solid var(--coway, #00A7E1);
}

.heart-bg-skema {
    position: absolute;
    inset: 0;
    background: url('/img/garansi/img-skema.png') center / cover no-repeat;
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
    top: 15%;
    bottom: 10%;
    left: 0;
    right: 0;
}

.heart-fullrow {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    min-height: 540px;
}

.heart-img-col {
    width: 760px;
    height: 540px;
    flex-shrink: 0;
    position: relative;
    display: flex;
}

.heart-img-box {
    width: 760px;
    height: 540px;
    overflow: hidden;
}

.heart-img-placeholder {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    display: block;
}

.heart-text-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 80px 60px 100px;
    box-sizing: border-box;
}

.heart-text-content {
    max-width: 520px;
}

/* ============================================================
   4. HEART SERVICE PEMURNIAN AIR SECTION (Using Riset & Pengembangan BG)
   ============================================================ */
.layanan-cards-section.water-section {
    position: relative;
    padding: 90px 0;
    background-color: #FFFFFF;
    overflow: hidden;
}

.layanan-cards-section.water-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 504px;
    height: 100%;
    background: url('/img/sales-team/bg-kiri.png') left center / contain no-repeat;
    opacity: 1;
    pointer-events: none;
    z-index: 1;
}

.layanan-cards-section.water-section::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 506px;
    height: 100%;
    background: url('/img/sales-team/bg-kanan.png') right center / contain no-repeat;
    opacity: 1;
    pointer-events: none;
    z-index: 1;
}

/* ============================================================
   5. HEART SERVICE PEMURNIAN UDARA SECTION
   ============================================================ */
.layanan-cards-section.air-section {
    position: relative;
    padding: 90px 0;
    background: #F8FAFC;
}

/* 5 Cards Grid Layout for Water Section */
.layanan-water-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.layanan-water-grid .service-card.card-centered {
    grid-column: 1 / -1;
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
}

/* 4 Cards Grid Layout for Air Section */
.layanan-air-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    position: relative;
    height: 320px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    background: #EAF4F8;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(0, 167, 225, 0.2);
}

.service-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.service-card-title {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 19px;
    line-height: 26px;
    color: #FFFFFF;
    margin: 0;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ============================================================
   RESPONSIVE BREAKPOINTS (4 TIERS)
   ============================================================ */

/* Tier 2: Mac / Laptop (1024px - 1439px) */
@media (max-width: 1439px) and (min-width: 1024px) {

    .konsultasi-img-col,
    .konsultasi-img-box,
    .pengantaran-img-col,
    .pengantaran-img-box,
    .heart-img-col,
    .heart-img-box {
        width: 580px;
        height: 480px;
    }

    .konsultasi-fullrow,
    .pengantaran-fullrow,
    .heart-fullrow {
        min-height: 480px;
    }

    .konsultasi-text-col,
    .heart-text-col {
        padding: 40px 60px;
    }

    .pengantaran-text-col {
        padding: 40px 60px;
    }
}

/* Tier 3: Tablet (768px - 1023px) */
@media (max-width: 1023px) {

    .konsultasi-fullrow,
    .heart-fullrow {
        flex-direction: column;
        min-height: auto;
    }

    .pengantaran-fullrow {
        flex-direction: column-reverse;
        min-height: auto;
    }

    .konsultasi-img-col,
    .pengantaran-img-col,
    .heart-img-col {
        width: 100%;
        height: 360px;
    }

    .konsultasi-img-box,
    .heart-img-box {
        width: 100%;
        height: 360px;
        border-radius: 0 0 40px 0;
    }

    .pengantaran-img-box {
        width: 100%;
        height: 360px;
        border-radius: 0 0 40px 0;
    }

    .konsultasi-text-col,
    .pengantaran-text-col,
    .heart-text-col {
        width: 100%;
        padding: 50px 32px;
        max-width: 100%;
    }

    .konsultasi-text-content,
    .pengantaran-text-content,
    .heart-text-content,
    .layanan-section-title {
        max-width: 100%;
    }

    .layanan-water-grid,
    .layanan-air-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .layanan-water-grid .service-card.card-centered {
        max-width: 100%;
    }

    .service-card {
        height: 280px;
    }

    .layanan-cards-section.water-section::before,
    .layanan-cards-section.water-section::after {
        display: none;
    }
}

/* Tier 4: Mobile (< 768px) */
@media (max-width: 767px) {
    .layanan-section-title,
    .grid-section-title {
        font-size: 24px !important;
        line-height: 1.35 !important;
        font-weight: 700 !important;
    }

    .layanan-description,
    .layanan-subdescription {
        font-size: 15px !important;
        line-height: 24px !important;
        font-weight: 400 !important;
    }

    .layanan-cards-section {
        padding: 60px 0;
    }

    .konsultasi-img-col,
    .pengantaran-img-col,
    .heart-img-col {
        height: 280px;
    }

    .konsultasi-img-box,
    .pengantaran-img-box,
    .heart-img-box {
        height: 280px;
        border-radius: 0 0 24px 0;
    }

    .konsultasi-text-col,
    .pengantaran-text-col,
    .heart-text-col {
        padding: 40px 20px;
    }

    .service-card {
        height: 240px;
    }

    .service-card-title {
        font-size: 16px;
        line-height: 22px;
        bottom: 18px;
        left: 18px;
        right: 18px;
    }
}