
/* ==========================================
   1. UNIVERSAL SERVICE CARDS
   Career Coaching, Leadership Coaching,
   Organisational & Team Development,
   Psychometric Assessments
========================================== */

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    min-height: 320px;
    padding: 25px;
    box-sizing: border-box;
    background-color: transparent;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
    overflow: visible;
    color: #ffffff;
    cursor: pointer;
    text-align: center;
}

/* Content area */

.service-card-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

/* Heading */

.service-card h3 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

/* Hidden description */

.service-card-description {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(15px);
    transition:
        opacity 0.4s ease,
        transform 0.4s ease,
        max-height 0.6s ease;
}

.service-card-description p {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.6;
    margin: 15px 0 0;
}

/* DESKTOP: reveal on hover */

@media (hover: hover) and (pointer: fine) {

    .service-card:hover .service-card-description,
    .service-card:focus-within .service-card-description {
        max-height: 5000px;
        opacity: 1;
        transform: translateY(0);
    }

}

/* MOBILE: reveal when tapped */

@media (hover: none), (pointer: coarse) {

    .service-card {
        min-height: 280px;
    }

    .service-card-description {
        transition: none;
    }

    .service-card.is-active .service-card-description {
        max-height: 5000px;
        opacity: 1;
        overflow: visible;
        transform: translateY(0);
    }

}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {

    .service-card,
    .service-card-description {
        transition: none;
    }

}


/* PSYCHOMETRIC ASSESSMENT CARDS */

.assessment-section {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    width: 100%;
    margin: 30px auto;
    align-items: stretch;
}

.assessment-card {
    position: relative;
    overflow: hidden;
    background: #E6DBFF;
    border: 1px solid #E6DBFF;
    border-radius: 12px;
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    animation: slideInRight .8s ease-out both;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.assessment-card:nth-child(1) { animation-delay: .8s; }
.assessment-card:nth-child(2) { animation-delay: 1s; }
.assessment-card:nth-child(3) { animation-delay: 1.2s; }

/* CARD CONTENT */

.assessment-card h3 {
    color: #393089;
    font-size: 23px;
    margin: 0 0 15px;
}

.assessment-card .assessment-intro {
    color: #333;
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 22px;
}

.assessment-card h4 {
    color: #393089;
    font-size: 17px;
    margin: 0 0 15px;
}

.assessment-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.assessment-card li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 13px;
    color: #333;
    font-size: 14px;
    line-height: 1.55;
}

.assessment-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #393089;
    font-weight: bold;
}

/* PURPLE COVER - VISIBLE ON PAGE LOAD */

.assessment-cover {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: #393089;
    border-radius: 11px;
    padding: 30px 25px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 1;
    visibility: visible;
    transition: opacity .35s ease, visibility .35s ease;
}

.assessment-cover h3 {
    color: #fff;
    font-size: 23px;
    margin: 0 0 18px;
}

.assessment-cover p {
    color: #fff;
    font-size: 15px;
    line-height: 1.65;
    margin: 0 0 25px;
}

.assessment-cover span {
    color: #fff;
    font-size: 12px;
    letter-spacing: .5px;
    opacity: .85;
}

/* REVEAL ASSESSMENT DETAILS ON CLICK OR TAP */

