/* Base wrapper styling */
.facilities-services-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3.125rem;
    padding-bottom: 4.375rem;
}

@media (min-width: 768px) {
    .facilities-services-wrapper {
        gap: 2.727rem;
        padding-bottom: 8.75rem;
    }
}

/* Header Styling */
.facilities-services-wrapper .section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
}

@media (min-width: 768px) {
    .facilities-services-wrapper .section-header {
        gap: 1.364rem;
    }
}

/* * Title Typography 
 */
.facilities-services-wrapper .section-title {
    color: var(--color-text-light);
    text-align: center;
    font-size: 1.875rem;
    font-weight: 300;
    line-height: 1;
    letter-spacing: 0;
    margin: 0;
}

@media (min-width: 768px) {
    .facilities-services-wrapper .section-title {
        font-size: 3.125rem;
        line-height: 1.2;
    }
}

.facilities-services-wrapper .section-divider {
    width: 4.187rem;
    /* Mobile: 100px */
    height: 1px;
    background-color: var(--color-text-light);
}

@media (min-width: 768px) {
    .facilities-services-wrapper .section-divider {
        width: 6.25rem;
        /* Desktop: 100px/22 */
    }
}

/* Services List Container */
.facilities-services-wrapper .services-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    max-width: 1300px;
}

.facilities-services-wrapper .service-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.facilities-services-wrapper .service-divider {
    width: 100%;
    height: 1px;
    background-color: #DADADA;
}

/* Service Header (Row) */
.facilities-services-wrapper .service-header {
    display: flex;
    padding: 0;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1rem;
}

.facilities-services-wrapper .service-header.has-content {
    cursor: pointer;
}

@media (min-width: 768px) {
    .facilities-services-wrapper .service-header {
        padding: 0 1.818rem;
    }
}

.facilities-services-wrapper .service-header-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .facilities-services-wrapper .service-header-left {
        gap: 2.273rem;
    }
}

/* Icon Sizing */
.facilities-services-wrapper .service-icon {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .facilities-services-wrapper .service-icon {
        width: 3.636rem;
        height: 3.636rem;
    }
}

.facilities-services-wrapper .service-icon img,
.facilities-services-wrapper .service-icon svg {
    width: 5rem;
    height: 5rem;
    object-fit: contain;
}

/* * Service Title Typography (H3)
 * Mobile: 18px -> 18/16 = 1.125rem
 * Desktop: 24px -> 24/22 = 1.091rem
 */
.facilities-services-wrapper .service-title {
    color: var(--color-text);
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.38;
    letter-spacing: 0;
    margin: 0;
}

@media (min-width: 768px) {
    .facilities-services-wrapper .service-title {
        font-size: 1.5rem;
        line-height: 1.33;
    }
}

/* * Toggle Button 
 */
.facilities-services-wrapper .toggle-btn {
    position: relative;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .facilities-services-wrapper .toggle-btn {
        width: 1.563rem;
        height: 1.563rem;
    }
}

/* Focus State for Accessibility */
.facilities-services-wrapper .toggle-btn:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 4px;
    border-radius: 4px;
}

.facilities-services-wrapper .toggle-btn img {
    width: 84%;
    height: 84%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.4s ease;
    will-change: transform;
}

@media (min-width: 768px) {
    .facilities-services-wrapper .toggle-btn img {
        width: 1.091rem;
        height: 1.091rem;
    }
}

/* Button States */
.facilities-services-wrapper .toggle-btn .icon-plus {
    opacity: 1;
    visibility: visible;
    transform: rotate(90deg);
}
.facilities-services-wrapper .toggle-btn .icon-minus {
    /* opacity: 0; */
    /* visibility: hidden; */
}

.facilities-services-wrapper .toggle-btn.active {
    /* transform: rotate(180deg); */
}

.facilities-services-wrapper .toggle-btn.active .icon-plus {
    /* opacity: 0; */
    /* visibility: hidden; */
    transform: rotate(0deg);
}
.facilities-services-wrapper .toggle-btn.active .icon-minus {
    opacity: 1;
    visibility: visible;
}

/* Accordion Content */
.facilities-services-wrapper .service-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding: 0;
}

@media (min-width: 768px) {
    .facilities-services-wrapper .service-details {
        padding: 0 1.818rem;
    }
}

.facilities-services-wrapper .service-details.active {
    max-height: 2000px;
    transition: max-height 0.6s ease-in;
}

/* Service List Content Typography */
.facilities-services-wrapper .service-list ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin: 0.5rem 0 1.5rem 0.0625rem;
}

@media (min-width: 768px) {
    .facilities-services-wrapper .service-list ul {
        margin: 0 0 1.091rem 0.727rem;
    }
}

.facilities-services-wrapper .service-list li {
    display: list-item;
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.facilities-services-wrapper .service-list ul li::marker {
    font-size: 0.75rem;
    color: inherit;
    line-height: 1;
}

/* * Content Font Size
 */
.facilities-services-wrapper .service-list {
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.56;
    letter-spacing: 0;
}

@media (min-width: 768px) {
    .facilities-services-wrapper .service-list {
        font-size: 1rem;
        line-height: 1.9;
    }
}

.facilities-services-wrapper .service-list p {
    margin: 0;
}

/* WCAG 2.3.3: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    [data-aos],
    .facilities-services-wrapper .service-details,
    .facilities-services-wrapper .toggle-btn,
    .facilities-services-wrapper .toggle-btn img {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }

    .facilities-services-wrapper .service-details.active {
        max-height: none;
    }

    .facilities-services-wrapper .toggle-btn.active .icon-plus {
        display: none;
    }
    .facilities-services-wrapper .toggle-btn.active .icon-minus {
        display: block;
        opacity: 1;
        visibility: visible;
    }
}