/* HPW Service Products Accordion Styles */

.hpw-service-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s ease, padding 0.3s ease;
    opacity: 0;
    padding: 0;
}

.hpw-service-body.open {
    max-height: 2000px;
    opacity: 1;
    padding-top: 1em;
    transition: max-height 0.6s ease-in, opacity 0.4s ease, padding 0.3s ease;
}

.hpw-service-toggle {
    position: relative;
    transition: all 0.3s ease;
}

.hpw-service-toggle .hpw-service-toggle-icon {
    display: inline-block;
    transition: transform 0.3s ease;
    margin-left: 4px;
}

.hpw-service-toggle[aria-expanded="true"] .hpw-service-toggle-icon {
    transform: rotate(180deg);
}

/* Accordion with smooth animation */
.hpw-service-accordion {
    overflow: hidden;
}

.hpw-service-accordion .hpw-service-toggle {
    width: 100%;
    justify-content: space-between;
    background: transparent;
    border: none;
    padding: 0.75em 1em;
    border-radius: 4px;
    font-weight: 500;
}

.hpw-service-accordion .hpw-service-toggle:hover {
    background: transparent;
}

.hpw-service-accordion .hpw-service-body {
    padding: 1em;
    background: transparent;
    border-radius: 0 0 4px 4px;
}

/* Multiple accordions in same wrapper */
.hpw-service-wrapper .hpw-service-card:last-child .hpw-service-body {
    margin-bottom: 0;
}

/* Focus states for accessibility */
.hpw-service-toggle:focus-visible {
    outline: 2px solid #0d69a0;
    outline-offset: 2px;
}

.hpw-service-body:focus-visible {
    outline: 2px solid #0d69a0;
    outline-offset: -2px;
}

/* Print styles */
@media print {
    .hpw-service-body {
        max-height: none !important;
        opacity: 1 !important;
        padding: 1em 0 !important;
        overflow: visible !important;
    }
    
    .hpw-service-toggle {
        display: none !important;
    }
}