.assessment-card.is-revealed .assessment-cover {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* TABLET */

@media (max-width: 900px) {
    .assessment-section {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* MOBILE */

@media (max-width: 600px) {
    .assessment-section {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .assessment-card {
        padding: 25px 22px;
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    .assessment-card,
    .assessment-cover {
        animation: none;
        transition: none;
    }
}



/* ==========================================
   3. SAVILLE ASSESSMENT INFORMATION BUBBLE
========================================== */

.saville-bubble {
    background: #393089;
    color: #ffffff;
    padding: 15px 18px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 25px;
    box-shadow: 0 4px 12px rgba(57, 48, 137, 0.18);
    animation: bubbleFloat 3s ease-in-out infinite;
}

.saville-bubble .bubble-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #393089;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 7px;
    font-size: 12px;
    vertical-align: middle;
}

/* Gentle floating animation */

@keyframes bubbleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .saville-bubble {
        animation: none;
    }
}


/* ==========================================
   4. MOBILE NAVIGATION MENU
========================================== */

@media screen and (max-width: 768px) {

    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation-item__content {
        color: #ffffff !important;
    }

    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation-item__content:hover {
        color: #ffffff !important;
    }

}


/* Hide only the old details disclosure marker */

.service-card summary {
    list-style: none !important;
}

.service-card summary::-webkit-details-marker {
    display: none !important;
}

.service-card summary::marker {
    content: "" !important;
}


/* ==========================================
   MOBILE SERVICE CARD PROMPT
========================================== */

/* Hidden on desktop */
.service-card-hint {
    display: none;
}

/* Visible on mobile and touch screens */
@media (hover: none), (pointer: coarse) {

    .service-card-hint {
        display: block;
        margin-top: 12px;
        color: #ffffff;
        font-size: 12px;
        font-weight: 400;
        opacity: 0.85;
        text-align: center;
    }

    .service-card-hint .hint-close {
        display: none;
    }

    /* Change prompt when card is open */
    .service-card.is-active .hint-open {
        display: none;
    }

    .service-card.is-active .hint-close {
        display: inline;
    }
}

/* Keep Saville information bubble static */
.saville-bubble {
    animation: none !important;
    transform: none !important;
}

/* Hide purple cover when assessment card is clicked */

.assessment-card.is-revealed .assessment-cover {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* FULL-WIDTH BOXES ON ALL DEVICES */

.mobile-full-width-box {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    box-sizing: border-box !important;
}


/* ==========================================
   TEAM PROFILE CARDS
========================================== */

.team-profile-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    background: #393089;
    box-sizing: border-box;
    cursor: pointer;
}

/* Photo and front content */

.team-profile-front {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    box-sizing: border-box;
    z-index: 1;
}

/* Photo fills the entire square */

.team-profile-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center 25%;
    z-index: 0;
}

/* Purple overlay */

.team-profile-front::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(57, 48, 137, 0.35);
    z-index: 1;
}

/* Name and job title */

.team-profile-front h3,
.team-profile-front h4 {
    position: relative;
    z-index: 2;
}

.team-profile-front h3 {
    color: #ffffff;
    font-size: 22px;
    margin: 0 0 6px;
}

.team-profile-front h4 {
    color: #ffffff;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 400;
    margin: 0;
}

/* Tap to open */

.team-profile-open {
    display: none;
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-size: 11px;
    margin-top: 12px;
    text-align: right;
    opacity: 0.8;
}

/* Biography reveal */

.team-profile-bio {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 25px;
    background: #393089;
    color: #ffffff;
    box-sizing: border-box;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.team-profile-bio h3,
.team-profile-bio p,
.team-profile-close {
    color: #ffffff;
}

.team-profile-bio h3 {
    margin: 0 0 15px;
}

.team-profile-bio p {
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

/* Tap to close */

.team-profile-close {
    display: none;
    font-size: 11px;
    margin-top: 18px;
    text-align: right;
    opacity: 0.8;
}

/* Desktop: reveal on hover */

@media (hover: hover) and (pointer: fine) {
    .team-profile-card:hover .team-profile-bio {
        transform: translateY(0);
    }
}

/* Mobile: reveal on tap */

.team-profile-card.is-revealed .team-profile-bio {
    transform: translateY(0);
}

/* MOBILE ADJUSTMENTS */

@media (max-width: 600px) {

    .team-profile-card {
        width: 100%;
        aspect-ratio: 1 / 1;
    }

    .team-profile-front {
        padding: 18px;
    }

    .team-profile-front h3 {
        font-size: 19px;
    }

    .team-profile-front h4 {
        font-size: 12px;
    }

    .team-profile-open {
        display: block;
    }

    .team-profile-bio {
        padding: 18px;
    }

    .team-profile-bio p {
        font-size: 12px;
        line-height: 1.5;
    }

    .team-profile-close {
        display: block;
    }
}

/* REDUCED MOTION ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    .team-profile-bio {
        transition: none;
    }
}

.team-profile-linkedin {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 26px;
    height: 26px;
    margin: 15px auto;
    transition: opacity .3s ease;
}

.team-profile-linkedin:hover {
    opacity: .75;
}

.team-profile-linkedin svg {
    display: block;
}