/* ── Team Profiles — premium horizontal portrait layout ───── */

.jacana-team-profiles {
    background: var(--jacana-savannah, #fffae4);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Ambient warm glow top-right */
.jacana-team-profiles::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(219, 151, 81, 0.08), transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.jacana-tp-inner {
    position: relative;
    z-index: 1;
    max-width: var(--max-width, 1180px);
    margin: 0 auto;
    padding: 0 var(--content-pad, 40px);
}

/* ── Section header ──────────────────────────────────────── */
.jacana-tp-header {
    text-align: center;
    margin-bottom: 72px;
}

.jacana-tp-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 0.34em;
    font-size: 10px;
    font-weight: 700;
    color: var(--jacana-dunes, #db9751);
    margin-bottom: 18px;
}

.jacana-tp-kicker::before,
.jacana-tp-kicker::after {
    content: "";
    display: block;
    width: 22px;
    height: 1px;
    background: var(--jacana-dunes, #db9751);
    flex-shrink: 0;
}

.jacana-tp-header h2 {
    color: var(--jacana-earth, #2d2416);
    font-size: clamp(28px, 3.2vw, 46px);
    line-height: 1.1;
    margin-bottom: 16px;
}

.jacana-tp-intro {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(45, 36, 22, 0.72);
    max-width: 560px;
    margin: 0 auto;
}

/* ── Card list ───────────────────────────────────────────── */
.jacana-tp-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* ── Individual card — horizontal layout ─────────────────── */
.jacana-tp-card {
    display: grid;
    grid-template-columns: 420px 1fr;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(45, 36, 22, 0.09);
    box-shadow: 0 4px 24px rgba(45, 36, 22, 0.07);
    transition: box-shadow 0.35s ease, transform 0.35s ease, background 0.35s ease;
}

.jacana-tp-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 40px rgba(45, 36, 22, 0.12);
}

/* Flip: photo right on alternate cards */
.jacana-tp-card--flip { direction: rtl; }
.jacana-tp-card--flip > * { direction: ltr; }

/* ── Photo panel ─────────────────────────────────────────── */
.jacana-tp-photo-wrap {
    position: relative;
    overflow: hidden;
    background: #e8dfd2;
}

.jacana-tp-figure {
    margin: 0;
    height: 100%;
    min-height: 460px;
    position: relative;
    overflow: hidden;
}

.jacana-tp-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.6s ease, filter 0.4s ease;
    filter: saturate(0.95) brightness(0.98);
}

.jacana-tp-card:hover .jacana-tp-figure img {
    transform: scale(1.04);
    filter: saturate(1.0) brightness(1.0);
}

/* Oshiwambo stripe on photo bottom */
.jacana-tp-photo-stripe {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: repeating-linear-gradient(
        90deg,
        var(--oshi-pink, #e6007e)     0px, var(--oshi-pink, #e6007e)     7px,
        var(--oshi-black, #000)        7px, var(--oshi-black, #000)        9px,
        var(--oshi-red, #cc0000)       9px, var(--oshi-red, #cc0000)      14px,
        var(--oshi-dark-pink, #800040) 14px, var(--oshi-dark-pink, #800040) 19px,
        var(--oshi-black, #000)       19px, var(--oshi-black, #000)       21px
    );
    z-index: 2;
}

/* Photo placeholder (no image set) */
.jacana-tp-photo-placeholder {
    width: 100%;
    min-height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(140deg, #e8dfd2, #d4c8b8);
}

.jacana-tp-photo-placeholder span {
    font-family: "Cormorant Garamond", serif;
    font-size: 96px;
    color: rgba(45, 36, 22, 0.18);
    font-style: italic;
    line-height: 1;
}

/* ── Content panel ───────────────────────────────────────── */
.jacana-tp-content {
    padding: 44px 48px;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.jacana-tp-meta { margin-bottom: 20px; }

.jacana-tp-name {
    font-size: clamp(26px, 2.6vw, 38px);
    color: var(--jacana-earth, #2d2416);
    line-height: 1.08;
    margin: 0 0 10px;
}

.jacana-tp-role {
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 10px;
    font-weight: 700;
    color: var(--jacana-dunes, #db9751);
}

.jacana-tp-bio {
    font-size: 15.5px;
    line-height: 1.72;
    color: rgba(45, 36, 22, 0.76);
    margin: 0 0 24px;
}

/* ── Accordion details ───────────────────────────────────── */
.jacana-tp-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 32px;
    flex: 1;
}

.jacana-tp-detail {
    border-bottom: 1px solid rgba(45, 36, 22, 0.09);
}

.jacana-tp-detail:first-child {
    border-top: 1px solid rgba(45, 36, 22, 0.09);
}

.jacana-tp-detail summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 0;
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(45, 36, 22, 0.50);
    transition: color 0.2s ease;
}

.jacana-tp-detail summary::-webkit-details-marker { display: none; }

.jacana-tp-detail summary::after {
    content: "+";
    font-size: 18px;
    font-weight: 300;
    color: var(--jacana-dunes, #db9751);
    line-height: 1;
    transition: transform 0.22s ease;
}

.jacana-tp-detail[open] summary { color: rgba(45, 36, 22, 0.88); }
.jacana-tp-detail[open] summary::after { content: "−"; }

.jacana-tp-detail summary:hover { color: rgba(45, 36, 22, 0.72); }

.jacana-tp-detail-body {
    padding: 0 0 16px;
}

.jacana-tp-detail-body p {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(45, 36, 22, 0.72);
}

.jacana-tp-detail-body p:last-child { margin-bottom: 0; }

/* ── Booking CTA ─────────────────────────────────────────── */
.jacana-tp-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    border-radius: 8px;
    background: linear-gradient(130deg, var(--jacana-dunes, #db9751) 0%, #c07a30 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 22px rgba(219, 151, 81, 0.32);
    align-self: flex-start;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.jacana-tp-cta:hover {
    transform: translateY(-2px);
    background: linear-gradient(130deg, #e8a45e 0%, #cc8535 100%);
    box-shadow: 0 10px 30px rgba(219, 151, 81, 0.44);
}

.jacana-tp-cta:focus-visible {
    outline: 3px solid var(--jacana-dunes, #db9751);
    outline-offset: 3px;
}

.jacana-tp-arrow {
    transition: transform 0.22s ease;
    display: inline-block;
}

.jacana-tp-cta:hover .jacana-tp-arrow { transform: translateX(4px); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
    .jacana-tp-card { grid-template-columns: 340px 1fr; }
}

@media (max-width: 860px) {
    .jacana-tp-card {
        grid-template-columns: 1fr;
        direction: ltr;
    }
    .jacana-tp-card--flip { direction: ltr; }
    .jacana-tp-figure { min-height: 320px; }
    .jacana-tp-photo-placeholder { min-height: 280px; }
    .jacana-tp-content { padding: 32px 28px; }
}

@media (max-width: 540px) {
    .jacana-team-profiles { padding: 72px 0; }
    .jacana-tp-header { margin-bottom: 48px; }
    .jacana-tp-figure { min-height: 260px; }
    .jacana-tp-content { padding: 24px 20px; }
    .jacana-tp-cta { width: 100%; justify-content: center; }
}
