/* ============================================
   DentoxYourLife – Team Members  v1.1
   ============================================ */

/* ── Shared helpers ── */
.dtm-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin: 0;
}
.dtm-position {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: #c9a96e;
}
.dtm-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #b0b0b0;
    margin: 0;
}
.dtm-gold-line {
    width: 50px;
    height: 1px;
    background: #c9a96e;
    margin: 22px 0 24px;
}
.dtm-placeholder {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dtm-placeholder svg {
    width: 60px;
    height: 60px;
    opacity: 0.35;
}
.dentox-team-empty {
    color: #888;
    font-style: italic;
}


/* ══════════════════════════════════════════
   SINGLE  (1 item — image left / content right)
   ══════════════════════════════════════════ */
.dtm-single {
    display: flex;
    gap: 0;
    min-height: 420px;
    background: #222222;
    border: 1px solid rgba(255,255,255,0.08);
}

.dtm-single__photo {
    flex: 0 0 45%;
    overflow: hidden;
    position: relative;
}
.dtm-single__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}
.dtm-single__photo .dtm-placeholder {
    min-height: 100%;
}

.dtm-single__content {
    flex: 1;
    padding: 50px 50px 50px 55px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 20px !important;
}
.dtm-single__content .dtm-position {
    margin-bottom: 14px;
}
.dtm-single__content .dtm-name {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: #c9a96e !important;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .dtm-single {
        flex-direction: column;
    }
    .dtm-single__photo {
        flex: 0 0 auto;
        min-height: 300px;
    }
    .dtm-single__content {
        padding: 35px 30px;
    }
}


/* ══════════════════════════════════════════
   GRID  (2–4 items — one row, hover name)
   ══════════════════════════════════════════ */
.dtm-grid {
    display: flex;
    gap: 16px;
}

.dtm-grid__card {
    flex: 1;
    min-width: 0;
}

.dtm-grid__photo {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #1a1a1a;
}
.dtm-grid__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.6s ease;
}
.dtm-grid__card:hover .dtm-grid__photo img {
    transform: scale(1.05);
}

/* Overlay: always present, content slides up on hover */
.dtm-grid__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.80) 0%, rgba(0,0,0,0.10) 55%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px 20px;
    transition: background 0.35s ease;
}
.dtm-grid__card:hover .dtm-grid__overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.90) 0%, rgba(0,0,0,0.30) 65%, transparent 100%);
}

.dtm-grid__name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 6px;
    line-height: 1.25;
    transition: color 0.3s ease;
}
.dtm-grid__card:hover .dtm-grid__name {
    color: #c9a96e;
}

.dtm-grid__position {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: rgba(201, 169, 110, 0.75);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.dtm-grid__card:hover .dtm-grid__position {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 640px) {
    .dtm-grid {
        flex-wrap: wrap;
    }
    .dtm-grid--2 .dtm-grid__card,
    .dtm-grid--3 .dtm-grid__card,
    .dtm-grid--4 .dtm-grid__card {
        flex: 0 0 calc(50% - 8px);
    }
}
@media (max-width: 400px) {
    .dtm-grid--2 .dtm-grid__card,
    .dtm-grid--3 .dtm-grid__card,
    .dtm-grid--4 .dtm-grid__card {
        flex: 0 0 100%;
    }
}


/* ══════════════════════════════════════════
   CAROUSEL  (5+ items — auto-slide)
   ══════════════════════════════════════════ */
.dtm-carousel {
    position: relative;
    user-select: none;
}

.dtm-carousel__viewport {
    overflow: hidden;
    width: 100%;
}

.dtm-carousel__track {
    display: flex;
    will-change: transform;
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dtm-carousel__item {
    flex-shrink: 0;
    padding: 0 8px;
    box-sizing: border-box;
}

/* Card inside carousel — same hover behaviour as grid */
.dtm-carousel__photo {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #1a1a1a;
}
.dtm-carousel__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.6s ease;
}
.dtm-carousel__item:hover .dtm-carousel__photo img {
    transform: scale(1.05);
}

.dtm-carousel__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.80) 0%, rgba(0,0,0,0.10) 55%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px 18px;
    transition: background 0.35s ease;
}
.dtm-carousel__item:hover .dtm-carousel__overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.90) 0%, rgba(0,0,0,0.30) 65%, transparent 100%);
}

.dtm-carousel__name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 5px;
    line-height: 1.25;
    transition: color 0.3s ease;
}
.dtm-carousel__item:hover .dtm-carousel__name {
    color: #c9a96e;
}

.dtm-carousel__position {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: rgba(201, 169, 110, 0.75);
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.dtm-carousel__item:hover .dtm-carousel__position {
    opacity: 1;
    transform: translateY(0);
}

/* Prev / Next buttons */
.dtm-carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10,10,10,0.75);
    border: 1px solid rgba(201,169,110,0.4);
    color: #c9a96e;
    font-size: 2rem;
    line-height: 1;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.25s ease, border-color 0.25s ease;
    padding: 0;
}
.dtm-carousel__btn:hover {
    background: rgba(201,169,110,0.15);
    border-color: #c9a96e;
}
.dtm-carousel__btn--prev { left: -23px; }
.dtm-carousel__btn--next { right: -23px; }

/* Dots */
.dtm-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}
.dtm-carousel__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, transform 0.3s ease;
}
.dtm-carousel__dot.active {
    background: #c9a96e;
    transform: scale(1.4);
}
