/* =============================================
   LAYANAN SECTION — Accordion Cards
   Adapted from "Card" by joe-watson-sbf (Uiverse.io)
   Colors adapted to Semanggi Landscape theme.
   Desktop: expand on hover. Touch: expand on tap.
   ============================================= */

.services-accordion {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 8px;
}

.services-card {
    position: relative;
    display: flex;
    gap: 8px;
    width: min(100%, 620px);
    height: 380px;
    padding: 8px;
    border-radius: 18px;
    background: linear-gradient(165deg, #0e3a29 0%, #0a2b1f 100%);
    border: 1px solid rgba(52, 211, 153, 0.28);
    box-shadow: 0 24px 60px rgba(2, 44, 34, 0.28), 0 2px 10px rgba(2, 44, 34, 0.18);
}

.service-strip {
    position: relative;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    cursor: pointer;
    border-radius: 10px;
    background: #0c3224;
    border: 1px solid rgba(52, 211, 153, 0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: flex .55s cubic-bezier(.4, 0, .2, 1), background .55s ease, border-color .55s ease;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.service-strip:hover,
.service-strip:focus-visible,
.service-strip:active {
    flex: 4.5;
    background: linear-gradient(180deg, #145236, #0f3d2b);
    border-color: rgba(52, 211, 153, 0.85);
}

.service-strip:focus-visible {
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.45);
}

.strip-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 12em;
    min-width: 12em;
    padding: 0 14px;
    text-align: center;
    transform: rotate(-90deg);
    transition: transform .55s cubic-bezier(.4, 0, .2, 1), gap .55s ease;
}

.service-strip:hover .strip-content,
.service-strip:focus-visible .strip-content,
.service-strip:active .strip-content {
    transform: rotate(0deg);
    gap: 12px;
}

.strip-index {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 2;
    font-family: 'Figtree', 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .2em;
    color: rgba(255, 255, 255, 0.45);
    opacity: 0;
    transition: opacity .4s ease;
}

.service-strip:hover .strip-index,
.service-strip:focus-visible .strip-index,
.service-strip:active .strip-index {
    opacity: 1;
}

.strip-icon {
    font-size: 30px;
    color: #34d399;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity .45s ease, max-height .45s ease;
}

.service-strip:hover .strip-icon,
.service-strip:focus-visible .strip-icon,
.service-strip:active .strip-icon {
    opacity: 1;
    max-height: 2.4em;
}

.strip-title {
    font-family: 'Figtree', 'Inter', -apple-system, sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.strip-desc {
    font-family: 'Figtree', 'Inter', -apple-system, sans-serif;
    font-size: .8rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity .45s ease, max-height .45s ease;
}

.service-strip:hover .strip-desc,
.service-strip:focus-visible .strip-desc,
.service-strip:active .strip-desc {
    opacity: 1;
    max-height: 6em;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
    .services-card {
        width: 100%;
        height: 300px;
        gap: 6px;
        padding: 6px;
        border-radius: 14px;
    }

    .service-strip {
        border-radius: 8px;
    }

    .strip-content {
        width: 8.5em;
        min-width: 8.5em;
        padding: 0 8px;
    }

    .strip-title {
        font-size: .72rem;
        letter-spacing: .08em;
    }

    .strip-icon {
        font-size: 22px;
    }

    .strip-desc {
        font-size: .68rem;
        line-height: 1.5;
    }

    .strip-index {
        top: 10px;
        right: 12px;
        font-size: 10px;
    }
}

@media (max-width: 400px) {
    .services-card {
        height: 270px;
    }

    .strip-title {
        font-size: .66rem;
    }
}
