/**
 * Gadby Single Team Member - Styles
 */

/* ==========================================================================
   CONTAINER
   ========================================================================== */

.gadby-team-single {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
}

.gadby-team-single-inner {
    /* Inner wrapper for structure */
}

/* ==========================================================================
   TOP SECTION: Name + Photo | Bio
   Full-width top border
   ========================================================================== */

.gadby-team-top {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    border-top: 1px solid #1a2b4a;
    padding: 2.5rem 0;
}

.gadby-team-top-left {
    flex: 0 0 50%;
    max-width: 50%;
}

.gadby-team-top-right {
    flex: 1;
}

/* Name */
.gadby-team-name {
    font-family: var(--font-heading, 'Auguste Sans', serif);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--primary-color, #1a2b4a);
    margin: 0 0 1.5rem;
}

/* Circular photo */
.gadby-team-photo {
    width: 100%;
    max-width: 400px;
}

.gadby-team-photo img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* Bio content */
.gadby-team-bio {
    color: var(--primary-color, #1a2b4a);
    font-size: 0.95rem;
    line-height: 1.7;
}

.gadby-team-bio p {
    margin-top: 0;
    margin-bottom: 1em;
}

.gadby-team-bio p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   BOTTOM SECTION: Get in touch | Areas of expertise
   Split top borders (each column has its own border)
   ========================================================================== */

.gadby-team-bottom {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.gadby-team-bottom-left {
    flex: 0 0 50%;
    max-width: 50%;
}

.gadby-team-bottom-right {
    flex: 1;
}

/* Split borders — on the inner elements so there's a gap between them */
.gadby-team-bottom-left-inner,
.gadby-team-bottom-right-inner {
    border-top: 1px solid #1a2b4a;
    padding-top: 2rem;
}

/* Section titles */
.gadby-team-section-title {
    font-family: var(--font-heading, 'Auguste Sans', serif);
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--primary-color, #1a2b4a);
    margin: 0 0 1.25rem;
}

/* Contact icons */
.gadby-team-contact-icons {
    display: flex;
    gap: 0.75rem;
}

.gadby-team-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: var(--primary-color, #1a2b4a);
    transition: opacity 0.3s ease;
}

.gadby-team-contact-icon:hover {
    opacity: 0.6;
}

.gadby-team-contact-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Expertise list */
.gadby-team-expertise {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gadby-team-expertise li {
    padding: 0.25em 0;
    color: var(--primary-color, #1a2b4a);
    font-size: 1.1rem;
    line-height: 1.2;
}

.gadby-team-expertise li::before {
    content: '— ';
}

/* ==========================================================================
   BACK LINK
   ========================================================================== */

.gadby-team-back {
    margin-top: 2rem;
}

.gadby-team-back-inner {
    border-top: 1px solid #1a2b4a;
    padding-top: 2rem;
    /* Offset to align with the right column's border */
    margin-left: calc(50% + 3rem);
}

.gadby-team-back-link {
    font-family: var(--font-heading, 'Auguste Sans', serif);
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 400;
    color: var(--primary-color, #1a2b4a);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.gadby-team-back-link:hover {
    opacity: 0.7;
}

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

@media (max-width: 768px) {
    .gadby-team-single {
        padding: 0 1.5rem 2rem;
    }

    /* Stack top section */
    .gadby-team-top {
        flex-direction: column;
        gap: 1.5rem;
    }

    .gadby-team-top-left {
        flex: none;
        max-width: 100%;
    }

    .gadby-team-photo {
        max-width: 220px;
    }

    /* Stack bottom section */
    .gadby-team-bottom {
        flex-direction: column;
        gap: 0;
    }

    .gadby-team-bottom-left {
        flex: none;
        max-width: 100%;
    }

    .gadby-team-bottom-left-inner {
        padding-bottom: 2rem;
    }

    /* Back link — remove offset on mobile */
    .gadby-team-back-inner {
        margin-left: 0;
    }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .gadby-team-contact-icon,
    .gadby-team-back-link,
    .gadby-team-photo img {
        transition: none;
    }
}
