/* ==========================================================================
   PCU Services Accordion — scoped under .pcu-sa to avoid theme conflicts
   All spacing/sizing is controlled from Elementor widget controls.
   ========================================================================== */

.pcu-sa {
    --pcu-sa-bg: #F5F1EA;
    --pcu-sa-foreground: #1F2A2E;
    --pcu-sa-muted: #7A7468;
    --pcu-sa-accent: #A88B5B;
    --pcu-sa-border: #D9D2C5;
    --pcu-sa-font-heading: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --pcu-sa-font-body: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--pcu-sa-bg) !important;
    color: var(--pcu-sa-foreground) !important;
    font-family: var(--pcu-sa-font-body);
    box-sizing: border-box;
}

.pcu-sa *,
.pcu-sa *::before,
.pcu-sa *::after {
    box-sizing: border-box;
}

.pcu-sa__inner { width: 100%; }

/* ----------  HEADER  ---------- */
.pcu-sa__eyebrow {
    font-family: var(--pcu-sa-font-body);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--pcu-sa-muted) !important;
    margin: 0 0 1rem 0;
}

.pcu-sa__heading {
    font-family: var(--pcu-sa-font-heading);
    font-weight: 300;
    font-size: 2.25rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--pcu-sa-foreground) !important;
    margin: 0;
}

.pcu-sa__ribbon {
    height: 1px;
    background-color: var(--pcu-sa-accent) !important;
}

/* ----------  DESKTOP ACCORDION  ---------- */
.pcu-sa__desktop {
    display: none;
}

@media (min-width: 1024px) {
    .pcu-sa__desktop {
        display: flex;
    }
}

.pcu-sa__panel {
    position: relative;
    flex: 1 1 0;
    border: 1px solid var(--pcu-sa-border) !important;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.4s ease,
                border-color 0.4s ease;
    background-color: transparent;
}

.pcu-sa__panel .pcu-sa__panel-title,
.pcu-sa__panel .pcu-sa__panel-title-vertical,
.pcu-sa__panel .pcu-sa__panel-number,
.pcu-sa__panel .pcu-sa__panel-description,
.pcu-sa__panel .pcu-sa__panel-cta {
    transition: color 0.3s ease;
}

.pcu-sa__panel.is-active {
    flex: 6 1 0;
}

.pcu-sa__panel-collapsed {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: opacity 0.5s ease;
    opacity: 1;
}

.pcu-sa__panel.is-active .pcu-sa__panel-collapsed {
    opacity: 0;
    pointer-events: none;
}

.pcu-sa__panel-number {
    font-family: var(--pcu-sa-font-body);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--pcu-sa-muted) !important;
}

.pcu-sa__panel-number--accent { color: var(--pcu-sa-accent) !important; }

.pcu-sa__panel-title-vertical {
    font-family: var(--pcu-sa-font-heading);
    font-weight: 300;
    font-size: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--pcu-sa-foreground) !important;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    margin: 0;
    align-self: flex-start;
}

.pcu-sa__panel-expanded {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease 0s;
}

.pcu-sa__panel.is-active .pcu-sa__panel-expanded {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.5s ease 0.2s;
}

.pcu-sa__panel-title {
    font-family: var(--pcu-sa-font-heading);
    font-weight: 300;
    font-size: 2.25rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--pcu-sa-foreground) !important;
    margin: 1rem 0 2rem 0;
}

.pcu-sa__panel-description {
    font-family: var(--pcu-sa-font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--pcu-sa-muted) !important;
    margin: 0;
}

.pcu-sa__panel-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--pcu-sa-font-body);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pcu-sa-accent) !important;
    text-decoration: none;
    transition: opacity 0.3s ease;
    margin-top: 1.5rem;
}
.pcu-sa__panel-cta:hover { opacity: 0.7; }
.pcu-sa__arrow { width: 1rem; height: 1rem; }

/* ----------  MOBILE ACCORDION  ---------- */
.pcu-sa__mobile {
    display: flex;
    flex-direction: column;
}
@media (min-width: 1024px) { .pcu-sa__mobile { display: none; } }

.pcu-sa__mobile-item {
    border: 1px solid var(--pcu-sa-border) !important;
    overflow: hidden;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.pcu-sa__mobile-item .pcu-sa__mobile-title,
.pcu-sa__mobile-item .pcu-sa__panel-number,
.pcu-sa__mobile-item .pcu-sa__mobile-icon {
    transition: color 0.3s ease, transform 0.3s ease;
}

.pcu-sa__mobile-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: left;
    color: inherit;
    font: inherit;
    transition: background-color 0.3s ease;
}

.pcu-sa__mobile-body,
.pcu-sa__mobile-body-inner {
    transition: background-color 0.3s ease, height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.pcu-sa__mobile-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.pcu-sa__mobile-title {
    font-family: var(--pcu-sa-font-heading);
    font-weight: 300;
    font-size: 1.5rem;
    letter-spacing: -0.01em;
    color: var(--pcu-sa-foreground) !important;
}

.pcu-sa__mobile-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--pcu-sa-muted) !important;
    transition: transform 0.3s ease;
    line-height: 1;
}

.pcu-sa__mobile-item[aria-expanded="true"] .pcu-sa__mobile-icon {
    transform: rotate(45deg);
}

.pcu-sa__mobile-body {
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.pcu-sa__mobile-body-inner .pcu-sa__panel-description {
    margin-bottom: 1.5rem;
}
